/* =========================================
   1. RESET E ESTILOS GERAIS
   ========================================= */
   * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Fonte mais moderna */
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Fundo levemente cinza para contraste */
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px; /* Limita a largura em telas grandes */
    margin: 0 auto;
}

/* Títulos */
h1, h2 {
    color: #004c99; /* Azul Cebraspe */
    margin-bottom: 15px;
}

h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-top: 20px;
}

h2 {
    font-size: 1.5rem;
}

/* Separador Amarelo */
.separator {
    width: 60px;
    height: 4px;
    background-color: #f1c40f;
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* =========================================
   2. HEADER (CABEÇALHO)
   ========================================= */
.main-header {
    background-color: #004c99;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite quebrar linha se necessário */
}

.logo img {
    height: 45px;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.current {
    color: #fff;
    border-bottom: 2px solid #f1c40f;
}

.acompanhamento-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.acompanhamento-btn:hover {
    background: #f1c40f;
    color: #004c99;
    border-color: #f1c40f;
}

.acompanhamento-btn i {
    margin-right: 5px;
}

/* =========================================
   3. CONTEÚDO PRINCIPAL
   ========================================= */
.main-content {
    flex-grow: 1;
    padding: 40px 0;
}

/* --- SECTION INFO (CORRIGIDA) --- */
.section-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.stats-list {
    list-style: none;
    display: flex; /* Flexbox para alinhar lado a lado */
    justify-content: space-between; /* Espalha os itens */
    gap: 20px; /* Espaço entre os itens */
    text-align: center;
}

.stat-item {
    flex: 1; /* Faz todos terem o mesmo tamanho */
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    min-width: 200px; /* Evita que fique muito pequeno */
}

.icon-large {
    font-size: 2.5rem;
    color: #004c99;
    margin-bottom: 15px;
}

.stat-item h2 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: normal;
}

.stat-item p {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

/* --- SECTION CTA (BOTÃO INSCREVA-SE) --- */
.section-cta {
    margin-bottom: 50px;
}

.cta-card {
    /* O Gradiente Azul que estava faltando */
    background: linear-gradient(135deg, #004c99 0%, #002a55 100%);
    color: white;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 76, 153, 0.3);
    gap: 30px;
}

.cta-text {
    flex: 2;
}

.cta-text h2 {
    color: #f1c40f; /* Título Amarelo */
    text-align: left;
    margin-top: 0;
    font-size: 1.8rem;
}

.cta-text p {
    color: #e0e0e0;
    font-size: 1.1rem;
}

.cta-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 280px; /* Garante tamanho para o botão */
}

/* Botão Verde */
.btn-inscreva-se {
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 18px 35px;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s, background-color 0.2s;
    width: 100%;
    text-align: center;
    display: block;
}

.btn-inscreva-se:hover {
    background-color: #219150;
    transform: scale(1.05); /* Efeito de crescer levemente */
}

.btn-inscreva-se i {
    margin-left: 10px;
}

.cta-subtext {
    margin-top: 10px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* --- SECTION CARGOS E EDITAIS --- */
.section-cargos, .section-editais {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.cargos-list {
    list-style: none;
    display: grid;
    /* Cria colunas automáticas. Mínimo 300px, máximo 1 fração */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.cargos-list li {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #004c99;
    border-radius: 4px;
    font-size: 0.9rem;
}

.editais-list {
    list-style: none;
}

.edital-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.edital-item:last-child {
    border-bottom: none;
}

.edital-item a {
    color: #004c99;
    text-decoration: none;
    font-weight: bold;
}

.edital-item a:hover {
    text-decoration: underline;
}

.edital-date {
    background: #eee;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
    margin-right: 15px;
}

/* =========================================
   4. RODAPÉ
   ========================================= */
.main-footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.main-footer a {
    color: white;
    font-size: 1.5rem;
}

/* =========================================
   5. RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Section Info - Correção do "espremido" */
    .section-info {
        padding: 20px;
    }

    .stats-list {
        flex-direction: column; /* Empilha um embaixo do outro */
        gap: 15px;
    }

    .stat-item {
        width: 100%; /* Ocupa a largura total */
        border-bottom: 2px solid #eee; /* Linha divisória */
        border-right: none;
        border-left: none;
        border-top: none;
    }

    /* Section CTA */
    .cta-card {
        flex-direction: column; /* Texto em cima, botão embaixo */
        text-align: center;
        padding: 25px;
    }

    .cta-text h2 {
        text-align: center;
        font-size: 1.5rem;
    }

    .cta-action {
        width: 100%;
    }

    /* Editais */
    .edital-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}