:root {
    /* Cafe Collection Palette */
    --color-white: #FFFFFF;
    --color-froth: #F1EEEB;
    --color-chai: #E4D8CB;
    --color-creme: #CDC6C3;
    --color-cinna: #CFB3A9;
    --color-latte: #A09086;

    /* Darker tones for readability */
    --color-cacao: #4D403A;
    --color-leather: #2B2625;

    --primary-color: var(--color-leather);
    --accent-color: var(--color-cinna);
    --text-main: var(--color-leather);
    --text-muted: var(--color-latte);
    --bg-light: var(--color-froth);
    --bg-white: var(--color-white);
    --border-color: var(--color-chai);

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Decorative Element */
    --star-decor: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0Q50 50 100 50Q50 50 50 100Q50 50 0 50Q50 50 50 0Z' stroke='%23E4D8CB' stroke-width='0.6' stroke-opacity='0.15' fill='none'/%3E%3C/svg%3E");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    background-image:
        var(--star-decor),
        var(--star-decor),
        var(--star-decor);
    background-repeat: no-repeat;
    background-position:
        calc(100% + 150px) 15vh,
        -100px 45vh,
        85% 85vh;
    background-size: 500px, 300px, 200px;
    background-attachment: fixed;
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
}

/* Subtle Floating Stars */
body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: -1;
    background-image: var(--star-decor);
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.12;
}

body::before {
    width: 140px;
    height: 140px;
    top: 10vh;
    left: 4%;
    transform: rotate(15deg);
    animation: float-star-slow 20s infinite ease-in-out;
}

body::after {
    width: 100px;
    height: 100px;
    bottom: 20vh;
    right: 6%;
    transform: rotate(-10deg);
    animation: float-star-slow 25s infinite ease-in-out reverse;
}

@keyframes float-star-slow {

    0%,
    100% {
        transform: translate(0, 0) rotate(15deg);
    }

    50% {
        transform: translate(15px, 25px) rotate(18deg);
    }
}

body,
html {
    overflow-x: clip;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.desktop-nav {
    display: none;
    gap: 32px;
}

@media(min-width: 768px) {
    .desktop-nav {
        display: flex;
        align-items: center;
    }
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link i {
    width: 16px;
    height: 16px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 16px;
}

@media(min-width: 768px) {
    .nav-actions {
        display: flex;
    }
}

.login-btn {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-muted);
}

.login-btn:hover {
    color: var(--primary-color);
}

.signup-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-fast);
    display: inline-block;
}

.signup-btn:hover {
    background-color: var(--color-cacao);
    transform: translateY(-1px);
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

@media(min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    max-width: 1280px;
    margin: 32px auto;
    padding: 0 24px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media(max-width: 768px) {
    .hero-section {
        margin: 16px auto;
        padding: 0 16px;
    }
}

.hero-content {
    position: relative;
    height: 500px;
    border-radius: inherit;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-text-content {
    position: relative;
    z-index: 2;
    padding: 48px;
    max-width: 800px;
    color: white;
}

@media(max-width: 768px) {
    .hero-text-content {
        padding: 24px;
    }
}

.badge {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 16px;
}

.hero-text-content h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

@media(max-width: 768px) {
    .hero-text-content h1 {
        font-size: 28px;
    }
}

.hero-text-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.arrow-btn {
    position: absolute;
    bottom: 48px;
    right: 48px;
    z-index: 2;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 24px;
    opacity: 0.8;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.arrow-btn i {
    width: 32px;
    height: 32px;
}

.arrow-btn:hover {
    opacity: 1;
    transform: translateX(5px);
}

@media(max-width: 768px) {
    .arrow-btn {
        bottom: 24px;
        right: 24px;
    }
}

/* Recent Posts */
.recent-posts-section {
    padding: 64px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 32px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

@media(max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.post-image-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16/10;
}

.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.post-card:hover .post-img {
    transform: scale(1.03);
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.post-card:hover .post-title {
    color: var(--accent-color);
}

.post-excerpt {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.dot {
    color: var(--text-muted);
}

.post-date {
    font-size: 14px;
    color: var(--text-muted);
}

/* Load More */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 64px;
}

.load-more-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.load-more-btn:hover {
    background-color: #1e293b;
    transform: translateY(-2px);
}

/* CTA & Footer */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding-top: 96px;
    border-radius: 24px 24px 0 0;
    margin-top: 64px;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px 96px;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    color: var(--color-froth);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

@media(max-width: 500px) {
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.btn-outline {
    background: transparent;
    border: 1px solid #334155;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--color-froth);
}

.footer {
    padding: 64px 24px 32px;
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid var(--color-cacao);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-bottom: 64px;
}

.footer-col h4 {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: white;
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 500;
}

.footer-col a:hover {
    color: #cbd5e1;
}

.badge-new {
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 8px;
    color: white;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid #1e293b;
    padding-top: 32px;
}

@media(min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 15px;
}

/* Post Detail Layout */
.post-detail-hero {
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 24px;
    text-align: center;
}

.post-detail-category {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: inline-block;
}

.post-detail-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 24px;
}

@media(max-width: 768px) {
    .post-detail-title {
        font-size: 32px;
    }
}

.post-detail-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 800px;
    margin-inline: auto;
}

.post-detail-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.post-detail-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-detail-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.post-detail-author-info {
    text-align: left;
}

.post-detail-name {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.post-detail-date {
    font-size: 14px;
    color: var(--text-muted);
}

.post-detail-image-container {
    max-width: 1200px;
    margin: 0 auto 64px;
    padding: 0 24px;
}

.post-detail-image-container img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.post-main-img {
    height: 400px;
    object-fit: cover;
}

.post-article-content {
    max-width: 720px;
    margin: 0 auto 96px;
    padding: 0 24px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-main);
}

.post-article-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 48px 0 24px;
    line-height: 1.3;
}

.post-article-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 32px 0 16px;
    line-height: 1.4;
}

.post-article-content p {
    margin-bottom: 24px;
}

.post-article-content ul,
.post-article-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-article-content li {
    margin-bottom: 12px;
}

.post-article-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--primary-color);
    font-size: 24px;
    line-height: 1.4;
}

.post-article-content img {
    width: 100%;
    border-radius: var(--radius-md);
    margin: 32px 0;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-slide .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 6s ease-out;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-slide.active .hero-bg {
    transform: scale(1.05);
}

.carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot-slide {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.dot-slide.active {
    background-color: white;
}

/* Sidebar Author Widget */
.sidebar-author-widget {
    background: var(--bg-white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    margin-bottom: 24px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    /* Symmetry Adjustment */
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-author-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.sidebar-author-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: block;
    border: 3px solid var(--bg-light);
    object-fit: cover;
}

.sidebar-author-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.sidebar-author-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    display: block;
    letter-spacing: 0.5px;
}

.sidebar-author-bio {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.sidebar-btn-subtle {
    display: inline-block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    text-decoration: none;
    margin-bottom: 24px;
    transition: all var(--transition-fast);
}

.sidebar-btn-subtle:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
}

.sidebar-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.sidebar-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

.sidebar-social-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Post Layout Sidebar */
.post-layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: start;
}

@media(min-width: 1024px) {
    .post-layout-container {
        grid-template-columns: 1fr 340px;
        align-items: start;
    }

    .post-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 20px;
        align-self: start;
        height: auto;
        z-index: 10;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
}

.post-layout-container .post-article-content {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.08);
    z-index: 100;
    border-radius: var(--radius-sm);
    top: 100%;
    left: 0;
    border: 1px solid var(--border-color);
    padding: 8px 0;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 24px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Registration Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    margin-bottom: 24px;
    font-size: 24px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-color);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-top: 16px;
    transition: background var(--transition-fast);
}

.btn-submit:hover {
    background: var(--secondary-color);
}

/* Buttons */
.post-sidebar {
    position: relative;
    width: 100%;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.sidebar-sticky h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    display: flex;
    gap: 12px;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast), background-color var(--transition-fast);
    padding: 8px;
}

.sidebar-card:hover {
    background-color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sidebar-card img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.sidebar-card-info {
    flex: 1;
}

.sidebar-card-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-card-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Ajuste de enquadramento da foto (Luana) */
.home-author-avatar,
.sidebar-author-avatar,
.post-detail-author img {
    object-fit: cover !important;
    object-position: right 30% !important;
}

/* Legal Pages */
.legal-page-container {
    padding-top: 140px;
    padding-bottom: 100px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.legal-content {
    line-height: 1.8;
    color: var(--color-cacao);
    font-size: 17px;
    text-align: center;
}

.legal-content h2 {
    color: var(--color-leather);
    margin-top: 48px;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
}

.legal-content ul {
    display: inline-block;
    text-align: left;
    margin: 24px 0;
    max-width: 100%;
}

.legal-content p {
    margin-bottom: 24px;
}

.legal-page-container h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-leather);
    margin-bottom: 40px;
    letter-spacing: -1.5px;
}

/* Magazine Hero Section */
.magazine-hero {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 600px;
    margin: 0;
    padding: 80px 40px;
    position: relative;
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('Banner 1 .png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.magazine-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.vertical-text-left {
    transform: rotate(-180deg);
    writing-mode: vertical-rl;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--text-main);
    text-transform: uppercase;
    margin-right: 48px;
    font-weight: 700;
}

.magazine-title-block {
    max-width: 600px;
}

.magazine-title-block h1 {
    font-size: clamp(56px, 7vw, 92px);
    font-weight: 700;
    line-height: 0.9;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -4px;
}

.magazine-read-btn {
    font-size: 18px;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.magazine-read-btn:hover {
    gap: 16px;
}

.magazine-right {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.magazine-img-large {
    width: 85%;
    height: 750px;
    object-fit: cover;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.magazine-img-small {
    position: absolute;
    bottom: -60px;
    right: -20px;
    width: 60%;
    height: 500px;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    background: var(--bg-white);
    border: 12px solid var(--bg-white);
    border-radius: var(--radius-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.vertical-text-right {
    position: absolute;
    right: -40px;
    top: 40px;
    writing-mode: vertical-rl;
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

@media(max-width: 1024px) {
    .magazine-hero {
        padding: 40px 24px;
        min-height: 400px;
        background-position: center;
    }

    .vertical-text-left,
    .vertical-text-right {
        display: none;
    }

    .magazine-left {
        width: 100%;
        margin-bottom: 0;
        justify-content: center;
    }

    .magazine-title-block h1 {
        font-size: 44px;
    }

    .magazine-right {
        display: none;
    }

    /* Reset Sidebar Height for Mobile */
    .sidebar-author-widget {
        height: auto;
        min-height: initial;
    }
}

/* ================================================
   MOBILE ADJUSTMENTS (max-width: 768px)
   ================================================ */
@media(max-width: 768px) {

    /* 1. Magazine Hero — texto legível sobre a imagem */
    .magazine-hero {
        min-height: auto;
        padding: 48px 20px;
        background-image: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)), url('Banner 1 .png');
    }

    .magazine-title-block h1 {
        font-size: clamp(32px, 8vw, 44px);
        letter-spacing: -2px;
        line-height: 1.0;
    }

    .magazine-title-block p {
        font-size: 16px !important;
    }

    .magazine-read-btn {
        font-size: 15px;
    }

    /* 2. Espaçamento entre hero e segunda seção */
    .mobile-carousel-block {
        margin-top: 24px !important;
    }

    /* 3. Mobile wrapper: coluna vertical com ordem correta */
    .mobile-main-wrapper {
        display: flex;
        flex-direction: column;
    }

    /* Carousel + sidebar ficam primeiro */
    .mobile-carousel-block {
        order: 1;
        gap: 0;
    }

    /* Postagens recentes ficam segundo */
    .mobile-posts-block {
        order: 2;
    }

    /* Card da Luana: oculta no bloco do carousel no mobile */
    .mobile-author-block {
        display: none;
    }

    /* Card da Luana abaixo das postagens: visível SOMENTE no mobile */
    .mobile-author-card-below {
        display: block;
    }

    /* Postagens recentes padding ajustado */
    .recent-posts-section {
        padding: 32px 16px;
    }

    /* Carousel altura menor no mobile */
    .hero-carousel {
        height: 480px;
    }

    .hero-content {
        height: 480px;
    }

    /* CTA section spacing */
    .cta-section {
        margin-top: 0;
    }
}

@keyframes btn-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(160, 144, 134, 0.4);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 10px rgba(160, 144, 134, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(160, 144, 134, 0);
    }
}

.signup-btn,
.btn-primary,
.btn-submit,
.magazine-read-btn,
.sidebar-btn-subtle,
.lp-btn-cta {
    animation: btn-pulse 3s infinite ease-in-out;
}

btn-submit,
.magazine-read-btn,
.sidebar-btn-subtle,
.lp-btn-cta {
    animation: btn-pulse 3s infinite ease-in-out;
}