/* Configurações Gerais */
body {
    background-color: #f4f7f9; /* Fundo suave para não cansar a vista */
    color: #2c3e50;
    font-family: "Times New Roman", Times, serif;
    font-size: 12pt;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* Cabeçalho Elegante */
header {
    background-color: #1a2a3a; /* Azul Oxford Profissional */
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header h1 {
    margin: 0;
    font-size: 28pt;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navegação */
nav {
    margin-top: 20px;
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 14pt;
    transition: 0.3s;
}

nav a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Área Principal (Papel A4 Digital) */
main {
    max-width: 900px;
    margin: 30px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Títulos das Seções */
h2 {
    color: #1a2a3a;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-top: 40px;
    text-transform: uppercase;
}

h3 {
    color: #2980b9;
    margin-bottom: 5px;
}

/* Estilização das Tabelas (Sua Formação e Dados) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th {
    text-align: left;
    width: 30%;
    vertical-align: top;
    padding: 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    color: #1a2a3a;
}

td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

/* Estilo para Listas dentro das tabelas */
p {
    margin: 5px 0;
}

/* Formulário de Contacto */
form {
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Garante que o padding não quebre o layout */
}

button {
    background-color: #246e43; /* Verde para ação de enviar */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12pt;
    font-weight: bold;
    margin-top: 20px;
}

button:hover {
    background-color: #246e43
}

/* Rodapé */
footer {
    background-color: #1a2a3a;
    color: #bdc3c7;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

footer i {
    color: #ffffff;
}
