/* --- Reset Básico e Fontes --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2, h3, h4 {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #002349; /* Azul escuro corporativo */
}

a {
    color: #0056b3;
    text-decoration: none;
}

/* --- Cabeçalho e Navegação --- */
header {
    background-color: #ffffff;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Lato', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: #002349;
}

.logo-com {
    color: #e67e22; /* Laranja para destaque */
    font-weight: 400;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 700;
    color: #333;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: #e67e22;
}

/* --- Layout Principal --- */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 320px; /* Conteúdo principal e sidebar */
    gap: 30px;
    padding: 30px 20px;
}

.main-content {
    width: 100%;
}

/* --- Secção Hero (Destaque Principal) --- */
.hero {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text {
    padding: 25px;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    background-color: #e67e22;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #d35400;
}

/* --- Grelha de Artigos --- */
.latest-news h3 {
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.articles-grid article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.articles-grid article:hover {
    transform: translateY(-5px);
}

.articles-grid article img {
    width: 100%;
}

.articles-grid article h4 {
    padding: 15px 15px 5px 15px;
    color: #002349;
}

.articles-grid article p {
    padding: 0 15px;
    font-size: 0.9rem;
}

.articles-grid article a {
    display: block;
    padding: 15px;
    font-weight: 700;
    color: #e67e22;
}

/* --- Barra Lateral (Sidebar) --- */
.sidebar .widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.sidebar .widget h4 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.job-listings li, .category-list li {
    list-style: none;
    border-bottom: 1px dashed #eee;
    padding: 10px 0;
}
.job-listings li:last-child, .category-list li:last-child {
    border-bottom: none;
}

.btn-sidebar {
    display: block;
    width: 100%;
    text-align: center;
    background: #002349;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-sidebar:hover {
    background: #003c7a;
}

.ad-placeholder {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #999;
    border-radius: 5px;
}

/* --- Rodapé --- */
footer {
    background-color: #002349;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 30px;
}

footer a {
    color: #e67e22;
}

/* --- Responsividade --- */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr; /* Coluna única em tablets */
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 5px 10px;
    }
    .hero-text h2 {
        font-size: 1.5rem;
    }
}