/* ==========================================================================
   HISTORIA.HTML - Linha do Tempo e Evolução Institucional
   ========================================================================== */

body {
    background-color: #ffffff !important; /* Força o fundo a ser inteiramente branco */
}

/* --- CORREÇÃO: CABEÇALHO DA PÁGINA (Page Header) --- */
.page-header {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 34, 68, 0.95)), url('../img/page-header.jpg') center center no-repeat;
    background-size: cover;
    background-color: #003366; 
    padding: 40px 0 !important; 
    margin-bottom: 30px !important; /* CORREÇÃO: Elimina o grande vão em branco abaixo do topo */
    border-bottom: 4px solid #ffcc00; 
}

/* Texto visível e contrastado no cabeçalho */
.page-header h1, 
.page-header h3 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
}

.page-header a {
    color: rgba(255, 255, 255, 0.75) !important;
    transition: color 0.2s ease;
}

.page-header a:hover {
    color: #ffffff !important;
    text-decoration: none;
}


/* --- TIPOGRAFIA DO CORPO E CORES DOS TÍTULOS --- */
.section-title {
    color: #1e293b !important; /* CORREÇÃO: Cor cinza-grafite moderna nos títulos secundários */
}

.lead-text {
    color: #334155; /* Cor cinza-carvão para leitura longa e confortável */
    line-height: 1.7;
    font-size: 0.98rem;
    margin-bottom: 15px;
}


/* --- ELEMENTOS DE IMAGEM & MINIATURAS --- */
.figure {
    transition: all 0.3s ease;
}

.figure:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}


/* --- BOTÃO FLUTUANTE "VOLTAR AO TOPO" --- */
#backToTop {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #003366 !important;
    border: none;
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: #002244 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   MÓDULO DA LINHA DO TEMPO (Preservado para uso futuro caso queira injetar)
   ========================================================================== */
.timeline-section {
    position: relative;
    padding: 50px 0;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding: 0 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-badge {
    position: absolute;
    top: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #003366;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.2);
    z-index: 2;
}

.timeline-item.left .timeline-badge { right: -10px; }
.timeline-item.right .timeline-badge { left: -10px; }

.timeline-panel {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 10px;
    display: inline-block;
}

@media (max-width: 768px) {
    .timeline-section::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 45px; padding-right: 0; }
    .timeline-item.left { text-align: left; }
    .timeline-item.right { left: 0; }
    .timeline-item.left .timeline-badge,
    .timeline-item.right .timeline-badge { left: 10px; }
}