* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #24417c;
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    /* Evita barra de rolagem horizontal pelo menu lateral */
}

header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#menu-placeholder {
    min-height: 80px;
}

#footer-placeholder {
    min-height: 300px;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #24417c;
}

.logo img {
    height: 70px;
    /* Defina a altura desejada para o seu logo aqui */
    width: auto;
    /* Mantém a proporção original da imagem */
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #8B3DFF, #FF6B9D);
    /* Gradiente para o ícone do logo */
    border-radius: 50%;
}

/* Container para os links de navegação */
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #666;
    padding: 10px 0;
    font-size: 18px;
}

/* Botões de abrir/fechar menu no mobile (hambúrguer) */
.nav-open-btn,
.nav-close-btn {
    display: none;
    /* Escondidos por padrão em telas grandes */
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

/* --- Estilos do Novo Menu Dropdown --- */
.dropdown-menu {
    display: none;
    /* Escondido por padrão */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 100;
}

.dropdown-menu li a {
    color: #333;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: #f1f1f1;
}

/* Classe 'open' para mostrar o dropdown */
.dropdown.open>.dropdown-menu {
    display: block;
}

.hero {
    background: #F7FAFD;
    /* Cor de fundo suave para a seção principal */
    padding: 80px 20px;
}

/* ==========================================================================
   3. Seção Hero (Principal)
   ========================================================================== */
.hero-content {
    max-width: 1000px;
    /* Largura máxima para o conteúdo */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    flex: 1;
    /* Permite que o texto ocupe o espaço disponível */
}

.hero-text small {
    color: #8B3DFF;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.hero-text h1 {
    color: #24417c;
    font-size: 42px;
    margin: 20px 0 15px;
    line-height: 1.2;
}

.hero-text p {
    margin-bottom: 30px;
}

.hero-text small a {
    color: #24417c;
    text-decoration: none;
}

.breadcrumb-current {
    color: #0056b3;
}


.search-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centraliza os itens horizontalmente */
    gap: 15px;
}

.search-btn {
    background: white;
    /* Fundo branco para os botões de busca */
    border: 1px solid var(--search-btn-border-color, #24417c);
    /* Variável para a cor da borda, com #E0E0E0 como padrão */
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    justify-content: center;
    /* Centraliza o conteúdo horizontalmente */
    font-size: 14px;
    color: #24417c;
    width: 300px;
    text-decoration: none;
}

.btn-icon {
    width: 24px;
    height: 24px;

}

/* Estilo para ícones SVG embutidos */
.search-btn .embedded-icon {
    width: 24px;
    height: 24px;
    /* A cor do preenchimento do SVG será controlada por esta variável */
    fill: var(--search-btn-icon-color, #8B3DFF);
    /* Cor padrão para o ícone, você pode ajustar */
}

.hero-image {
    flex: 1;
    /* Permite que a imagem ocupe o espaço disponível */
    text-align: center;
    /* Centraliza a imagem dentro do seu container */
}

.hero-image img {
    /* Ajuste o valor de max-width para alterar o tamanho da imagem do hero */
    max-width: 100%;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   4. Estilos de Seção Genéricos
   ========================================================================== */

.section {
    max-width: 1200px;
    /* Largura padrão para seções de conteúdo */
    margin: 0 auto;
    padding: 50px 40px;
}

.section-title {
    text-align: center;
    color: #24417c;
    font-size: 32px;
    margin-bottom: 20px;
}

.section p:not(.section-subtitle) {
    text-align: justify;
}

.section-subtitle {
    text-align: center;
    color: #24417c;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.alert-box {
    background-color: #f8f9fa;
    border-left: 4px solid #24417c;
    padding: 25px;
    margin-top: 30px;
    border-radius: 4px;
}

/* ==========================================================================
   5. Grids de Conteúdo
   ========================================================================== */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-image {
    background: #F7FAFD;
    /* Fundo azul escuro para destacar a imagem */
    border-radius: 20px;
    padding: 10px;
    position: relative;
}

.content-image img {
    width: 100%;
    border-radius: 15px;
}

/* Justifica o texto dos parágrafos dentro do grid de conteúdo */
.content-grid p {
    text-align: justify;
}

.content-text {
    /* Garante que o texto não fique colado nas bordas em telas menores */
    padding: 0 10px;
}

/* Linha de separação de seções */
.section-divider {
    border: 0;
    height: 1px;
    background-color: #E0E0E0;
    /* Cor cinza claro para a linha */
    margin: 40px 0;
    /* Espaçamento vertical acima e abaixo da linha */
}

/* ==========================================================================
   6. Seção Glossário
   ========================================================================== */

.glossary {
    background: #2C4A7C;
    /* Fundo azul escuro para a seção */
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 20px;
    margin: 0 20px;
}

.glossary h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.glossary p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.alphabet {
    letter-spacing: 8px;
    font-size: 14px;
}

.alphabet a {
    text-decoration: none;
    /* Remove o sublinhado */
    color: inherit;
    /* Herda a cor branca do contêiner */
    transition: opacity 0.3s;
}

.alphabet a:hover {
    opacity: 0.7;
    /* Adiciona um leve efeito de transparência ao passar o mouse */
}


/* ==========================================================================
   7. Seção Especialistas
   ========================================================================== */

.specialists {
    background: #F8F9FA;
    padding: 80px 20px;
}

.specialists-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.specialists-text h3 {
    color: #8B3DFF;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.specialists-text h2 {
    color: #24417c;
    font-size: 36px;
    margin-bottom: 15px;
}

.specialists-text p {
    color: #666;
    margin-bottom: 30px;
}

.btn-primary {
    background: #2C4A7C;
    /* Botão de ação principal */
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.specialists-images {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    /* Alinha as imagens à direita dentro do contêiner */
}

.specialists-images img {
    border-radius: 15px;
    width: 100%;
    /* Ajuste o valor de max-width para definir o tamanho das imagens */
    max-width: 250px;
    height: auto;
    /* Mantém a proporção da imagem */
}

/* ==========================================================================
   8. Seção Localizações
   ========================================================================== */

.locations {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.locations h2 {
    text-align: center;
    color: #24417c;
    font-size: 32px;
    margin-bottom: 60px;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.location-card {
    background: #2C4A7C;
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    display: block;
}

.location-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.location-card p {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.9;
}

/* ==========================================================================
   9. Seção Saúde e Bem-Estar
   ========================================================================== */

.health-section {
    background: #F8F9FA;
    padding: 80px 20px;
}

.health-content {
    max-width: 1200px;
    margin: 0 auto;
}

.health-content h2 {
    text-align: center;
    color: #24417c;
    font-size: 32px;
    margin-bottom: 10px;
}

.health-content>p {
    text-align: center;
    color: #666;
    margin-bottom: 60px;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.health-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.health-card h3 {
    color: #24417c;
    font-size: 16px;
    margin-bottom: 10px;
}

.health-card p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.health-card a {
    text-decoration: none;
    /* Remove o sublinhado do link */
    color: inherit;
    /* Faz o link herdar a cor do elemento pai */
}

/* ==========================================================================
   10. Rodapé
   ========================================================================== */

footer {
    background: #F8F9FA;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #24417c;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #666;
    font-size: 13px;
    line-height: 1.8;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    /* Centraliza o texto de direitos autorais */
    color: #666;
    font-size: 13px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.footer-divider {
    border: 0;
    height: 1px;
    background-color: #24417c;
    margin: 30px auto 40px;
    max-width: 1200px;
    width: 100%;
}

/* ==========================================================================
   11. Estilos Unificados (da página de clínica)
   ========================================================================== */

/* Estilo para links internos do blog - integrado ao texto */
.text-link {
    color: #3366cc;
    /* Azul mais suave que o tema principal */
    text-decoration: none;
    /* Remove sublinhado */
    font-weight: 500;
    /* Levemente mais pesado que o texto normal */
    transition: color 0.2s ease, border-bottom 0.2s ease;
    border-bottom: 1px solid transparent;
    /* Borda invisível por padrão */
}

.text-link:hover {
    color: #24417c;
    /* Cor do tema principal no hover */
    border-bottom: 1px solid #24417c;
    /* Sublinhado sutil no hover */
}

/* Grid para listar clínicas */
.clinics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.clinic-card {
    background: white;
    border: 1px solid #24417c;
    /* Define a cor da borda para o azul padrão do tema */
    border-radius: 10px;
    padding: 25px;
    transition: box-shadow 0.3s;
}

.clinic-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.clinic-icon {
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
    /* Centraliza o conteúdo (o logo) horizontalmente */
}

.clinic-icon img {
    width: 180px;
    /* Define um tamanho pequeno para o logo */
    height: auto;
    filter: grayscale(100%);
    /* Aplica o filtro de escala de cinza */
    opacity: 0.6;
    /* Deixa o logo um pouco mais suave */
}

.clinic-card h3 {
    color: #24417c;
    font-size: 16px;
    margin-bottom: 5px;
}

.clinic-subtitle {
    color: #24417c;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.clinic-detail {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.clinic-detail strong {
    color: #24417c;
}

.faq-section {
    background: white;
    padding: 80px 20px;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #E0E0E0;
    padding: 20px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ==========================================================================
   12. Media Queries (Responsividade)
   ========================================================================== */

/* Para tablets e telas menores (até 920px) */
@media (max-width: 920px) {

    /* Transforma a navegação em um menu lateral (hambúrguer) */
    .nav-links {
        position: fixed;
        /* Posição fixa para cobrir a tela */
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: white;
        flex-direction: column;
        padding: 60px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    /* Classe 'open' para exibir o menu lateral */
    .nav-links.open {
        right: 0;
    }

    /* Exibe os botões de abrir/fechar o menu */
    .nav-open-btn,
    .nav-close-btn {
        display: block;
    }

    .nav-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    /* --- Ajustes de Layout Específicos para Telas Menores --- */
    /* Seção Hero */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-image {
        display: none;
        /* Oculta a imagem no mobile */
    }

    /* Ajusta grids de outras seções para uma única coluna */
    .content-grid,
    .specialists-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    /* Ajusta o menu dropdown para o modo mobile */
    .dropdown-menu {
        position: static;
        /* Remove o posicionamento absoluto */
        box-shadow: none;
        background-color: #f8f8f8;
    }

    .content-image {
        text-align: center;
    }

    /* Ajusta grids para duas colunas em tablets */
    .location-grid,
    .health-grid {
        grid-template-columns: 1fr 1fr;
    }

    .clinics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 768px) {

    .hero-text p,
    .section-subtitle,
    .content-grid p,
    .section p {
        text-align: justify;
    }

    .hero-text h1,
    .section-title,
    .content-grid h2 {
        text-align: center;
    }
}

/* Para celulares (até 576px) */
@media (max-width: 576px) {

    /* Reduz o espaçamento das seções */
    .section {
        padding: 30px 20px;
    }

    .alert-box {
        padding: 20px;
    }

    .location-grid,
    .health-grid {
        grid-template-columns: 1fr;
    }

    .clinics-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    /* Botões de busca ocupam a largura total */
    .search-btn {
        width: 100%;
    }

    .hero-image img,
    .content-image img,
    .specialists-images img {
        max-width: 100%;
    }

    .specialists-images {
        justify-content: center;
    }
}

/* ==========================================================================
   13. Estilos Específicos - Ruas Principais (Liberdade)
   ========================================================================== */
.streets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.street-card-wrapper {
    flex: 1;
    min-width: 300px;
}

.street-card {
    background: #fdfdfd;
    padding: 25px;
    border-top: 4px solid #0056b3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.street-title {
    color: #0056b3;
    margin-top: 0;
}

.street-list {
    padding-left: 20px;
}

.streets-note {
    margin-top: 30px;
    font-style: italic;
    text-align: center;
    color: #666;
}

/* ==========================================================================
   14. Estilos Específicos - Vila Mariana (Novo Padrão)
   ========================================================================== */
.column-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.column-card {
    flex: 1;
    min-width: 300px;
    background: #fdfdfd;
    padding: 25px;
    border-top: 4px solid #0056b3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.vias-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

.via-card {
    flex: 1;
    min-width: 280px;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

/* --- Rodapé Profissional (3 Colunas) --- */
.main-footer {
    background-color: #fcfcfc;
    border-top: 1px solid #e0e6ed;
    padding: 60px 0 20px;
    color: #4a5568;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Ajustado para 3 colunas com a primeira sendo um pouco maior */
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding: 0 20px;
}

.footer-column h4 {
    color: #24417c;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    width: 180px;
    /* Logo levemente maior agora que há mais espaço */
    margin-bottom: 20px;
}

.brand-description {
    font-size: 14px;
    line-height: 1.6;
    max-width: 350px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #24417c;
}

.contact-info {
    list-style: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.footer-disclaimer {
    background: #f1f5f9;
    margin-top: 50px;
    padding: 25px 20px;
    text-align: center;
}

.footer-disclaimer p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 12px;
    color: #718096;
    line-height: 1.5;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
    color: #a0aec0;
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .brand-description {
        margin: 0 auto;
    }

    .contact-info li {
        justify-content: center;
    }
}

/* ==========================================================================
   13. Seção Promoção de Empregos (Home)
   ========================================================================== */

.job-promotion-section {
    background: linear-gradient(135deg, #1a305c 0%, #24417c 100%);
    padding: 60px 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.job-promotion-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.job-promotion-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.job-promotion-text {
    text-align: left;
}

.job-promotion-image {
    display: flex;
    justify-content: center;
}


.job-promotion-text h2 {
    font-size: 42px !important;
    line-height: 1.2 !important;
    margin-bottom: 25px !important;
    color: white !important;
    font-weight: 700 !important;
}

.btn-white-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}


.btn-white-outline:hover {
    background: white;
    color: #24417c;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-white-outline i {
    font-size: 18px;
}