/* --- ESTILOS CSS COMPLETOS (VERSÃO 'MAYO CLINIC' + MENU RESPONSIVO + CORREÇÃO DESKTOP) --- */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;  
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.7;
    background-color: #f8f9fa;
    color: #212529;
    margin: 0;
    padding: 0;
}

/* --- CABEÇALHO (ESTILO BLOG) --- */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
    z-index: 100;
}
.header-logo {
    color: #005a9c;  
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    font-size: 1.8em;
    text-decoration: none;
}

/* ----- ESTA É A CORREÇÃO ----- */
/* Garante que o menu de desktop seja visível por padrão */
.main-nav {
    display: block;
}
/* ----- FIM DA CORREÇÃO ----- */

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}
.main-nav li {
    margin-left: 20px;
}
.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95em;
}
.main-nav a:hover {
    color: #005a9c;
}
/* Fim do CSS do Cabeçalho */

.container {
    max-width: 800px;
    margin: 25px auto;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.eyebrow {
    font-size: 0.9em;
    color: #005a9c;
    font-weight: 600;
    text-transform: uppercase;
}
h1 {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 2.6em;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 15px;
    margin-bottom: 20px;
}
/* Meta-dados do Artigo para E-E-A-T */
.article-meta {
    font-size: 0.85em;
    color: #6c757d;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.article-meta span {
    display: block;
    margin-bottom: 5px;
}
/* Fim dos Meta-dados */

h2 {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1.9em;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}
h3 {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 30px;
}

.article-image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}
figcaption {
    font-size: 0.85em;
    color: #6c757d;
    text-align: center;
    font-style: italic;
    margin-bottom: 25px;
}

p {
    margin-bottom: 1.75em;
    font-size: 1.1em;
    word-wrap: break-word;  
}
ul {
     margin-bottom: 1.75em;
     padding-left: 20px;
}
li {
    margin-bottom: 0.8em;
    font-size: 1.05em;
}
strong, b {
    font-weight: 600;
}
.highlight {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-left: 4px solid #005a9c;
    border-radius: 4px;
    font-size: 1.05em;
    font-style: italic;
    margin: 25px 0;
}

/* Caixa de CTA Sutil (Mantida) */
.recommendation-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}
.recommendation-box p {
    margin: 0 0 15px 0;
    font-size: 1.05em;
    line-height: 1.6;
}
.recommendation-box strong {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1.2em;
    color: #005a9c;
    display: block;
    margin-bottom: 10px;
}
.recommendation-link {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: inline-block;
    background-color: #005a9c;
    color: #ffffff;
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.recommendation-link:hover {
    background-color: #004170;
    color: #ffffff;
}

/* --- RODAPÉ (ESTILO BLOG) --- */
.site-footer {
    background-color: #343a40;
    color: #adb5bd;
    padding: 40px 20px;
    margin-top: 40px;
}
.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.footer-column h4 {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 15px;
}
.footer-column p, .footer-column li {
    font-size: 0.9em;
    margin-bottom: 10px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column a {
    color: #adb5bd;
    text-decoration: none;
}
.footer-column a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.footer-logo {
    color: #007bff; /* Um azul mais brilhante para o rodapé escuro */
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    font-size: 1.8em;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}
.footer-disclaimer {
    max-width: 1100px;
    margin: 30px auto 0;
    padding-top: 30px;
    border-top: 1px solid #495057;
    font-size: 0.8em;
    text-align: center;
}
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8em;
}
/* Fim do CSS do Rodapé */


/* --- SEÇÃO RESPONSIVA E MENU MOBILE --- */

/* (Acessibilidade) Esconde o texto "Menu" */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* (Botão) O botão hamburger (escondido no desktop) */
.mobile-nav-toggle {
    display: none; /* Fica escondido até a media query ativá-lo */
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px; /* Aumenta a área de clique */
    z-index: 1000; /* Fica na frente de tudo */
    position: relative; /* Para o 'X' funcionar */
    height: 50px; /* Altura fixa */
    width: 50px; /* Largura fixa */
}

/* (Ícone) As 3 linhas do hamburger */
.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: relative;
    transition: background-color 0.2s ease-in-out;
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: absolute;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}
.hamburger-icon::before {
    top: -8px; /* Linha de cima */
}
.hamburger-icon::after {
    top: 8px; /* Linha de baixo */
}

/* (Menu) O menu suspenso (escondido por padrão) */
.mobile-nav-menu {
    display: none; /* Escondido por padrão */
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    /* Posicionamento para ficar logo abaixo do header */
    position: absolute;
    top: 71px; /* Altura do seu header (ajuste se mudar a altura do header) */
    left: 0;
    right: 0;
    z-index: 999;
}
/* (Links) Estilo dos links dentro do menu suspenso */
.mobile-nav-menu a {
    display: block;
    padding: 18px 25px;
    text-decoration: none;
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
    border-top: 1px solid #f1f1f1;
}
.mobile-nav-menu a:hover {
    background-color: #f8f9fa;
}
.mobile-nav-secondary {
    font-size: 0.9em;
    color: #6c757d;
}

/* --- CLASSES DE JAVASCRIPT --- */

/* (JS) Classe adicionada pelo JS para mostrar o menu */
.mobile-nav-menu.is-open {
    display: block;
}

/* (JS) Classe adicionada pelo JS para animar o botão para 'X' */
.mobile-nav-toggle.is-open .hamburger-icon {
    background-color: transparent; /* Linha do meio some */
}
.mobile-nav-toggle.is-open .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg); /* Linha de cima vira / */
}
.mobile-nav-toggle.is-open .hamburger-icon::after {
    top: 0;
    transform: rotate(-45deg); /* Linha de baixo vira \ */
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
    /* Esconde o menu de desktop em telas menores */
    .main-nav { 
        display: none; 
    }
    
    /* Mostra o botão hamburger em telas menores */
    .mobile-nav-toggle {
        display: block; /* Estava 'none' no desktop */
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px 25px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    h1 { font-size: 2.1em; }
    h2 { font-size: 1.7em; }
}