/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES (CSS VARIABLES)
   ========================================================================== */
:root {
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Theme Colors - Light Mode (Default) */
    --bg-primary: hsl(210, 40%, 98%);
    --bg-secondary: hsl(0, 0%, 100%);
    --bg-tertiary: hsl(214, 32%, 91%);
    --text-primary: hsl(222, 47%, 12%);
    --text-secondary: hsl(215, 16%, 47%);
    --text-muted: hsl(215, 16%, 60%);
    --border-color: hsl(214, 32%, 91%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    
    /* Branding Accent Colors */
    --primary: hsl(221, 83%, 53%); /* Indigo/Royal Blue */
    --primary-hover: hsl(221, 83%, 45%);
    --accent-health: hsl(172, 75%, 38%); /* Calming Teal */
    --accent-health-light: hsl(172, 75%, 95%);
    --accent-education: hsl(38, 92%, 50%); /* Amber / Education Gold */
    --accent-education-light: hsl(38, 92%, 95%);
    --accent-neutral: hsl(252, 56%, 57%); /* Purple */
    --accent-neutral-light: hsl(252, 56%, 95%);
    
    /* Structure & Spacing */
    --max-width: 1200px;
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-primary: hsl(222, 47%, 7%);
    --bg-secondary: hsl(222, 47%, 11%);
    --bg-tertiary: hsl(223, 47%, 18%);
    --text-primary: hsl(210, 40%, 98%);
    --text-secondary: hsl(215, 20%, 75%);
    --text-muted: hsl(215, 16%, 50%);
    --border-color: hsl(223, 47%, 18%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    
    --accent-health-light: hsl(172, 75%, 12%);
    --accent-education-light: hsl(38, 92%, 12%);
    --accent-neutral-light: hsl(252, 56%, 15%);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

[data-theme="dark"] .main-header {
    background-color: rgba(15, 23, 42, 0.8);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-favicon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-health);
}

/* Menu */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
    transform: rotate(15deg);
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Open state mobile menu btn */
.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   ADSENSE PLACEHOLDERS
   ========================================================================== */
.adsense-placeholder {
    background-color: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.adsense-placeholder::before {
    content: 'AD';
    position: absolute;
    font-size: 8rem;
    font-weight: 900;
    color: var(--border-color);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.ad-label {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    z-index: 1;
}

.ad-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    z-index: 1;
}

.adsense-banner-outer {
    padding: 1.5rem 0;
}

.banner-ad {
    min-height: 90px;
    width: 100%;
}

.grid-ad {
    grid-column: 1 / -1;
    min-height: 120px;
}

.sidebar-ad {
    min-height: 250px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-health-light) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-education-light) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-neuro {
    background-color: var(--accent-health-light);
    color: var(--accent-health);
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    border: 1px solid rgba(15, 118, 110, 0.15);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero Image & Frame Styling */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-frame {
    width: 340px;
    height: 340px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 8px solid var(--bg-secondary);
    animation: morph 8s ease-in-out infinite alternate;
    transition: border-color var(--transition-smooth);
}

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

.hero-photo:hover {
    transform: scale(1.05);
}

.floating-card {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: float 4s ease-in-out infinite;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

[data-theme="dark"] .floating-card {
    background-color: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

.floating-card-icon {
    font-size: 1.5rem;
    background-color: var(--accent-education-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.floating-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.floating-card p {
    font-size: 0.75rem;
    margin: 0;
}

/* Animations */
@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    100% {
        border-radius: 65% 35% 50% 50% / 50% 50% 50% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ==========================================================================
   MAIN CONTENT AREA (GRID + SIDEBAR)
   ========================================================================== */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

.section-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.article-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.article-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-saude {
    background-color: var(--accent-health-light);
    color: var(--accent-health);
}

.badge-educacao {
    background-color: var(--accent-education-light);
    color: var(--accent-education);
}

.badge-geral {
    background-color: var(--accent-neutral-light);
    color: var(--accent-neutral);
}

.article-card-body {
    padding: 2.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-card h3 {
    line-height: 1.35;
    margin-bottom: 0.85rem;
    font-size: 1.25rem;
    padding-right: 75px; /* Evita que o título seja sobreposto pelo badge lateral */
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-excerpt {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.article-card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.read-more svg {
    transition: transform var(--transition-fast);
}

.article-card:hover .read-more svg {
    transform: translateX(4px);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 600;
    background-color: var(--bg-secondary);
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.page-link:not(.active) {
    color: var(--text-secondary);
}

/* ==========================================================================
   SIDEBAR AREA
   ========================================================================== */
.sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

/* Profile Widget */
.widget-profile {
    border-top: 4px solid var(--accent-health);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mini-profile-pic-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-health-light);
    box-shadow: var(--shadow-sm);
}

.mini-profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-health);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-bio p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credentials-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.credentials-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.credentials-list li {
    font-size: 0.70rem;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.credentials-list li span {
    font-size: 0.82rem;
    line-height: 1;
}

/* Newsletter Widget */
.widget-newsletter {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--accent-education-light) 200%);
    border-top: 4px solid var(--accent-education);
}

.widget-newsletter h3 {
    margin-bottom: 0.75rem;
}

.widget-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 5rem 0;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.20fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info > p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    background-color: var(--bg-tertiary);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
    transition: background-color var(--transition-smooth);
}

.contact-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contact-item p {
    font-size: 0.9rem;
    margin: 0;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: hsl(222, 47%, 11%);
    color: hsl(210, 40%, 98%);
    padding: 4rem 0 0;
    border-top: 1px solid var(--border-color);
}

.main-footer h1, 
.main-footer h2, 
.main-footer h3, 
.main-footer h4, 
.main-footer p {
    color: hsl(210, 40%, 98%);
}

.main-footer p {
    opacity: 0.7;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.light-logo .logo-icon {
    background-color: #ffffff;
    color: var(--primary);
}

.light-logo .logo-subtitle {
    color: #38bdf8;
}

.footer-brand .logo-area {
    margin-bottom: 1.5rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-legal h4 {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after,
.footer-legal h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-health);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 4px;
}

.footer-legal p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.hosting-mention {
    font-size: 0.8rem;
    font-style: italic;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    margin: 0;
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

/* Tablet (Large) */
@media (max-width: 1024px) {
    .hero-container {
        gap: 2rem;
    }
    
    .hero-image-frame {
        width: 280px;
        height: 280px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-legal {
        grid-column: span 2;
    }
}

/* Tablet (Small) / Mobile (Large) */
@media (max-width: 768px) {
    .header-container {
        position: relative;
    }
    
    /* Mobile Menu Drawer */
    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem 5%;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all var(--transition-fast);
        z-index: 99;
    }
    
    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 1.25rem;
        align-items: flex-start;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-image-wrapper {
        order: -1; /* Image first on mobile */
    }
    
    .floating-card {
        left: 50%;
        transform: translateX(-50%);
        animation: floatMobile 4s ease-in-out infinite;
    }
    
    @keyframes floatMobile {
        0%, 100% {
            transform: translateX(-50%) translateY(0);
        }
        50% {
            transform: translateX(-50%) translateY(-10px);
        }
    }
    
    /* Articles Grid */
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Mobile (Small) */
@media (max-width: 480px) {
    .logo-subtitle {
        display: none;
    }
    
    .hero-image-frame {
        width: 220px;
        height: 220px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-legal {
        grid-column: span 1;
    }
}

/* ==========================================================================
   ESTILOS EXCLUSIVOS PARA PÁGINAS DE ARTIGOS (READING VIEW)
   ========================================================================== */
.article-content-area {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.article-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.article-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.2;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.article-header .article-meta {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.back-link:hover {
    color: var(--primary-hover);
    transform: translateX(-4px);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.article-body h2 {
    font-size: 1.65rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-body h3 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.article-body ul, 
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.65rem;
    color: var(--text-secondary);
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--bg-primary);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-style: italic;
    color: var(--text-primary);
}

.article-body blockquote cite {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    text-align: right;
    font-style: normal;
}

.article-references {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.article-references h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    margin-top: 0;
}

.article-references ul {
    list-style: none;
    padding-left: 0 !important;
}

.article-references li {
    font-size: 0.85rem !important;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    text-indent: -1.5rem;
    padding-left: 1.5rem;
}

.article-body strong {
    color: var(--text-primary);
}

/* Responsividade para a página de leitura */
@media (max-width: 768px) {
    .article-content-area {
        padding: 1.75rem;
    }
}

/* ==========================================================================
   BARRA DE ACESSIBILIDADE NATIVA
   ========================================================================== */
.accessibility-bar {
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    font-size: 0.8rem;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.accessibility-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.accessibility-title {
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.accessibility-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accessibility-controls button {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    font-family: var(--font-body);
}

.accessibility-controls button:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.accessibility-controls button:focus-visible {
    box-shadow: 0 0 0 2px var(--primary);
}

/* ==========================================================================
   ALTO CONTRASTE (ACESSIBILIDADE VISUAL)
   ========================================================================== */
html.high-contrast {
    /* Cores de Alto Contraste: Fundo Preto e Textos Amarelos / Brancos */
    --bg-primary: #000000 !important;
    --bg-secondary: #000000 !important;
    --bg-tertiary: #111111 !important;
    --text-primary: #ffff00 !important; /* Texto principal em amarelo */
    --text-secondary: #ffffff !important; /* Texto secundário em branco */
    --text-muted: #ffffff !important;
    --border-color: #ffff00 !important; /* Bordas amarelas */
    --shadow-sm: none !important;
    --shadow-md: none !important;
    --shadow-lg: none !important;
    --shadow-premium: none !important;
    
    /* Cores de Destaque */
    --primary: #ffff00 !important;
    --primary-hover: #ffffff !important;
    
    --accent-health: #00ffff !important; /* Ciano */
    --accent-health-light: #000000 !important;
    --accent-education: #ffff00 !important; /* Amarelo */
    --accent-education-light: #000000 !important;
    --accent-neutral: #ffffff !important;
    --accent-neutral-light: #000000 !important;
}

html.high-contrast body {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

html.high-contrast .btn-primary {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}

html.high-contrast .btn-primary:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
}

html.high-contrast .btn-secondary {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

html.high-contrast .btn-secondary:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

html.high-contrast .adsense-placeholder {
    border: 2px dashed #ffff00 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}

html.high-contrast .theme-toggle {
    border-color: #ffff00 !important;
    color: #ffff00 !important;
}

html.high-contrast svg {
    stroke: currentColor !important;
}

html.high-contrast .main-header {
    background-color: #000000 !important;
    border-bottom: 2px solid #ffff00 !important;
}

html.high-contrast .main-footer {
    background-color: #000000 !important;
    border-top: 2px solid #ffff00 !important;
}

html.high-contrast .sidebar-widget {
    background-color: #000000 !important;
    border: 2px solid #ffff00 !important;
}

html.high-contrast .article-card {
    background-color: #000000 !important;
    border: 2px solid #ffff00 !important;
}

html.high-contrast .article-card:hover {
    border-color: #ffffff !important;
}

html.high-contrast .floating-card {
    background-color: #000000 !important;
    border: 2px solid #ffff00 !important;
}

/* ==========================================================================
   FONTE PARA DISLEXIA
   ========================================================================== */
html.dyslexia-font {
    --font-body: 'Comic Sans MS', 'Comic Sans', cursive, sans-serif !important;
    --font-heading: 'Comic Sans MS', 'Comic Sans', cursive, sans-serif !important;
}

html.dyslexia-font body {
    word-spacing: 0.12em !important;
    letter-spacing: 0.03em !important;
}

/* ==========================================================================
   CARD ILLUSTRATION (MORPHING BLOB BADGE)
   ========================================================================== */
.card-illustration-frame {
    position: absolute;
    right: -20px;
    top: 70px;
    width: 80px;
    height: 80px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 4px solid var(--bg-secondary);
    background: linear-gradient(135deg, hsl(172, 75%, 35%) 0%, hsl(172, 75%, 15%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: morph 8s ease-in-out infinite alternate;
    transition: transform var(--transition-fast);
}

.article-card:hover .card-illustration-frame {
    transform: scale(1.1);
}

.card-illustration-pic {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

@media (max-width: 480px) {
    .card-illustration-frame {
        right: -10px;
        width: 65px;
        height: 65px;
        border-width: 3px;
    }
}

/* Header Vitrine Card Badge */
.nav-vitrine-wrapper {
    display: flex;
    align-items: center;
}

.nav-vitrine-card {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--accent-education-light) 200%);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-education);
    padding: 0.35rem 1rem 0.35rem 0.65rem;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-vitrine-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-education);
    box-shadow: var(--shadow-md);
}

.nav-vitrine-icon {
    font-size: 1rem;
    background-color: var(--accent-health-light);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-health);
    flex-shrink: 0;
}

[data-theme="dark"] .nav-vitrine-icon {
    background-color: rgba(172, 75, 38, 0.1);
}

.nav-vitrine-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-health) !important;
}

/* Adjust for mobile menu */
@media (max-width: 768px) {
    .nav-vitrine-wrapper {
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px dashed var(--border-color);
    }
    .nav-vitrine-card {
        width: 100%;
        background: linear-gradient(135deg, var(--bg-primary) 0%, var(--accent-education-light) 200%);
    }
}

/* Seletor de Idiomas no Cabeçalho */
.language-selector {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-right: 0.75rem;
}
.lang-btn {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
[data-theme="dark"] .lang-btn {
    border-color: rgba(255, 255, 255, 0.15);
}
.lang-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}
[data-theme="dark"] .lang-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}
.lang-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}






