@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4300370620078652"
     crossorigin="anonymous"></script>

/* Forçar o fundo do topo/cabeçalho a ficar totalmente branco */
header, 
#sp-header, 
.sp-header-wrap, 
.header-section {
    background-color: #ffffff !important;
}

/* Garantir que o texto do lema institucional fique com o tom #800000 correto e visível */
.logo-slogan, 
.site-slogan, 
header .slogan {
    color: #800000 !important;
    font-weight: bold !important;
    background-color: transparent !important;
}

/* 1. Área do Logótipo - Fundo Branco */
header.header {
    background-color: #ffffff !important;
    background-image: none !important;
    padding: 20px 0 !important;
}

/* 2. Barra de Menu - Vermelho em toda a extensão */
.container-nav, 
.navbar,
.container-header .container-nav {
    background-color: #800000 !important; /* Vermelho Bordeaux */
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* --- CENTRALIZAR O MENU --- */
.container-nav, 
.navbar-collapse {
    display: flex !important;
    justify-content: center !important; /* Coloca o menu no meio */
}



/* 3. Letras do Menu - Brancas */
/* --- MUDAR COR: BRANCO PARA PRETO NO HOVER --- */
.navbar-nav .nav-link {
    color: #ffffff !important; /* Cor inicial (Branco) */
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-item.show .nav-link {
    color: #000000 !important; /* Cor ao passar o mouse (Preto) */
    background-color: #FFD700; /* Sugestão: um fundo dourado realça o preto */
    border-radius: 4px;
}

/* --- DROPDOWN AUTOMÁTICO (ABRIR SEM CLICAR) --- */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block !important;
        margin-top: 0; /* Remove o espaço entre o menu e a lista */
        opacity: 1;
        visibility: visible;
        animation: slideUp 0.3s ease;
    }
}

/* Animação suave para o menu a abrir */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* 4. Efeito Hover - Amarelo Dourado ao passar o rato */
.container-nav .mod-menu a:hover, 
.container-nav .nav-link:hover {
    color: #FFD700 !important; /* Amarelo Dourado */
    text-decoration: none;
}

/* 5. Lema (Formar, Investigar e Inovar) - Vermelho */
.site-description, 
.header-data .tagline,
header .mod-custom p {
    color: #800000 !important;
    font-weight: bold;
}

/* 6. Rodapé (Footer) - Forçar cor em todas as camadas */
/* --- RODAPÉ FUNDO BRANCO --- */
.footer-istm, 
.footer, 
footer, 
.footer-copyright {
    background-color: #ffffff !important; /* Fundo Branco */
    color: #333333 !important; /* Letras Cinza Escuro */
    border-top: 1px solid #eeeeee; /* Uma linha muito subtil para separar do corpo */
}

/* Ajustar links e títulos no rodapé para preto/cinza */
.footer-istm h5, 
.footer-istm .footer-title {
    color: #1a1a1a !important; /* Títulos em Preto */
    border-bottom: 2px solid #800000 !important; /* Mantemos o detalhe em Bordeaux na linha */
}

.footer-istm .footer-link, 
.footer-istm p, 
.footer-istm small {
    color: #444444 !important; /* Texto geral do rodapé */
}

.footer-istm .footer-link:hover {
    color: #800000 !important; /* Ao passar o rato, mostra o bordeaux */
}

/* Remover filtros de brilho nos logos para que apareçam com as cores originais no branco */
.footer-istm img {
    filter: none !important;
}
.footer a, 
footer a {
    color: #FFD700 !important; /* Dourado para links no rodapé */
}

/* 7. Efeito Hover Amarelo Dourado no Menu (Reforço) */
.mod-menu a:hover, 
.nav-link:hover,
.navbar-nav a:hover {
    color: #FFD700 !important;
}


/* Garantir que o banner não tenha margens brancas em cima */
.container-banner {
    padding: 0 !important;
    margin: 0 !important;
}

/* Estilizar o botão do Smart Slider via CSS (caso não consiga no editor) */
div[id*="n2-ss-"] .n2-style-f608796645564cc7f382a450411a0f8e-heading { 
    font-family: 'Roboto', sans-serif !important;
}

/* Forçar o botão para bordeaux com hover dourado */
.n2-ss-button-main {
    background-color: #800000 !important;
    transition: all 0.3s ease;
}

.n2-ss-button-main:hover {
    background-color: #FFD700 !important;
    color: #800000 !important;
}

/* Secção do Diretor Geral com Fundo Cinza Especial */
.diretor-section {
    background: #f4f4f4 !important; /* Cinza muito clarinho */
    padding: 50px 30px;
    border-radius: 12px;
    margin: 30px 0;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* Moldura da Foto com efeito de profundidade */
.foto-moldura img {
    border: 5px solid #ffffff; /* Borda branca para destacar do fundo cinza */
    outline: 3px solid #800000; /* Linha externa Bordeaux */
    border-radius: 4px;
    max-width: 280px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.foto-moldura img:hover {
    transform: translateY(-5px); /* Pequena animação ao passar o rato */
}

.nome-diretor {
    color: #800000;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.patente-cargo {
    color: #444;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.divisor-dourado {
    height: 4px;
    width: 80px;
    background-color: #FFD700; /* Dourado */
    margin: 20px 0;
}

.mensagem-texto {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

/* Botão Saiba Mais ajustado para o fundo cinza */
.btn-saiba-mais {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background-color: #800000;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s all;
}

.btn-saiba-mais:hover {
    background-color: #FFD700;
    color: #800000 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}



/* 1. Área das Colunas (Fundo Branco) */
.container-footer {
    background-color: #ffffff !important;
    color: #333 !important;
    padding: 40px 0 !important;
    border-top: 1px solid #eee;
}

.container-footer h3, .container-footer h4 {
    color: #800000 !important; /* Títulos das colunas em Bordeaux */
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 20px;
}

.container-footer ul {
    list-style: none;
    padding: 0;
}

.container-footer ul li a {
    color: #666 !important;
    text-decoration: none;
    line-height: 2;
    transition: 0.3s;
}

.container-footer ul li a:hover {
    color: #800000 !important;
}

/* 2. Barra de Copyright (Fundo Bordeaux - Igual à imagem) */
footer.footer, .footer-bottom {
    background-color: #800000 !important;
    color: #ffffff !important;
    padding: 15px 0 !important;
    font-size: 0.9rem;
}

.barra-copyright {
    background-color: #800000 !important;
    color: white !important;
    padding: 15px 0;
}
.social-links-footer a {
    color: white !important;
    margin-left: 15px;
}

/* Ajuste para que a posição footer aceite as colunas */
.footer-title {
    color: #800000;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-list {
    list-style: none !important;
    padding: 0 !important;
}

.footer-list li a {
    text-decoration: none !important;
    color: #666 !important;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-list li a:hover {
    color: #800000 !important;
}

.footer-email {
    color: #800000 !important;
    text-decoration: none;
    font-weight: 500;
}

.servico-card {
    background: #ffffff;
    padding: 30px;
    border-bottom: 4px solid #800000;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    position: relative;
}

.servico-card i {
    font-size: 40px;
    color: #800000;
    margin-bottom: 15px;
}

.servico-card h5 {
    font-weight: bold;
    color: #333;
}

.servico-card:hover {
    transform: translateY(-10px);
    background: #800000;
}

.servico-card:hover i, .servico-card:hover h5 {
    color: #ffffff;
}


/* Estilo dos Cartões de Cursos */
.card-curso {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
    height: 100%;
    border: 1px solid #eee;
}

.card-curso:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(128,0,0,0.15);
}

.curso-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
}

.card-curso:hover .curso-thumb {
    transform: scale(1.1);
}

.curso-content {
    padding: 20px;
    text-align: center;
}

.curso-content h5 {
    color: #800000;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.curso-content p {
    font-size: 0.9rem;
    color: #666;
    height: 60px; /* Mantém os botões alinhados */
}

.btn-curso {
    display: inline-block;
    padding: 8px 20px;
    background: #800000;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-top: 10px;
}

.btn-curso:hover {
    background: #FFD700;
    color: #800000 !important;
}

/* Estilo para Títulos com Borda */
.title-border {
    color: #800000;
    font-weight: 700;
    border-bottom: 3px solid #FFD700;
    padding-bottom: 5px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Lista de ícones personalizada */
.list-unstyled li {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
    font-weight: 500;
}

.list-unstyled li i {
    margin-right: 10px;
}

/* --- TRANSFORMAR LISTA JOOMLA EM CARDS AUTOMÁTICOS --- */
.istm-news-grid ul {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 0;
    list-style: none;
}

.istm-news-grid ul li {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s ease-in-out;
    border-bottom: 4px solid #800000;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.istm-news-grid ul li:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(128, 0, 0, 0.15);
}

/* Título da Notícia */
.istm-news-grid .mod-articles-category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222 !important;
    padding: 20px 20px 10px;
    text-decoration: none;
    display: block;
    line-height: 1.3;
}

/* Data e Infos */
.istm-news-grid .mod-articles-category-date {
    font-size: 0.8rem;
    color: #888;
    padding: 0 20px 15px;
    display: block;
    text-transform: uppercase;
}

/* Imagem Automática (Se configurada no artigo) */
.istm-news-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}


/* --- REMOVER MENSAGEM DE NAVEGAÇÃO (YOU ARE HERE) --- */
.breadcrumb, 
.mod-breadcrumbs, 
.breadcrumb-item {
    display: none !important;
}

/* Remove o contentor caso ele deixe um espaço vazio */
.container-breadcrumbs {
    display: none !important;
}


/* --- CENTRALIZAR BARRA DE MENUS --- */
.container-header .mod-menu {
    display: flex;
    justify-content: center; /* Centraliza os itens */
    width: 100%;
}

/* Garante que a lista de itens não se espalhe desordenadamente */
.container-header .mod-menu.nav {
    flex-direction: row;
    flex-wrap: nowrap;
}

/* Ajusta o espaço entre cada item do menu */
.container-header .mod-menu > li > a {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Efeito de linha por baixo ao passar o rato */
.container-header .mod-menu > li > a {
    position: relative;
    text-decoration: none;
}

.container-header .mod-menu > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #FFD700; /* Dourado */
    transition: all 0.3s ease;
}

.container-header .mod-menu > li > a:hover::after {
    width: 70%;
    left: 15%;
}

/* Estilo para Títulos dentro dos Artigos */
.item-page h2 {
    color: #800000;
    font-weight: 700;
    border-left: 5px solid #FFD700; /* Detalhe em Dourado */
    padding-left: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.item-page p {
    line-height: 1.8; /* Aumenta o espaço entre linhas para facilitar a leitura */
    font-size: 1.05rem;
    color: #444;
}

.btn-istm {
    background-color: #800000;
    color: white !important;
    padding: 12px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-istm:hover {
    background-color: #FFD700;
    color: #800000 !important;
    transform: scale(1.05);
}

/* --- MURAL DE DIRETORES (GALERIA DE HONRA) --- */
.mural-diretores {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.diretor-card {
    width: 250px;
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-bottom: 4px solid #800000; /* Linha Bordeaux */
    transition: transform 0.3s;
}

.diretor-card:hover {
    transform: translateY(-10px);
}

.diretor-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    filter: grayscale(100%); /* Efeito clássico em tons de cinza */
    transition: 0.5s;
}

.diretor-card:hover img {
    filter: grayscale(0%); /* Ganha cor ao passar o rato */
}

.diretor-nome {
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.diretor-periodo {
    color: #800000;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Destaque para o Diretor Atual */
.atual-destaque {
    border-bottom: 5px solid #FFD700 !important; /* Borda Dourada */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4) !important; /* Sombra Dourada suave */
    transform: scale(1.05); /* Ligeiramente maior que os outros */
}

.atual-destaque .diretor-periodo {
    color: #b8860b !important; /* Tom de dourado mais escuro para o texto */
}

.atual-destaque img {
    filter: grayscale(0%) !important; /* O atual fica sempre a cores */
}

/* No teu ficheiro user.css do Joomla */
.navbar {
    background-color: #800000 !important; /* Bordeaux */
    border-bottom: 3px solid #FFD700; /* Linha Dourada */
}
.nav-link {
    color: #ffffff !important;
    font-weight: bold;
    text-transform: uppercase;
}
.nav-link:hover {
    color: #FFD700 !important;
}

/* Remove espaços entre o header e o menu */
header.header, .header-inner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

nav.navbar, .container-nav {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove espaços em branco de posições de módulos não utilizadas */
#sp-top-bar, #sp-header {
    margin-bottom: 0px !important;
}

.container-main {
    margin-top: 10px !important; /* Ajusta conforme o gosto */
}

/* Elimina o espaço gigante no topo */
#sp-header, .header, header {
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
}

.container-header, .header-inner {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Se houver uma barra de topo invisível, isto remove-a */
.top-bar, #sp-top-bar {
    display: none !important;
}

/* Sobe o logótipo */
.logo, .navbar-brand {
    margin-top: -50px !important; /* Ajusta este valor se necessário */
}

/* Remove qualquer conteúdo extra no topo */
#sp-top-bar, .topbar, .header-top {
    display: none !important;
    height: 0px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Sobe o cabeçalho principal para o topo do ecrã */
#sp-header, header {
    position: relative;
    top: 0 !important;
    margin-top: 0 !important;
}

/* Forçar estilo dos botões do ISTM */
div.p-4.istm-btn {
    background-color: #ffffff !important;
    border: 2px solid #800000 !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease-in-out !important;
}

/* Texto em negrito e preto sempre */
div.p-4.istm-btn span.istm-text {
    color: #000000 !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    display: block !important;
    margin-top: 10px !important;
}

/* Ícone em Bordeaux */
div.p-4.istm-btn i {
    color: #800000 !important;
}

/* EFEITO AO PASSAR O RATO (HOVER) */
div.p-4.istm-btn:hover {
    background-color: #800000 !important; /* Aqui o bordeaux deve aparecer */
    cursor: pointer !important;
}

/* Garantir que ícone e texto fiquem pretos no fundo vermelho */
div.p-4.istm-btn:hover i,
div.p-4.istm-btn:hover span.istm-text {
    color: #000000 !important;
}

/* Transforma o rodapé existente em Institucional */
footer.footer {
    background-color: #800000 !important; /* Bordeaux Oficial */
    border-top: 5px solid #FFD700 !important; /* Linha de Ouro */
    color: #ffffff !important;
}

/* Links em Preto Negritado (como pediste nos botões) */
footer.footer a, footer.footer .nav-link {
    color: #000000 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}

footer.footer a:hover {
    color: #FFD700 !important; /* Dourado ao passar o rato */
}

/* 1. Anular o azul nas variáveis do rodapé */
footer.footer {
    --cassiopeia-color-primary: #800000 !important;
    background-color: #800000 !important; /* Bordeaux */
    color: #ffffff !important;
    border-top: 4px solid #FFD700 !important; /* Linha Dourada */
}

/* 2. Forçar todos os links do rodapé para Preto Negritado */
footer.footer a, 
footer.footer .nav-link, 
footer.footer .mod-menu a {
    color: #000000 !important; /* Letras pretas */
    font-weight: 900 !important; /* Negrito forte */
    text-decoration: none !important;
}

/* 3. Efeito ao passar o rato nos links do rodapé */
footer.footer a:hover, 
footer.footer .nav-link:hover {
    color: #FFD700 !important; /* Dourado */
    background: none !important;
}

/* 4. Remover o fundo azul de módulos dentro do rodapé */
footer.footer .card, 
footer.footer .module-inner {
    background: transparent !important;
    border: none !important;
}

/* Container das Notícias em Grelha */
.com-content-category-blog__items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Espaço entre os cartões */
}

/* O Cartão de Notícia Individual */
.com-content-category-blog__item {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 0 !important;
    flex: 1 1 calc(33.333% - 20px); /* Garante 3 colunas */
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.com-content-category-blog__item:hover {
    transform: translateY(-5px);
    border-color: #800000 !important;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Título da Notícia */
.com-content-category-blog__item h2 {
    font-size: 1.1rem !important;
    margin: 15px !important;
    line-height: 1.3;
}

.com-content-category-blog__item h2 a {
    color: #800000 !important;
    text-decoration: none !important;
    font-weight: 700;
}

/* Imagem de Introdução */
.com-content-category-blog__item .item-image {
    margin: 0 !important;
    height: 200px;
    overflow: hidden;
    border-bottom: 3px solid #FFD700; /* Detalhe dourado abaixo da foto */
}

.com-content-category-blog__item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz as fotos ficarem todas do mesmo tamanho */
}

/* Texto de resumo e botão */
.com-content-category-blog__item .article-body {
    padding: 15px;
    font-size: 0.9rem;
    color: #666;
}

/* Estilo Base dos Ícones Sociais */
.istm-social-links .social-icon {
    font-size: 1.5rem;
    color: #ffffff;
    background: #800000; /* Bordeaux do ISTM */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Cores ao passar o rato (Hover) */
.istm-social-links .whatsapp:hover {
    background-color: #25D366 !important; /* Verde WhatsApp */
    transform: scale(1.1);
}

.istm-social-links .youtube:hover {
    background-color: #FF0000 !important; /* Vermelho YouTube */
    transform: scale(1.1);
}

/* Remover a margem branca entre o menu e o slider */
.container-header {
    margin-bottom: 0 !important;
}

/* Dar destaque às notícias que criámos */
.blog-items .item {
    border-bottom: 3px solid #800000; /* Linha Bordeaux */
    padding: 20px;
    background: #fdfdfd;
    margin-bottom: 20px;
    transition: 0.3s;
}

.blog-items .item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Estilo para os títulos das notícias */
.blog-item .page-header h2 a {
    color: #800000 !important; /* Bordeaux ISTM */
    font-weight: bold;
}

/* Botão "Ler Mais" estilizado */
.readmore .btn {
    background-color: #800000;
    border-color: #FFD700; /* Dourado */
    color: #fff;
}

/* Padronizar as caixas de notícias */
.blog-items .item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 25px;
    height: 100%; /* Força todas as caixas a terem a mesma altura na linha */
    display: flex;
    flex-direction: column;
}

/* Padronizar as Imagens para não haver desníveis */
.blog-items .item-image img {
    width: 100%;
    height: 200px; /* Altura fixa para todas as fotos */
    object-fit: cover; /* Faz o "crop" inteligente da imagem */
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Alinhar Títulos */
.blog-items .item h2 {
    font-size: 1.2rem !important;
    line-height: 1.4;
    min-height: 3em; /* Reserva espaço para 2 linhas de título, alinhando o que vem abaixo */
    color: #800000;
}

/* Garante que o cabeçalho distribua os logos para as pontas */
#rt-header .rt-container, .header-inner, .t3-header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Força o container do header a ser horizontal */
#rt-header .rt-container, .header-inner, #sp-header .container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Garante que o dístico e lema fiquem na cor correta */
.logo-text, .motto {
    color: #800000 !important;
}

/* Forçar o artigo principal (Leading) a ocupar 100% da largura no topo */
.blog .items-leading,
.blog .items-leading > div,
.blog .leading-0,
.blog .item-page.leading {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    clear: both;
}

/* Ajuste da imagem da notícia de destaque */
.blog .items-leading img {
    width: 100% !important;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 6px;
}

/* Estilo para as notícias secundárias em baixo (50% de largura) */
.blog .items-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
/* Forçar o 1º artigo da lista a ocupar 100% da largura */
.blog .article-list > div:first-child,
.blog .items-leading > div:first-child,
.blog .row > div:first-child,
.category-blog .row > div:first-child {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Fazer a imagem do 1º artigo ocupar a largura toda */
.blog .row > div:first-child img,
.category-blog .row > div:first-child img {
    width: 100% !important;
    max-height: 400px !important;
    object-fit: cover !important;
}