:root {
    /* Cores extraídas do Projeto de Id Visual */
    --vermelho-terra: #B33927;
    --azul-teal: #007A7C;
    --amarelo-sol: #ECA400;
    --verde-vida: #277A4D;
    --branco: #FFFFFF;
    --texto: #333333;
    --bg-claro: #F8F9FA;
    --texto-escuro: #333333;
    --texto-claro: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-image: linear-gradient(rgba(249, 249, 249, 0.88), rgba(249, 249, 249, 0.88)), url('../../../_resources/eventos/2026/IV_Encontro_Nacional_de_ES_e_Simpósio_da_moda_afrocentrada/textura_fundo.png');
    background-attachment: fixed;
    color: var(--texto);
    line-height: 1.6;
}

/* MENU RESPONSIVO COM HAMBÚRGUER */
.navbar {
    background: var(--branco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-logo-space {
    height: 50px;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--texto);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.3s;
    font-weight: bold;
}

.nav-links a:hover { color: var(--vermelho-terra); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--azul-teal);
    border-radius: 2px;
}

/* HERO SECTION */
.hero {
    display: flex;
    justify-content: center;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 4em;
    scroll-margin-top: 80px;
    margin-bottom: 5em;
}

.hero-logo {
    flex: 0 0 250px;
    padding: 20px;
}

.hero-titles {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.event-title {
    flex: 1;
    padding: 0 20px;
}

.event-title h2 {
    font-size: 1.6rem;
    color: var(--azul-teal);
    margin-bottom: 10px;
}

.event-title h1 {
    color: var(--azul-teal);
    margin-bottom: 10px;
}

.event-title h3 {
    color: var(--azul-teal);
    margin-bottom: 6px;
}

.event-title p {
    font-weight: bold;
    font-size: 0.85rem;
    color: #555;
    font-style: italic;
}

.moda_first_title { margin-bottom: 2px!important; }
.moda_title { margin-bottom: 1px!important; }
.moda_title_year { margin-bottom: 10px!important; }

.divider {
    width: 1px;
    height: 120px;
    background-color: #ccc;
}

.color-bar {
    width: 100%;
    height: 40px;
    background-image: url('../../../_resources/eventos/2026/IV_Encontro_Nacional_de_ES_e_Simpósio_da_moda_afrocentrada/elementos-cores.png');
    background-size: contain;
    background-repeat: repeat-x;
    background-position: center;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 0;
}

/* SOBRE O EVENTO */
.sobre {
    padding: 60px 0;
    margin-top: -10px;
    z-index: 1;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 96%)!important;
    scroll-margin-top: 80px;
}

.sobre h2 { color: var(--vermelho-terra); }
.sobre-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-edital {
    margin-top: 2em;
    display: flex;
    gap: 10px;
}

#editais { scroll-margin-top: 80px; }

.fa-file-pdf { font-size: 1.4em!important; }

.btn {
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-outline {
    border: 2px solid var(--azul-teal);
    color: var(--azul-teal);
    background: transparent;
}

.btn-outline:hover {
    background: var(--azul-teal);
    color: #fff;
}

.btn-solid {
    background: var(--azul-teal);
    color: #fff;
    border: 2px solid var(--azul-teal);
}

.btn-solid:hover {
    background: #005b5c;
    border: 2px solid #005b5c;
}

/* NOVA SEÇÃO: PARTICIPANTES */
#participantes { scroll-margin-top: 80px; background-color: transparent; }
.participantes h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--azul-teal);
}
.participantes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    justify-content: center;
}
.participante-card {
    background: var(--branco);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--azul-teal);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.participante-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.participante-foto-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--amarelo-sol);
}
.participante-foto-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 1. Alinha o tamanho do container e remove o formato de círculo */
  .participante-foto-wrapper-modal {
      /* width: 180px;
      height: 180px; */
      margin: 0 auto 15px;
      border-radius: 6px;
      overflow: hidden;     /* Garante que a foto não passe dos limites do bloco */
      /* display: flex; */
      /* align-items: center;
      justify-content: center; */
      /* border: 3px solid var(--amarelo-sol); */
      /* background-color: #f9f9f9; /* Fundo neutro caso a foto original não seja quadrada */ */
  }

  /* 2. Força a imagem dentro dele a aparecer COMPLETA e sem cortes */
  .participante-foto-wrapper-modal img {
      /* width: 100%;
      height: 100%; */
      width: 40%;
      height: 40%;
      object-fit: contain;  /* A mágica que impede que a foto seja cortada */
      border-radius: 6px;   /* Acompanha o formato do container */
  }
.participante-nome {
    font-weight: bold;
    color: var(--texto-escuro);
    font-size: 1.1rem;
}

/* MODAL DOS PARTICIPANTES */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background-color: var(--branco);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    text-align: center;
    border-top: 6px solid var(--vermelho-terra);
    animation: fadeIn 0.4s ease;
    max-height: 80vh;   /* Define a altura máxima do conteúdo (ex: 65% da tela) */
    overflow-y: auto;   /* Ativa o scroll vertical */
    padding-right: 10px; /* Espaço opcional para a barra de rolagem não colar no texto */
}

/* Opcional: Deixar a barra de rolagem mais fina e elegante */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--vermelho-terra); }
.modal-body img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--amarelo-sol);
    margin-bottom: 20px;
}
.modal-body h3 {
    color: var(--azul-teal);
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.modal-body p {
    text-align: justify;
    color: var(--texto-escuro);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* PROGRAMAÇÃO (Tabs e Melhorias) */
.container_programação h3 { color: var(--azul-teal); }
#programacao { scroll-margin-top: 80px; }
.programacao { padding: 60px 0; background-color: #fff; }
.programacao h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--azul-teal);
}
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tab-btn {
    background: var(--bg-claro);
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    color: var(--texto-escuro);
    font-weight: bold;
    transition: all 0.3s ease;
}
.tab-btn.active {
    background: var(--vermelho-terra);
    color: var(--texto-claro);
}

/* FILTROS INTERNOS DA PROGRAMAÇÃO */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.filter-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 6px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 20px;
    color: var(--texto-escuro);
    font-weight: 600;
    transition: all 0.2s ease;
}
.filter-btn.active, .filter-btn:hover {
    background: var(--azul-teal);
    color: var(--branco);
    border-color: var(--azul-teal);
}

.tab-content {
    display: none;
    background: var(--bg-claro);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--vermelho-terra);
}

#dia3.tab-content {
    border-left: 5px solid var(--azul-teal);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* ITENS DA AGENDA TOTALMENTE ATUALIZADOS */
.agenda-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.agenda-item.hidden {
    display: none;
}
.agenda-meta {
    min-width: 90px;
}
.agenda-time {
    font-weight: bold;
    color: var(--azul-teal);
    font-size: 1.1rem;
    display: block;
}
.agenda-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    color: #fff;
    font-weight: bold;
    margin-top: 5px;
    text-transform: uppercase;
}
/* Cores das badges */
.badge-oficina { background-color: var(--verde-vida); }
.badge-roda { background-color: var(--amarelo-sol); color: #333; }
.badge-cultural { background-color: var(--vermelho-terra); }
.badge-outro { background-color: #777; }

.agenda-foto {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--azul-teal);
    flex-shrink: 0;
    background-color: #ddd;
}
.agenda-info {
    flex: 1;
}
.agenda-info h4 {
    font-size: 1.15rem;
    color: var(--texto-escuro);
    margin-bottom: 4px;
}
.agenda-info p {
    font-size: 0.95rem;
    color: #555;
}
.agenda-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVIDADE */
@media screen and (max-width: 900px) and (min-width: 501px) {
    .hero-logo {
        width: 8.5em!important;
        padding-right: 0px;
        margin-left: -1.5em;
    }
    .hero-logo img { height: 6em; }
    .hero-container { margin-bottom: 4em; }
    .hero-titles {
        margin-left: 0px;
        padding-left: 0px;
        margin-right: 2.5em;
        gap: 4px;
    }
    .hero-titles h1 { font-size: 1.2rem; }
    .hero-titles h3 { font-size: 0.8rem; }
    .card-edital-trama { width: auto; }
}

@media (max-width: 500px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--branco);
        width: 200px;
        padding: 20px;
        box-shadow: -2px 5px 10px rgba(0,0,0,0.1);
    }
    .navbar .nav-links.active { display: flex; }
    .menu-toggle { display: flex; }
    .hero-container { flex-direction: column; margin-bottom: 3em; }
    .hero-logo {
        width: 9.5em;
        padding-bottom: 2px!important;
        margin-bottom: 0px!important;
    }
    .hero-titles { margin-top: -5em!important; flex-direction: column; gap: 40px; }
    .hero-titles h1 { font-size: 1.2rem; }
    .hero-titles h3 { font-size: 0.8rem; }
    .divider { width: 60px; height: 1px; }
    .btn-edital { display: flex; flex-direction: column!important; gap: 10px; }
    .card-edital-trama { width: auto; }
    .agenda-item { flex-direction: column; gap: 10px; }
    .agenda-meta { min-width: auto; }
}

.container { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }
.container_programação { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.card {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-bottom: 4px solid var(--amarelo-sol);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.slider {
    background: white;
    padding: 30px 0;
    overflow: hidden;
    border-top: 1px solid #eee;
}
.slider-track {
    display: flex;
    width: calc(250px * 12);
    animation: scroll 45s linear infinite;
}
.slide { width: 250px; text-align: center; color: #999; font-weight: bold; }
.slide img { width: 90px; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 6)); }
}

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 30px;
    font-size: 0.8rem;
}
.moda { margin-top: 28px; }
.sobre_programacao { margin-left: 3em; }


/* ======================= */
/* segunda parte */
/* ======================== */


/* Overlay escuro de fundo */
.modal-participante-overlay {
display: none; /* Muda para flex via JS quando for abrir */
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.7);
z-index: 10000;
justify-content: center;
align-items: center;
}

/* Caixa Principal do Modal */
.modal-participante {
display: flex;             /* Coloca as duas colunas lado a lado */
flex-direction: row;
width: 90%;
max-width: 800px;
height: 60vh;              /* ALTURA FIXA: Ocupa 60% da altura da tela */
/* min-height: 400px; */        /* Não deixa o modal ficar menor que 400px */
background: #fff;
border-radius: 8px;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
overflow: hidden;          /* Impede que as colunas vazem pelos cantos arredondados */
}

/* Coluna da Esquerda (Azul, Fixa) */
.participante-col-esq {
background-color: #87CEEB;
background-color: var(--azul-teal);
width: 35%;                /* Ocupa 35% do modal */
min-width: 220px;
padding: 30px 20px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
/* SEM overflow, então ela nunca terá scroll */
}

.participante-col-esq h3 {
margin: 0 0 20px 0;
/* color: #222; */
color: white;
font-size: 1.4em;
}

/* Wrapper da foto (quadrado/retângulo com borda) */
/* .participante-foto-wrapper-modal { -----*/
/* width: 150px;
height: 190px; */
/* background-color: #fff; */
/* margin: 0 auto 15px; -------*/
/* border: 2px solid var(--amarelo-sol);  */  /* Borda escura igual ao seu desenho */
/* border-radius: 8px; */
/* border-radius: 6px;    */
/* overflow: hidden; ---- */
/* display: flex;
align-items: center;
justify-content: center; */
/* } --------*/

/* .participante-foto-wrapper-modal img { --------*/
/* width: 100%;
height: 100%; */
/* width: 100%; --------*/
/* height: 100%; */
/* height: auto; ----------*/
/* object-fit: contain;  --------*/     /* Mostra a foto inteira sem cortar */ */
/* border-radius: 6px; --------*/  /* Acompanha o formato do container */ */
/* border: 2px solid var(--amarelo-sol); --------*/
/* } --------*/

.participante-foto-wrapper-modal {
margin: 0 auto 15px;
border: 2px solid var(--amarelo-sol);  /* A borda vem para a DIV pai */
border-radius: 8px;                    /* O arredondamento vem para a DIV pai */
overflow: hidden;                      /* ESSENCIA: Funciona como uma fôrma cortando tudo o que passar do limite */
display: flex;                         /* Garante que o container se ajuste perfeitamente */

/* Dica de ouro: Defina um tamanho fixo aqui para padronizar todas as fotos do modal */
width: 160px;
height: 200px;
}

.participante-foto-wrapper-modal img {
width: 100%;
height: 100%;
object-fit: cover;                     /* Preenche o retângulo todo cortando as sobras sem distorcer */
display: block;                        /* Mata o espaço fantasma que os navegadores criam sob a imagem */
border: 2px solid var(--amarelo-sol);  /* A borda vem para a DIV pai */
}

/* Coluna da Direita (Branca, COM SCROLL) */
.participante-col-dir {
flex: 1;                   /* Ocupa todo o espaço restante (65%) */
background-color: #ffffff;
padding: 30px 40px;
position: relative;        /* Necessário para posicionar o botão Fechar */
overflow-y: auto;          /* A MÁGICA AQUI: Ativa o scroll apenas nesta coluna */
}

/* Estilizando o Scroll da Direita */
.participante-col-dir::-webkit-scrollbar { width: 8px; }
.participante-col-dir::-webkit-scrollbar-track { background: #f1f1f1; }
.participante-col-dir::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* Botão Fechar */
.participante-col-dir .fechar-btn {
position: absolute;
top: 15px;
right: 20px;
font-size: 24px;
cursor: pointer;
color: #666;
font-weight: bold;
}
.participante-col-dir .fechar-btn:hover { color: #d32f2f; }

/* Textos da Direita */
.participante-col-dir h4 {
margin: 0 0 20px 0;
color: #333;
font-size: 1.15em;
padding-right: 20px;       /* Evita que o texto encoste no botão X */
}

.participante-bio p {
color: #555;
line-height: 1.6;
margin-bottom: 15px;
}

/* --- Ajuste para Celulares --- */
@media (max-width: 650px) {
.modal-participante {
  flex-direction: column; /* Empilha as colunas uma sobre a outra */
  /* height: 85vh;           */
  height: 95vh;           /* Aumenta a altura no celular */
}
/* .participante-col-esq {
  width: 100%;
  padding: 20px;
} */

.participante-col-esq {
  width: 100%;
  height: 50%;
  padding: 20px;
}
}

/* ==================================
Terceira pare
================================== */


/* Estilo dos Filtros (Adapte as cores para combinar com seu site) */
.filtros-agenda { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.btn-filtro { padding: 8px 16px; border: 1px solid #ccc; background-color: #f9f9f9; cursor: pointer; border-radius: 4px; font-weight: bold; transition: 0.3s; }
.btn-filtro.ativo, .btn-filtro:hover { background-color: #333; color: #fff; }

/* Link que abre o modal */
.link-participante { color: #d35400; text-decoration: underline; cursor: pointer; font-weight: bold; }
.link-participante:hover { color: #e67e22; }

/* Estilo do Modal (Isolado para não quebrar seu layout) */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 9999; justify-content: center; align-items: center; }
.modal-content { background: #fff; padding: 25px; border-radius: 8px; max-width: 500px; width: 90%; position: relative; color: #333; }
.fechar-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #555; font-weight: bold; }
.fechar-modal:hover { color: red; }

/* ==================================
Quarta parte
================================== */



/* ================= ESTILOS BÁSICOS E CORES ================= */
:root {
    /* --cor-primaria: #8B4513; *//* Marrom escuro */
    /* --cor-primaria: #007A7C; */
    --cor-primaria: #B33927;
    /* --cor-secundaria: #DAA520; */ /* Dourado */
    /* --cor-secundaria: #277A4D;  */
    /* --cor-secundaria: #B33927;  */
    /* --cor-secundaria: #007A7C; */
    --cor-secundaria: #ECA400;
    --cor-fundo: #FDF5E6;
    --cor-texto: #333;
    --cor-borda: #e0e0e0;
    --vermelho-terra: #B33927;
    --azul-teal: #007A7C;
    --amarelo-sol: #ECA400;
    --verde-vida: #277A4D;
    --branco: #FFFFFF;
    --texto: #333333;
    --bg-claro: #F8F9FA;
    --texto-escuro: #333333;
    --texto-claro: #FFFFFF;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    margin: 0;
    padding: 0;
    line-height: 1.6;
} */

/* h2 { color: var(--cor-primaria); text-align: center; margin-bottom: 30px; }

section { max-width: 1000px; margin: 40px auto; padding: 0 20px; } */

/* ================= MENU ================= */
/* nav { background-color: var(--cor-primaria); padding: 15px 20px; }
.nav-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; justify-content: center;}
.nav-links li a { color: white; text-decoration: none; font-weight: bold; } */

/* ================= MODAL ================= */

#programacao { max-width: 1000px; margin: 40px auto; padding: 0 20px; }

h2 { color: var(--cor-primaria); text-align: center; margin-bottom: 30px; }

.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); z-index: 1000; justify-content: center; align-items: center;
}
.modal-content {
    background: white; padding: 30px; border-radius: 10px; max-width: 500px; width: 90%; position: relative;
}
.fechar-modal {
    position: absolute; top: 10px; right: 15px; font-size: 24px; font-weight: bold; cursor: pointer; color: #aaa;
}
.fechar-modal:hover { color: red; }
.link-participante { color: var(--cor-primaria); text-decoration: underline; cursor: pointer; font-weight: bold; }
.link-participante:hover { color: var(--cor-secundaria); }

.link-participante-dia3 {
    color: #007A7C;
}

/* ================= ABAS (DIAS) ================= */
.abas { display: flex; gap: 5px; margin-bottom: 30px; border-bottom: 2px solid var(--cor-borda); }
.tab-btn {
    padding: 12px 25px; border: none; background-color: #eee; cursor: pointer;
    font-weight: bold; border-radius: 8px 8px 0 0; font-size: 1em; color: #555;
}
.tab-btn.active { background-color: var(--cor-primaria); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s; }

.tab-btn3.active {
    background: var(--azul-teal);
    color: var(--texto-claro);
}

/* ================= NOVO ESTILO: FILTROS (CENTRALIZADOS E ARREDONDADOS) ================= */
.filtros-agenda {
    display: flex; gap: 12px; margin-bottom: 30px; justify-content: center; flex-wrap: wrap;
}
.btn-filtro {
    padding: 8px 20px; border: 2px solid var(--cor-secundaria); background-color: transparent;
    color: var(--cor-texto); font-weight: bold; border-radius: 50px; cursor: pointer; transition: 0.3s;
}
.btn-filtro.ativo, .btn-filtro:hover { background-color: var(--cor-secundaria); color: white; }

/* ================= NOVO ESTILO: CARTÕES DA PROGRAMAÇÃO ================= */
.agenda-item {
    display: flex; background: white; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px; overflow: hidden; transition: transform 0.2s;
    position: relative;    /* Isso "prende" o botão absoluto dentro dos limites deste card */
    padding-bottom: 60px;  /* Cria um espaço vazio no final para o texto não encostar no botão */
}
.agenda-item:hover { transform: translateY(-3px); }

.agenda-time-col {
    background-color: var(--cor-primaria); color: white; min-width: 130px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 15px; font-weight: bold; font-size: 1.1em; text-align: center;
}

.agenda-time-col-dia3 {
    background-color: #007A7C;
}

.agenda-details { padding: 20px; flex: 1; }
.agenda-details h3 { margin: 0 0 10px 0; color: var(--cor-primaria); font-size: 1.3em; }
.agenda-details p { margin: 6px 0; font-size: 0.95em; color: #444; }

.agenda-details-dia3 h3 {
    color: #007A7C;
}

/* Etiqueta para o Tipo de Atividade */
.badge-tipo {
    display: inline-block; padding: 4px 10px; background-color: #f0f0f0; border-radius: 4px;
    font-size: 0.8em; font-weight: bold; text-transform: uppercase; color: #666; margin-bottom: 12px;
}

/* 2. CRIE ESTA NOVA CLASSE PARA O BOTÃO */
.btn-ver-mais {
    position: absolute;    /* Permite mover o botão livremente dentro do card */
    bottom: 15px;          /* Distância da borda de baixo */
    right: 20px;           /* Distância da borda da direita */

    /* Estilização visual (ajuste as cores como preferir) */
    /* background-color: var(--amarelo-sol, #DAA520); */
    background-color: var(--cor-primaria, #B33927);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-ver-mais3 {
    background-color: var(--azul-teal, #007A7C);
}

/* Efeito ao passar o mouse */
.btn-ver-mais:hover {
    opacity: 0.8;
}

/* Responsividade para telas menores */
@media (max-width: 600px) {
    .agenda-item { flex-direction: column; }
    .agenda-time-col { min-width: auto; padding: 10px; flex-direction: row; gap: 10px; }
}

/* ================= PARCEIROS E RODAPÉ ================= */
/* .slider { overflow: hidden; background: white; padding: 20px; margin-top: 50px; border-top: 1px solid var(--cor-borda); }
.slider-track { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; justify-content: center;}
.slide img { max-height: 60px; object-fit: contain; }
footer { text-align: center; padding: 20px; background: var(--cor-primaria); color: white; margin-top: 40px; } */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* ============================
Quarta parte
============================ */


/* O overlay escuro de fundo */
.modal-card-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

/* O container principal do Modal (copiando o .agenda-item) */
.modal-card-container {
    display: flex;
    background: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 85vh; /* Limita a altura a 85% da tela */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden; /* Mantém as bordas arredondadas intactas */
    animation: abrirCard 0.3s ease-out;
}

/* Botão fechar (absoluto em relação ao lado direito) */
.modal-card-fechar {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10;
}
.modal-card-fechar:hover { color: #d32f2f; }

/* Coluna do Horário (Esquerda) */
.modal-card-time {
    background-color: var(--cor-primaria, #8B4513);
    color: white;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-weight: bold;
    font-size: 1.3em;
    text-align: center;
}
.modal-time-sub {
    font-size: 0.7em;
    font-weight: normal;
    margin-top: 5px;
}

/* Coluna do Conteúdo (Direita) - Aqui fica o Scroll */
.modal-card-content {
    padding: 30px;
    flex: 1;
    overflow-y: auto; /* Ativa o scroll interno apenas nesta área */
}

/* Estilizando a barra de rolagem para ficar elegante */
.modal-card-content::-webkit-scrollbar { width: 8px; }
.modal-card-content::-webkit-scrollbar-track { background: #f1f1f1; }
.modal-card-content::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.modal-card-content::-webkit-scrollbar-thumb:hover { background: var(--cor-secundaria, #DAA520); }

/* Textos do cabeçalho do conteúdo */
#modal-titulo { margin: 10px 0; color: var(--cor-primaria, #8B4513); font-size: 1.4em; padding-right: 20px; }
.modal-local { margin: 0; color: #555; font-size: 0.95em; }
.modal-divisor { border: 0; border-top: 1px solid #eee; margin: 20px 0; }

.modal-participante {
      max-height: 80vh;   /* Limita a altura a 80% da altura da tela do usuário */
      overflow-y: auto;   /* Ativa a rolagem vertical automaticamente se o conteúdo passar do limite */
  }

/* Layout da Lista de Participantes */
.modal-participante-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}
.modal-participante-item:last-child { margin-bottom: 0; }

/* Descrição da Atividade (NOVO) */
.modal-descricao-atividade { margin-top: 15px; color: #444; font-size: 0.95em; line-height: 1.6; }
.modal-descricao-atividade p { margin: 0 0 10px 0; text-align: justify; }
.modal-descricao-atividade p:last-child { margin-bottom: 0; }

/* Foto Miniatura */
.modal-thumb {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 2px solid var(--cor-secundaria, #DAA520); */
    border: 2px solid var(--verde-vida, #277A4D);
    flex-shrink: 0; /* Impede que a foto amasse se o texto for grande */
    background-color: #f9f9f9;
}

/* Textos do Participante */
.modal-participante-info h4 { margin: 0 0 2px 0; color: #333; font-size: 1.1em; }
.modal-papel { display: inline-block; font-size: 0.85em; color: var(--verde-vida, #277A4D); font-weight: bold; margin-bottom: 8px; }
.modal-desc { margin: 0; font-size: 0.9em; color: #666; line-height: 1.5; }

@keyframes abrirCard {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsividade */
@media (max-width: 600px) {
    .modal-card-container { flex-direction: column; }
    .modal-card-time { min-width: auto; padding: 10px; flex-direction: row; gap: 10px; }
    .modal-time-sub { margin-top: 0; margin-left: 5px; }
}

/* ////////////////// */
/* parte cinco */
/* //////////////////// */



/* 1. Ajuste na coluna da direita para permitir que o filho ocupe toda a altura livre */
.participante-col-dir {
    display: flex;
    flex-direction: column;
    /* Mantém os estilos que você já tinha de padding, overflow-y: auto, etc. */
}

/* 2. O segredo da centralização total (Vertical e Horizontal) */
.participante-bio {
    /* flex: 1;       */         /* Força a div da biografia a ocupar 100% da altura disponível da coluna */
    /* flex: 1; */
    display: flex;
    flex-direction: column; /* Alinha os parágrafos um abaixo do outro */
    justify-content: center; /* CENTRALIZAÇÃO VERTICAL */
    /* align-items: center;    */  /* CENTRALIZAÇÃO HORIZONTAL */
    text-align: left;      /* Garante que o texto de dentro das tags <p> também fique centralizado */
    width: 100%;             /* Garante que ocupe toda a largura disponível */
}

/* 3. Ajuste opcional para as tags <p> dentro da biografia */
.participante-bio p {
    margin-bottom: 10px;    /* Espaçamento entre as linhas/parágrafos */
    max-width: 90%;         /* Evita que o texto encoste totalmente nas bordas laterais */
    /* text-align: left; */
}


.geral .agenda-time-col, .geral .btn-ver-mais {
    background-color: #277A4D;
}

.geral .agenda-details h3, .geral .agenda-details .link-participante {
    color: #277A4D;
}


.participante-col-esq {
    display: flex;
    flex-direction: column;
    align-items: center;        /* Centraliza na horizontal (Eixo X) */
    justify-content: center;    /* MÁGICA: Centraliza tudo na vertical (Eixo Y) */

    /* height: 100%;    */           /* Garante que a coluna use toda a altura do modal */
    padding: 30px 20px;         /* Mantém o espaçamento interno */
    box-sizing: border-box;
}

/* Remova margens exageradas do h3 para não desalinhar o centro */
.participante-col-esq h3 {
    margin: 0 0 20px 0;
}


/* ==================================== */

/* Para voltar como estava antes delete depois disso e volta o flex: 1 no #participante-bio, alem de tirar os part-cargo do html e js */



/* 1. Garanta que a coluna da direita esteja assim */
.participante-col-dir {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    /* padding: 40px 30px; /* Um bom padding para dar respiro */ */
    box-sizing: border-box;
    position: relative;
}

/* 2. Atualize o seu #part-cargo com esse truque de margem */
.participante-col-dir h4#part-cargo {
    align-self: center;
    text-align: center;

    /* O SEGREDO AQUI: */
    margin-top: auto;     /* Empurra o cargo (e o texto junto) para o centro vertical */
    margin-bottom: 40px;  /* Espaçamento fixo e pertinho do texto da bio */

    /* Seus estilos visuais da pílula (mantenha como preferir) */
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: #444;
    background-color: #f0f0f0;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    max-width: 90%;
    /* visibility: hidden;
    position: absolute; */
}

/* 3. Ajuste a sua div de biografia */
.participante-bio {
    /* ATENÇÃO: Se tiver "flex: 1" aqui, REMOVA! */
    /* flex: 1; */
    /* margin-bottom: auto;  /* Faz par com o margin-top do cargo para fechar a simetria do centro */ */
    /* margin-bottom: inherit;  /* Faz par com o margin-top do cargo para fechar a simetria do centro */ */

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    width: 100%;
}

/* .participante-bio p {
    margin-bottom: 10px;
    max-width: 90%;
} */


/* Regras para telas deitadas (landscape) ou com pouca altura (ex: celulares em modo horizontal) */
@media screen and (max-height: 500px) and (orientation: landscape) {

    /* 1. Diminui o tamanho do nome do participante */
    .participante-col-esq h3#part-nome {
        font-size: 1.2rem; /* Reduza esse valor conforme necessário (ex: 1rem, 16px) */
        margin-bottom: 10px; /* Reduz o espaço entre o nome e a foto */
        line-height: 1.2;    /* Evita que nomes com múltiplas linhas ocupem muito espaço vertical */
    }

    /* 2. Reduz o espaçamento interno (padding) da coluna da esquerda para dar mais espaço à foto */
    .participante-col-esq {
        padding: 15px 10px; /* Reduz o padding superior/inferior e lateral */
    }

    /* 3. Garante que o wrapper da foto ocupe o espaço restante e a foto não se esprema absurdamente */
    .participante-foto-wrapper-modal {
        flex: 1; /* Faz o wrapper ocupar todo o espaço vertical disponível após o nome */
        display: flex;
        align-items: center; /* Centraliza a foto verticalmente dentro do espaço restante */
        justify-content: center;
        min-height: 120px; /* Garante um tamanho mínimo aceitável para a foto não virar um pontinho */
    }

    /* 4. Opcional: Garante que a imagem dentro do wrapper se ajuste mantendo a proporção */
    .participante-foto-wrapper-modal img#part-foto {
        max-height: 100%;
        max-width: 100%;
        object-fit: cover; /* Ou 'contain', dependendo de como você quer que a foto se comporte */
    }
}

#instagramParticipante, #linkedinParticipante {
  text-decoration: none;
  color: var(--azul-teal);
}

#instagramParticipante:hover, #linkedinParticipante:hover {
  opacity: 0.8;
}


.sociais {
  margin: 0 auto;
  margin-top: 2rem;
}


.participante-col-dir {
    padding-top: 4rem;
}

.btn-inscricao {
  margin: 0 auto;
}


/* Container que esconde os cards extras */
.participantes-container {
    /* AJUSTE ESTE VALOR: Coloque a altura necessária para mostrar apenas a 1ª ou 2ª linha de cards */
    max-height: 600px;

    overflow: hidden; /* Esconde tudo que passar dos 600px */
    transition: max-height 0.6s ease-in-out; /* Faz a animação de esticar/encolher durar 0.6 segundos */
}

/* Centralizando o botão abaixo da seção */
.btn-participantes-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Opcional: Se você quiser dar um efeito de "fumaça" (fade) na parte de baixo quando estiver encolhido */
.participantes-container:not(.expandido) {
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* Estilo do Botão Ver Mais / Ver Menos */
.btn-ver-mais-participantes {
    background-color: #007B7F;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 32px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Efeito ao passar o mouse */
.btn-ver-mais-participantes:hover {
    background-color: #005A5D; /* Fica um pouco mais escuro */
    transform: translateY(-2px); /* Dá um leve "pulo" pra cima */
}
