/* ---------- Importando fontes ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,700,0..100;1,9..144,700,0..100&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,600;1,17..18,600&display=swap');

/* ---------- separação ---------- */



/* ---------- Estilos Globais ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
    height: auto !important; /* Importante para o Lenis ler o tamanho real */
    min-height: 100%;
    /* Garante que não tenha barra de rolagem dupla */

    font-family: 'Google Sans', sans-serif;
    padding-bottom: 0 !important; 
    margin-bottom: 0 !important;

    
}
/* ---------- separação ---------- */



/* ---------- Estilos para o Lenis ---------- */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important; /* Remove a rolagem padrão do navegador */
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none; /* Melhora performance se tiver iframes/videos */
}

/* ---------- separação ---------- */




































/* ------------------------------ Header ------------------------------ */


/* ---------- Estilos da Navegação ---------- */
.nav {
    z-index: 9999;
    margin-top: 0;
    background: transparent;
    padding: 0 40px;
    transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease, color 0.4s ease;

    /* Borda */
    border-bottom: 1px solid transparent;

    /* Posição */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    /* Largura e altura */
    height: px;


    /* Layout */
    display: flex;
    justify-content:space-between;
    align-items: center;

    /* Espaçamento */
    color: rgb(0, 0, 0);




    min-height: 80px; 
    height: auto; /* Correção do height: px */
    box-sizing: border-box; /* Garante que o padding não estoure a largura */
    
    /* Garante limites laterais */
    max-width: 100vw;
    width: auto;
}

.nav.scrolled {
    background: #0b0d17;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.nav.scrolled .ul-nav a {
    color: rgba(255, 255, 255, 0.85);
}

.nav.scrolled .logo-wrapper h2 {
    color: rgba(255, 255, 255, 0.9);
}

.nav.scrolled .nav-btn-cta {
    color: rgba(255, 255, 255, 0.85) !important;
}

.nav-btn-cta {
            background-color: transparent !important;
            color: #000000 !important;
            padding: 10px 28px !important;
            font-size: 0.85rem !important;
            font-weight: 700 !important;
            border-radius: 4px;
            border: 2px solid rgba(255, 255, 255, 0.65) !important;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            text-decoration: none !important;
            display: inline-block;
}



/* ---------- Estilos da Lista de Navegação ---------- */
.ul-nav {
    font-family: Google Sans;
    display: flex;
    list-style-type: none;
    
    margin: 0;
    padding: 20px;
    gap: 30px;
    /* transform: translateX(-200px); */
}

.ul-nav a {
    text-decoration: none; /* Tira a linha de baixo */
    color: rgba(0, 0, 0, 0.85);
    display: flex; /* Para alinhar texto e flecha */
    align-items: center;
    gap: 8px; /* Espaço entre texto e flecha */
    padding: 10px 15px; /* Padding movido para o link para melhor clique */
    transition: color 0.4s ease;
}

/* 1. Prepara o terreno */
.ul-nav li {
    position: relative; /* Necessário para posicionar a linha */
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 5px;
}

/* Note o sinal ">" entre a classe e o li */
.ul-nav > li:last-child::after {
    content: none !important;
    display: none !important;
    width: 0 !important; 
}

/* 2. Cria a linha (invisível inicialmente) */
.ul-nav li::after {
    content: '';
    position: absolute;
    width: 0%;      /* Começa sem largura */
    height: 3px;    /* Espessura da linha */
    bottom: 5px;    /* Posição vertical */
    left: 50%;      /* Começa do meio */
    background-color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease-in-out; /* A mágica da animação */
    transform: translateX(-50%); /* Garante que cresça para os dois lados */
    
}

/* 3. A animação ao passar o mouse */
.ul-nav li:hover::after {
    width: 100%; /* A linha cresce até ocupar tudo */
}

.ul-nav li:hover {
    color: white;
}

.arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid #1a1a2e;
    border-bottom: 2px solid #1a1a2e;
    transform: rotate(45deg);
    margin-left: 6px;
    vertical-align: middle;
    position: relative;
    top: -2px;
    transition: border-color 0.4s ease, transform 0.3s ease;
}

/* Quando passa o mouse no LI, a flecha gira 180 graus (aponta p/ cima) */
.has-dropdown:hover .arrow {
    transform: rotate(224deg);
    border-top-color: white;
}

/* --- 3. O Menu Dropdown (A Caixa Escondida) --- */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Cola logo abaixo do item pai */
    left: 0;
    
    background-color: #0b0d17;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.07);
    padding: 10px 0;
    
    /* Esconde o menu inicialmente */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* Começa um pouco mais baixo */
    transform: translateX(0px);
    transition: all 0.3s ease;
    z-index: 999; /* Garante que fique por cima de tudo */

}

/* Estilo dos itens DENTRO do dropdown */
.dropdown-menu li {
    width: 100%;
    list-style-type: none;
}

.dropdown-menu a {
    padding: 12px 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    display: block;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.06);
    padding-left: 25px;
}

/* --- 4. Ação de Mostrar o Menu --- */
/* Só ativa hover em dispositivos com mouse real (não touch) */
@media (hover: hover) and (pointer: fine) {
    .has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .has-dropdown:hover .arrow {
        transform: rotate(225deg);
    }
}

/* --- LOGO --- */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
    padding-left: 10px;
    padding-right: 10px;
    transition: opacity 0.2s ease;
}

.logo-img.swapping {
    opacity: 0;
}

.logo-wrapper h2 {
    margin: 0;
    font-size: 1.5rem;
    font-family: Fraunces;
 
    border-left: 2px solid rgba(255, 255, 255, 0.25);
    padding-left: 25px;
    transition: color 0.4s ease;
}

/* --- ESTILO DO BOTÃO HAMBÚRGUER (Padrão Desktop: Invisível) --- */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #1a1a2e;
    transition: all 0.3s ease-in-out;
}


/* ---------- 2. Logo Responsivo (Tablet e Celular) ---------- */
/* ---------- MEDIA QUERIES (Mobile e Tablet) ---------- */
@media (max-width: 1175px) {
    
    /* --- 1. Header Base --- */
    .nav {
        padding: 10px 20px;
        justify-content: space-between;
        align-items: center;
        min-height: 70px;
        color: #0b0d17;
    }

    .logo-wrapper h2 { margin: 0;
    font-size: 0.7rem;
    font-family: Fraunces;
 
    border-left: 0.7px solid rgba(255, 255, 255, 0.25);
    padding-left: 10px; }
    .logo-img { height: 50px; padding-right: 0px; }

    /* --- 2. Botão Hambúrguer --- */
    .hamburger {
        display: block;
        z-index: 1001;
        cursor: pointer;
        padding: 5px; /* Aumenta área de toque */
    }
    
    .bar {
        width: 30px;
        height: 3px; /* Um pouco mais grosso para visibilidade */
        background-color: rgba(255, 255, 255, 0.9);
        margin: 6px 0;
        transition: 0.4s;
        border-radius: 2px;
    }

    /* Animação do X */
    .hamburger.active .bar:nth-child(1) { transform: translate(0, 9px) rotate(-45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translate(0, -9px) rotate(45deg); }

    /* --- 3. Container do Menu (Cortina) --- */
    .ul-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        
        margin: 0;
        padding: 80px 20px 40px 20px; /* Topo maior para não cobrir header */
        box-sizing: border-box; /* Garante que padding não estoure largura */
        
        background: rgba(11, 13, 23, 0.98);
        backdrop-filter: blur(15px);
        
        /* Centralização Vertical e Horizontal */
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Começa do topo, mas com padding */
        align-items: center;
        overflow-y: auto; /* Permite rolar se o menu for alto */
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .ul-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Itens Principais */
    .ul-nav > li {
        width: 100%;
        max-width: 400px; /* Limita largura para não ficar muito esticado */
        text-align: center;
        list-style: none;
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    
    /* Remove borda do último item e do CTA */
    .ul-nav > li:last-of-type, .ul-nav > li.cta-item {
        border-bottom: none;
    }

    /* Links Principais */
    .ul-nav > li > a {
        font-family: 'Google Sans', sans-serif;
        font-size: 1.2rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.9);
        padding: 20px 0; /* Área de toque generosa */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: color 0.3s;
    }
    
    /* Flecha (Seta) — mantém o chevron, apenas ajusta a cor */
    .arrow {
        border-right: 2px solid rgba(255, 255, 255, 0.85);
        border-bottom: 2px solid rgba(255, 255, 255, 0.85);
        border-top: none;
        border-left: none;
        width: 7px;
        height: 7px;
        transform: rotate(45deg);
        transition: transform 0.4s ease;
        top: -2px;
        margin-left: 6px;
    }

    /* Bloqueia o hover do desktop de girar a seta no touch */
    .has-dropdown:hover > a .arrow {
        transform: rotate(45deg);
    }

    /* A flecha só gira quando JS adicionar active-dropdown */
    .has-dropdown.active-dropdown > a .arrow {
        transform: rotate(225deg) !important;
    }





    .ul-nav li::after { display: none; } /* Remove linha animada desktop */

    /* --- 4. O DROPDOWN SEM REBARBA --- */
    .dropdown-menu {
        position: static;
        display: block;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        background-color: transparent !important;
        border-radius: 0;
        box-shadow: none !important;
        border: none !important;
        margin: 0;
        padding: 0;
    }

    /* Estado Aberto */
    .dropdown-menu.open {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        margin-bottom: 20px;
    }

    /* Itens DENTRO do Dropdown */
    .dropdown-menu li {
        margin: 0;
        width: 100%;
        border-bottom: none;
    }

    .dropdown-menu a {
        font-family: 'Google Sans', sans-serif;
        font-size: 1rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.6);
        padding: 10px 0;
        display: block;
        text-align: center;
        text-decoration: none;
        background-color: transparent !important;
        border: none !important;
        transition: color 0.2s ease;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a:active {
        background-color: transparent !important;
        color: rgba(255, 255, 255, 0.9);
        padding-left: 0;
        border: none !important;
    }
}
/* -------------------- FIM DO HEADER -------------------- */



















































body {
    background-color:rgb(255, 255, 255);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 200px;
    color: gray;
}















/* --- Estilos do MAIN --- */
.main-content {
    /* Opcional: Uma cor de fundo diferente para separar do header */
    min-height: 80vh; /* Garante que o main ocupe boa parte da tela */
}

/* --- Container do GIF --- */
.hero-container {
    display: flex;
    justify-content: center; /* Centraliza na horizontal (esquerda/direita) */
    align-items: center;     /* Centraliza na vertical (topo/baixo) */
    padding: 40px 0;         /* Um respiro em cima e embaixo */
}

/* --- Estilo da Imagem (GIF) --- */
.hero-gif {
    /* DICA DE OURO: Responsividade */
    max-width: 100%;  /* A imagem nunca será maior que a tela */
    height: auto;     /* A altura se ajusta automaticamente */
    
    /* Opcional: Sombra suave para destacar o GIF do fundo */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 30px; /* Cantos arredondados, se combinar com o design */
}

@media (max-width: 1175px) {
    
    .hero-container {
        /* No mobile/tablet, ajustamos o espaçamento do topo */
        /* Se o menu mobile for menor, diminuímos aqui. Se for maior, aumentamos. */
        padding-top: 100px; 
        padding-bottom: 30px;
        
        /* Reduzimos o padding lateral para aproveitar a tela do celular */
        padding-left: 15px; 
        padding-right: 15px;
    }

    .hero-gif {
        /* Ajuste de tamanho para Tablet/Mobile */
        max-width: 90vw; /* Aproveita 100% do container (que já tem padding de 15px) */
        
        /* IMPORTANTE: Removi o min-width: 360px */
        /* Celulares antigos (iPhone SE, Galaxy J) têm 320px de largura. */
        /* Se deixar min-width 360px, vai criar barra de rolagem horizontal. */
        
        border-radius: 15px; /* Cantos um pouco menos arredondados no mobile fica melhor */
        box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra mais leve */
    }
}








/* --- CONFIGURAÇÃO GERAL DA SEÇÃO --- */
.articles-section {
    max-width: 1920px; /* Largura máxima do conteúdo */
    margin: 60px auto; /* Centraliza a seção na tela */
    padding: 0 20px;
    font-family: 'Google Sans', sans-serif;
    margin-bottom: 200px;
}

.section-title {
    font-family: 'Fraunces', serif; /* Sua fonte de título */
    font-size: 4rem;
    margin-bottom: 30px;
    text-align: center;
    color: #000;
    padding: 20px 0; 
}


/* --- ESTILO DAS IMAGENS (Para todas) --- */
.post-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem não estique/deforme */
    transition: transform 0.3s ease;
}

/* Efeito de zoom na imagem ao passar o mouse */
.featured-post:hover .post-img,
.post-card:hover .post-img {
    transform: scale(1.05);
}

/* --- 1. O POST DESTAQUE (FEATURED) --- */
.featured-post {
    display: flex;
    flex-direction: column; /* Imagem em cima, texto embaixo */
    background: white;
    border-radius: 12px;
    overflow: hidden; /* Para o zoom da imagem não sair da borda */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Sombra elegante */
    margin-bottom: 50px; /* Espaço para separar dos posts pequenos */
}

.featured-post h3 {
    color: #000;
}

.featured-img-container {
    width: 100%;
    height: 400px; /* Altura fixa para impacto visual */
    overflow: hidden;
}

.featured-content {
    padding: 30px;
    text-align: center; /* Texto centralizado como você pediu */
}

.featured-content h3 {
    font-size: 2rem;
    margin: 10px 0;
}

/* --- 2. O GRID DE POSTS MENORES --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Espalha os itens nas pontas */
    flex-wrap: wrap; /* Se não couber, joga pra linha de baixo */
    gap: 30px; /* Espaço entre as linhas e colunas */
    
}

.post-card {
    background: #f4f4f4;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

.post-card h3 {
    color: #000;
}

.post-card p {
    color: #444;
}


/* Card levanta um pouco ao passar o mouse */
.post-card:hover {
    transform: translateY(-5px); /* Sobe um pouco ao passar o mouse */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.post-card img {
    height: 200px; /* Altura menor para os cards */
}

.card-content {
    padding: 20px;
}

/* --- DETALHES DE TEXTO (Tags e Links) --- */
.tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #007bff;
    font-weight: bold;
    letter-spacing: 1px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    border-bottom: 2px solid #007bff;
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 1175px) {
    .featured-img-container {
        height: 250px; /* Imagem menor no celular */
    }

    .post-card {
        /* No celular, cada card ocupa 100% da largura (uma coluna só) */
        width: 100%; 
    }
}


/* --- RESPONSIVIDADE (Obrigatório quando fixamos 4 colunas) --- */

/* Quando a tela for média (Tablets/Notebooks pequenos) -> cai para 2 colunas */
@media (max-width: 1024px) {
    .posts-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Quando a tela for celular -> cai para 1 coluna */
@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}







.about-project-section {
    background-color: #0b0d17;
    color: white;
    padding: 130px 0; 
    margin-top: -100px;

    /* --- O TRUQUE MÁGICO COMEÇA AQUI --- */
    
    /* 1. Força a largura ser igual à largura da janela (Viewport Width) */
    width: 100vw; 
    
    /* 2. Posiciona o elemento para ignorar o pai centralizado */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.about-container {
    /* Isso garante que o TEXTO e a IMAGEM fiquem centralizados
       e alinhados com o resto do site, mesmo com o fundo esticado */
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px; /* Margem de segurança para mobile */
    
    /* As propriedades Flex que já fizemos */
    display: flex;
    align-items: center;
    gap: 60px;
}

/* --- ESTILO DA IMAGEM --- */
.about-image {
    flex: 1; /* Ocupa 50% do espaço */
    position: relative; /* Para efeitos decorativos se quiser depois */
}

.project-img {
    width: 100%;
    border-radius: 12px;
    /* Um brilho azulado sutil atrás da imagem */
    box-shadow: -20px 20px 0px rgba(5, 72, 145, 0.1); 
    display: block;
}

/* --- ESTILO DO TEXTO --- */
.about-text {
    flex: 1; /* Ocupa os outros 50% */
    font-family: 'Google Sans', sans-serif;
}

.about-text .subtitle {
    color: #007bff; /* Azul destaque */
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-family: 'Fraunces', serif; /* Sua fonte de títulos */
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.about-text p {
    color: #ccc; /* Cinza claro para não cansar a vista (branco puro arde) */
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* --- BOTÃO OUTLINE (Borda) --- */
.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-outline:hover {
    background-color: white;
    color: #0b0d17; /* O texto vira a cor do fundo */
    transform: translateY(-3px);
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Empilha um embaixo do outro */
        text-align: center; /* Opcional: centraliza o texto no mobile */
        
    }

    .project-img {
        box-shadow: none; /* Remove a sombra deslocada no mobile pois falta espaço */
        margin-bottom: 30px;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
}

/* --- CONFIGURAÇÃO DA SEÇÃO --- */

.study-section-title {
    font-family: 'Fraunces', serif; /* Sua fonte de título */
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #000;

    
    
}


.study-groups-section {
    padding: 60px 20px;
    background-color: white; /* Ou cinza bem clarinho #f9f9f9 */
    font-family: 'Google Sans', sans-serif;
}

.groups-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- CABEÇALHO (Título + Link) --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee; /* Linha fina igual da imagem */
    padding-bottom: 15px;
}

.section-header h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    color: #000;
    margin: 0;
}

.view-all-link {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 0.9rem;
    transition: margin 0.3s ease;
}

.view-all-link:hover {
    margin-right: 5px; /* Efeito de empurrar a setinha */
}

.section-desc {
    max-width: 1200px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- GRID SYSTEM (A Mágica) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 360px);
    justify-content: start; /* Itens ficam à esquerda, sem esticar */
    gap: 15px;
}

/* --- ESTRUTURA DO CARD --- */
.group-card {
    display: flex;
    flex-direction: column; /* Empilha cor em cima, texto embaixo */
    height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.group-card:hover {
    transform: translateY(-5px); /* Sobe um pouco ao passar o mouse */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- PARTE DE CIMA (COLORIDA) --- */
.card-top {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 8px 8px 0 0;
    overflow: hidden; /* Garante que a imagem respeite o border-radius */
    background-color: #0b0d17; /* Fallback enquanto a imagem carrega */
}

.card-top-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.group-card:hover .card-top-img {
    transform: scale(1.05);
}

/* Classes de Cores Específicas (Inspiradas na imagem) */
.bg-darkviolet { background-color: #5d4177; }
.bg-orange { background-color: #fca311; }
.bg-darkgreen { background-color: #2c503a; }
.bg-darkblue { background-color: #2c3450; } /* Ou um vinho/roxo */
.bg-olive  { background-color: #8dae34; }
.bg-blue   { background-color: #0077b6; }

/* --- PARTE DE BAIXO (TEXTO) --- */
.card-bottom {
    background-color: #f4f4f4; /* Cinza bem leve igual da imagem */
    padding: 20px;
    flex-grow: 1; /* Faz essa parte esticar para preencher altura */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empurra a seta para o final */
    min-height: 120px; /* Garante altura mínima para alinhar */
    border-radius: 0px 0px 8px 8px; /* Cantos arredondados só embaixo */
}

.card-bottom p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    margin: 0 0 15px 0;
    font-weight: 500;
    
}

.arrow-icon {
    align-self: flex-end; /* Joga a seta para a direita */
    color: #999;
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.group-card:hover .arrow-icon {
    color: #333;
    transform: translateX(5px); /* Seta anda para direita no hover */
}


/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .cards-grid {
        /* No celular, colunas maiores para caber o texto */
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .card-top {
        height: 100px; /* Menor altura no mobile */
        font-size: 1.2rem;
    }
}









/* --- SEÇÃO GERAL --- */
.physics-talk-section {
    padding: 60px 20px;
    background-color: white; /* Fundo limpo */
    font-family: 'Google Sans', sans-serif;
    
}

.talks-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- HEADER E FILTROS --- */
.talks-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Alinha botões com a base do título */
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    margin: 0 0 5px 0;
    color: #111;
}

.view-all {
    font-size: 0.85rem;
    text-decoration: none;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Botões de Filtro (Estilo da Imagem) */
.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: white;
    font-family: 'Google Sans', sans-serif;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #555;
}

/* Estado Ativo (Botão Azul Escuro) */
.filter-btn.active, .filter-btn:hover {
    background-color: #003366; /* Azul Escuro Acadêmico */
    color: white;
    border-color: #003366;
}

/* --- GRID DE CARDS --- */
.talks-grid {
    display: grid;
    
    /* 1. MÁGICA DO PADRÃO: 
       Define EXATAMENTE 4 colunas de tamanho igual (1 fração cada).
       Isso garante que nunca ultrapasse 4, mesmo em telas gigantes. */
    grid-template-columns: repeat(4, 1fr);

    /* 2. Espaçamento controlado */
    gap: 20px; 
    
    /* 3. Garante altura igual */
    /* Por padrão o grid já estica a altura (stretch), 
       mas isso garante alinhamento */
    align-items: stretch; 
}

.card-link {
    /* 1. Remove a linha de baixo padrão de links */
    text-decoration: none; 
    
    /* 2. Garante que o texto herde as cores definidas dentro do card */
    color: inherit; 
    
    /* 3. Faz o link ocupar o espaço todo da célula do Grid */
    display: block; 
    height: 100%;
    
}






/* --- ESTILO DO CARD --- */
.talk-card {
    background: #fdfdfd;
    border: 1px solid #eee; /* Borda bem sutil */
    display: flex;
    flex-direction: column; /* Para empurrar o footer para baixo */
    justify-content: flex-start;
    height: 100%; /* Garante que todos tenham mesma altura */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px; /* Cantos arredondados */
    
    overflow: hidden;
}

.talk-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: transparent;
}

/* Conteúdo Superior */
.card-content {
    padding: 25px 25px 10px 25px;
    
    /* ADICIONE ISSO: */
    flex-grow: 1; 
    /* ou abreviado: flex: 1; */
}

.event-type {
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: #007bff; /* Azul destaque */
    text-transform: uppercase;
}

.divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
    width: 100%;
}

.talk-card h3 {
    font-family: 'Fraunces', serif; /* Título elegante */
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    line-height: 1.4;
    color: #222;
    min-height: 3.8em; /* Altura fixa p/ alinhar títulos de tamanhos diferentes */
    
    word-wrap: break-word;
    overflow-wrap: anywhere; 
    hyphens: auto;
}

.speaker {
    font-weight: bold;
    color: #555;
    margin: 0;
    font-size: 0.95rem;
}

.time {
    color: #888;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* --- RODAPÉ DO CARD (A parte com data grande) --- */
.card-footer {
    background-color: #f8f9fa; /* Fundo cinza claro no rodapé */
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.icon-box {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    color: #777;
    gap: 5px;
}

.big-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.big-date .day {
    font-size: 3rem; /* O número grande */
    font-weight: bold;
    line-height: 1;
    color: #444;
}

.big-date .month-year {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #777;
    line-height: 1.1;
}

/* --- RESPONSIVIDADE (Obrigatório quando fixamos 4 colunas) --- */

/* Quando a tela for média (Tablets/Notebooks pequenos) -> cai para 2 colunas */
@media (max-width: 1024px) {
    .talks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Quando a tela for celular -> cai para 1 coluna */
@media (max-width: 600px) {
    .talks-grid {
        grid-template-columns: 1fr;
    }
}
















/* --- CONFIGURAÇÃO GERAL DO FOOTER --- */
.site-footer {
    /* 1. Cor e Texto */
    background-color: #0b0d17   ;
    color: #a0a0a0;
    font-family: 'Google Sans', sans-serif;
    font-size: 0.9rem;
    
    /* 2. Espaçamento */
    padding: 80px 0 30px 0;
    margin-top: 80px; /* Um espaço para separar da seção anterior */

    /* --- O TRUQUE DE EXPANSÃO (Full Width) --- */
    width: 100vw; /* Largura da janela inteira */
    
    
    /* Garante que o padding não aumente a largura além de 100% */
    box-sizing: border-box; 
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- GRID DO TOPO --- */
.footer-top {
    display: grid;
    /* 4 Colunas: A primeira é maior (2fr), as outras iguais (1fr) */
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 40px;
    margin-bottom: 40px;
}

/* Títulos das Colunas */
.footer-col h4 {
    color: white;
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    margin-top: 0;
}

/* Logo e Descrição */
.footer-logo h3 {
    color: white;
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 300px;
}

/* Ícones Sociais */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: #a0a0a0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid #333;
    border-radius: 50%;
}

.social-icon:hover {
    color: white;
    border-color: #007bff;
    background-color: #007bff;
    transform: translateY(-3px);
}

/* --- LINKS --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #a0a0a0;
    transition: color 0.3s ease;
    display: inline-block; /* Para o transform funcionar */
}

.footer-links a:hover {
    color: #007bff; /* Azul Destaque */
    transform: translateX(5px); /* Efeito sutil de movimento */
}

/* --- NEWSLETTER FORM --- */
.newsletter-form {
    display: flex;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    margin-top: 20px;
}

.newsletter-form input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 100%;
    padding: 10px 0;
    font-family: 'Google Sans', sans-serif;
}

.newsletter-form button {
    background: transparent;
    border: none;
    color: #007bff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateX(5px);
}

/* --- BARRA INFERIOR --- */
.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
}



/* ==========================================================================
   AJUSTES EXCLUSIVOS PARA MOBILE (Cole no final do seu CSS)
   ========================================================================== */

@media (max-width: 768px) {

    

    /* 1. CORREÇÃO CRÍTICA DO BODY
       Removemos a margem de 200px que esmagava o site no celular. 
       Adicionamos overflow-x para evitar rolagem horizontal indesejada. */
    body {
        margin: 0 !important;
        padding: 0 !important;
        padding-top: 90px !important; /* Espaço para o menu fixo não cobrir o conteúdo */
        overflow-x: hidden;
        width: 100%;
    }

    /* 2. AJUSTES GERAIS DE FONTE E ESPAÇAMENTO */
    .section-title {
        font-size: 2.2rem; /* Reduz títulos gigantes (eram 4rem) */
        padding: 10px 0;
    }

    .main-content {
        padding: 0 15px; /* Margem de segurança nas laterais */
    }

    /* 3. HERO (GIF) */
    .hero-container {
        padding-top: 20px;
        padding-bottom: 20px;
        height: auto;
    }

    /* 4. SEÇÃO ABOUT (Ajuste do efeito Full Width) 
       Reseta o truque de 100vw para evitar barra de rolagem horizontal no mobile */
    .about-project-section {
        width: 100%;
        margin-left: 0;
        left: 0;
        margin-top: 0;
        padding: 60px 20px;
        border-radius: 0;
    }

    .about-container {
        flex-direction: column; /* Empilha imagem e texto */
        gap: 40px;
        padding: 0;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .project-img {
        box-shadow: none; /* Remove sombra deslocada que quebra layout mobile */
    }

    /* 5. CARDS DE PESQUISA (Study Groups) */
    .cards-grid {
        /* Garante 1 coluna em celulares muito pequenos ou 2 em maiores */
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    .card-top {
        height: 100px; /* Reduz altura da parte colorida */
    }

    /* 6. PHYSICS TALK (Ajuste do Grid) */
    .talks-grid {
        grid-template-columns: 1fr !important; /* Força 1 coluna */
    }
    
    .talks-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .big-date .day {
        font-size: 2.5rem;
    }

    /* 7. FOOTER (Rodapé) */
    .site-footer {
        width: 100%; /* Remove o 100vw */
        padding: 40px 0 20px 0;
        margin-top: 40px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-top {
        grid-template-columns: 1fr; /* Empilha tudo em uma coluna */
        gap: 40px;
        text-align: center;
    }

    .footer-logo h3, .footer-col h4 {
        text-align: center;
    }
    
    .social-links {
        justify-content: center; /* Centraliza ícones */
    }
    
    .newsletter-form {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Ajuste específico para Telas Intermediárias (Tablets) */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        margin: 0 !important; /* Remove a margem de 200px também no tablet */
        padding: 20px !important;
    }
    
    .about-project-section {
        width: 100%;
        left: 0;
        margin-left: 0;
    }
    
    .site-footer {
        width: 100%;
    }
}

/* =============================================
   WATCH WIDGET — inspirado no Daily Wire /watch
   ============================================= */

.watch-widget-section {
    background-color: #0b0d17;
    padding: 60px 40px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    margin-bottom: -2.5vw;
}

.watch-widget-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.watch-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.watch-widget-title {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    color: #ffffff;
    margin: 0;
}

.watch-widget-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.watch-tab-btn {
    padding: 7px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-size: 0.82rem;
    font-family: 'Google Sans', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
}

.watch-tab-btn:hover {
    border-color: #007bff;
    color: #fff;
}

.watch-tab-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

.watch-view-all {
    color: #007bff;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.watch-view-all:hover { color: #fff; }

/* Main layout */
.watch-widget-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start;
}

/* ---- Featured Player ---- */
.watch-featured {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #13162a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
}

.watch-player-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.watch-player-wrap iframe,
.watch-player-wrap video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Placeholder quando não há vídeo ativo */
.watch-player-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d0f1f 0%, #1a1e3a 50%, #0d0f1f 100%);
    gap: 16px;
    cursor: pointer;
    position: relative;
}

.watch-player-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,123,255,0.12) 0%, transparent 70%);
}

.watch-play-icon {
    width: 72px;
    height: 72px;
    background: rgba(0,123,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    position: relative;
    z-index: 1;
}

.watch-player-placeholder:hover .watch-play-icon {
    transform: scale(1.1);
    background: #007bff;
}

.watch-play-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    margin-left: 4px;
}

.watch-placeholder-label {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.05em;
}

/* Badge AO VIVO */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e02b2b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.live-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: livePulse 1.2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.upcoming-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,123,255,0.15);
    border: 1px solid rgba(0,123,255,0.4);
    color: #5baeff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Info abaixo do player */
.watch-featured-info {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.watch-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.watch-event-label {
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.watch-featured-title {
    font-family: 'Fraunces', serif;
    font-size: 1.45rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
}

.watch-featured-speaker {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 0;
}

.watch-featured-speaker strong {
    color: rgba(255,255,255,0.85);
}

.watch-featured-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
}

.watch-featured-time svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ---- Episode List ---- */
.watch-episode-list {
    background: #13162a;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 520px;
}

.watch-list-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.watch-episodes-scroll {
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.watch-episodes-scroll::-webkit-scrollbar {
    width: 4px;
}
.watch-episodes-scroll::-webkit-scrollbar-track { background: transparent; }
.watch-episodes-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.watch-episode-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.watch-episode-item:last-child {
    border-bottom: none;
}

.watch-episode-item:hover {
    background: rgba(255,255,255,0.04);
}

.watch-episode-item.is-active {
    background: rgba(0,123,255,0.1);
    border-left: 3px solid #007bff;
    padding-left: 17px;
}

.watch-ep-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.15);
    min-width: 28px;
    text-align: center;
    padding-top: 2px;
    font-family: 'Fraunces', serif;
}

.watch-episode-item.is-active .watch-ep-number {
    color: #007bff;
}

.watch-ep-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.watch-ep-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.watch-ep-title {
    font-family: 'Fraunces', serif;
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}

.watch-episode-item.is-active .watch-ep-title {
    color: #fff;
}

.watch-ep-speaker {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.watch-ep-time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

/* ---- Responsivo ---- */
@media (max-width: 960px) {
    .watch-widget-layout {
        grid-template-columns: 1fr;
    }

    .watch-episode-list {
        max-height: 360px;
    }
}

@media (max-width: 600px) {
    .watch-widget-section {
        padding: 40px 20px;
    }

    .watch-widget-title {
        font-size: 1.5rem;
    }

    .watch-featured-title {
        font-size: 1.15rem;
    }
}

/* Arrow do dropdown muda para branco ao scrollar */
.nav.scrolled .arrow {
    border-right-color: #ffffff !important;
    border-bottom-color: #ffffff !important;
}

/* Mobile: header sempre no modo azul fixo */
@media (max-width: 768px) {
    .nav {
        background-color: #0b0d17 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    }

    .nav .ul-nav a,
    .nav .logo-wrapper h2 {
        color: #ffffff !important;
    }

    .nav .arrow {
        border-right-color: #ffffff !important;
        border-bottom-color: #ffffff !important;
    }

    .nav .nav-btn-cta {
        color: #ffffff !important;
    }
}

/* Remover bordas brancas laterais da seção about no mobile */
@media (max-width: 768px) {
    .about-project-section {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        border-radius: 0;
        margin-top: -20px;
        
    }

    .about-container {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        width: 100vw;
        box-sizing: border-box;
        border-radius: 0;
    }
}


