/* --- CONFIGURAÇÕES GERAIS DA PÁGINA ABOUT --- */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
    color: #333;
}

/* ---------------------------------------------------------
   1. SECÇÃO INTRODUTÓRIA (Topo com Imagem e Missão Lateral)
--------------------------------------------------------- */

.geaf-page-intro {
    width: 100%;
    margin-bottom: 60px;
    font-family: 'Roboto', sans-serif;
}

/* Banner de Imagem */
.intro-banner {
    width: 100%;
    height: 350px;
    overflow: hidden;
    margin-bottom: 50px;
    background-color: #000;
    border-radius: 20px;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Grid de Texto (Layout Assimétrico) */
.intro-content-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

/* Lado Esquerdo: Título */
.intro-text-area {
    flex: 2;
    padding-right: 40px;
}

.intro-text-area h1 {
    font-family: 'Fraunces', serif;
    font-size: 3.2rem;
    font-weight: 300; /* Fonte Light */
    color: #2c3e50;
    margin: 0 0 5px 0;
    line-height: 1.1;
}

.intro-subtitle {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.2rem;
    color: #555;
    margin: 0;
}

/* Lado Direito: Barra Lateral da Missão */
.intro-mission-area {
    flex: 1;
    max-width: 350px;
    border-top: 4px solid #000; /* Linha preta característica */
    padding-top: 15px;
    margin-top: 10px;
}

.mission-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #444;
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-list li {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #000;
}

/* ---------------------------------------------------------
   2. CONTEÚDO DE TEXTO (Corpo da página)
--------------------------------------------------------- */
.content-body {
    margin-bottom: 60px;
    max-width: 1100px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.lead-text {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.content-body p {
    font-family: 'Google Sans', sans-serif;
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.6;
}

/* Lista Destacada com Linha Azul */
.highlight-list {
    margin-top: 40px;
    padding-left: 25px;
    border-left: 4px solid #3498db; /* Cor de destaque */
}

.highlight-list ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 10px;
}

.highlight-list li {
    margin-bottom: 10px;
    color: #444;
}

/* ---------------------------------------------------------
   3. SECÇÃO DE DOWNLOADS
--------------------------------------------------------- */
.downloads-section {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin: 0 auto 80px auto;
    max-width: 1100px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.download-item:last-child {
    border-bottom: none;
}

.download-item:hover {
    background-color: #fafafa;
}

.download-item .icon {
    margin-right: 15px;
    color: #999;
}

.download-item .text {
    flex-grow: 1;
    font-weight: 500;
    color: #2c3e50;
}

/* ---------------------------------------------------------
   4. CARDS (Related Pages)
--------------------------------------------------------- */
.related-pages {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-pages h2 {
    font-family: 'Fraunces', serif;
    color: #000;
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-top: 1px solid #e4e4e4;
    padding-top: 20px;
    display: inline-block;
    width: 100%;
}

/* Card Grande */
.card-large {
    display: flex;
    background: #fff;
    border: 1px solid #d4d4d4;
    margin-bottom: 30px;
    min-height: 260px;
    border-radius: 20px;
    overflow: hidden;
}

.card-img-wrapper {
    width: 40%;
    flex-shrink: 0;
    background-color: #1a2a3a;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    flex: 1;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.card-content p {
    color: #666;
    font-family: 'Google Sans', sans-serif;
}

.card-content h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.read-more {
    margin-top: 20px;
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid #3498db;
    padding: 12px 30px;
    width: fit-content;
    border-radius: 10px;
    transition: all 0.3s;
}



.read-more:hover {
    background-color: #3498db;
    color: white;
}

/* Grid de Cards Menores */
.cards-grid-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
    
}

.card-small {
    display: flex;
    border: 1px solid #e0e0e0;
    background: #fff;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.placeholder-img-small {
    width: 38%;
    flex-shrink: 0;
    height: 100%;
}

.card-small-content {
    padding: 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-small h3 {
    font-family: 'Fraunces', serif;
}

.card-small p {
    color: #666;
    font-family: 'Google Sans', sans-serif;
}

.arrow-icon {
    align-self: flex-end;
    /* Joga a seta para a direita */
    font-size: 1.5rem;
    color: #999;
    transition: transform 0.3s ease;
}


.card-small:hover {
    transform: translateY(-5px); /* Sobe um pouco ao passar o mouse */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}






.placeholder-img-small {
    width: 40%;
    height: 100%;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.card-small-content {
    padding: 20px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-small-content h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0;
}

.arrow-link {
    
    text-decoration: none;
    font-size: 1.5rem;
    color: #999;
    align-self: flex-end;
    transition: transform 0.3s ease;
}

.arrow-link:hover {
    transform: translateX(5px);
    /* Seta anda para o lado ao passar o mouse */
}



/* ---------------------------------------------------------
   RESPONSIVIDADE (Mobile)
--------------------------------------------------------- */
@media (max-width: 768px) {
    /* Intro */
    .intro-banner { height: 200px;
    width: 90vw;
    margin: 20px auto;
}
    .intro-content-grid { flex-direction: column; }
    .intro-text-area { padding-right: 0; margin-bottom: 40px; }
    .intro-text-area h1 { font-size: 2.2rem; }
    
    .intro-mission-area {
        width: 100%;
        max-width: 100%;
        border-top: none;
        border-left: 4px solid #000;
        padding-left: 15px;
        padding-top: 0;
    }

    /* Cards */
    .card-large { flex-direction: column; height: auto; }
    .card-img-wrapper { width: 100%; height: 200px; }
    .cards-grid-small { grid-template-columns: 1fr; }
}

/*----------------------------------------------------------------------


/* --- 2. ACORDEÃO VERTICAL --- */
.accordion-section {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.accordion-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 850px;
    gap: 15px;
}

.acc-item {
    background: #fff;
    border: 0px solid #eee;
    border-radius: 12px;
    padding: 0 30px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    height: 70px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.acc-header {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    cursor: pointer;
    user-select: none;
}

.acc-icon {
    display: none;
}

.acc-title {
    flex: 1;
    margin: 0;
    line-height: 1.3;
    font-family: 'Fraunces', serif;
    transition: color 0.2s ease;
}

.acc-header:hover .acc-title {
    color: inherit;
}

.acc-item.open .acc-header .acc-title,
.acc-header:hover .acc-title {
    color: inherit;
    /* mantém o título alinhado sem deslocamentos */
    transform: none;
    margin: 0;
}

.acc-body {
    
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    padding-bottom: 30px;
    padding-left: 50px; 
    padding-right: 20px;
}

.acc-body p {
    color: rgba(0, 0, 0, 0.85);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
    font-family: 'Google Sans', sans-serif;
}

/* Estado Hover (Abre) */
.acc-item:hover {
    height: 200px;
    background-color: var(--dark-blue);
    border-color: transparent;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.2);
}

.acc-item:hover .acc-title { color: #000000; }
.acc-item:hover .acc-icon { transform: scale(1.3); color: var(--neon-blue); }
.acc-item:hover .acc-arrow { border-color: var(--neon-blue); transform: rotate(225deg); }
.acc-item:hover .acc-body { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }

@media (max-width: 768px) {
    .acc-item:hover { height: 280px; }
    .acc-body { padding-left: 0; padding-top: 20px;}
}














/* --- 3. TEXTO --- */
.text-content {
    max-width: 800px;
    margin: 0 auto 80px;
    color: #444;
}
.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark-blue);
    margin-bottom: 20px;
}
.text-content p { margin-bottom: 20px; line-height: 1.7; text-align: justify; }

/* --- 3.5 SEÇÃO FUNDADORES (NOVO) --- */
/* --- SEÇÃO FUNDADORES INTERATIVA --- */
/* --- SEÇÃO FUNDADORES (LADO A LADO) --- */
/* --- SEÇÃO FUNDADORES (FIXA E ABSOLUTA) --- */
.founders-section {
    margin-bottom: 150px; /* Margem maior embaixo para caber o texto se abrir */
    text-align: center;
    position: relative;
}

/* O Container Central */
.founders-row {
    display: flex;
    justify-content: center;
    gap: 40px; /* Distância fixa entre os cards */
    position: relative;
    z-index: 10;
}

/* O Wrapper Individual (A âncora) */
.founder-wrapper {
    position: relative; /* Isso segura o absolute dentro dele */
    width: 250px; /* Largura fixa para não mexer */
    display: flex;
    justify-content: center;
}

/* --- CARD DO FUNDADOR --- */
.founder-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid #eee;
    width: 250px;
    position: relative;
    z-index: 20; /* Garante que o card fique ACIMA da linha */
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background-color: #fff; /* Garante fundo branco para não ver a linha atrás */
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--dark-blue);
}

.founder-img {
    width: 100px; height: 100px;
    background-color: #eee;
    background-repeat: no-repeat;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.founder-card h3 { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--dark-blue); margin: 0 0 5px; }
.founder-role { font-size: 0.9rem; color: #666; margin: 0; font-family: 'Google Sans', sans-serif;}
.click-hint { display: block; margin-top: 15px; font-size: 0.75rem; color: var(--neon-blue); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-family: 'Google Sans', sans-serif; }



/* --- CAIXA DE INFORMAÇÕES (ABSOLUTA) --- */
.founder-info-box {
    position: absolute; /* O Segredo: Flutua sem empurrar */
    top: 0; /* Alinha com o topo do card */
    
    display: flex;
    align-items: center;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10; /* Fica atrás do card se precisar */
    pointer-events: none; /* Não atrapalha cliques quando invisível */
}

/* --- ESTILOS PADRÃO (RENNAN - ABRE PARA DIREITA) --- */
/* Por padrão, a caixa fica à esquerda do wrapper (esperando para ir pra direita)
   Mas vamos posicionar na direita direto */
   
.founder-wrapper:not(.reverse-layout) .founder-info-box {
    left: 90%; /* Começa um pouco "dentro" do card */
    flex-direction: row; /* Linha -> Texto */
}

/* --- ESTILOS INVERTIDOS (JOÃO - ABRE PARA ESQUERDA) --- */
.founder-wrapper.reverse-layout .founder-info-box {
    right: 90%; /* Começa um pouco "dentro" do card */
    flex-direction: row-reverse; /* Texto <- Linha */
}


/* --- LINHA PONTILHADA --- */
.dotted-line {
    width: 40px;
    height: 2px;
    border-top: 2px dashed #ccc;
    flex-shrink: 0;
}

/* --- CONTEÚDO DO TEXTO --- */
.info-content {
    background-color: #f8faff;
    border: 1px solid #e1e8f0;
    padding: 25px;
    border-radius: 12px;
    width: 340px; /* Largura fixa da caixa */
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.info-content h4 { margin: 0 0 15px 0; color: var(--dark-blue); font-family: 'Fraunces', serif; font-size: 1rem; border-bottom: 2px solid var(--neon-blue); display: inline-block; }
.info-list { list-style: none; padding: 0; margin: 0; font-family: 'Google Sans', sans-serif; }
.info-list li { font-size: 0.9rem; color: #444; margin-bottom: 8px; line-height: 1.4; border-bottom: 1px dashed rgba(0,0,0,0.05); padding-bottom: 5px; }
.info-list li:last-child { border-bottom: none; }
.info-list strong { color: var(--dark-blue); }


/* --- ESTADO ATIVO (ABERTO) --- */
.founder-wrapper.open .founder-info-box {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Animação para Direita (Rennan) */
.founder-wrapper:not(.reverse-layout).open .founder-info-box {
    left: 100%; /* Vai para fora do card */
    transform: translateX(0);
}

/* Animação para Esquerda (João) */
.founder-wrapper.reverse-layout.open .founder-info-box {
    right: 100%; /* Vai para fora do card */
    transform: translateX(0);
}


/* Estilo do Card Ativo */
.founder-wrapper.open .founder-card {
    background-color: #0a192f;
    border-color: var(--dark-blue);
    z-index: 30; /* Fica acima de tudo */
}
.founder-wrapper.open h3, .founder-wrapper.open p { color: #fff; }
.founder-wrapper.open .click-hint { color: #fff; }


/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 1100px) {
    .founders-row { flex-direction: column; gap: 150px; } /* Muito espaço vertical */
    
    .founder-info-box {
        position: absolute;
        top: 100%; /* Embaixo do card */
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        flex-direction: column !important; /* Linha pra baixo */
        width: 300px;
    }
    
    .dotted-line {
        width: 2px;
        height: 30px;
        border-top: none;
        border-left: 2px dashed #ccc;
    }
    
    .founder-wrapper.open .founder-info-box {
        top: 100%; /* Mantém embaixo */
        margin-top: 10px;
    }
}














/* --- 4. DOWNLOADS --- */
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.dl-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.dl-card:hover {
    transform: translateY(-5px);
    border-color: var(--dark-blue);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.dl-icon { font-size: 1.5rem; margin-right: 15px; }
.dl-info { display: flex; flex-direction: column; color: var(--dark-blue); font-weight: 700; flex-grow: 1; }
.dl-info small { color: #000000; font-weight: 400; font-size: 0.8rem; margin-top: 2px; }
.dl-arrow { font-weight: 700; color: var(--dark-blue); }



/* ==========================================================================
   CORREÇÃO FINAL MOBILE (About - Acordeão + Fundadores Separados)
   ========================================================================== */

@media (max-width: 768px) {

    /* --- 1. ESTRUTURA GERAL --- */
    .main-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 !important;
        overflow-x: hidden;
    }

    /* --- 2. TÍTULO E INTRO --- */
    .geaf-page-intro, .intro-content-grid, .intro-text-area {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px !important;
        padding-right: 0 !important;
    }
    .intro-text-area h1 {
        font-size: 2.5rem; margin-bottom: 10px; text-align: left; padding-left: 20px;
    }
    .intro-subtitle { padding-left: 20px; display: block; margin-bottom: 20px; }
    .intro-mission-area { display: none !important; }

    /* --- 3. ACORDEÃO (Compacto fechado, expande ao tocar) --- */
    .accordion-section {
        display: block !important;
        width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box;
        margin-top: 0 !important;
    }
    .accordion-container { width: 100% !important; }
    
    .acc-item {
        width: 100% !important;
        margin-bottom: 10px;
        height: 70px !important; /* Altura fixa quando fechado */
        overflow: hidden;
        padding: 0 20px;
    }
    .acc-header { height: 100%; display: flex; align-items: center; padding-bottom: 0; }
    
    /* Ao tocar/abrir */
    .acc-item:hover, .acc-item:active, .acc-item:focus {
        height: auto !important;
        padding-bottom: 20px;
    }

    /* --- 4. CORREÇÃO DOS FUNDADORES (O que você pediu agora) --- */
    .founders-section {
        width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box;
        margin-top: 40px !important;
        display: block !important;
    }

    .founders-row {
        display: flex !important;
        flex-direction: column !important; /* Um embaixo do outro */
        align-items: center !important;
        gap: 60px !important; /* ESPAÇO GRANDE ENTRE ELES PARA NÃO ENCAVALAR */
        width: 100% !important;
    }

    /* Removemos a linha pontilhada no mobile para evitar bugs de layout */
    .dotted-line {
        display: none !important; 
    }

    .founder-wrapper {
        width: 100% !important;
        max-width: 280px !important;
        display: block !important;
        margin: 0 auto !important;
        position: relative !important; /* Necessário para o popup funcionar */
    }

    .founder-card {
        margin: 0 !important; /* Remove qualquer margem estranha */
        width: 100% !important;
    }

    /* Popup de Informações (Fundadores) */
    .founder-info-box {
        width: 90vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: 100%;
        margin-top: 15px;
        position: absolute;
        z-index: 100;
    }

    /* --- 5. RESTANTE --- */
    .content-body, .downloads-section, .related-pages {
        width: 100% !important; padding: 0 20px !important; box-sizing: border-box;
    }
    .card-large { flex-direction: column; height: auto; }
    .card-img-wrapper { height: 200px; }
    .cards-grid-small, .downloads-grid { grid-template-columns: 1fr; }
}