/* ==========================================================================
   DESIGN SYSTEM - LBM VIAGENS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --azul-lbm: #2b509a;
    --verde-lbm: #5cb85c;
    --azul-escuro: #0f172a;
    --fundo-site: #f8fafc;
    --texto-principal: #334155;
    --texto-secundario: #64748b;
    --borda: #e2e8f0;
    --sombra-card: 0 4px 15px rgba(0, 0, 0, 0.04);
    --sombra-hover: 0 12px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    margin: 0;
    background-color: var(--fundo-site);
    color: var(--texto-principal);
    -webkit-font-smoothing: antialiased;
    padding-top: 85px; /* Espaço para o header fixo */
}

a { color: inherit; text-decoration: none; }

/* ==========================================================================
   CABEÇALHO E NAVEGAÇÃO
   ========================================================================== */
header {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: fixed; top: 0; width: 100%; z-index: 1000;
}

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
}

.logo-img { height: 55px; width: auto; }

nav, .nav-links { display: flex; align-items: center; gap: 30px; }

.nav-links a.link-simples {
    color: var(--texto-principal); font-weight: 600; font-size: 15px; 
    transition: color 0.3s; padding: 10px 0;
}

.nav-links a.link-simples:hover, .nav-links a.link-simples.ativo { color: var(--azul-lbm); }

/* DROPDOWN MENU */
.dropdown { position: relative; display: inline-block; }
.dropbtn { 
    display: flex; align-items: center; gap: 4px; color: var(--texto-principal); 
    font-weight: 600; font-size: 15px; cursor: pointer; padding: 10px 0;
}
.dropdown:hover .dropbtn { color: var(--azul-lbm); }
.seta-baixo { font-size: 10px; transition: transform 0.3s; }
.dropdown:hover .seta-baixo { transform: rotate(180deg); }

.dropdown-content {
    display: none; position: absolute; background-color: #ffffff;
    min-width: 260px; box-shadow: var(--sombra-hover);
    border-radius: 8px; padding: 10px 0; z-index: 1; top: 100%; left: 0;
    border: 1px solid var(--borda);
}
.dropdown-content a {
    color: var(--texto-principal); padding: 12px 20px; display: block; 
    font-weight: 500; font-size: 14px; transition: all 0.2s;
}
.dropdown-content a:hover {
    background-color: var(--fundo-site); color: var(--verde-lbm); padding-left: 25px;
}
.dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.2s ease-in-out; }

/* ==========================================================================
   BOTÕES E COMPONENTES
   ========================================================================== */
.btn-contato {
    background-color: var(--verde-lbm); color: #ffffff !important;
    padding: 12px 24px; border-radius: 8px; font-weight: 600;
    transition: all 0.3s; display: inline-block; text-align: center;
}
.btn-contato:hover { background-color: #4cae4c; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(92, 184, 92, 0.3); }

.btn-grande {
    background-color: var(--azul-lbm); color: #ffffff; padding: 18px 40px;
    font-size: 18px; font-weight: 700; border-radius: 8px; transition: all 0.3s; display: inline-block;
}
.btn-grande:hover { background-color: #1e3a75; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(43, 80, 154, 0.3); }

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero-interna {
    background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-lbm) 100%);
    padding: 80px 20px; text-align: center; color: #ffffff; margin-bottom: 50px;
}
.hero-interna h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin: 0 0 10px 0; letter-spacing: -0.5px; }
.hero-interna p { font-size: 18px; color: #e2e8f0; margin: 0 auto; max-width: 600px; font-weight: 300; }

/* ==========================================================================
   LAYOUTS E GRIDS DE CONTEÚDO (PADRÃO CORPORATIVO)
   ========================================================================== */
.pagina-conteudo {
    max-width: 1000px; margin: 0 auto 80px auto; padding: 0 20px;
}

.texto-destaque { font-size: 18px; line-height: 1.8; color: var(--texto-secundario); margin-bottom: 40px; text-align: center; }

.grid-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 50px;
}

.card-institucional {
    background: #ffffff; padding: 40px 30px; border-radius: 12px;
    border: 1px solid var(--borda); box-shadow: var(--sombra-card);
    transition: all 0.3s;
}
.card-institucional:hover { transform: translateY(-5px); box-shadow: var(--sombra-hover); border-color: var(--verde-lbm); }
.card-institucional h2 { color: var(--azul-escuro); font-size: 22px; margin-top: 0; margin-bottom: 15px; }
.card-institucional p { color: var(--texto-secundario); line-height: 1.7; margin: 0; }

/* ==========================================================================
   AGENDA DE EVENTOS (MAIS COMPACTO E ELEGANTE)
   ========================================================================== */
.agenda-ano { font-size: 24px; font-weight: 700; color: var(--azul-escuro); margin: 40px 0 15px 0; padding-bottom: 10px; border-bottom: 2px solid var(--borda); }

.evento-card { display: flex; background: #ffffff; border-radius: 8px; border: 1px solid var(--borda); box-shadow: var(--sombra-card); margin-bottom: 12px; overflow: hidden; transition: all 0.2s; align-items: stretch; }
.evento-card:hover { transform: translateY(-2px); box-shadow: var(--sombra-hover); border-left: 4px solid var(--verde-lbm); }

.evento-data { background-color: var(--fundo-site); padding: 12px 15px; min-width: 100px; text-align: center; border-right: 1px solid var(--borda); display: flex; flex-direction: column; justify-content: center; }
.evento-data .dia { font-size: 20px; font-weight: 800; color: var(--azul-lbm); line-height: 1; }
.evento-data .mes { font-size: 11px; font-weight: 700; color: var(--texto-secundario); text-transform: uppercase; margin-top: 4px; letter-spacing: 0.5px; }

.evento-info { padding: 15px 20px; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.evento-header-info { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 5px; }
.evento-header-info h3 { margin: 0; font-size: 15px; color: var(--azul-escuro); font-weight: 700; }
.evento-info p { margin: 0; color: var(--texto-secundario); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.evento-info svg { color: var(--verde-lbm); flex-shrink: 0; width: 16px; height: 16px; }

.badge-status { padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.status-abertas { background-color: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.status-fechado { background-color: #fef9c3; color: #ea580c; border: 1px solid #fef08a; }
.status-encerrado { background-color: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

@media (max-width: 900px) {
    .evento-card { flex-direction: column; }
    .evento-data { border-right: none; border-bottom: 1px solid var(--borda); padding: 10px; flex-direction: row; gap: 10px; align-items: baseline; }
    .evento-header-info { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ==========================================================================
   CTA (CHAMADA PARA AÇÃO) & RODAPÉ
   ========================================================================== */
.cta-secao {
    text-align: center; padding: 80px 20px; background-color: #ffffff;
    border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda);
}
.cta-secao h2 { font-size: 32px; color: var(--azul-escuro); margin: 0 0 15px 0; }
.cta-secao p { font-size: 18px; color: var(--texto-secundario); margin: 0 auto 30px auto; max-width: 600px; }

footer {
    background-color: var(--azul-escuro); color: #94a3b8; text-align: center; padding: 40px 20px; font-size: 14px;
}
footer a { color: #e2e8f0; transition: color 0.3s; }
footer a:hover { color: var(--verde-lbm); }

/* ==========================================================================
   RESPONSIVIDADE (MOBILE)
   ========================================================================== */
.menu-toggle { display: none; background: none; border: 1px solid var(--borda); border-radius: 6px; padding: 8px 12px; font-size: 14px; cursor: pointer; }
@media (max-width: 900px) {
    .nav-links {
        position: absolute; top: 70px; right: 20px; background: #ffffff; flex-direction: column;
        align-items: flex-start; padding: 20px; border-radius: 12px; box-shadow: var(--sombra-hover);
        min-width: 260px; display: none; gap: 15px;
    }
    .nav-links.is-open { display: flex; }
    .menu-toggle { display: inline-block; }
    .dropdown-content { position: static; box-shadow: none; border: none; min-width: 100%; padding-left: 15px; }
    .evento-card { flex-direction: column; }
    .evento-data { border-right: none; border-bottom: 1px solid var(--borda); padding: 15px; flex-direction: row; gap: 10px; align-items: baseline; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }


/* ==========================================================================
   MENU DE ABAS (FILTRO DE ANOS EM EVENTOS)
   ========================================================================== */
.filtro-anos {
    display: flex; justify-content: center; gap: 10px; margin: -20px auto 50px auto;
    flex-wrap: wrap; max-width: 900px;
}
.aba-ano {
    padding: 10px 24px; background-color: #ffffff; border: 1px solid var(--borda);
    border-radius: 30px; color: var(--texto-secundario); font-weight: 600;
    font-size: 15px; cursor: pointer; transition: all 0.3s;
}
.aba-ano:hover { border-color: var(--azul-lbm); color: var(--azul-lbm); }
.aba-ano.ativa {
    background-color: var(--azul-lbm); color: #ffffff; border-color: var(--azul-lbm);
    box-shadow: 0 4px 10px rgba(43, 80, 154, 0.2);
}

/* Dropdown para anos mais antigos */
/* Dropdown para anos mais antigos (CORRIGIDO) */
.dropdown-anos { position: relative; display: inline-block; z-index: 999; }

.dropdown-anos-content {
    display: none; position: absolute; background-color: #ffffff;
    min-width: 180px; box-shadow: var(--sombra-hover); border-radius: 8px;
    padding: 10px 0; z-index: 9999; /* Garante que fique por cima de TUDO */
    top: 100%; left: 50%; transform: translateX(-50%);
    margin-top: 8px; border: 1px solid var(--borda); text-align: center;
}

.dropdown-anos-content::before {
    content: ''; position: absolute; top: -15px; left: 0; width: 100%; height: 15px; background: transparent;
}

.aba-ano-drop {
    display: block; width: 100%; border: none; background: none;
    color: var(--texto-principal); padding: 12px 20px; font-weight: 500;
    font-size: 14px; cursor: pointer; transition: background 0.2s;
}
.aba-ano-drop:hover { background-color: var(--fundo-site); color: var(--azul-lbm); }
.dropdown-anos:hover .dropdown-anos-content { display: block; animation: fadeIn 0.2s; }

/* Ocultar blocos de anos inativos */
.bloco-ano { display: none; animation: fadeIn 0.4s ease-in-out; }
.bloco-ano.ativo { display: block; }

/* ==========================================================================
   STATUS DOS EVENTOS (BADGES)
   ========================================================================== */
.evento-header-info {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 10px;
}

.evento-header-info h3 { margin: 0; font-size: 18px; color: var(--azul-escuro); font-weight: 700; }

.badge-status {
    padding: 6px 14px; border-radius: 30px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}

.status-abertas { background-color: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.status-fechado { background-color: #fef9c3; color: #ea580c; border: 1px solid #fef08a; }
.status-encerrado { background-color: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

/* Ajuste no mobile para o badge não quebrar o layout */
@media (max-width: 900px) {
    .evento-header-info { flex-direction: column; }
}

/* SEÇÃO DE CALENDÁRIO DE EVENTOS */
.secao-calendario {
    max-width: 1000px;
    margin: 60px auto 80px auto;
    padding: 0 20px;
}

.ano-calendario {
    font-size: 42px;
    font-weight: 300;
    text-align: center;
    color: var(--texto-secundario);
    margin-bottom: 30px;
}

.tabela-container {
    overflow-x: auto;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.tabela-eventos {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.tabela-eventos th {
    background-color: #1e293b; /* Azul bem escuro da imagem */
    color: #ffffff;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
}

.tabela-eventos td {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--texto-principal);
    font-size: 14px;
}

/* Linhas zebradas suaves */
.tabela-eventos tr:nth-child(even) {
    background-color: #f8fafc;
}

.tabela-eventos tr:hover {
    background-color: #f1f5f9;
}

/* Estilo para eventos com link (ex: SUESC e CONVENÇÃO TÉCNICA) */
.tabela-eventos a {
    color: #2563eb; 
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.tabela-eventos a:hover,
.tabela-eventos a:focus-visible {
    text-decoration: underline;
    color: var(--azul-lbm);
    outline: none;
}