/* Configurações Gerais */
:root {
    --cor-texto: #333;
    --cor-menu: #1a365d; /* Azul escuro institucional */
    --cor-menu-hover: #2b6cb0;
    --cor-borda: rgba(221, 221, 221, 0.5); /* Borda mais suave */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    color: var(--cor-texto);
    line-height: 1.6;
}

/* ========================================= */
/* VÍDEO DE FUNDO (Background Video) */
/* ========================================= */
.video-fundo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; 
    object-fit: cover; 
}

/* Container Principal */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Cabeçalho com Logos */
header {
    background-color: rgba(255, 255, 255, 0.90); 
    padding: 20px 0;
    border-bottom: 3px solid var(--cor-menu);
}

.cabecalho-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ajuste para as imagens e para o link na imagem da UFMA */
.cabecalho-flex img,
.cabecalho-flex a img {
    height: 135px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Efeito leve de zoom ao passar o mouse na logo da UFMA */
.cabecalho-flex a:hover img {
    transform: scale(1.05);
}

.titulos-topo {
    text-align: center;
    padding: 0 20px; 
}

/* AMBOS OS TÍTULOS COM O MESMO TAMANHO E COR AQUI */
.titulos-topo h1, 
.titulos-topo h2 {
    font-size: 1.6rem;
    color: #000;
    font-weight: bold;
    margin-bottom: 5px; 
}

/* Menu de Navegação */
nav {
    background-color: rgba(26, 54, 93, 0.95); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

nav ul li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background 0.3s;
}

nav ul li a:hover {
    background-color: var(--cor-menu-hover);
}

/* Área de Conteúdo (Quadro Branco) */
main {
    background-color: rgba(255, 255, 255, 0.85); 
    padding: 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    border: 1px solid var(--cor-borda);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 8px; 
    backdrop-filter: blur(5px); 
}

section {
    margin-bottom: 40px;
}

section:last-child {
    margin-bottom: 0;
}

section h3 {
    color: var(--cor-menu);
    border-bottom: 2px solid var(--cor-borda);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

section ul {
    list-style-type: none;
    padding-left: 0;
}

section ul li {
    margin-bottom: 8px; 
}

section ul li a {
    color: var(--cor-menu);
    text-decoration: none;
    font-weight: bold;
}

section ul li a:hover {
    text-decoration: underline;
    color: var(--cor-menu-hover);
}

/* Botão de Agendamento */
.btn-agendamento {
    display: inline-block;
    background-color: var(--cor-menu);
    color: #fff !important;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s;
}

.btn-agendamento:hover {
    background-color: var(--cor-menu-hover);
    text-decoration: none !important;
}

/* Rodapé */
footer {
    background-color: rgba(34, 34, 34, 0.95); 
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

footer a {
    color: #fff;
    text-decoration: none;
}

/* Ajustes para celular */
@media (max-width: 768px) {
    .cabecalho-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .titulos-topo h1, 
    .titulos-topo h2 {
        font-size: 1.3rem; 
    }
}