:root {
    /* Cores extraídas do Projeto de Id Visual */
    --primary-green: #2e7d32;
    --light-green: #4caf50;
    --accent-orange: #ff9800;
    --soil-brown: #5d4037;
    --bg-cream: #f9f9f7;
    --text-dark: #333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);

    --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;
}

/* PROGRAMAÇÃO (Tabs e Melhorias) */
.container_programação h3 { color: var(--azul-teal); }
#programacao {
    scroll-margin-top: 80px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.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(--primary-green);
}

#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 (max-width: 500px) {
    .agenda-item { flex-direction: column; gap: 10px; }
    .agenda-meta { min-width: auto; }
}

.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);
}

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

/* 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; }

/* 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; }

/* ================= 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;
}

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

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

h2 { color: var(--primary-green); text-align: center; }
.p_mais-detalhes { color: var(--primary-green); text-align: center; margin-bottom: 30px; }
.h3-data { color: var(--primary-green); text-align: center; margin-bottom: 30px; font-size: 25px; text-decoration: underline;}

.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; */
}
.agenda-item:hover { transform: translateY(-3px); }

.agenda-time-col {
    /* background-color: var(--cor-primaria); */
    background-color: #277A4D;
    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; margin-bottom: 25px;}

.agenda-details h3 {
    /* margin: 0 0 10px 0; */
    /* color: var(--cor-primaria); */
    color: #277A4D;
    font-size: 1.3em; }
.agenda-details p { margin: 6px 0; font-size: 0.95em; color: #444; }

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

.agenda-details ul{
    list-style-type: decimal;
    padding-left: 20px;
}
/* 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: #277A4D;
    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: #2e7d32;
    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-bottom: 5px; 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; */
    align-items: center;
}
.modal-participante-item:last-child { margin-bottom: 0; }

/* Descrição da Atividade (NOVO) */
.modal-descricao-atividade { 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 */
/* //////////////////// */


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

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


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