/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

/* --- CABEÇALHO --- */
.cabecalho {
    background-color: #1a2a6c;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo-titulo {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.brasao {
    height: 70px;
    width: auto;
}

.menu-navegacao ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu-navegacao a {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    padding-bottom: 5px;
}

.menu-navegacao a:hover, .menu-navegacao a.active {
    color: #fff;
    border-bottom: 2px solid #ee0909;
}

/* --- ESTRUTURA PRINCIPAL --- */
.conteudo-principal {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.titulo-principal {
    text-align: center;
    margin-bottom: 40px;
    color: #1a2a6c;
    font-size: 2.2em;
}

/* --- COLUNAS DO INDEX --- */
.grid-trimestres {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.trimestre {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 5px solid #1a2a6c;
}

.trimestre h3 {
    text-align: center;
    color: #1a2a6c;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.lista-turmas {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-turma {
    display: block;
    background-color: #e2e8f0;
    color: #2d3748;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s;
}

.link-turma:hover {
    background-color: #1a2a6c;
    color: white;
    transform: translateY(-2px);
}

/* --- PÁGINA DA TURMA (CARTÕES DE TRABALHO) --- */
.area-trabalhos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.cartao-grupo {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #ee0979;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cartao-grupo h4 {
    color: #1a2a6c;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.cartao-grupo p {
    margin-bottom: 15px;
    color: #555;
}

.links-arquivos {
    display: flex;
    gap: 10px;
}

.btn-arquivo {
    background-color: #edf2f7;
    color: #2b6cb0;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    border: 1px solid #cbd5e0;
    transition: 0.2s;
}

.btn-arquivo:hover {
    background-color: #2b6cb0;
    color: white;
}

/* --- BOTÕES GERAIS --- */
.botoes-rodape {
    text-align: center;
    margin-top: 40px;
}

.btn-voltar {
    display: inline-block;
    background-color: #1a2a6c;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-voltar:hover {
    background-color: #ee0909;
}

/* --- RESPONSIVIDADE (CELULARES) --- */
@media (max-width: 768px) {
    .grid-trimestres {
        grid-template-columns: 1fr;
    }
    .menu-navegacao ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* --- ESTILOS PARA PÁGINAS DE TEXTO (Ementa, Escola, Contato) --- */
.cartao-texto {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    line-height: 1.8;
    font-size: 1.1em;
    border-top: 5px solid #1a2a6c;
}

.cartao-texto h3 {
    color: #03378c;
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: 2px solid #f4f6f9;
    padding-bottom: 10px;
}

.cartao-texto p {
    margin-bottom: 15px;
    color: #4a5568;
    text-align: justify;
}

.cartao-texto ul {
    margin-top: 15px;
    margin-left: 25px;
    color: #4a5568;
}

.cartao-texto li {
    margin-bottom: 8px;
}

.footer { text-align: center; padding: 2rem; font-size: 0.8rem; color: #7f8c8d; }