/* =================================================================== */
/* CONFIGURAÇÕES GLOBAIS (BASEADO NO MANUAL DE MARCA)                  */
/* =================================================================== */
:root {
    --color-green: #78B1A2; --color-orange: #E2822B; --color-red: #D42D20;
    --color-dark: #1d1d1b; --color-light: #ffffff; --background-alt: #f5f6f8;
    --font-body: 'Nunito', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--color-light); color: var(--color-dark); font-family: var(--font-body); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.section-title { font-size: 2.8rem; font-weight: 900; color: var(--color-green); text-align: center; margin-bottom: 3rem; }

/* =================================================================== */
/* HEADER (CABEÇALHO)                                                  */
/* =================================================================== */
.header { background-color: var(--color-light); box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 60px; }
.main-nav ul { display: flex; gap: 1.5rem; }
.main-nav a { font-weight: 700; transition: color 0.3s ease; }
.main-nav a:hover { color: var(--color-orange); }
.cta-button-header { background-color: var(--color-red); color: var(--color-light); padding: 0.75rem 1rem; border-radius: 5px; font-weight: 700; transition: background-color 0.3s ease; }
.cta-button-header:hover { background-color: #a92319; }
/* Estilos para Ícone do Instagram no Header */
.header-right-items {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Espaço entre o ícone e o botão */
}
.header-social-link {
    font-size: 1.8rem; /* Tamanho do ícone */
    color: var(--color-dark);
    transition: color 0.3s ease;
}
.header-social-link:hover {
    color: var(--color-orange);
}
/* Nova regra para o container dos ícones */
.header-actions-right {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Espaçamento entre os itens */
}

/* ADIÇÃO PARA CORRIGIR REDUNDÂNCIA NO MENU DESKTOP */
.mobile-cta-item {
    display: none;
}
/* =================================================================== */
/* ESTILO FINAL PARA O BOTÃO "ÁREA RESTRITA" (COM ÍCONE E TEXTO)       */
/* =================================================================== */

.cta-area-restrita {
    /* Define o formato, cor e tamanho */
    background-color: var(--color-green);
    padding: 0.6rem 1.2rem; /* Padding menor para um botão mais delicado */
    border-radius: 50px;     /* Bordas totalmente arredondadas (formato de pílula) */
    font-size: 0.9rem;       /* Fonte um pouco menor */
    
    /* Alinha o ícone e o texto */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Espaço entre o cadeado e o texto */

    /* Garante que se sobreponha a estilos anteriores da classe .cta-button-header */
    width: auto;
    height: auto;
    
    /* Efeito de hover */
    transition: all 0.3s ease;
}

.cta-area-restrita:hover {
    background-color: #639a8a; /* Tom de verde mais escuro */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* =================================================================== */
/* CÓDIGO FINAL E CORRIGIDO PARA MENU RESPONSIVO E DROPDOWN           */
/* =================================================================== */

/* --- COMPORTAMENTO NO DESKTOP --- */

.main-nav .dropdown {
    position: relative;
}
.main-nav .dropdown .dropdown-menu {
    display: none;
    position: absolute;
    left: 50%; 
    transform: translateX(-50%);
    top: 100%;
    background-color: var(--color-light);
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1010;
}
.main-nav .dropdown:hover .dropdown-menu {
    display: block;
}
.main-nav .dropdown-menu li a {
    padding: 0.8rem 1.5rem;
    display: block;
    white-space: nowrap;
}
.main-nav .dropdown-menu li a:hover {
    background-color: var(--background-alt);
}
.main-nav .dropdown > a .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}
.main-nav .dropdown:hover > a .fa-chevron-down {
    transform: rotate(180deg);
}

/* =================================================================== */
/* HERO SECTION (COM SLIDER)                                           */
/* =================================================================== */

.hero { position: relative; height: 90vh; overflow: hidden; color: var(--color-light); }
.hero-slider { width: 100%; height: 100%; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.5s ease-in-out; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-slide.active { opacity: 1; }
.slide-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; }
.slide-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Sombra para melhorar a leitura */
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5); /* Sombra para melhorar a leitura */
}
.hero-fixed-cta { position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%); z-index: 3; }
.cta-button-hero {
    background-color: var(--color-orange);
    color: var(--color-light);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: transform 0.3s ease;
    margin-top: 2rem; /* LINHA ADICIONADA */
    white-space: normal; /* PERMITE A QUEBRA DE LINHA */
}
.cta-button-hero:hover { transform: scale(1.05); }
.slider-nav { position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between; padding: 0 2rem; transform: translateY(-50%); z-index: 3; }
.slider-nav button { background-color: rgba(0,0,0,0.3); border: none; color: white; font-size: 3rem; cursor: pointer; border-radius: 50%; width: 60px; height: 60px; line-height: 60px; transition: background-color 0.3s ease; }
.slider-nav button:hover { background-color: rgba(0,0,0,0.6); }

/* =================================================================== */
/* SEÇÃO DE DIFERENCIAIS                                               */
/* =================================================================== */
.diferenciais-section { background-color: var(--background-alt); padding: 5rem 0; }
.diferenciais-grid { display: grid;  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));  gap: 2rem; }
.diferencial-card { background-color: var(--color-light); padding: 2rem; text-align: center; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); }
.diferencial-icon { font-size: 3rem; margin-bottom: 1rem; color: var(--color-orange); }
.diferencial-card h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 0.75rem; color: var(--color-green); }
.diferencial-card p { color: #5c5c5c; font-size: 0.95rem; }

/* =================================================================== */
/* SEÇÃO DE VÍDEO INSTITUCIONAL                                        */
/* =================================================================== */
.video-section { background-color: var(--color-light); padding: 5rem 0; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; background: #000; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* =================================================================== */
/* NOVAS SEÇÕES (Níveis, Galeria, Notícias)                             */
/* =================================================================== */
.niveis-section { background-color: var(--background-alt); padding: 5rem 0; }
.niveis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.nivel-card { background-color: var(--color-light); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); overflow: hidden; text-align: center; }
.nivel-card img { width: 100%; height: 250px; object-fit: cover; }
.nivel-card h3 { font-size: 1.5rem; font-weight: 900; color: var(--color-green); margin: 1.5rem 0 0.5rem 0; }
.nivel-card p { padding: 0 1.5rem; color: #5c5c5c; }
.nivel-card a { display: inline-block; background-color: var(--color-orange); color: var(--color-light); padding: 0.5rem 1.5rem; border-radius: 50px; font-weight: 700; margin: 1.5rem 0; transition: background-color 0.3s ease; }
.nivel-card a:hover { background-color: #c87024; }

.galeria-section { background-color: var(--color-light); padding: 5rem 0; }
.galeria-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; transition: transform 0.3s ease; }
.galeria-item img:hover { transform: scale(1.05); }

.noticias-section { background-color: var(--background-alt); padding: 5rem 0; }
.noticias-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.noticia-card { background-color: var(--color-light); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); overflow: hidden; }
.noticia-card img { width: 100%; height: 200px; object-fit: cover; }
.noticia-content { padding: 1.5rem; }
.noticia-content span { font-size: 0.8rem; color: #888; }
.noticia-content h3 { font-size: 1.3rem; font-weight: 900; color: var(--color-dark); margin: 0.5rem 0; }
.noticia-content p { color: #5c5c5c; margin-bottom: 1rem; }
.noticia-content a { font-weight: 700; color: var(--color-green); }

/* =================================================================== */
/* CONTEÚDO DE PÁGINAS INTERNAS E RODAPÉ                               */
/* =================================================================== */
.page-content { padding: 5rem 0; text-align: center; min-height: 60vh; }
.page-content h1 { font-size: 2.8rem; font-weight: 900; color: var(--color-green); margin-bottom: 1rem; }
.footer { padding: 3rem 0; background-color: var(--color-dark); color: #ccc; text-align: center; }

/* =================================================================== */
/* ANIMAÇÕES DE ENTRADA AO ROLAR (FADE-IN)                             */
/* =================================================================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================== */
/* SEÇÃO DE ESTATÍSTICAS (CONTADOR) - VERSÃO 2.0                       */
/* =================================================================== */
.stats-section {
    background-color: var(--color-green);
    color: var(--color-light);
    padding: 4rem 0; /* Padding um pouco menor para uma seção mais compacta */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    max-width: 900px; /* Limita a largura para não ficar muito espaçado */
    margin: 0 auto;
}

.stat-item {
    padding: 1rem 2rem;
    position: relative;
}

/* Adiciona as divisórias entre os itens */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    display: block;
    white-space: nowrap; /* << Adicione esta linha mágica */
}

.stat-item p {
    font-size: 1rem;
    font-weight: 400; /* Texto mais leve para contrastar com o número */
    text-transform: uppercase; /* Deixa o texto mais formal */
    letter-spacing: 1px; /* Melhora a legibilidade */
}

/* =================================================================== */
/* GALERIA INTERATIVA (LIGHTBOX)                                       */
/* =================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%; /* Mantém o limite para telas menores */
    max-height: 85%;
    display: flex;
    justify-content: center;
    align-items: center;

    /* CONTROLE PARA DESKTOP: Define uma largura máxima em pixels */
    max-width: 1000px;
}

.lightbox-image {
    display: block;
    max-width: 100%; /* Garante que a imagem nunca ultrapasse a largura do container */
    max-height: 100%; /* Garante que a imagem nunca ultrapasse a altura do container */
    width: auto; /* Permite que a largura se ajuste para manter a proporção */
    height: auto; /* Permite que a altura se ajuste para manter a proporção */
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px; /* Posiciona o 'X' acima da imagem */
    right: 0;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

/* =================================================================== */
/* ESTILOS PARA A PÁGINA DE BLOG (CORRIGIDO)                           */
/* =================================================================== */

.blog-list-section .page-header {
    background-color: var(--background-alt); /* Define o fundo cinza claro */
    min-height: auto; /* Remove a altura gigante, deixando o banner mais compacto */
    padding: 4rem 2rem; /* Ajusta o espaçamento interno */
}
.blog-list-section .page-header h1 {
    color: var(--color-green); /* Título verde */
    text-shadow: none; /* Remove a sombra desnecessária */
}
.blog-list-section .page-header p {
    color: #5c5c5c; /* Subtítulo cinza escuro */
    text-shadow: none; /* Remove a sombra desnecessária */
}
.blog-list-section {
    padding: 4rem 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
/* Reutilizando o estilo do noticia-card da homepage */
.noticia-card a.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.noticia-card .read-more-link {
    font-weight: 700;
    color: var(--color-green);
    display: inline-block;
    margin-top: 1rem;
}

/* =================================================================== */
/* ESTILOS PARA A PÁGINA DE POST DO BLOG                               */
/* =================================================================== */
.post-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
    max-width: 800px; /* Limita a largura para melhor leitura */
}
.post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.post-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--color-green);
    margin-bottom: 0.5rem;
}
.post-date {
    display: block;
    color: #888;
    margin-bottom: 2rem;
}
.post-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #333;
}

/* =================================================================== */
/* PÁGINA SOBRE                                                        */
/* =================================================================== */
.page-header-sobre { background: linear-gradient(rgba(212, 45, 32, 0.75), rgba(212, 45, 32, 0.75)), url('../img/hero-sobre.jpg') no-repeat center center/cover; }
.page-header-sobre h1, .page-header-sobre p { color: white; }

.mission-section { background-color: var(--background-alt); padding: 5rem 0; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mission-card { text-align: center; padding: 2rem; }
.mission-icon { font-size: 3rem; color: var(--color-orange); margin-bottom: 1rem; }
.mission-card h3 { font-size: 1.5rem; font-weight: 900; color: var(--color-green); margin-bottom: 1rem; }
.mission-card p { color: #5c5c5c; }

.purpose-section { background-color: var(--color-light); padding: 5rem 0; }
.purpose-verse { text-align: center; max-width: 700px; margin: 0 auto 4rem auto; padding: 1.5rem 0; font-size: 1.3rem; font-style: italic; color: #333; border-top: 2px solid var(--color-orange); border-bottom: 2px solid var(--color-orange); }
.purpose-verse footer { margin-top: 1rem; font-style: normal; font-weight: 700; color: var(--color-orange); }
.purpose-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.purpose-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.purpose-text { font-size: 1.1rem; line-height: 1.8; color: #5c5c5c; text-align: left; }
.purpose-text p { margin-bottom: 1rem; }
.purpose-section .bible-verse { text-align: center; max-width: 700px; margin: 0 auto 3rem auto; font-style: italic; color: #777; font-size: 1.1rem; border-left: 3px solid var(--color-orange); padding-left: 1.5rem; }
.purpose-section .bible-verse footer { margin-top: 0.5rem; font-weight: 700; color: var(--color-dark); }


.history-intro-section { padding: 5rem 0 3rem 0; }
.history-intro-section .bible-verse { text-align: center; max-width: 700px; margin: 0 auto 3rem auto; font-style: italic; color: #777; font-size: 1.1rem; border-left: 3px solid var(--color-green); padding-left: 1.5rem; }
.history-intro-section .bible-verse footer { margin-top: 0.5rem; font-weight: 700; color: var(--color-dark); }
.history-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.history-text { font-size: 1.1rem; line-height: 1.8; color: #5c5c5c; }
.history-text p { margin-bottom: 1.5rem; }
.history-image img { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.timeline-interactive-section {
    background-color: var(--background-alt);
    padding: 12rem 0 6rem 0; /* AUMENTADO o padding-top para evitar sobreposição */
}
.timeline-container { display: flex; gap: 4rem; }
.timeline-sticky-content {
    flex: 1;
    position: sticky;
    /* A MÁGICA ESTÁ AQUI: */
    top: 50vh; /* Posiciona o topo do elemento no meio da altura da tela */
    transform: translateY(-50%); /* Puxa o elemento para cima pela metade da sua altura */
    height: 450px; /* Aumentei um pouco a altura para uma melhor visualização */
}
.timeline-mobile-sticky-content { display: none; }
.timeline-image-wrapper { width: 100%; height: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.timeline-image-wrapper img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease-in-out; }
.timeline-image-wrapper img.active { opacity: 1; }
.timeline-scroll-content { flex: 1; }
.timeline-event { padding-bottom: 25rem; }
.timeline-event h3 { font-size: 3rem; font-weight: 900; color: var(--color-orange); }
.timeline-event p { font-size: 1.2rem; line-height: 1.7; color: #5c5c5c; }

.pedagogy-section { background-color: var(--color-light); padding: 6rem 0; }
.pedagogy-section .section-title { text-align: center; margin-bottom: 4rem; color: var(--color-green); }
.pedagogy-item { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5rem; }
.pedagogy-item:nth-child(3) { background-color: var(--background-alt); padding: 3rem; border-radius: 12px; }
.pedagogy-item-image img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.pedagogy-item-content h3 { font-size: 2rem; font-weight: 900; color: var(--color-orange); margin-bottom: 1rem; }
.pedagogy-item-content p { font-size: 1.1rem; line-height: 1.8; color: #5c5c5c; margin-bottom: 1.5rem; }
.pedagogy-item-content ul { list-style: none; padding: 0; }
.pedagogy-item-content li { font-size: 1.05rem; color: #6a6a6a; margin-bottom: 0.8rem; display: flex; align-items: flex-start; }
.pedagogy-item-content li i { color: var(--color-green); font-size: 1.2rem; margin-right: 0.75rem; flex-shrink: 0; margin-top: 0.2rem; }
.pedagogy-item-reverse .pedagogy-item-image { order: 2; }
.pedagogy-section .pedagogy-item:last-of-type { margin-bottom: 0; }

.extras-section { background-color: #fff; padding: 5rem 0; text-align: center; }
.extras-section .section-subtitle { max-width: 800px;  margin: -2rem auto 3rem auto; font-size: 1.1rem; color: #5c5c5c; }
.extras-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.extras-card { background-color: var(--background-alt); padding: 2.5rem 2rem; border-radius: 12px; }
.extras-icon { font-size: 3rem; margin-bottom: 1.5rem; color: var(--color-orange); }
.extras-card h3 { font-size: 1.3rem; font-weight: 900; margin-bottom: 0.75rem; color: var(--color-green); }
.extras-card p { color: #5c5c5c; font-size: 1rem; }
.extras-cta { margin-top: 3rem; }

.partners-section { background-color: var(--background-alt); padding: 5rem 0; }
.partner-slider-container { max-width: 800px; margin: 0 auto; position: relative; text-align: center; }
.partner-slider-wrapper { overflow: hidden; }
.partner-slider { display: flex; transition: transform 0.5s ease-in-out; }
.partner-slide { min-width: 100%; box-sizing: border-box; padding: 1rem; }
.partner-slide img { max-height: 110px; min-height: 110px; object-fit: contain; margin-bottom: 2rem; filter: grayscale(100%); opacity: 0.7; transition: all 0.3s ease; }
.partner-slide:hover img { filter: grayscale(0%); opacity: 1; }
.partner-slide h3 { font-size: 1.5rem; font-weight: 700; color: var(--color-green); margin-bottom: 0.5rem; }
.partner-slide p { font-size: 1.1rem; color: #5c5c5c; max-width: 600px; margin: 0 auto; }
.slider-dots { margin-top: 2rem; }
.dot { cursor: pointer; height: 15px; width: 15px; margin: 0 5px; background-color: #bbb; border-radius: 50%; display: inline-block; transition: background-color 0.3s ease; }
.dot.active, .dot:hover { background-color: var(--color-orange); }
.slider-arrow { position: absolute; top: 40%; transform: translateY(-50%); background-color: rgba(0,0,0,0.3); border: none; color: white; font-size: 2.5rem; cursor: pointer; border-radius: 50%; width: 50px; height: 50px; line-height: 50px; z-index: 10; transition: background-color 0.3s ease; }
.slider-arrow:hover { background-color: rgba(0,0,0,0.6); }
.prev-arrow { left: -25px; }
.next-arrow { right: -25px; }
/* =================================================================== */
/* ESTILOS PARA LEGENDAS DE IMAGEM (PÁGINA SOBRE)                      */
/* =================================================================== */

.image-caption-container {
    position: relative;
    margin: 0;
}

.image-caption-container figcaption {
    background-color: rgba(29, 29, 27, 0.75); /* Fundo escuro semitransparente */
    color: var(--color-light);
    font-size: 0.9rem;
    font-style: italic;
    padding: 0.5rem 1rem;
    text-align: center;
    border-bottom-left-radius: 12px; /* Acompanha o arredondamento da imagem */
    border-bottom-right-radius: 12px;
    
    /* Posiciona a legenda sobre a imagem */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* Garante que a imagem tenha o arredondamento correto */
.purpose-image img, .history-image img {
    border-radius: 12px;
    display: block; /* Remove espaços extras abaixo da imagem */
}
/* =================================================================== */
/* SEÇÃO ATIVIDADES EXTRAS (SOBRE.HTML)                                */
/* =================================================================== */
.extras-section {
    background-color: var(--color-light);
    padding: 5rem 0;
    text-align: center;
}

.extras-section .section-title {
    color: var(--color-green);
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.extras-card {
    background-color: var(--background-alt);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center; /* ADICIONADO PARA CENTRALIZAR TUDO */
}

.extras-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.extras-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-orange);
}

.extras-card h3 {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    color: var(--color-green);
}

.extras-card p {
    color: #5c5c5c;
    font-size: 1rem;
    line-height: 1.7;
}

.extras-cta {
    margin-top: 3rem;
}

/* =================================================================== */
/* CABEÇALHOS DE PÁGINAS INTERNAS (ESTILOS GERAIS)                     */
/* =================================================================== */
.page-header {
    color: white;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem; /* Espaçamento interno para segurança */
    min-height: 60vh; /* << AQUI A MUDANÇA: O banner terá no mínimo 60% da altura da tela */
    box-sizing: border-box;
    overflow: hidden; /* Garante que nada saia dos limites */
}

.page-header .container {
    position: relative; /* Garante que o texto fique por cima do overlay */
    z-index: 2;
}

.page-header h1 {
    font-size: 3.8rem; /* Aumentei um pouco a fonte */
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Sombra para melhorar a leitura */
}

.page-header p {
    font-size: 1.5rem; /* Aumentei um pouco a fonte */
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5); /* Sombra para melhorar a leitura */
}
/* =================================================================== */
/* PÁGINA NÍVEIS DE ENSINO (CURSOS.HTML)                               */
/* =================================================================== */

/* Banner específico da página de cursos (verde) */
.page-header-cursos {
    background: linear-gradient(rgba(235, 157, 13, 0.75), rgba(235, 157, 13, 0.75)), url('../img/hero-cursos.jpg') no-repeat center center/cover;
}

.page-header-cursos h1,
.page-header-cursos p {
    color: white;
}

.course-section {
    padding: 5rem 0;
    background-color: var(--color-light);
}

/* Fundo diferente para cada seção ímpar (começando da primeira) */
.course-section:nth-child(odd) {
    background-color: var(--background-alt);
}

.course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.course-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.course-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-green);
    margin-bottom: 1.5rem;
}

.course-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5c5c5c;
    margin-bottom: 2rem;
}

/* Seção de Atividades Extracurriculares Detalhada */
.extras-detailed-section {
    padding: 5rem 0;
    background-color: var(--color-dark);
}

.extras-detailed-section .section-title {
    color: var(--color-light);
}

.extras-detailed-section .section-subtitle { max-width: 800px;  margin: -2rem auto 3rem auto; font-size: 1.1rem; color: rgba(255,255,255,0.7); text-align: center; }


.extras-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.extras-detailed-card {
    background-color: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    color: var(--color-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.extras-detailed-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.extras-detailed-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.extras-detailed-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-orange);
    margin: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.extras-detailed-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    padding: 0 1.5rem 1.5rem 1.5rem;
}
/* =================================================================== */
/* SEÇÃO DE LOCALIZAÇÃO (VERSÃO CORRIGIDA E PROFISSIONAL)              */
/* =================================================================== */
.location-section {
    background-color: var(--background-alt);
    padding: 5rem 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas de tamanho igual */
    gap: 3rem; /* Aumenta o espaço entre as colunas */
    align-items: center; /* Alinha o conteúdo verticalmente */
    max-width: 1100px;
    margin: 0 auto;
}

.location-map iframe {
    width: 100%;
    height: 400px; /* Altura do mapa */
    border-radius: 8px;
    border: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.location-info h3 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-green);
    margin-bottom: 1.5rem;
}

.location-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start; /* Alinha o ícone com o topo do texto */
}

.location-info i {
    color: var(--color-orange);
    font-size: 1.2rem; /* Tamanho fixo para todos os ícones */
    width: 25px; /* Garante que todos ocupem o mesmo espaço */
    text-align: center;
    margin-right: 0.75rem;
    margin-top: 4px; /* Pequeno ajuste para alinhar perfeitamente com o texto */
}
/* =================================================================== */
/* RODAPÉ (FOOTER)                                                     */
/* =================================================================== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-light);
}

.footer-col p, .footer-col li a {
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-col li a:hover {
    color: var(--color-green);
}

.footer-logo .logo-footer {
    width: 150px;
    margin-bottom: 1rem;
    
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: var(--color-orange);
    margin-right: 0.5rem;
    word-break: break-all;
    
    
}
.footer-contact p {
    word-break: break-all;
    white-space: nowrap;
}

.footer-social h3 {
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-green);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom a {
    color: var(--color-orange);
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--color-green);
}

/* =================================================================== */
/* BOTÃO FLUTUANTE DO WHATSAPP                                        */
/* =================================================================== */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; /* Cor padrão do WhatsApp */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    z-index: 1000;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128C7E; /* Cor mais escura no hover */
    transform: scale(1.1);
}

/* = ================================================================= */
/* EFEITO HOVER INTERATIVO PARA OS CARDS (NOVO)                        */
/* =================================================================== */

/* Prepara os cards para a animação de forma suave */
.diferencial-card,
.nivel-card,
.noticia-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Aplica o efeito quando o mouse está sobre o card */
.diferencial-card:hover,
.nivel-card:hover,
.noticia-card:hover {
    transform: translateY(-8px); /* Eleva o card sutilmente */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Adiciona uma sombra mais pronunciada */
}

/* =================================================================== */
/* CONTROLES DE PAGINAÇÃO DO BLOG                                      */
/* =================================================================== */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    border-top: 1px solid var(--brand-border);
    padding-top: 2rem;
}
.pagination-controls button {
    background-color: var(--color-green);
    color: var(--color-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.pagination-controls button:hover:not(:disabled) {
    background-color: #639a8a; /* Verde mais escuro */
}
.pagination-controls button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* =================================================================== */
/* FORMULÁRIO DE BUSCA DO BLOG                                         */
/* =================================================================== */
.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto 3rem auto; /* Centraliza e dá espaço abaixo */
    border: 1px solid var(--brand-border);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* A sombra que você pediu */
    transition: box-shadow 0.3s ease; /* Transição suave */
}
.search-form:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12); /* Sombra um pouco mais forte no hover */

}

.search-form input {
    flex-grow: 1;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
}

.search-form input:focus {
    outline: none;
}

.search-form button {
    background-color: var(--color-green);
    border: none;
    color: var(--color-light);
    padding: 0 1.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #639a8a; /* Verde mais escuro */
}
/* =================================================================== */
/* PÁGINA DE CONTATO                                                   */
/* =================================================================== */

/* Banner específico da página de contato (laranja) */
.page-header-contato {
    background: linear-gradient(rgba(226, 130, 44, 0.75), rgba(226, 130, 44, 0.75)), url('../img/hero-sobre.jpg') no-repeat center center/cover;
}
.page-header-contato h1,
.page-header-contato p {
    color: white;
}

.contact-section {
    background-color: var(--background-alt);
    padding: 5rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-card {
    background-color: var(--color-light);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}

.contact-form h3, .contact-info h3 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #333;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(120, 177, 162, 0.2);
}

.btn-submit {
    display: inline-block;
    background-color: var(--color-red);
    color: var(--color-light);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #a92319;
}

.contact-info p {
    font-size: 1.05rem;
    color: #5c5c5c;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    color: var(--color-orange);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    width: 20px;
    text-align: center;
}

.map-embed {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1rem;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* =================================================================== */
/* SEÇÃO DE PERGUNTAS FREQUENTES (FAQ)                                 */
/* =================================================================== */
.faq-section {
    padding: 5rem 0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    display: block;
    width: 100%;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    color: var(--color-dark);
}

/* Ícone de + e - */
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-orange);
    transition: transform 0.3s ease;
}

.faq-item[open] > .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding-bottom: 1.5rem;
    color: #5c5c5c;
    line-height: 1.8;
}

.faq-answer a {
    color: var(--color-green);
    font-weight: 700;
}
/* =================================================================== */
/* PÁGINA DE DOWNLOADS (VERSÃO PADRONIZADA)                            */
/* =================================================================== */

/* Banner específico da página de downloads (vermelho) */
.page-header-downloads {
    background: linear-gradient(rgba(212, 45, 32, 0.75), rgba(212, 45, 32, 0.75)), url('..img/foto3.jpg') no-repeat center center/cover;
}
.page-header-downloads h1,
.page-header-downloads p {
    color: white;
}

.downloads-section {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: stretch; /* Garante que os cards estiquem para ter a mesma altura */
}

.download-card {
    background-color: var(--color-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    display: flex; /* Ativa o flexbox para controle interno */
    flex-direction: column; /* Organiza os itens em coluna */
}

.download-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.download-card-header i {
    font-size: 1.8rem;
    color: var(--color-orange);
    margin-right: 1rem;
}

.download-card-header h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-green);
    white-space: nowrap; /* Impede que o título quebre a linha */
}

.download-card p {
    color: #5c5c5c;
    margin-bottom: 1.5rem;
   
}

.download-button-list a {
    display: block;
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.download-button-list a:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.download-button-list a:last-child {
    margin-bottom: 0;
}
/* =================================================================== */
/* ESTILOS PARA A PÁGINA DE ÁREA RESTRITA (PORTAIS)                    */
/* =================================================================== */

/* Banner da página */
.page-header-portals {
    background: linear-gradient(rgba(120, 177, 162, 0.8), rgba(120, 177, 162, 0.8)), url('../img/lock.jpg') no-repeat center center/cover;
    min-height: 50vh;
}

/* Seção principal dos portais */
.portals-section {
    padding: 5rem 0;
    background-color: var(--background-alt);
}

.portal-category {
    margin-bottom: 4rem;
    text-align: center;
}
.portal-category:last-child {
    margin-bottom: 0;
}

.portal-icon {
    font-size: 3rem;
    color: var(--color-orange);
    margin-bottom: 1rem;
}

.portal-category h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: 2rem;
}

.portal-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.portal-card {
    background-color: var(--color-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    text-decoration: none;
    color: var(--color-dark);
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.portal-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-green);
    margin-bottom: 0.5rem;
}

.portal-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.portal-card span {
    font-weight: 700;
    color: var(--color-orange);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =================================================================== */
/* RESPONSIVIDADE FINAL (VERSÃO CORRIGIDA E LIMPA)                     */
/* =================================================================== */

/* Telas Grandes (Ajuste fino) */
@media (min-width: 993px) {
    .logo { height: 95px; }
}

/* Tablets e Telas Menores (Até 992px) */
@media (max-width: 992px) {
    
    /* --- ESTRUTURA GERAL --- */
/* --- CORREÇÃO: Mostra a Área Restrita no telemóvel --- */
.header-right-items .cta-button-header {
    display: none; /* Esconde o botão "Matrículas Abertas" */
}
    .logo { height: 80px; }
    .main-nav, .cta-button-header { display: none; } /* Esconde o menu desktop */
    .diferenciais-grid, .mission-grid, .history-content, .purpose-grid, .pedagogy-item, .course-grid, .extras-detailed-grid, .blog-grid, .noticias-grid, .niveis-grid, .location-grid, .contact-wrapper { grid-template-columns: 1fr; }
    
    /* --- MENU HAMBÚRGUER E PAINEL LATERAL --- */
    .mobile-menu-button { display: flex; flex-direction: column; justify-content: space-around; width: 36px; height: 26px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1100; }
    .mobile-menu-button span { width: 100%; height: 3px; background-color: var(--color-dark); border-radius: 3px; transition: all 0.35s ease; }
    .mobile-menu-button.open { position: fixed; right: 1.5rem; top: 1.5rem; }
    .mobile-menu-button.open span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .mobile-menu-button.open span:nth-child(2) { opacity: 0; }
    .mobile-menu-button.open span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

    /* A classe .active é adicionada pelo JS para mostrar o menu */
    .main-nav.active { 
        display: block; 
        position: fixed; 
        top: 0; 
        right: 0; 
        width: 300px; 
        max-width: 80%; 
        height: 100%; 
        background-color: var(--color-light); 
        box-shadow: -5px 0 20px rgba(0,0,0,0.1); 
        z-index: 1050; 
        transform: translateX(0);
        animation: slideIn 0.35s ease-in-out forwards;
    }
    
    @keyframes slideIn {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }

    .main-nav ul { flex-direction: column; padding-top: 80px; text-align: left; gap: 0; }
    .main-nav li { padding: 0; border-top: 1px solid #f0f0f0; }
    .main-nav li a { display: block; padding: 1rem 1.5rem; font-size: 1.1rem; }

    /* --- DROPDOWN NO MOBILE (A CORREÇÃO ESTÁ AQUI) --- */
    .main-nav .dropdown .dropdown-menu { 
        /* A MÁGICA: força o submenu a comportar-se como um bloco normal, em vez de flutuar */
        position: static; 
        display: none; /* Começa escondido */
        
        /* Reset dos estilos do desktop que causavam o problema */
        transform: none; 
        left: auto;
        
        box-shadow: none; 
        background-color: #f5f6f8; 
        border-radius: 0; 
        padding: 0; 
        width: 100%;
        min-width: 100%;
    }
    
    .main-nav .dropdown .dropdown-menu.open { display: block; } /* O JS adiciona esta classe para mostrar */
    .main-nav .dropdown-menu li { border-top: none; }
    .main-nav .dropdown-menu li a { padding-left: 2.5rem !important; font-size: 1rem !important; }
    .main-nav .dropdown > a .fa-chevron-down.rotated { transform: rotate(180deg); }
    
    /* --- BOTÃO MATRÍCULAS ABERTAS NO MOBILE --- */
    .main-nav .mobile-cta-item { display: list-item; padding: 1.5rem; margin-top: 1rem; border-top: 1px solid #e0e0e0; }
    .main-nav .mobile-cta-button { display: block; width: 100%; background-color: var(--color-red); color: var(--color-light); padding: 1rem; border-radius: 8px; font-weight: 700; font-size: 1.1rem; text-align: center; text-decoration: none; }

    /* --- AJUSTES DE LAYOUT RESTANTES --- */
    .history-image, .pedagogy-item-reverse .pedagogy-item-image { order: -1; margin-bottom: 2rem; }
    .purpose-text, .pedagogy-item-content { text-align: center; }
/* =================================================================== */
/* CORREÇÃO FINAL E DEFINITIVA DA LINHA DO TEMPO (MOBILE)              */
/* =================================================================== */

/* Este código deve estar DENTRO de @media (max-width: 992px) */

.timeline-container {
    flex-direction: column;
}

.timeline-sticky-content {
    display: none; /* Esconde o contentor do desktop */
}

/* --- CORREÇÃO FINAL: Posiciona a imagem da linha do tempo no topo --- */
.timeline-mobile-sticky-content {
    display: block;
    position: sticky;
    /* A altura do seu header no mobile é ~80px. 
       95px dá uma margem segura para prender a imagem abaixo dele.
    */
    top: 95px; 
    z-index: 5;
    margin-bottom: 2rem;
    height: 300px;
    /* Removemos o código de centralização que não funcionava bem */
}

.timeline-event {
    padding-bottom: 50vh; /* Espaço para a rolagem ser confortável */
}

.timeline-scroll-content .timeline-event:last-child {
    padding-bottom: 25vh;
}
}

/* Celulares e Telas Pequenas (Até 768px) */
@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .hero-title { font-size: 2.5rem; }
    .slider-nav { display: none; }
    .page-header { min-height: 50vh; }
    .stats-grid { grid-template-columns: 1fr; }
    .stats-item:not(:last-child)::after { display: none; }
    .footer-grid { text-align: left; }
    .footer-bottom .container { flex-direction: column; align-items: flex-start; }
        /* 1. Corrige o cabeçalho grande (banner da página) */
    .page-header-sobre {
        min-height: 50vh; /* Reduz a altura mínima do banner */
        padding: 4rem 1.5rem; /* Ajusta o espaçamento interno */
    }

    .page-header-sobre h1 {
        font-size: 2.5rem; /* Diminui o tamanho do título principal */
    }

    .page-header-sobre p {
        font-size: 1.1rem; /* Diminui o tamanho do subtítulo */
    }
    
    /* 2. Corrige o botão "Conheça Todas as Atividades" quebrado */
    .extras-cta .cta-button-hero {
        white-space: nowrap; /* Impede que o texto do botão quebre a linha */
        padding: 0.8rem 1.8rem; /* Ajusta o padding para caber na tela */
        font-size: 1rem;
    }
        .portal-links-grid {
        /* Permite que 2 links fiquem lado a lado se houver espaço */
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}
/* =================================================================== */
/* CORREÇÕES FINAIS DE RESPONSIVIDADE (CONTATO E ÁREA RESTRITA)        */
/* =================================================================== */

/* 1. Corrige o caminho da imagem da hero na página "Área Restrita" */
    /* --- Correção para a página "Área Restrita" --- */
    .portals-section .container {
        padding-left: 0;
        padding-right: 0;
    }

    .portal-card {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        padding: 1.5rem;
    }

    .portal-category h2 {
        font-size: 1.8rem;
    }

    /* --- Correção para a página "Contato" --- */
    .contact-section .container {
        padding-left: 0;
        padding-right: 0;
    }
    
    .contact-card {
        padding: 1.5rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .contact-form h3, .contact-info h3 {
        font-size: 1.8rem;
    }
    /* 1. Resolve o problema da "faixa branca" (overflow) */
    .container {
        padding-left: 1rem;  /* Reduz o espaçamento lateral do container principal */
        padding-right: 1rem;
    }

    /* Remove padding duplicado nos containers das seções de Contato e Portais */
    .contact-section .container,
    .portals-section .container {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Ajusta as margens dos cards para compensar */
    .contact-card,
    .portal-card {
        margin-left: 1rem;
        margin-right: 1rem;
    }


    /* 2. Corrige a quebra de linha das perguntas do FAQ */
    .faq-question {
        padding-right: 2.5rem; /* Garante espaço para o ícone de '+' */
        position: relative;
    }

    .faq-question::after {
        right: 0.5rem; /* Aproxima o '+' da borda */
    }
 /* --- Remove o estilo de card no mobile --- */
    .contact-card,
    .portal-card {
        background-color: transparent; /* Remove o fundo branco do card */
        box-shadow: none;             /* Remove a sombra */
        border-radius: 0;             /* Remove as bordas arredondadas */
        padding: 1rem 0;              /* Ajusta o espaçamento vertical */
        margin-left: 0;
        margin-right: 0;
        border: none;
    }

    /* --- Ajusta o layout do container para ocupar a tela inteira --- */
    .contact-section .container,
    .portals-section .container {
        padding-left: 1.5rem;  /* Devolve o espaçamento para o container */
        padding-right: 1.5rem;
    }
    
    .contact-wrapper {
        gap: 0; /* Remove o espaço entre as colunas no mobile */
    }

    .contact-form h3, .contact-info h3,
    .portal-category h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }