/*
Theme Name: MAPTSS Modern
Theme URI: https://maptss.gov.ao
Description: Tema moderno independente criado do zero com código limpo e arquitetura otimizada. Totalmente autônomo sem dependências de tema pai.
Author: Claudio Rodrigues
Author URI: https://maptss.gov.ao
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maptss-modern
Tags: government, modern, minimal, responsive, performance, standalone
*/

/* ==========================================================================
   ACESSIBILIDADE & UTILIT\u00c1RIOS GLOBAIS
   ========================================================================== */

/* Skip-to-content link (WCAG 2.1) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 99999;
    background: var(--color-primary, #1f64bc);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #f0a500;
    outline-offset: 2px;
}

/* Bot\u00e3o Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary, #1f64bc);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #0a3a6e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
};

/* ==========================================================================
   CSS VARIABLES - Cores e Tipografia do Tema Original
   ========================================================================== */
.maptss-logo {
	margin-left: -1rem;
}
:root {
    /* Cores Principais - MAPTSS Brand */
    --color-primary: #1f64bc;
    --color-secondary: #0d4a94;
    --color-heading: #212121;
    --color-text: #707070;
    --color-white: #FFFFFF;
    --color-black: #000000;
    
    /* Cores Angola */
    --color-angola-red: #CE1126;
    --color-angola-yellow: #FFCB00;
    --color-angola-black: #000000;
    
    /* Tipografia (mantida do tema original) */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Tamanhos de Fonte */
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-lg: 18px;
    --font-size-h1: 48px;
    --font-size-h2: 36px;
    --font-size-h3: 28px;
    --font-size-h4: 24px;
    --font-size-h5: 20px;
    --font-size-h6: 18px;
    
    /* Espaçamentos */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    
    /* Container */
    --container-max-width: 1200px;
    --container-padding: 15px;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Z-Index */
    --z-header: 1000;
    --z-hero: 100;
    --z-overlay: 999;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: var(--font-size-base);
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow-x: clip;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
    overflow-x: clip;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

h1 { font-size: clamp(32px, 5vw, var(--font-size-h1)); }
h2 { font-size: clamp(28px, 4vw, var(--font-size-h2)); }
h3 { font-size: clamp(24px, 3vw, var(--font-size-h3)); }
h4 { font-size: clamp(20px, 2.5vw, var(--font-size-h4)); }
h5 { font-size: clamp(18px, 2vw, var(--font-size-h5)); }
h6 { font-size: clamp(16px, 1.5vw, var(--font-size-h6)); }

p {
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.7;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover,
a:focus {
    color: var(--color-secondary);
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(125deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* Selection Color */
::selection {
    background: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   MAIN STRUCTURE
   ========================================================================== */

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Compensação pelo header fixo: angola-flag(8px) + topbar(~45px) + main-nav(~60px) */
    padding-top: 113px;
}

.main-content {
    flex: 1;
}

/* ==========================================================================
   HEADER STYLES — Fixo e Sólido
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease;
}

/* Sombra reforçada ao fazer scroll */
.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
}

/* Bandeira de Angola - Degradê VISÍVEL no topo */
.angola-flag {
    display: flex !important;
    height: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    overflow: visible !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.angola-flag__red {
    flex: 1 !important;
    background: var(--color-angola-red) !important;
    position: relative !important;
}

.angola-flag__yellow {
    flex: 1 !important;
    background: var(--color-angola-yellow) !important;
    position: relative !important;
}

.angola-flag__black {
    flex: 1 !important;
    background: var(--color-angola-black) !important;
    position: relative !important;
}

/* Brilho no topo da bandeira */
.angola-flag::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60% !important;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 40%,
        transparent 100%
    ) !important;
    pointer-events: none !important;
    z-index: 100 !important;
}

/* Sombra na base da bandeira */
.angola-flag::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 40% !important;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        transparent 100%
    ) !important;
    pointer-events: none !important;
    z-index: 100 !important;
}

/* Topbar - Apenas Informações (sem logos) */
.topbar {
    padding: 7px 0;
    background: #071628;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: var(--spacing-lg);
    min-height: 34px;
}

/* Grupo direito: data/hora/clima + pesquisa + idiomas — espaçamento uniforme */
.topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

/* Separador visual entre os grupos do topbar__right */
.topbar__right > * + * {
    padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.topbar__datetime {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    white-space: nowrap;
}

.topbar__date {
    font-weight: 400;
    padding-right: 6px;
    border-right: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.5);
}

.topbar__time {
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: 1.5px;
    font-variant-numeric: tabular-nums;
    color: rgba(255,255,255,0.95);
}

.topbar__weather {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 6px;
    border-left: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.65);
    padding-right: 6px;
    border-right: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

.topbar__weather svg {
    flex-shrink: 0;
    opacity: 0.55;
}

.topbar__info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 20px;
}

.topbar__link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: 0.1px;
}

.topbar__link svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.topbar__link:hover {
    color: #fff;
}

.topbar__link:hover svg {
    opacity: 1;
}

.topbar__search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    padding: 0;
}

.topbar__search svg {
    width: 14px;
    height: 14px;
}

.topbar__search:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.topbar__languages {
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}

.topbar__languages a {
    color: rgba(255,255,255,0.55);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.topbar__languages a:hover {
    color: #fff;
}

.topbar__languages a.active,
.topbar__languages a[aria-current="page"] {
    color: #fff;
    font-weight: 700;
}

.topbar__lang-separator {
    color: rgba(255,255,255,0.18);
    font-weight: 300;
    font-size: 13.5px;
}

/* ── GTranslate / Google Translate: ocultar barra e widget nativo ── */
#trp-floater-ls,
.trp-floater,
.trp-floating-switcher,
.trp-language-switcher.trp-floating-switcher,
.trp-language-switcher[data-type="floater"],
#glt-translate-trigger,
#glt-toolbar,
.goog-te-banner-frame,
.goog-te-gadget,
.skiptranslate:not(.notranslate),
body > .skiptranslate {
    display: none !important;
}
body { top: 0 !important; }

/* Estilo do botão de idioma activo (gerado pelo tema) */
.topbar__languages .topbar__lang-btn {
    color: rgba(255,255,255,0.55);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.topbar__languages .topbar__lang-btn:hover,
.topbar__languages .topbar__lang-btn.active {
    color: #fff;
    font-weight: 700;
}

/* Navigation - Com dois conjuntos de logos */
.main-nav {
    position: relative;
    padding: var(--spacing-sm) 0;
    background: linear-gradient(180deg, #1e6ec8 0%, #1758aa 60%, #1450a0 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.22);
    transition: var(--transition-base);
}

.main-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logos Container */
.main-nav__logos {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
    transition: var(--transition-base);
}

/* Logos */
.main-nav__logo--gov {
    height: 45px;
    width: auto;
    transition: var(--transition-base);
}

.main-nav__logo--maptss {
    height: 45px;
    width: auto;
    transition: var(--transition-base);
}

.main-nav__logo:hover {
    transform: scale(1.05);
}

.main-nav__menu {
    display: flex;
    list-style: none;
    margin: 0;
    margin-left: auto;
    padding: 0;
    align-items: center;
}

.main-nav__item {
    position: relative;
}

.main-nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav__link i {
    font-size: 13px;
}

/* Item início — apenas ícone, sem texto */
.main-nav__item .main-nav__link .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.main-nav__item .main-nav__link:has(.screen-reader-text) i {
    font-size: 17px;
}

.main-nav__item--has-dropdown > .main-nav__link::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 4px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.main-nav__item--has-dropdown:hover > .main-nav__link::after {
    transform: rotate(180deg);
}

.main-nav__link:hover,
.main-nav__link.active,
.main-nav__item--has-dropdown:hover > .main-nav__link {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
}

/* Dropdown Menu */
.main-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 8px 0 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.main-nav__item--has-dropdown:hover > .main-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav__dropdown li {
    position: relative;
}

.main-nav__dropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--color-text);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.main-nav__dropdown-link:hover {
    background: rgba(31, 100, 188, 0.05);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    padding-left: 24px;
}

/* Dropdown child (submenu) */
.main-nav__dropdown-item--has-child {
    position: relative;
}

.main-nav__dropdown-item--has-child > .main-nav__dropdown-link::after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    float: right;
    font-size: 12px;
}

.main-nav__dropdown-child {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 450px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0 0 0 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.main-nav__dropdown-item--has-child:hover > .main-nav__dropdown-child {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.main-nav__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 8px 0 0 0;
    padding: var(--spacing-xs);
}

.main-nav__menu .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav__menu .sub-menu li {
    margin: 0;
}

.main-nav__menu .sub-menu a {
    display: block;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    border-radius: 4px;
    transition: var(--transition-base);
}

.main-nav__menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    padding-left: 20px;
}

/* ── Ícones nos links de submenu ─────────────────────────────── */
.main-nav__dropdown-link,
.main-nav__dropdown-child .main-nav__dropdown-link {
    display: flex;
    align-items: center;
    gap: 9px;
}

.main-nav__dropdown-link .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #1758aa;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.main-nav__dropdown-link .nav-icon i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.2s;
}

.main-nav__dropdown-link:hover .nav-icon {
    background: rgba(255, 203, 0, 0.20);
}
.main-nav__dropdown-link:hover .nav-icon i {
    color: #1758aa;
}

.main-nav__dropdown-link .nav-label {
    flex: 1;
    min-width: 0;
}

/* sem ícone: mantém o comportamento de indentação no hover */
.main-nav__dropdown-link:not(:has(.nav-icon)):hover .nav-label {
    padding-left: 4px;
}

.main-nav__actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

/* ==========================================================================
   SEARCH POPUP
   ========================================================================== */

.body-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    display: block;
    background-color: rgba(13, 20, 34, 0.95);
    z-index: 9999;
    content: "";
    left: 0;
    top: 0;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.body-overlay.active {
    visibility: visible;
    opacity: 1;
}

.search-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    max-width: 90%;
    width: 800px;
}

.search-popup.active {
    visibility: visible;
    opacity: 1;
}

.search-popup .search-form {
    position: relative;
}

.search-popup .search-form label {
    display: block;
    width: 100%;
    margin: 0;
}

.search-popup .search-form .search-field {
    width: 100%;
    height: 80px;
    border: none;
    border-radius: 50px;
    padding: 0 120px 0 30px;
    font-size: 18px;
    font-family: var(--font-body);
    color: var(--color-heading);
    background: var(--color-white);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.search-popup .search-form .search-field:focus {
    outline: none;
    box-shadow: 0 8px 40px rgba(31, 100, 188, 0.4);
}

.search-popup .search-form .search-field::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.search-popup .search-form .search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50px;
    border: none;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-popup .search-form .search-submit:hover {
    background: var(--color-secondary);
    transform: translateY(-50%) scale(1.05);
}

.search-popup .search-form .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   FEATURED BANNERS SECTION
   ========================================================================== */

.featured-banners-section {
    padding: 60px 0;
    background: var(--color-white);
}

.banner-card {
    position: relative;
    min-height: 280px;
    border-radius: 12px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.banner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.banner-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.banner-card:hover::after {
    opacity: 0.9;
}

.banner-card__content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 2;
    color: var(--color-white);
}

.banner-card__title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: 10px;
    line-height: 1.3;
}

.banner-card__subtitle {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.5;
}

.banner-card__btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid var(--color-primary);
}

.banner-card__btn:hover {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
    transform: scale(1.05);
}

/* ==========================================================================
   RECENT NEWS SECTION
   ========================================================================== */

.recent-news-section {
    padding: 80px 0;
    background: #f9fafb;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--color-primary);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-view-all:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateX(4px);
}

.btn-view-all i {
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(4px);
}

.news-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.news-card__thumb {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    height: 240px;
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card__image {
    transform: scale(1.08);
}

.news-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.news-card__category a {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.news-card__category a:hover {
    background: var(--color-secondary);
    color: var(--color-white);
}

.news-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--color-heading);
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__title a:hover {
    color: var(--color-primary);
}

.news-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: auto;
}

.news-card__meta li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
}

.news-card__meta li i {
    color: var(--color-primary);
    font-size: 14px;
}

/* ==========================================================================
   COMUNICADOS SECTION
   ========================================================================== */

.comunicados-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.comunicados-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.comunicados-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.comunicados-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.comunicados-header__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Botão "Ver todos comunicados" */
.comunicados-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50px;
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.comunicados-header__cta:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
.comunicados-header__cta i { font-size: 11px; transition: transform 0.25s ease; }
.comunicados-header__cta:hover i { transform: translateX(4px); }

.comunicados-header__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: var(--color-white);
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.comunicados-header__title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Comunicado Cards - Similar aos News Cards mas com estilo branco */
.comunicado-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.comunicado-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.comunicado-card__thumb {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    height: 240px;
}

.comunicado-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.comunicado-card:hover .comunicado-card__image {
    transform: scale(1.08);
}

.comunicado-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.comunicado-card__category a {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.comunicado-card__category a:hover {
    background: var(--color-white);
    color: var(--color-secondary);
    transform: scale(1.05);
}

.comunicado-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.comunicado-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--color-heading);
}

.comunicado-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comunicado-card__title a:hover {
    color: var(--color-primary);
}

.comunicado-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-top: auto;
}

.comunicado-card__meta li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
}

.comunicado-card__meta li i {
    color: var(--color-primary);
    font-size: 14px;
}

/* ── Comunicados Carousel ──────────────────────────────── */
.com-carousel {
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* Viewport: só o track fica cortado */
.com-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.com-carousel__track {
    display: flex;
    gap: 24px;
    will-change: transform;
    align-items: stretch;
}

/* 3 por fila — desktop */
.com-carousel__slide {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
}

/* 2 por fila — tablet */
@media (max-width: 991px) {
    .com-carousel__slide {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

/* 1 por fila — mobile */
@media (max-width: 575px) {
    .com-carousel__slide {
        flex: 0 0 100%;
    }
}

/* Botões prev/next */
.com-carousel__btn {
    position: absolute;
    top: calc(50% - 26px); /* centrado verticalmente (excluindo dots) */
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    z-index: 10;
}
.com-carousel__btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-50%) scale(1.08);
}
.com-carousel__btn--prev { left: -22px; }
.com-carousel__btn--next { right: -22px; }

@media (max-width: 991px) {
    .com-carousel__btn--prev { left: 4px; }
    .com-carousel__btn--next { right: 4px; }
}
/* ── Fim Comunicados Carousel ──────────────────────────── */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.mobile-menu-toggle__line {
    width: 26px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: var(--transition-base);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__line:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ==========================================================================
   SLIDE NAV — Painel deslizante mobile
   ========================================================================== */

/* Backdrop / overlay */
.slide-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 12, 30, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.slide-nav-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}

/* Painel */
.slide-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(340px, 88vw);
    background: linear-gradient(175deg, #0b1c3a 0%, #112d5c 55%, #0d1b2e 100%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -6px 0 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.slide-nav.is-open {
    transform: translateX(0);
}

/* Linha decorativa superior */
.slide-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #cc0000, #f0a500, #000000);
}

/* ── Cabeçalho do painel ── */
.slide-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    flex-shrink: 0;
}

.slide-nav__brand img {
    height: 38px;
    width: auto;
    display: block;
    filter: brightness(1.1);
}

.slide-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.slide-nav__close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    transform: rotate(90deg);
}

/* ── Corpo / Scroll ── */
.slide-nav__body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.slide-nav__body::-webkit-scrollbar {
    width: 4px;
}
.slide-nav__body::-webkit-scrollbar-track {
    background: transparent;
}
.slide-nav__body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

/* ── Menu principal do slide-nav ── */
.slide-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.slide-nav__menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.slide-nav__menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    position: relative;
}

.slide-nav__menu > li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: #f0a500;
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform 0.2s ease;
    transform-origin: center;
}

.slide-nav__menu > li > a:hover,
.slide-nav__menu > li.current-menu-item > a,
.slide-nav__menu > li.current-menu-ancestor > a {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    padding-left: 28px;
}

.slide-nav__menu > li > a:hover::before,
.slide-nav__menu > li.current-menu-item > a::before,
.slide-nav__menu > li.current-menu-ancestor > a::before {
    transform: scaleY(1);
}

/* Chevron para itens com sub-menu */
.slide-nav__menu .menu-item-has-children > a .sn-chevron {
    display: inline-flex;
    align-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.3s ease;
}

.slide-nav__menu .menu-item-has-children.open > a .sn-chevron {
    background: rgba(240, 165, 0, 0.25);
    transform: rotate(180deg);
}

/* Sub-menus */
.slide-nav__menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.22);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.slide-nav__menu .menu-item-has-children.open > .sub-menu {
    max-height: 1200px;
}

.slide-nav__menu .sub-menu li a {
    display: block;
    padding: 11px 22px 11px 34px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.slide-nav__menu .sub-menu li:last-child a {
    border-bottom: none;
}

.slide-nav__menu .sub-menu li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

/* Sub-sub-menu (nível 3) */
.slide-nav__menu .sub-menu .sub-menu {
    background: rgba(0,0,0,0.18);
    border-top: none;
}

.slide-nav__menu .sub-menu .sub-menu li a {
    padding-left: 48px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

/* ── Rodapé do painel ── */
.slide-nav__footer {
    flex-shrink: 0;
    padding: 16px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slide-nav__quick-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slide-nav__quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.slide-nav__quick-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.slide-nav__quick-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Variante botão (pesquisa) */
.slide-nav__quick-link--btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    width: 100%;
    text-align: left;
}

/* legacy — mantido para retro-compat caso haja instâncias antigas */
.slide-nav__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.slide-nav__contact:hover {
    color: rgba(255, 255, 255, 0.9);
}

.slide-nav__langs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.slide-nav__langs a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.18s ease;
}

.slide-nav__langs a:hover {
    color: #fff;
}

/* Ícones dos itens de menu */
.sn-label {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    min-width: 0;
}

.sn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
    margin-right: 10px;
}

.slide-nav__menu > li > a:hover .sn-icon,
.slide-nav__menu > li.open > a .sn-icon,
.slide-nav__menu > li.current-menu-item > a .sn-icon,
.slide-nav__menu > li.current-menu-ancestor > a .sn-icon {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* Aplicativos Móveis no slide-nav */
.slide-nav__apps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.09);
}

.slide-nav__apps-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 5px;
}

.slide-nav__app-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-nav__app-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.slide-nav__app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slide-nav__app-name {
    flex: 1;
    font-size: 12.5px;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-nav__app-badges {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.slide-nav__app-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.slide-nav__app-badge:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

.slide-nav__app-badge--off {
    opacity: 0.3;
    cursor: default;
}

.slide-nav__social {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.09);
}

.slide-nav__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.slide-nav__social-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* Impedir scroll do body quando slide-nav aberto */
body.slide-nav-open {
    overflow: hidden;
}

/* ==========================================================================
   HERO SECTION - Ocupa tela toda incluindo sob o header
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: calc(100vh - 113px);
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Animação Ken Burns na imagem */
.hero-slide__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 8s ease-out;
}

/* Quando o slide está ativo, aplica zoom suave */
.hero-slide.active .hero-slide__image {
    animation: kenBurnsEffect 20s ease-out forwards;
}

/* Ken Burns Effect - Zoom + Pan */
@keyframes kenBurnsEffect {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(-2%, -1%);
    }
}

/* Overlay com gradiente cinemático — mais escuro na base (onde o texto está) */
.hero-slide__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(105deg, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 100%),
        linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 45%);
    z-index: 1;
}

/* Overlay adicional para efeito vignette */
.hero-slide__overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.hero-slide__content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 100px var(--spacing-xl) var(--spacing-xl);
    z-index: 10;
}

.hero-slide__inner {
    max-width: 800px;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

/* Animação do conteúdo quando slide fica ativo */
.hero-slide.active .hero-slide__inner {
    opacity: 1;
    transform: translateY(0);
}

/* Categoria com accent Angola */
.hero-slide__category {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 8px 20px;
    background: rgba(180, 0, 0, 0.70);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border-radius: 50px;
    border: 1px solid rgba(255, 90, 90, 0.35);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 18px rgba(180,0,0,0.35);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease 0.4s;
}

.hero-slide.active .hero-slide__category {
    opacity: 1;
    transform: translateX(0);
}

.hero-slide__category::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ffaaaa;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 8px rgba(255,150,150,0.8);
    animation: heroCatPulse 2s ease-in-out infinite;
}

@keyframes heroCatPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Título com animação */
.hero-slide__title {
    font-size: clamp(36px, 3vw, 64px);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    line-height: 1.15;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease 0.5s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-slide.active .hero-slide__title {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide__title a {
    color: inherit;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.95) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    transition: all 0.3s ease;
}

.hero-slide__title a:hover {
    background: linear-gradient(
        90deg,
        rgba(31, 100, 188, 1) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
}

/* Excerpt com animação */
.hero-slide__excerpt {
    font-size: clamp(15px, 2.2vw, 19px);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    opacity: 0.96;
    max-width: 650px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    font-weight: 400;
    transform: translateY(20px);
    transition: all 0.7s ease 0.6s;
}

.hero-slide.active .hero-slide__excerpt {
    opacity: 0.96;
    transform: translateY(0);
}

/* Meta info com animação */
.hero-slide__meta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s ease 0.7s;
}

.hero-slide.active .hero-slide__meta {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide__meta-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-slide__meta-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Botões CTA com animações melhoradas */
.hero-slide__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 18px 36px;
    background: linear-gradient(135deg, #1f64bc 0%, #0d4a94 100%);
    color: var(--color-white);
    font-weight: 700;
    font-size: 16px;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(31, 100, 188, 0.35);
    border: 2px solid rgba(31, 100, 188, 0.3);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s ease 0.8s;
    position: relative;
    overflow: hidden;
}

.hero-slide.active .hero-slide__cta {
    opacity: 1;
    transform: translateY(0);
}

/* Efeito shimmer no botão */
.hero-slide__cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
}

.hero-slide__cta:hover::before {
    left: 100%;
}

.hero-slide__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(31, 100, 188, 0.5);
    color: var(--color-white);
    border-color: rgba(31, 100, 188, 0.6);
}

.hero-slide__cta:active {
    transform: translateY(-1px);
}

/* Hero Controls — nav buttons lado direito, vertical */
.hero-controls {
    position: absolute;
    right: var(--spacing-xl);
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.hero-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-nav__btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero-nav__btn:hover {
    background: rgba(31, 100, 188, 0.85);
    border-color: rgba(31, 100, 188, 0.7);
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(31, 100, 188, 0.45);
}

.hero-nav__btn:active {
    transform: scale(0.95);
}

.hero-nav__btn svg {
    width: 18px;
    height: 18px;
}

/* Dots — vertical, lado direito do hero */
.hero-dots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.25);
}

.hero-dot.active {
    width: 8px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.3);
    box-shadow: none;
    overflow: hidden;
}

/* Progress bar dentro do dot activo */
.hero-dot.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 10px;
    background: #fff;
    animation: heroDotProgress 5s linear forwards;
    transform-origin: top center;
}

@keyframes heroDotProgress {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 10px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    cursor: pointer;
    transition: color 0.3s ease;
    writing-mode: vertical-rl;
    flex-direction: row;
}

.scroll-indicator:hover {
    color: rgba(255,255,255,0.95);
}

.scroll-indicator span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.scroll-indicator svg {
    width: 22px;
    height: 22px;
    transform: rotate(90deg);
    animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: rotate(90deg) translateX(0); }
    50%       { opacity: 1;   transform: rotate(90deg) translateX(4px); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

@keyframes rotateCircle {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ==========================================================================
   MINISTER SECTION
   ========================================================================== */

.minister-section {
    padding: 100px 0;
    background: #f4f7fc;
    position: relative;
}

.minister-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

/* ---- min-img: left column ---- */

.min-img {
    position: relative;
   /*  padding: 40px 40px 40px 0; */
    height: 100%;
}

/* Decorative rings */
.min-img__ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(31,100,188,0.15);
    pointer-events: none;
    animation: rotateCircle 18s linear infinite;
}
.min-img__ring--1 {
    width: 180px; height: 180px;
    top: -10px; right: -10px;
}
.min-img__ring--2 {
    width: 110px; height: 110px;
    bottom: 60px; left: -20px;
    animation-duration: 12s;
    animation-direction: reverse;
    border-color: rgba(26,143,209,0.18);
}

/* Decorative dots */
.min-img__dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.min-img__dot--1 {
    width: 12px; height: 12px;
    background: #1F64BC;
    top: 30px; right: 30px;
    opacity: 0.35;
}
.min-img__dot--2 {
    width: 8px; height: 8px;
    background: #1a8fd1;
    bottom: 80px; left: 10px;
    opacity: 0.3;
}

/* Photo wrapper */
.min-img__wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(13,47,110,0.18), 0 0 0 6px rgba(31,100,188,0.08);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
    z-index: 1;
    height: 100%;
}

.min-img__wrap:hover {
    box-shadow: 0 32px 80px rgba(13,47,110,0.24), 0 0 0 8px rgba(31,100,188,0.12);
    transform: translateY(-4px);
}

.min-img__photo {
    width: 100%;
    height: 100%;
    /* min-height: 520px; */
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.min-img__wrap:hover .min-img__photo {
    transform: scale(1.04);
}

/* Gradient overlay at bottom of photo */
.min-img__wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,31,78,0.72) 0%, transparent 55%);
    pointer-events: none;
}

/* Badge inside photo */
.min-img__badge {
    position: absolute;
    bottom: 22px;
    left: 22px;
    right: 22px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(14px);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    z-index: 2;
    transition: transform 0.3s ease;
}

.min-img__wrap:hover .min-img__badge {
    transform: translateY(-4px);
}

.min-img__badge-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 11px;
    background: linear-gradient(135deg, #f6a609, #ffd700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(246,166,9,0.38);
}

.min-img__badge-text span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1F64BC;
    margin-bottom: 2px;
}

.min-img__badge-text strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #0a1f4e;
    line-height: 1.2;
}

/* Stat card */
.min-stat {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 28px rgba(31,100,188,0.14);
    border: 1px solid #e2eaf5;
    z-index: 3;
    animation: iconFloat 5s ease-in-out infinite;
}

.min-stat--top {
    top: 20px;
    right: -10px;
}

.min-stat__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1F64BC, #1a8fd1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
}

.min-stat__icon--green {
    background: linear-gradient(135deg, #1a6e3d, #27ae60);
}

.min-stat__num {
    display: block;
    font-size: 22px;
    font-weight: 900;
    color: #0a1f4e;
    line-height: 1;
}

.min-stat__lbl {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7a96;
    white-space: nowrap;
}

/* Minister Content */
.minister-content {
    padding-left: 40px;
}

.minister-content .section-heading {
    margin-bottom: 36px;
}

.minister-content .section-heading__title .highlight {
    color: var(--color-primary);
    /* display: block; */
}

.section-heading__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    background: rgba(31,100,188,0.08);
    border: 1px solid rgba(31,100,188,0.18);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.section-heading__desc {
    font-size: 15px;
    color: #5a6a85;
    line-height: 1.75;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Action Cards */
.action-cards {
    margin-top: 0;
}

.action-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8eef8;
    border-radius: 14px;
    padding: 20px 20px 18px;
    height: 100%;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.3s cubic-bezier(0.4,0,0.2,1),
                border-color 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    border-color: var(--ac-color, #1F64BC);
}

.action-card__icon-wrap {
	position: absolute;
	bottom: 13px;
	right: 8px;
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ac-color, #1F64BC);
	font-size: 116px;
	opacity: 0.07;
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.action-card:hover .action-card__icon-wrap {
    opacity: 0.13;
    transform: scale(1.1) rotate(-5deg);
}

.action-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #0a1f4e;
    margin: 0 0 8px;
    line-height: 1.4;
}

.action-card__desc {
    font-size: 13px;
    color: #6b7a96;
    line-height: 1.65;
    margin: 0;
}

/* Action card — lista de bullets */
.action-card__list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.action-card__list li {
    position: relative;
    padding: 3px 0 3px 16px;
    font-size: 11.5px;
    color: #5a6a80;
    line-height: 1.55;
}

.action-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ac-color, #1F64BC);
    opacity: 0.6;
}

.action-card__line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--ac-color, #1F64BC);
    border-radius: 0 3px 0 0;
    transition: width 0.35s ease;
}

.action-card:hover .action-card__line {
    width: 100%;
}

/* Minister List */
.minister-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.minister-list__item {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.minister-list__item:last-child {
    margin-bottom: 0;
}

.minister-list__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 22px;
}

.minister-list__content {
    flex: 1;
}

.minister-list__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 10px 0;
}

.minister-list__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0;
}

/* Minister Button */
.btn-minister {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: var(--color-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-base);
    box-shadow: 0 4px 16px rgba(31, 100, 188, 0.2);
}

.btn-minister:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 100, 188, 0.3);
    color: #fff;
}

.btn-minister i {
    transition: transform 0.3s ease;
}

.btn-minister:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   SECTION HEADERS - PADRÃO GLOBAL
   ========================================================================== */

/* Section Header padrão (usado em Quick Access e outras seções) */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 1;
}

.section-header__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

.section-header__icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, #1F64BC, #0d4a94);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 38px;
    position: relative;
    box-shadow: 0 12px 30px rgba(31, 100, 188, 0.4);
    animation: iconFloat 3s ease-in-out infinite;
}

.section-header__icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 100, 188, 0.5), transparent);
    animation: glowPulse 2s ease-in-out infinite;
}

.section-header__text {
    text-align: left;
}

.section-header__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1F64BC;
    background: rgba(31, 100, 188, 0.1);
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 8px;
}

.section-header__title {
    font-size: 42px;
    font-weight: 800;
    color: var(--color-heading);
    line-height: 1.2;
    margin: 0;
}

.section-header__subtitle {
    font-size: 16px;
    color: var(--color-text);
    margin: 8px 0 0 0;
    opacity: 0.85;
}

/* Section Heading padrão (usado em Recent News e Minister) */
.section-heading__title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.3;
    margin: 0;
}

/* Comunicados Header */
.comunicados-header__title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   QUICK ACCESS SECTION
   ========================================================================== */

.quick-access-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative Elements */
.quick-access-decor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.quick-access-decor__shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(31, 100, 188, 0.05), rgba(13, 74, 148, 0.05));
    animation: floatShape 8s ease-in-out infinite;
}

.quick-access-decor__shape--1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.quick-access-decor__shape--2 {
    width: 200px;
    height: 200px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    bottom: 100px;
    left: -50px;
    animation-delay: 2s;
}

.quick-access-decor__circle {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid rgba(31, 100, 188, 0.1);
    border-radius: 50%;
    top: 40%;
    right: 10%;
    animation: rotateCircle 10s linear infinite;
}

/* Services Grid */
.services-grid {
    position: relative;
    z-index: 1;
}

.services-grid .g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Service Card */
.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-primary), #0d4a94);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(31, 100, 188, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

/* Service Card Icon */
.service-card__icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 28px;
    position: relative;
    transition: all 0.4s ease;
    z-index: 1;
}

.service-card__icon-default,
.service-card__icon-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
    transition: all 0.4s ease;
}

.service-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
    transition: all 0.4s ease;
}

.service-card__icon i {
    font-size: 42px;
    color: var(--color-primary);
    transition: all 0.4s ease;
}

.service-card__icon-default {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.service-card__icon-hover {
    opacity: 0;
    transform: scale(0.8) rotateY(-180deg);
}

.service-card:hover .service-card__icon-default {
    opacity: 0;
    transform: scale(0.8) rotateY(180deg);
}

.service-card:hover .service-card__icon-hover {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
}

.service-card:hover .service-card__icon {
    transform: translateY(-8px) scale(1.1);
}

.service-card:hover .service-card__icon svg {
    filter: brightness(0) invert(1) drop-shadow(0 8px 16px rgba(255, 255, 255, 0.3));
}

.service-card:hover .service-card__icon img {
    filter: brightness(0) invert(1) drop-shadow(0 8px 16px rgba(255, 255, 255, 0.3));
}

.service-card:hover .service-card__icon i {
    color: #ffffff;
}

/* Service Card Content */
.service-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.service-card__title {
    font-size: 19px;
    font-weight: 800;
    color: var(--color-heading);
    margin: 0 0 20px 0;
    line-height: 1.4;
    transition: all 0.3s ease;
    min-height: 54px;
    display: flex;
    align-items: center;
    text-align: center;
}

.service-card:hover .service-card__title {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Service Card Link */
.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 28px;
    background: rgba(31, 100, 188, 0.08);
    border: 2px solid transparent;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.service-card__link span {
    transition: transform 0.3s ease;
}

.service-card__link i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-card__link {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.service-card:hover .service-card__link:hover {
    background: #ffffff;
    color: var(--color-primary);
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    border-color: #ffffff;
}

.service-card__link:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   SUPERINTENDED INSTITUTIONS SECTION
   ========================================================================== */

/* ==========================================================================
   INSTITUTIONS SECTION — redesigned
   ========================================================================== */

.institutions-section {
    position: relative;
    padding: 100px 0;
    background: #fff;
    overflow: hidden;
}

.institutions-section__bg-line {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.04;
    background: #1F64BC;
}

.institutions-section__bg-line--1 {
    width: 700px;
    height: 700px;
    top: -300px;
    right: -200px;
}

.institutions-section__bg-line--2 {
    width: 500px;
    height: 500px;
    bottom: -250px;
    left: -150px;
}

/* Logos Carousel */
.logos-carousel__outer {
    margin-top: 56px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.logos-carousel__track {
    display: flex;
    align-items: center;
    animation: logos-scroll 32s linear infinite;
    width: max-content;
}

.logos-carousel__outer:hover .logos-carousel__track {
    animation-play-state: paused;
}

@keyframes logos-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Logo Item */
.logo-item {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8eef8;
    border-radius: 14px;
    margin: 0 12px;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.logo-item:hover {
    border-color: #1F64BC;
    box-shadow: 0 8px 28px rgba(31,100,188,0.12);
    transform: translateY(-4px);
}

.logo-item__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-item:hover .logo-item__img-wrap {
    opacity: 0.2;
    transform: scale(0.88);
}

.logo-item__img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.logo-item:hover .logo-item__img {
    filter: none;
}

.logo-item__btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1F64BC;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.logo-item:hover .logo-item__btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.logo-item__btn i {
    font-size: 11px;
}

/* ==========================================================================
   VIDEO GALLERY SECTION  — design cinematográfico escuro
   ========================================================================== */

.vg-section {
    position: relative;
    padding: 100px 0;
    background: #060f24;
    overflow: hidden;
}

/* Decorative blobs */
.vg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.18;
}
.vg-blob--1 {
    width: 600px; height: 600px;
    background: #1F64BC;
    top: -200px; left: -150px;
}
.vg-blob--2 {
    width: 400px; height: 400px;
    background: #f6a609;
    bottom: -180px; right: -100px;
}

/* ---- Header ---- */
.vg-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 52px;
}

.vg-header__left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vg-header__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f6a609;
}

.vg-header__label-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #f6a609;
    animation: vg-pulse 1.6s ease-in-out infinite;
}

@keyframes vg-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.5); opacity: 0.5; }
}

.vg-header__title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.15;
}
.vg-header__title span {
    background: linear-gradient(90deg, #4fa3f7, #1F64BC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vg-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.vg-header__cta:hover {
    background: #1F64BC;
    border-color: #1F64BC;
    color: #fff;
}
.vg-header__cta i { font-size: 11px; transition: transform 0.25s ease; }
.vg-header__cta:hover i { transform: translateX(4px); }

/* ---- Layout: 60/40 split ---- */
/* ---- Carousel wrapper ---- */
.vg-carousel-wrap {
    position: relative;
}

/* Navigation arrows */
.vg-carousel__btn {
    position: absolute;
    top: calc((100% - 32px) / 2 - 24px);
    z-index: 10;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #1F64BC;
    font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    transition: background 0.2s ease, transform 0.2s ease;
    opacity: 0.9;
}
.vg-carousel__btn:hover {
    background: #1F64BC;
    color: #fff;
    transform: scale(1.1);
    opacity: 1;
}
.vg-carousel__btn--prev { left: -26px; }
.vg-carousel__btn--next { right: -26px; }

/* Track */
.vg-carousel__track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 18px;
    -webkit-overflow-scrolling: touch;
}
.vg-carousel__track::-webkit-scrollbar { display: none; }

/* Card */
.vg-card {
    flex: 0 0 calc((100% - 44px) / 3);
    scroll-snap-align: start;
    border-radius: 16px;
    overflow: hidden;
    background: #0d1831;
    border: 1px solid rgba(255,255,255,0.07);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.vg-card:hover {
    transform: translateY(-6px);
    border-color: rgba(31,100,188,0.55);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.vg-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a1f4e;
}
.vg-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.vg-card:hover .vg-card__thumb img {
    transform: scale(1.06);
    opacity: 0.7;
}
.vg-card__thumb-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1F64BC, #0a1f4e);
}

/* Overlay com play */
.vg-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6,15,36,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.vg-card:hover .vg-card__overlay { opacity: 1; }

/* Card body */
.vg-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vg-card__title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vg-card:hover .vg-card__title { color: #fff; }
.vg-card__date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}
.vg-card__date i { color: #4fa3f7; font-size: 10px; }

/* Responsive card count */
@media (max-width: 1100px) {
    .vg-card { flex: 0 0 calc((100% - 22px) / 2.3); }
}
@media (max-width: 768px) {
    .vg-carousel__btn--prev { left: 4px; }
    .vg-carousel__btn--next { right: 4px; }
    .vg-card { flex: 0 0 calc((100% - 22px) / 1.25); }
}
@media (max-width: 480px) {
    .vg-card { flex: 0 0 82%; }
}

/* ---- Featured Video ---- */
.vg-featured {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: #0d1831;
}

.vg-featured__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

.vg-featured__img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, brightness 0.5s ease;
}
.vg-featured:hover .vg-featured__img {
    transform: scale(1.04);
    filter: brightness(0.75);
}

/* Cinematic gradient overlay — always visible */
.vg-featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(6,15,36,0.85) 0%,
        rgba(6,15,36,0.25) 40%,
        transparent 70%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Play Button ---- */
.vg-play-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    color: #1F64BC;
    cursor: pointer;
    width: 56px; height: 56px;
    font-size: 18px;
    transition: transform 0.3s ease, background 0.3s ease;
    padding-left: 3px; /* optical centre */
}
.vg-play-btn:hover {
    background: #fff;
    transform: scale(1.12);
}

/* Pulsing ring */
.vg-play-btn__ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.35);
    animation: vg-ring 2s ease-out infinite;
}

@keyframes vg-ring {
    0%   { transform: scale(0.85); opacity: 0.8; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* Featured meta strip */
.vg-featured__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 24px;
    background: #0d1831;
    flex: 1;
}

.vg-badge {
    position: absolute;
    bottom: 10px; left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(90deg, #f6a609, #f08a00);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.vg-featured__title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vg-featured__date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}
.vg-featured__date i { color: #4fa3f7; }

/* ---- Secondary List ---- */
.vg-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.vg-list::-webkit-scrollbar { width: 4px; }
.vg-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.vg-list__item {
    display: flex;
    gap: 14px;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
}
.vg-list__item:hover {
    background: rgba(31,100,188,0.18);
    border-color: rgba(31,100,188,0.45);
    transform: translateX(4px);
}

.vg-list__thumb {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #0d1831;
}

.vg-list__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.vg-list__item:hover .vg-list__thumb img { transform: scale(1.08); }

.vg-list__thumb-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1F64BC 0%, #0a1f4e 100%);
}

.vg-list__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.vg-list__item:hover .vg-list__overlay { opacity: 1; }

.vg-list__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vg-list__title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vg-list__date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}
.vg-list__date i { color: #4fa3f7; font-size: 10px; }

/* Empty state */
.vg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 0;
    color: rgba(255,255,255,0.3);
    font-size: 14px;
}
.vg-empty i { font-size: 40px; opacity: 0.4; }

/* ---- Lightbox (shared) ---- */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.video-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.video-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4,10,28,0.94);
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.video-lightbox__container {
    position: relative;
    z-index: 1;
    width: min(960px, 94vw);
}
.video-lightbox__close {
    position: absolute;
    top: -46px; right: 0;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.video-lightbox__close:hover {
    background: rgba(255,255,255,0.22);
    transform: rotate(90deg);
}
.video-lightbox__title {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 10px;
    text-align: center;
}
.video-lightbox__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
}
.video-lightbox__frame iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .vg-section { padding: 72px 0; }
    .vg-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 576px) {
    .vg-section { padding: 56px 0; }
    .vg-header__title { font-size: 26px; }
}

/* ------------------------------------------------------------------
   Página interna – Galeria de Vídeos (vg-page-section)
   Reutiliza os cards .vg-card em grelha Bootstrap
   ---------------------------------------------------------------- */
.vg-page-section {
    padding: 56px 0 80px;
}
.vg-page-section .vg-card {
    width: 100%;
}
@media (max-width: 576px) {
    .vg-page-section { padding: 40px 0 56px; }
}

/* ==========================================================================
   APLICATIVOS SECTION
   ========================================================================== */

.aplicativos-section {
    position: relative;
    padding: 110px 0;
    background: linear-gradient(135deg, #0d2f6e 0%, #1F64BC 50%, #1a8fd1 100%);
    overflow: hidden;
}

/* Decorative blobs */
.aplicativos-decor__blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.25;
}
.aplicativos-decor__blob--1 {
    width: 500px;
    height: 500px;
    background: #ffffff;
    top: -150px;
    right: -100px;
    animation: floatShape 10s ease-in-out infinite;
}
.aplicativos-decor__blob--2 {
    width: 350px;
    height: 350px;
    background: #00bfff;
    bottom: -100px;
    left: -80px;
    animation: floatShape 14s ease-in-out infinite reverse;
}
.aplicativos-decor__circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
    animation: rotateCircle 18s linear infinite;
}
.aplicativos-decor__circle--1 {
    width: 420px;
    height: 420px;
    top: 50%;
    left: -210px;
    margin-top: -210px;
}
.aplicativos-decor__circle--2 {
    width: 280px;
    height: 280px;
    bottom: 60px;
    right: 10%;
}

/* App Slide */
.app-slide {
    display: none;
    animation: fadeInUp 0.5s ease forwards;
}
.app-slide.is-active {
    display: block;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Left content */
.app-slide__content {
    padding-right: 40px;
}
.app-slide__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}
.app-slide__title {
    font-size: 46px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.app-slide__desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

/* App store badges */
.app-slide__badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 180px;
}
.app-badge--google {
    background: #ffffff;
    color: #1F64BC;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.app-badge--apple {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}
.app-badge:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.app-badge--google:hover {
    background: #f0f4ff;
}
.app-badge--apple:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffffff;
}
.app-badge__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-badge__icon svg {
    width: 30px;
    height: 30px;
}
.app-badge__text {
    display: flex;
    flex-direction: column;
}
.app-badge__sub {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.75;
    line-height: 1;
}
.app-badge__name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

/* Nav buttons & dots */
.app-slide__nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.app-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}
.app-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: scale(1.1);
}
.app-nav-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.app-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}
.app-nav-dot.is-active {
    width: 30px;
    border-radius: 5px;
    background: #ffffff;
}

/* Right: visual / mockup */
.app-slide__visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
}
.app-slide__mockup {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
}
.app-slide__mockup img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.3));
    animation: iconFloat 4s ease-in-out infinite;
}
.app-slide__placeholder {
    width: 300px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    backdrop-filter: blur(10px);
}
.app-slide__placeholder-icon {
    font-size: 60px;
    color: rgba(255,255,255,0.5);
}
.app-slide__placeholder p {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* Floating security badge */
.app-slide__float-badge {
    position: absolute;
    bottom: 20px;
    left: 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    animation: iconFloat 4s ease-in-out infinite 1s;
    z-index: 2;
}
.app-slide__float-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #1F64BC, #0d4a94);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    flex-shrink: 0;
}
.app-slide__float-text {
    display: flex;
    flex-direction: column;
}
.app-slide__float-text span {
    font-size: 14px;
    font-weight: 800;
    color: #1a2b4a;
    line-height: 1.2;
}
.app-slide__float-text small {
    font-size: 11px;
    color: #7a8ba0;
}

/* Rating badge */
.app-slide__rating-badge {
    position: absolute;
    top: 20px;
    right: 0;
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    animation: iconFloat 4s ease-in-out infinite 2s;
    z-index: 2;
}
.app-slide__rating-stars {
    color: #f6a609;
    font-size: 13px;
    display: flex;
    gap: 2px;
}
.app-slide__rating-badge span {
    font-size: 12px;
    font-weight: 700;
    color: #1a2b4a;
}

/* Phone mockup */
.app-slide__phone-mockup {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    animation: iconFloat 4s ease-in-out infinite;
}
.app-slide__phone-screen {
    width: 240px;
    height: 420px;
    background: var(--app-color, #0d4a94);
    border-radius: 36px;
    box-shadow:
        0 0 0 10px rgba(255,255,255,0.12),
        0 0 0 20px rgba(255,255,255,0.06),
        0 40px 80px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
.app-slide__phone-screen::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.app-slide__phone-header {
    position: absolute;
    top: 20px;
    display: flex;
    gap: 6px;
}
.app-slide__phone-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    display: block;
}
.app-slide__phone-icon {
    font-size: 64px;
    color: rgba(255,255,255,0.95);
    position: relative;
    z-index: 1;
}
.app-slide__phone-name {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}
.app-slide__phone-tag {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}
.app-slide__phone-bars {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    position: absolute;
    bottom: 30px;
}
.app-slide__phone-bars span {
    width: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 3px;
}
.app-slide__phone-bars span:nth-child(1) { height: 16px; }
.app-slide__phone-bars span:nth-child(2) { height: 24px; }
.app-slide__phone-bars span:nth-child(3) { height: 32px; background: rgba(255,255,255,0.7); }
.app-slide__phone-bars span:nth-child(4) { height: 40px; background: rgba(255,255,255,0.9); }

/* Phone mockup com imagem de tela definida no admin */
.app-slide__phone-screen--img {
    background: #000;
    padding: 0;
    gap: 0;
    align-items: stretch;
    justify-content: stretch;
}
.app-slide__phone-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 36px;
    display: block;
}

/* 3D Perspective for Apps Section */
.aplicativos-section {
    perspective: 1200px;
    position: relative;
    overflow: hidden; /* necessário para cortar o telefone no estado inicial */
}

/* ==========================================================================
   PHONE SCROLL-RISE ANIMATION
   O telemóvel começa fixado no fundo, parcialmente visível.
   À medida que o utilizador rola, sobe e cresce até ficar totalmente visível.
   ========================================================================== */

/* Container do lado visual — cria o "palco" com altura fixa para o clipping */
.app-slide__visual {
    position: relative;
    min-height: 520px;
    overflow: visible; /* os badges saem para fora */
}

/* Wrapper que faz o clipping do telefone */
.app-slide__phone-rise-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 40px; /* espaço para a sombra */
    /* Altura suficiente para o telefone completo */
    min-height: 480px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Estado inicial: telefone escondido na parte inferior */
.app-slide__phone-mockup {
    transform: translateY(60%) scale(0.75);
    transform-origin: bottom center;
    opacity: 0.4;
    will-change: transform, opacity;
    transition: none; /* controlado por JS via rAF */
    filter: drop-shadow(0 60px 100px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

/* Estado final: telefone completamente visível */
.app-slide__phone-mockup.phone-risen {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: drop-shadow(0 60px 100px rgba(0,0,0,0.3)) 
            drop-shadow(0 20px 40px rgba(31, 100, 188, 0.25));
    animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0) scale(1) rotateY(-4deg); }
    50%       { transform: translateY(-16px) scale(1) rotateY(4deg); }
}

/* Sombra no chão do telefone */
.app-slide__phone-shadow {
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50% 0;
    width: 180px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.35) 0%, transparent 70%);
    border-radius: 50%;
    transform: scaleX(0.5);
    opacity: 0;
    transition: none;
    will-change: transform, opacity;
}

/* Badges de rating e segurança — entram depois do telefone */
.app-slide__float-badge,
.app-slide__rating-badge {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.app-slide__float-badge.badge-visible,
.app-slide__rating-badge.badge-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Linha de progresso visual (opcional — barra na base da section) */
.aplicativos-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #1c6fc5, #4fa8e8);
    z-index: 10;
    transition: width 0.05s linear;
}

/* Responsive */
@media (max-width: 991px) {
    .app-slide__visual { min-height: 440px; }
    .app-slide__phone-rise-wrapper { min-height: 400px; }
}
@media (max-width: 767px) {
    .app-slide__visual { min-height: 360px; }
    .app-slide__phone-rise-wrapper { min-height: 320px; }
    .app-slide__phone-mockup {
        transform: translateY(40%) scale(0.8);
    }
    .app-slide__phone-mockup.phone-risen {
        animation: phoneFloatMobile 4s ease-in-out infinite;
    }
    @keyframes phoneFloatMobile {
        0%, 100% { transform: translateY(0) scale(0.9); }
        50%       { transform: translateY(-10px) scale(0.9); }
    }
}

/* 3D Background Grid */
.aplicativos-3d-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.aplicativos-3d-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0;
    transform: perspective(800px) rotateX(45deg) translateZ(-200px);
    opacity: 0.4;
}

.app-slide {
    transform-style: preserve-3d;
    transform: translateZ(0) rotateX(0deg) rotateY(0deg);
    transition: transform 0.5s cubic-bezier(0.1, 0.6, 0.4, 1);
    position: relative;
    will-change: transform;
}

/* Sombra dinâmica para efeito de profundidade */
.app-slide::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, transparent 70%);
    filter: blur(15px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.app-slide.parallax-active::before {
    opacity: 1;
}

/* Efeito adicional de brilho */
.app-slide.in-scroll .app-slide__phone-mockup {
    filter: drop-shadow(0 60px 100px rgba(0,0,0,0.3)) 
            drop-shadow(0 20px 40px rgba(31, 100, 188, 0.2));
    transition: filter 0.4s ease;
}

.app-slide.in-scroll {
    animation: slide3dEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slide3dEnter {
    0% {
        opacity: 0;
        transform: translateZ(-500px) rotateX(25deg) rotateY(-15deg) translateY(100px);
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
        transform: translateZ(0) rotateX(0deg) rotateY(0deg) translateY(0);
    }
}

.app-slide__content {
    position: relative;
    z-index: 2;
}

/* 3D Lighting effect no visual */
.app-slide__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                                rgba(255, 255, 255, 0.08), 
                                transparent 80%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-slide.has-mouse-over .app-slide__visual::before {
    opacity: 1;
}

/* Responsive 3D adjustments */
@media (max-width: 768px) {
    .app-slide__content {
        padding-right: 0;
    }
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.site-footer {
    background: var(--color-heading);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
   /*  margin-top: var(--spacing-xxl); */
}

.site-footer__content {
    text-align: center;
}

.site-footer__copyright {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.site-footer__credits {
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Wide Desktop - Espaçamento otimizado */
@media (min-width: 1400px) {
   /*  .topbar__inner {
        gap: var(--spacing-xxl);
    } */
    
    .topbar__info {
        padding-right: var(--spacing-lg);
        margin-right: var(--spacing-lg);
    }
}

/* Desktop - Manter tudo na mesma linha */
@media (min-width: 1025px) {
    .topbar__inner {
        flex-wrap: nowrap;
    }
    
    .topbar__datetime,
    .topbar__info,
    .topbar__languages {
        flex-shrink: 0;
    }
}

@media (max-width: 1024px) {
    :root {
        --container-max-width: 960px;
    }

    /* Menu principal oculto em mobile — renderizado no slide-nav */
    .main-nav__menu {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Logos menores em tablet */
    .main-nav__logo--gov-v1,
    .main-nav__logo--maptss-v1 {
        height: 45px;
    }
    
    .main-nav__logo--gov-v2,
    .main-nav__logo--maptss-v2 {
        height: 40px;
    }
    
    /* Topbar ajustado para tablet */
    .topbar__inner {
        gap: var(--spacing-md);
    }
    
    .topbar__datetime {
        gap: var(--spacing-sm);
        padding-right: var(--spacing-md);
    }
    
    .topbar__info {
        gap: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .topbar__link span {
        display: inline;
    }
}

@media (max-width: 768px) {
    :root {
        --container-max-width: 720px;
        --spacing-xl: 32px;
        --spacing-xxl: 48px;
    }
    
    .site-header {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .hero-section {
        height: calc(100vh - 90px);
        min-height: 500px;
    }
    
    /* Topbar em mobile — apenas data/hora/clima + pesquisa */
    .topbar__inner {
        justify-content: center;
    }

    /* Esconde links e idiomas do topbar em mobile (estão no slide-nav) */
    .topbar__info,
    .topbar__languages {
        display: none;
    }

    .topbar__right {
        margin-left: 0;
        gap: 0;
    }

    .topbar__right > * + * {
        border-left: none;
        padding-left: 0;
    }

    .topbar__datetime {
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }
    
    /* Logos menores em mobile - Versão 1 */
    .main-nav__logo--gov-v1,
    .main-nav__logo--maptss-v1 {
        height: 40px;
    }
    
    /* Logos menores em mobile - Versão 2 */
    .main-nav__logo--gov-v2,
    .main-nav__logo--maptss-v2 {
        height: 35px;
    }
    
    /* Search popup responsive */
    .search-popup {
        width: 95%;
        padding: 0 var(--spacing-sm);
    }
    
    .search-popup .search-form .search-field {
        height: 60px;
        font-size: 16px;
        padding: 0 80px 0 20px;
    }
    
    .search-popup .search-form .search-submit {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    /* Featured banners responsive - tablet */
    .featured-banners-section {
        padding: 40px 0;
    }
    
    .banner-card {
        min-height: 240px;
    }
    
    .banner-card__content {
        bottom: 30px;
        left: 30px;
        right: 30px;
    }
    
    .banner-card__title {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .banner-card__subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .banner-card__btn {
        padding: 10px 24px;
        font-size: 13px;
    }
    
    /* Recent news responsive - tablet */
    .recent-news-section {
        padding: 60px 0;
    }
    
    .section-heading__title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .comunicados-header__title {
        font-size: 36px;
    }
    
    .section-header__title {
        font-size: 36px;
    }
    
    .section-header__icon {
        width: 75px;
        height: 75px;
        font-size: 34px;
    }
    
    .section-header__label {
        font-size: 12px;
    }
    
    .section-header__subtitle {
        font-size: 15px;
    }
    
    .btn-view-all {
        padding: 12px 28px;
        font-size: 14px;
    }
    
    .news-card__thumb {
        height: 220px;
    }
    
    .news-card__content {
        padding: 20px;
    }
    
    .news-card__title {
        font-size: 17px;
    }
    
    /* Comunicados responsive - tablet */
    .comunicados-section {
        padding: 60px 0;
    }
    
    .comunicados-header {
        gap: 12px;
        margin-bottom: 40px;
    }
    
    .comunicados-header__icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .comunicado-card__thumb {
        height: 220px;
    }
    
    .comunicado-card__content {
        padding: 20px;
    }
    
    .comunicado-card__title {
        font-size: 17px;
    }
    
    /* Minister section responsive - tablet */
    .minister-section {
        padding: 70px 0;
    }

    .minister-visual__photo {
        height: 360px;
    }

    .minister-content {
        padding-left: 0;
        margin-top: 0;
    }

    /* Quick Access responsive - tablet */
    .quick-access-section {
        padding: 80px 0;
    }
    
    .quick-access-decor__shape--1 {
        width: 250px;
        height: 250px;
    }
    
    .quick-access-decor__shape--2 {
        width: 150px;
        height: 150px;
    }
    
    .quick-access-decor__circle {
        width: 120px;
        height: 120px;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-header__content {
        gap: 22px;
    }
    
    .section-header__icon {
        width: 75px;
        height: 75px;
        font-size: 34px;
    }
    
    .section-header__label {
        font-size: 12px;
        padding: 5px 16px;
    }
    
    .section-header__title {
        font-size: 38px;
    }
    
    .section-header__subtitle {
        font-size: 16px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .service-card__icon {
        width: 75px;
        height: 75px;
        margin-bottom: 22px;
    }
    
    .service-card__title {
        font-size: 17px;
        min-height: 48px;
        margin-bottom: 18px;
    }
    
    .service-card__link {
        font-size: 14px;
        padding: 10px 24px;
    }
    
    /* Institutions responsive - tablet */
    .institutions-section {
        padding: 80px 0;
    }
    
    .logos-carousel__outer {
        margin-top: 40px;
    }
    
    .logo-item {
        width: 160px;
        height: 90px;
        margin: 0 8px;
    }
    
    /* Aplicativos responsive - tablet */
    .aplicativos-section {
        padding: 80px 0;
    }
    .app-slide__content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    .app-slide__title {
        font-size: 36px;
    }
    .app-slide__desc {
        font-size: 16px;
    }
    .app-slide__float-badge {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Aplicativos mobile: só mockup + botões das lojas */
    .app-slide__label,
    .app-slide__title,
    .app-slide__desc {
        display: none !important;
    }
    .app-slide__nav {
        display: flex;
        justify-content: center;
        margin-top: 16px;
    }
    .app-slide > .row {
        flex-direction: column;
        align-items: center;
    }
    /* col do conteúdo (1º no HTML) vai para baixo */
    .app-slide > .row > *:first-child {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    /* col do mockup (2º no HTML) vai para cima */
    .app-slide > .row > *:last-child {
        order: 1;
        width: 100%;
        margin-bottom: 8px;
    }
    .app-slide__visual {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .app-slide__phone-mockup,
    .app-slide__mockup {
        margin: 0 auto;
    }
    .app-slide__content {
        padding-right: 0;
        margin-bottom: 0;
    }
    .app-slide__badges {
        justify-content: center;
        margin-bottom: 0;
    }
    .app-slide__float-badge,
    .app-slide__rating-badge {
        display: none;
    }
    
    .hero-slide__content {
        padding: 180px var(--spacing-md) var(--spacing-md);
    }
    
    .hero-controls {
        right: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .hero-nav__btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .hero-nav__btn svg {
        width: 18px;
        height: 18px;
    }
    
    .hero-dot {
        width: 7px;
        height: 7px;
    }
    
    .hero-dot.active {
        height: 28px;
    }
    
    .scroll-indicator {
        bottom: 80px;
        font-size: 10px;
        letter-spacing: 2px;
    }
    
    .scroll-indicator svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 576px) {
    :root {
        --container-max-width: 100%;
        --font-size-base: 14px;
    }
    
    .topbar {
        padding: var(--spacing-xs) 0;
    }
    
    .topbar__datetime {
        font-size: 12px;
    }
    
    .topbar__date {
        font-size: 11px;
    }
    
    .topbar__time {
        font-size: 18px;
    }
    
    .topbar__weather {
        font-size: 12px;
    }
    
    .topbar__weather svg {
        width: 20px;
        height: 20px;
    }
    
    .topbar__info {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: var(--spacing-xs);
    }
    
    .topbar__link {
        font-size: 11px;
    }
    
    /* Esconder alguns links em mobile muito pequeno */
    .topbar__languages {
        font-size: 11px;
        gap: 6px;
    }
    
    .topbar__languages a {
        font-size: 11px;
    }
    
    /* Search popup more compact on small mobile */
    .search-popup .search-form .search-field {
        height: 50px;
        font-size: 14px;
        padding: 0 70px 0 15px;
    }
    
    .search-popup .search-form .search-submit {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    /* Featured banners responsive - mobile */
    .featured-banners-section {
        padding: 30px 0;
    }
    
    .banner-card {
        min-height: 200px;
        margin-bottom: 20px;
    }
    
    .banner-card__content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .banner-card__title {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .banner-card__subtitle {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .banner-card__btn {
        padding: 8px 20px;
        font-size: 12px;
    }
    
    /* Recent news responsive - mobile */
    .recent-news-section {
        padding: 40px 0;
    }
    
    .section-heading__title {
        font-size: 32px;
        margin-bottom: 16px;
        text-align: center;
    }
    
    .comunicados-header__title {
        font-size: 32px;
    }
    
    .section-header__title {
        font-size: 32px;
    }
    
    .section-header__icon {
        width: 65px;
        height: 65px;
        font-size: 28px;
    }
    
    .section-header__label {
        font-size: 11px;
    }
    
    .section-header__subtitle {
        font-size: 14px;
    }
    
    .btn-view-all {
        padding: 10px 24px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .news-card {
        margin-bottom: 20px;
    }
    
    .news-card__thumb {
        height: 180px;
    }
    
    .news-card__content {
        padding: 16px;
    }
    
    .news-card__title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .news-card__meta {
        gap: 12px;
        font-size: 12px;
    }
    
    .news-card__meta li {
        font-size: 12px;
    }
    
    /* Comunicados responsive - mobile */
    .comunicados-section {
        padding: 40px 0;
    }
    
    .comunicados-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .comunicados-header__icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .comunicado-card {
        margin-bottom: 20px;
    }
    
    .comunicado-card__thumb {
        height: 180px;
    }
    
    .comunicado-card__content {
        padding: 16px;
    }
    
    .comunicado-card__title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .comunicado-card__meta {
        gap: 12px;
    }
    
    .comunicado-card__meta li {
        font-size: 12px;
    }
    
    /* Minister section responsive - mobile */
    .minister-section {
        padding: 50px 0;
    }
    
    .min-img {
        padding: 30px 30px 30px 0;
    }

    .min-img__photo {
        height: 380px;
    }

    .min-img__badge {
        padding: 12px 14px;
        gap: 10px;
    }

    .min-stat--bottom {
        left: 0;
    }
    
    .minister-content {
        margin-top: 30px;
    }
    
    .minister-content .section-heading {
        margin-bottom: 30px;
    }
    
    /* Quick Access responsive - mobile */
    .quick-access-section {
        padding: 60px 0;
    }
    
    .quick-access-decor__shape--1 {
        width: 180px;
        height: 180px;
        top: -80px;
    }
    
    .quick-access-decor__shape--2 {
        width: 120px;
        height: 120px;
    }
    
    .quick-access-decor__circle {
        width: 100px;
        height: 100px;
        border-width: 2px;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-header__content {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
    
    .section-header__icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin: 0 auto;
    }
    
    .section-header__label {
        font-size: 11px;
        padding: 4px 14px;
    }
    
    .section-header__title {
        font-size: 32px;
    }
    
    .section-header__subtitle {
        font-size: 15px;
    }
    
    .services-grid .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    .service-card {
        padding: 28px 20px;
    }
    
    .service-card__icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .service-card__title {
        font-size: 16px;
        min-height: auto;
        margin-bottom: 16px;
    }
    
    .service-card__link {
        font-size: 13px;
        padding: 9px 20px;
    }
    
    /* Institutions responsive - mobile */
    .institutions-section {
        padding: 60px 0;
    }
    
    .logos-carousel__outer {
        margin-top: 32px;
    }
    
    .logo-item {
        width: 140px;
        height: 80px;
        margin: 0 6px;
    }
    
    /* Aplicativos responsive - mobile */
    .aplicativos-section {
        padding: 60px 0;
    }
    .app-slide__title {
        font-size: 28px;
    }
    .app-slide__desc {
        font-size: 15px;
        margin-bottom: 28px;
    }
    .app-slide__badges {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 32px;
    }
    .app-badge {
        min-width: 100%;
        justify-content: center;
    }
    .app-slide__float-badge {
        position: static;
        margin-top: 20px;
        justify-content: center;
        animation: none;
    }
    .app-slide__mockup {
        max-width: 280px;
    }
    .aplicativos-decor__blob--1 {
        width: 280px;
        height: 280px;
    }
    .aplicativos-decor__blob--2 {
        width: 200px;
        height: 200px;
    }
    
    .minister-content .section-heading__title {
        text-align: center;
    }
    
    .min-img__photo {
        height: 320px;
    }

    .min-img__ring--1,
    .min-img__ring--2 {
        display: none;
    }

    .min-stat--top {
        /* position: static; */
        box-shadow: 0 4px 16px rgba(31,100,188,0.1);
       /*  animation: none; */
    }

    .minister-list__item {
        gap: 14px;
        margin-bottom: 24px;
    }
    
    .minister-list__icon {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }
    
    .minister-list__title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .minister-list__text {
        font-size: 14px;
    }
    
    .btn-minister {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .main-nav {
        padding: var(--spacing-sm) 0;
    }
    
    /* Logos em mobile pequeno */
    .main-nav__logo--gov,
    .main-nav__logo--maptss {
        height: 38px;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .hero-slide__content {
        padding: 150px var(--spacing-sm) var(--spacing-sm);
    }
    
    .hero-slide__title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-slide__excerpt {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .hero-slide__meta {
        gap: var(--spacing-xs);
    }
    
    .hero-slide__meta-item {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .hero-slide__cta {
        padding: 14px 26px;
        font-size: 14px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .hero-controls {
        right: var(--spacing-sm);
        gap: 8px;
    }
    
    .hero-nav__btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .hero-nav__btn svg {
        width: 16px;
        height: 16px;
    }
    
    .hero-dot {
        width: 6px;
        height: 6px;
    }
    
    .hero-dot.active {
        height: 24px;
    }
    
    .scroll-indicator {
        display: none; /* Ocultar em telas muito pequenas */
    }
    
    .hero-slide__excerpt {
        font-size: 14px;
    }
    
    .hero-nav__btn {
        width: 40px;
        height: 40px;
    }
    
    .hero-slide__cta {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .hero-slide__title {
        font-size: 24px;
    }
    
    .hero-nav__btn {
        width: 40px;
        height: 40px;
    }
}

/* =============================================================
   NEWSLETTER CTA SECTION
   ============================================================= */

.newsletter-cta {
    position: relative;
    background: #f4f7fc;
    padding: 80px 0;
    overflow: hidden;
    border-top: 1px solid #e2eaf5;
}

.newsletter-cta__decor {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    pointer-events: none;
}

.newsletter-cta__decor--1 {
    width: 400px;
    height: 400px;
    background: #1F64BC;
    top: -200px;
    left: -100px;
}

.newsletter-cta__decor--2 {
    width: 300px;
    height: 300px;
    background: #1F64BC;
    bottom: -150px;
    right: 5%;
}

.newsletter-cta__label {
    display: inline-flex;
    align-items: center;
    background: rgba(31,100,188,0.1);
    border: 1px solid rgba(31,100,188,0.2);
    color: #1F64BC;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.newsletter-cta__title {
    font-size: 34px;
    font-weight: 800;
    color: #0a1f4e;
    margin-bottom: 12px;
    line-height: 1.2;
}

.newsletter-cta__desc {
    font-size: 15px;
    color: #5a6a85;
    margin: 0;
    line-height: 1.7;
}

.newsletter-cta__form {
    width: 100%;
}

.newsletter-cta__input-wrap {
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 6px 6px 6px 24px;
    box-shadow: 0 4px 24px rgba(31,100,188,0.12);
    border: 1px solid #dbe7f7;
    overflow: hidden;
}

.newsletter-cta__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
    background: transparent;
}

.newsletter-cta__input::placeholder {
    color: #a0aec0;
}

.newsletter-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1F64BC, #1a8fd1);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-cta__btn:hover {
    background: linear-gradient(135deg, #0d4a94, #1F64BC);
    transform: translateX(2px);
}

.newsletter-cta__btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-cta__message {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    padding: 10px 18px;
    border-radius: 8px;
}

.newsletter-cta__message--success {
    display: block;
    background: #e6f4ea;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.newsletter-cta__message--error {
    display: block;
    background: #fdecea;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Campo nome newsletter CTA */
.newsletter-cta__input--name {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid #dbe7f7;
    outline: none;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #2d3748;
    background: #fff;
    box-shadow: 0 4px 24px rgba(31,100,188,.08);
    box-sizing: border-box;
}
.newsletter-cta__input--name::placeholder { color: #aab0be; }
/* =============================================================
   SITE FOOTER
   ============================================================= */

.site-footer {
    background: #0a1f4e;
    color: rgba(255,255,255,0.75);
    font-family: 'Poppins', sans-serif;
}

/* --- Footer Top --- */
.site-footer__top {
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* --- Footer Widget base --- */
.footer-widget__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    padding-bottom: 14px;
    position: relative;
}

.footer-widget__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #1F64BC, #1a8fd1);
    border-radius: 2px;
}

/* --- About / Logo widget --- */
.footer-widget--about .footer-widget__logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-widget--about .footer-widget__logo img {
    max-height: 60px;
    width: auto;
}

.footer-widget__about-text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    margin-bottom: 22px;
}

.footer-widget__contacts {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.footer-widget__contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-widget__contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(31,100,188,0.35);
    border-radius: 8px;
    color: #7ab3f0;
    font-size: 13px;
    margin-top: 1px;
}

.footer-widget__contacts a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-widget__contacts a:hover {
    color: #fff;
}

/* --- Social icons --- */
.footer-widget__social {
    display: flex;
    gap: 10px;
}

.footer-widget__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-widget__social-link:hover {
    background: #1F64BC;
    border-color: #1F64BC;
    color: #fff;
    transform: translateY(-2px);
}

/* --- Footer Links --- */
.footer-widget__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget__links li {
    margin-bottom: 10px;
}

.footer-widget__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-widget__links a i {
    font-size: 10px;
    color: #1a8fd1;
    transition: transform 0.2s ease;
}

.footer-widget__links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-widget__links a:hover i {
    transform: translateX(2px);
}

/* --- App cards in footer --- */
.footer-widget__app-desc {
    font-size: 13.5px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-app-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    transition: background 0.25s;
}

.footer-app-card:hover {
    background: rgba(31,100,188,0.2);
}

.footer-app-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1F64BC, #1a8fd1);
    color: #fff;
    font-size: 18px;
}

.footer-app-card__icon--inss {
    background: linear-gradient(135deg, #0d4a94, #0e5c8a);
}

.footer-app-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer-app-card__info strong {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.footer-app-card__info span {
    font-size: 11.5px;
    color: rgba(255,255,255,0.55);
}

.footer-app-card__badges {
    display: flex;
    gap: 8px;
}

.footer-app-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-app-badge:hover {
    background: #1F64BC;
    color: #fff;
}
.footer-app-badge--disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* --- Footer Bottom --- */
.site-footer__bottom {
    padding: 24px 0;
    background: #061435;
}

.site-footer__copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.6;
}

.site-footer__copyright strong {
    color: rgba(255,255,255,0.8);
}

.site-footer__gov-logos img {
    opacity: 0.6;
    filter: grayscale(0.3) brightness(1.3);
    transition: opacity 0.2s;
}

.site-footer__gov-logos img:hover {
    opacity: 1;
}

.site-footer__credits {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin: 0;
}

.site-footer__credits strong {
    color: rgba(255,255,255,0.6);
}

/* --- Responsive Footer --- */
@media (max-width: 991px) {
    .newsletter-cta {
        padding: 60px 0;
    }
    .newsletter-cta__title {
        font-size: 26px;
    }
    .site-footer__top {
        padding: 60px 0 40px;
    }
}

@media (max-width: 768px) {
    .newsletter-cta__input-wrap {
        flex-direction: column;
        border-radius: 14px;
        padding: 14px;
        gap: 10px;
    }
    .newsletter-cta__input {
        padding: 8px 20px;
    }
    .newsletter-cta__btn {
        justify-content: center;
        border-radius: 10px;
    }

    /* Footer mobile — apenas col 1 visível (logo + contactos + social) */
    .site-footer__top {
        padding: 36px 0 28px;
    }

    /* Oculta cols de links (Institucional, Serviços) e Apps */
    .site-footer__top .row > div:nth-child(2),
    .site-footer__top .row > div:nth-child(3),
    .site-footer__top .row > div:nth-child(4) {
        display: none !important;
    }

    /* Col 1 ocupa toda a largura, centrada */
    .site-footer__top .row > div:first-child {
        width: 100%;
        text-align: center;
    }

    .footer-widget--about .footer-widget__logo {
        display: flex;
        justify-content: center;
    }

    .footer-widget--about .footer-widget__about-text {
        font-size: 13px;
        margin-bottom: 16px;
    }

    /* Contactos em coluna centrada */
    .footer-widget__contacts {
        align-items: center;
        gap: 8px;
    }

    .footer-widget__contacts li {
        justify-content: center;
        font-size: 13px;
    }

    /* Endereço oculto no mobile — muito longo */
    .footer-widget__contacts li:first-child {
        display: none;
    }

    /* Social centrado */
    .footer-widget__social {
        justify-content: center;
    }

    /* Footer bottom */
    .site-footer__bottom .col-lg-9,
    .site-footer__bottom .col-lg-3 {
        text-align: center;
    }

    .site-footer__copyright {
        font-size: 12px;
    }

    .site-footer__credits {
        font-size: 11px;
    }
}

/* ==========================================================================
   SINGLE POST & PAGE TEMPLATES
   ========================================================================== */

/* Header banner */
.post-page-header {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.post-page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.post-page-header__title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.post-breadcrumb {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    position: relative;
    z-index: 1;
}

.post-breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.post-breadcrumb a:hover {
    color: #fff;
}

.post-breadcrumb .sep {
    margin: 0 8px;
    font-size: 10px;
    opacity: 0.6;
}

/* Meta row */
.post-page-header__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    position: relative;
    z-index: 1;
}

.post-page-header__meta i {
    margin-right: 5px;
    color: rgba(255,255,255,0.5);
}

/* Post body section */
.post-body-section {
    padding: 70px 0 90px;
    background: #f9fbff;
}

/* Article card */
.post-article {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(31,100,188,0.07);
    overflow: hidden;
    border: 1px solid #e8eef8;
}

.post-article__thumb {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
}

.post-article__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post-article:hover .post-article__img {
    transform: scale(1.02);
}

.post-article__body {
    padding: 40px 48px;
    font-size: 16px;
    line-height: 1.9;
    color: #3a4060;
}

.post-article__body h1,
.post-article__body h2,
.post-article__body h3,
.post-article__body h4 {
    color: #0a1f4e;
    font-weight: 700;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

.post-article__body h2 { font-size: 22px; }
.post-article__body h3 { font-size: 19px; }

.post-article__body p { margin-bottom: 1.2em; }

.post-article__body a {
    color: #1F64BC;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-article__body ul,
.post-article__body ol {
    padding-left: 24px;
    margin-bottom: 1.2em;
}

.post-article__body li {
    margin-bottom: 6px;
}

.post-article__body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 16px 0;
}

.post-article__body blockquote {
    border-left: 4px solid #1F64BC;
    background: #f0f5ff;
    padding: 16px 24px;
    margin: 24px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #0a1f4e;
}

/* Tags */
.post-article__tags {
    padding: 20px 48px 0;
    border-top: 1px solid #f0f4fb;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.post-article__tags-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7a96;
    margin-right: 4px;
}

.post-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: #eef3fb;
    color: #1F64BC;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #d4e1f7;
    transition: all 0.2s ease;
}

.post-tag:hover {
    background: #1F64BC;
    color: #fff;
    border-color: #1F64BC;
}

/* Share bar */
.post-article__share {
    padding: 24px 48px 36px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-article__share-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7a96;
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn--fb { background: #1877f2; color: #fff; }
.share-btn--fb:hover { background: #0f5ec0; color: #fff; }
.share-btn--tw { background: #1da1f2; color: #fff; }
.share-btn--tw:hover { background: #0d8ecf; color: #fff; }
.share-btn--li { background: #0a66c2; color: #fff; }
.share-btn--li:hover { background: #084e96; color: #fff; }

/* Post navigation */
.post-nav {
    display: flex;
    gap: 20px;
    margin-top: 32px;
}

.post-nav__item {
    flex: 1;
    background: #fff;
    border: 1px solid #e8eef8;
    border-radius: 14px;
    padding: 20px 24px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(31,100,188,0.06);
}

.post-nav__item--next {
    text-align: right;
}

.post-nav__item:hover {
    border-color: #1F64BC;
    box-shadow: 0 6px 24px rgba(31,100,188,0.12);
    transform: translateY(-2px);
}

.post-nav__dir {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1F64BC;
    margin-bottom: 6px;
}

.post-nav__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0a1f4e;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 767px) {
    .post-page-header {
        padding: 50px 0 40px;
    }

    .post-article__body,
    .post-article__tags,
    .post-article__share {
        padding-left: 24px;
        padding-right: 24px;
    }

    .post-nav {
        flex-direction: column;
    }

    .post-nav__item--next {
        text-align: left;
    }
}

/* =====================================================
   COMMENTS
   ===================================================== */
.maptss-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

/* Título de secção */
.comments-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a1f4e;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.comments-section-title i { color: #1F64BC; }

/* Lista de comentários */
.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comments-list .children {
    list-style: none;
    padding-left: 3rem;
    border-left: 3px solid #e9ecef;
    margin-top: 1rem;
}

/* Item de comentário */
.maptss-comment { margin-bottom: 1.5rem; }
.comment-box {
    display: flex;
    gap: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
    transition: border-color .2s;
}
.comment-box:hover { border-color: #1F64BC33; }

.comment-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1F64BC;
    flex-shrink: 0;
}
.comment-avatar__img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1F64BC;
    flex-shrink: 0;
    display: block;
}
.comment-avatar__initials {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
    user-select: none;
    flex-shrink: 0;
}

.comment-content-wrap { flex: 1; min-width: 0; }

.comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    margin-bottom: .5rem;
}
.comment-author-name {
    font-weight: 700;
    color: #0a1f4e;
    font-size: .95rem;
}
.comment-date {
    font-size: .8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.comment-reply a,
.comment-edit a {
    font-size: .8rem;
    color: #1F64BC;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.comment-reply a:hover, .comment-edit a:hover { color: #0a1f4e; }

.comment-text { font-size: .93rem; color: #444; line-height: 1.6; }
.comment-text p:last-child { margin-bottom: 0; }

.comment-awaiting {
    font-size: .82rem;
    color: #e67e22;
    background: #fef9e7;
    border-radius: 6px;
    padding: .3rem .6rem;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.comments-closed {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: #6c757d;
    font-size: .93rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
}

/* Paginação de comentários */
.comments-list-wrap .nav-links { display: flex; gap: .5rem; margin-top: 1.5rem; }
.comments-list-wrap .page-numbers {
    padding: .4rem .9rem;
    border-radius: 6px;
    background: #e9ecef;
    color: #0a1f4e;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.comments-list-wrap .page-numbers.current,
.comments-list-wrap .page-numbers:hover {
    background: #1F64BC;
    color: #fff;
}

/* ===== FORMULÁRIO ===== */

.comment-logged-in {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: #f0f5ff;
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .92rem;
    color: #0a1f4e;
    margin-bottom: 1.25rem;
    border: 1px solid #d0e0ff;
}
.comment-logged-in img { border-radius: 50%; border: 2px solid #1F64BC; }
.comment-logged-in a { color: #1F64BC; text-decoration: none; margin-left: .25rem; }

.comment-form-fields { margin-bottom: 1.25rem; }

.comment-form__label {
    display: block;
    font-size: .87rem;
    font-weight: 600;
    color: #0a1f4e;
    margin-bottom: .35rem;
}
.comment-form__label .required { color: #e74c3c; }

.comment-form__input,
.comment-form__textarea {
    width: 100%;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    padding: .65rem 1rem;
    font-size: .93rem;
    color: #333;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.comment-form__input:focus,
.comment-form__textarea:focus {
    border-color: #1F64BC;
    box-shadow: 0 0 0 3px #1F64BC22;
}
.comment-form__textarea {
    resize: vertical;
    min-height: 130px;
}
.comment-form__textarea-wrap { margin-bottom: 1.25rem; }

.comment-form__submit-wrap { display: flex; justify-content: flex-end; }

.comment-form__submit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, #1F64BC, #0a1f4e);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .7rem 2rem;
    font-size: .95rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    letter-spacing: .02em;
}
.comment-form__submit:hover { opacity: .88; transform: translateY(-1px); }
.comment-form__submit:active { transform: translateY(0); }

/* Responsive */
@media (max-width: 576px) {
    .comments-list .children { padding-left: 1.25rem; }
    .comment-box { flex-direction: column; gap: .75rem; }
    .comment-avatar img { width: 42px; height: 42px; }
    .comment-form__submit { width: 100%; justify-content: center; }
}

/* =======================================================
   SINGLE PAGE — HERO
======================================================= */
.single-hero {
    position: relative;
    min-height: 420px;
    background: linear-gradient(135deg, #0a1f4e 0%, #1F64BC 100%);
    background-size: cover;
    background-position: top center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,31,78,.45) 0%, rgba(10,31,78,.88) 100%);
}
.single-hero__inner {
    position: relative;
    z-index: 2;
    padding-top: 60px;
    padding-bottom: 50px;
}
.single-hero__cat {
    display: inline-block;
    background: #1F64BC;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    text-decoration: none;
    transition: background .2s;
}
.single-hero__cat:hover { background: #e63946; color: #fff; }
.single-hero__title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    max-width: 820px;
}
.single-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: rgba(255,255,255,.78);
    font-size: .85rem;
    margin-bottom: 20px;
}
.single-hero__meta span { display: flex; align-items: center; gap: 6px; }

/* =======================================================
   SINGLE PAGE — LAYOUT
======================================================= */
.single-layout {
    padding: 50px 0 60px;
    background: #f5f7fa;
}

/* =======================================================
   SINGLE — ARTICLE
======================================================= */
.single-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 18px rgba(10,31,78,.07);
    margin-bottom: 32px;
}
/* Colapsível "Continuar a ler" */
.content-collapse.is-collapsed {
    max-height: 800px;
    overflow: hidden;
    position: relative;
}
/* Degradê no fundo do texto colapsado — via ::after nativo, nunca sobresai o texto */
.content-collapse.is-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
}
.content-read-more {
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.content-read-more__btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #fff;
    color: #1F64BC;
    border: 2px solid #1F64BC;
    border-radius: 25px;
    padding: .55rem 1.6rem;
    font-size: .88rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background .2s, color .2s, transform .15s;
    box-shadow: 0 4px 14px rgba(31,100,188,.15);
}
.content-read-more__btn:hover {
    background: #1F64BC;
    color: #fff;
    transform: translateY(-2px);
}
.content-read-more__btn i {
    transition: transform .3s;
}
.content-read-more__btn.is-expanded i {
    transform: rotate(180deg);
}

.single-article .entry-content {
    padding: 32px 32px 0;
    font-size: 1.01rem;
    line-height: 1.85;
    color: #2c3e50;
    text-align: justify;
}
.single-article .entry-content p { margin-bottom: 1.25em; }
.single-article .entry-content img { border-radius: 8px; max-width: 100%; height: auto; }
.single-article .entry-content h2,
.single-article .entry-content h3 { color: #0a1f4e; font-weight: 700; margin-top: 1.6em; }
.single-article .entry-content blockquote {
    border-left: 4px solid #1F64BC;
    background: #eef3fb;
    padding: 16px 24px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #1F64BC;
    margin: 1.5em 0;
}

/* ---- Share bar ---- */
.single-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.single-share--top {
    padding: 16px 32px;
    border-bottom: 1px solid #f0f2f5;
}
.single-share__label {
    font-size: .78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-right: 4px;
}
.single-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 25px;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s, transform .15s;
}
.single-share__btn:hover { opacity: .88; transform: translateY(-2px); color: #fff; }
.single-share--top .single-share__btn { padding: 7px 12px; font-size: .85rem; }
.single-share__btn--fb { background: #1877f2; }
.single-share__btn--tw { background: #1da1f2; }
.single-share__btn--li { background: #0077b5; }
.single-share__btn--wa { background: #25d366; }

/* ---- Article footer ---- */
.single-article__footer {
    padding: 20px 32px 28px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.single-article__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.single-article__tags-label {
    font-size: .78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
}
.single-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .77rem;
    font-weight: 600;
    background: #1F64BC;
    color: #fff;
    text-decoration: none;
    transition: background .2s;
}
.single-tag:hover { background: #0a1f4e; color: #fff; }
.single-tag--grey { background: #e5e7eb; color: #374151; }
.single-tag--grey:hover { background: #d1d5db; color: #111; }

/* =======================================================
   SINGLE — POST NAVIGATION
======================================================= */
.single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}
.single-nav__item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 12px rgba(10,31,78,.06);
    border: 1px solid #e8edf5;
    transition: box-shadow .2s, transform .2s;
}
.single-nav__item:hover { box-shadow: 0 6px 22px rgba(31,100,188,.15); transform: translateY(-3px); }
.single-nav__item--next { text-align: right; }
.single-nav__dir {
    font-size: .75rem;
    font-weight: 700;
    color: #1F64BC;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.single-nav__title {
    font-size: .88rem;
    font-weight: 600;
    color: #0a1f4e;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =======================================================
   SINGLE — RELATED POSTS
======================================================= */
.single-related {
    margin-bottom: 40px;
}
.single-related__title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0a1f4e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8edf5;
}
.single-related__title span { color: #1F64BC; }
.rel-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(10,31,78,.07);
    border: 1px solid #e8edf5;
    transition: box-shadow .2s, transform .2s;
}
.rel-card:hover { box-shadow: 0 8px 28px rgba(31,100,188,.16); transform: translateY(-4px); }
.rel-card__thumb {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #e8edf5;
}
.rel-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rel-card:hover .rel-card__img { transform: scale(1.07); }
.rel-card__no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #9ca3af;
}
.rel-card__cat {
    position: absolute;
    top: 10px; left: 10px;
    background: #1F64BC;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.rel-card__body { padding: 14px 16px 16px; }
.rel-card__title {
    font-size: .9rem;
    font-weight: 700;
    color: #0a1f4e;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rel-card__date {
    font-size: .75rem;
    color: #9ca3af;
}
.rel-card__date i { margin-right: 4px; }

/* =======================================================
   SIDEBAR DIREITA
======================================================= */
/* align-self: flex-start necessário para position:sticky funcionar
   num filho de .row Bootstrap (display:flex com align-items:stretch por defeito) */
.sidebar-sticky-col {
    align-self: flex-start;
}
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 90px;
}
.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 22px 20px 20px;
    box-shadow: 0 2px 14px rgba(10,31,78,.06);
    border: 1px solid #e8edf5;
}
.sidebar-widget__title {
    font-size: .9rem;
    font-weight: 800;
    color: #0a1f4e;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1F64BC;
}

/* Search */
.sidebar-search {
    display: flex;
    border: 1.5px solid #e0e7f0;
    border-radius: 8px;
    overflow: hidden;
}
.sidebar-search__input {
    flex: 1;
    border: none;
    padding: 9px 12px;
    font-size: .85rem;
    outline: none;
    color: #374151;
}
.sidebar-search__btn {
    background: #1F64BC;
    color: #fff;
    border: none;
    padding: 9px 14px;
    cursor: pointer;
    transition: background .2s;
}
.sidebar-search__btn:hover { background: #0a1f4e; }

/* Sidebar posts */
.sidebar-posts { display: flex; flex-direction: column; gap: 14px; }
.sidebar-post {
    display: flex;
    gap: 12px;
    text-decoration: none;
    align-items: flex-start;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f2f5;
}
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-post__thumb {
    width: 68px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8edf5;
}
.sidebar-post__img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post__no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; font-size: 1.3rem;
}
.sidebar-post__info { flex: 1; }
.sidebar-post__cat {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    color: #1F64BC;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.sidebar-post__title {
    font-size: .82rem;
    font-weight: 700;
    color: #0a1f4e;
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.sidebar-post:hover .sidebar-post__title { color: #1F64BC; }
.sidebar-post__date { font-size: .72rem; color: #9ca3af; }
.sidebar-post__date i { margin-right: 3px; }

/* Categories */
.sidebar-cats { list-style: none; padding: 0; margin: 0; }
.sidebar-cats__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px dashed #e8edf5;
    font-size: .84rem;
}
.sidebar-cats__item:last-child { border-bottom: none; }
.sidebar-cats__item a {
    color: #374151;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}
.sidebar-cats__item a i { color: #1F64BC; font-size: .75rem; }
.sidebar-cats__item a:hover { color: #1F64BC; }
.sidebar-cats__item--active { background: #eef3fb; border-radius: 6px; }
.sidebar-cats__item--active a { color: #1F64BC; font-weight: 600; }
.sidebar-cats__item--active .sidebar-cats__count { background: #1F64BC; color: #fff; }
.sidebar-cats__count {
    background: #eef3fb;
    color: #1F64BC;
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Social */
.sidebar-social { display: flex; flex-direction: column; gap: 8px; }
.sidebar-social__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: .83rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: opacity .2s;
}
.sidebar-social__btn:hover { opacity: .88; color: #fff; }
.sidebar-social__btn i { font-size: 1rem; }
.sidebar-social__btn--fb { background: #1877f2; }
.sidebar-social__btn--tw { background: #1da1f2; }
.sidebar-social__btn--yt { background: #ff0000; }
.sidebar-social__btn--ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* Newsletter CTA */
.sidebar-nl {
    background: linear-gradient(135deg, #0a1f4e 0%, #1F64BC 100%);
    border: none;
    text-align: center;
    padding: 28px 20px 24px;
}
.sidebar-nl__icon { font-size: 2rem; color: rgba(255,255,255,.7); margin-bottom: 10px; display: block; }
.sidebar-nl__title { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.sidebar-nl__text { font-size: .82rem; color: rgba(255,255,255,.75); margin-bottom: 16px; line-height: 1.5; }

/* Formulário newsletter na sidebar */
.sidebar-nl__form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.sidebar-nl__input {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: .6rem .9rem;
    font-size: .85rem;
    font-family: 'Poppins', sans-serif;
    color: #0a1f4e;
    outline: none;
    background: rgba(255,255,255,.92);
    transition: background .2s, box-shadow .2s;
}
.sidebar-nl__input::placeholder { color: #7a90b0; }
.sidebar-nl__input:focus { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.sidebar-nl__submit {
    width: 100%;
    border: 2px solid #fff;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    padding: .65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    transition: background .2s, color .2s, transform .15s;
}
.sidebar-nl__submit:hover:not(:disabled) { background: #fff; color: #1F64BC; transform: translateY(-1px); }
.sidebar-nl__submit:disabled { opacity: .6; cursor: not-allowed; }
.sidebar-nl__msg {
    border-radius: 8px;
    padding: .6rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.sidebar-nl__msg--ok { background: rgba(39,174,96,.18); color: #27ae60; }
.sidebar-nl__msg--err { background: rgba(231,76,60,.18); color: #e74c3c; }

/* Botão simples mantido para retro-compat */
.sidebar-nl__btn {
    display: inline-block;
    background: #fff;
    color: #1F64BC;
    font-size: .84rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.sidebar-nl__btn:hover { background: #e8edf5; transform: translateY(-2px); color: #0a1f4e; }

/* =======================================================
   SIDEBAR ESQUERDA
======================================================= */
.single-sidebar-left {
    position: sticky;
    top: 90px;
    background: #fff;
    border-radius: 12px;
    padding: 20px 14px;
    box-shadow: 0 2px 14px rgba(10,31,78,.06);
    border: 1px solid #e8edf5;
}
.sidebar-left__title {
    font-size: .8rem;
    font-weight: 800;
    color: #0a1f4e;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1F64BC;
}
.sidebar-left__list { display: flex; flex-direction: column; gap: 14px; }
.sidebar-left__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f2f5;
}
.sidebar-left__item:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-left__img-wrap {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8edf5;
}
.sidebar-left__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sidebar-left__item:hover .sidebar-left__img { transform: scale(1.07); }
.sidebar-left__no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; font-size: 1.5rem;
}
.sidebar-left__meta { }
.sidebar-left__item-title {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: #0a1f4e;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.sidebar-left__item:hover .sidebar-left__item-title { color: #1F64BC; }
.sidebar-left__item-date { font-size: .7rem; color: #9ca3af; }
.sidebar-left__item-date i { margin-right: 3px; }

/* =======================================================
   RESPONSIVE — SINGLE
======================================================= */
@media (max-width: 991.98px) {
    .single-hero { min-height: 320px; }
    .single-hero__title { font-size: 1.6rem; }
    .single-nav { grid-template-columns: 1fr; }
    .single-article .entry-content { padding: 24px 20px 0; }
    .single-article__footer { padding: 16px 20px 22px; flex-direction: column; align-items: flex-start; }
    .single-share--bottom { width: 100%; }
}
@media (max-width: 575.98px) {
    .single-hero__title { font-size: 1.3rem; }
    .single-hero__meta { gap: 10px; font-size: .78rem; }
    .rel-card__thumb { height: 130px; }
}

/* ==========================================================================
   PÁGINA DE NOTÍCIAS  (page-noticias.php)
   ========================================================================== */

/* ---- Hero ---- */
.n-hero {
    position: relative;
    background: linear-gradient(135deg, #06122a 0%, #0d2361 60%, #1F64BC 100%);
    padding: 72px 0 60px;
    overflow: hidden;
}
.n-hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(31,100,188,.35) 0%, transparent 55%),
        radial-gradient(circle at 10% 80%, rgba(246,166,9,.12) 0%, transparent 50%);
}
.n-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.n-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #f6a609;
}
.n-hero__label-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #f6a609;
    animation: vg-pulse 1.6s ease-in-out infinite;
}
.n-hero__title {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.1;
}

/* ---- Filter Tabs Bar ---- */
.n-tabs-bar {
    background: #fff;
    border-bottom: 1px solid #e5eaf3;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.n-tabs-bar__inner {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    min-height: 56px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
}
.n-tabs-bar__inner::-webkit-scrollbar { display: none; }
.n-tabs-bar__left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #7a8aaa;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 14px;
}
.n-tabs-bar__icon { font-size: 11px; }
.n-tabs-bar__nav {
    display: flex;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}
.n-tabs-bar__nav::-webkit-scrollbar { display: none; }
/* Separador vertical entre categorias e data */
.n-tabs-bar__sep {
    width: 1px;
    height: 22px;
    background: rgba(31,100,188,0.18);
    margin: 0 16px;
    flex-shrink: 0;
}
/* Grupo de filtro de data inline */
.n-tabs-bar__date {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}
.n-tabs-bar__date-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #7a8aaa;
    white-space: nowrap;
}
.n-tabs-bar__date-label i { color: #1F64BC; font-size: 12px; }
.n-tab-btn {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.n-tab-btn:hover {
    background: #f0f4ff;
    color: #1F64BC;
    border-color: #d0ddf7;
}
.n-tab-btn--active {
    background: #1F64BC;
    color: #fff !important;
    border-color: #1F64BC;
}

/* ---- Category badge ---- */
.n-cat-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: #1F64BC;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
    width: fit-content;
}
.n-cat-badge:hover { background: #1550a0; color: #fff; }
.n-cat-badge--sm { font-size: 9px; padding: 3px 10px; }

/* ---- Featured section ---- */
.n-featured {
    padding: 56px 0 0;
    background: #f8fafd;
}
.n-featured__grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    align-items: start;
}

/* Hero card (spans 2 rows) */
.n-feat-hero {
    grid-row: 1 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.n-feat-hero:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}
.n-feat-hero__thumb-link {
    position: relative;
    display: block;
    aspect-ratio: 15.4 / 9;
    overflow: hidden;
}
.n-feat-hero__img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.n-feat-hero:hover .n-feat-hero__img { transform: scale(1.04); }
.n-feat-hero__img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1F64BC, #0a1f4e);
}
.n-feat-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,18,42,0.45) 0%, transparent 60%);
}
.n-feat-hero__body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.n-feat-hero__title {
    font-size: 22px;
    font-weight: 800;
    color: #0a1f4e;
    margin: 0;
    line-height: 1.35;
}
.n-feat-hero__title a { color: inherit; text-decoration: none; }
.n-feat-hero__title a:hover { color: #1F64BC; }
.n-feat-hero__excerpt {
    font-size: 14px;
    color: #566077;
    margin: 0;
    line-height: 1.7;
}

/* Secondary cards */
.n-feat-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 16px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.n-feat-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.11);
    transform: translateY(-3px);
}
.n-feat-card__thumb-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: #e5eaf3;
}
.n-feat-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.n-feat-card:hover .n-feat-card__img { transform: scale(1.05); }
.n-feat-card__img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1F64BC, #0a1f4e);
}
.n-feat-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.n-feat-card:hover .n-feat-card__overlay { opacity: 1; }
.n-feat-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.n-feat-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #0a1f4e;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.n-feat-card__title a { color: inherit; text-decoration: none; }
.n-feat-card__title a:hover { color: #1F64BC; }

/* Post meta */
.n-post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #8a9bbb;
}
.n-post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.n-post-meta i { color: #1F64BC; font-size: 11px; }
.n-post-meta--sm { font-size: 11px; gap: 10px; }

/* ---- Estatísticas por categoria ---- */
.n-cat-stats {
    background: #fff;
    border-bottom: 1px solid #e8edf5;
    padding: 14px 0 16px;
}
.n-cat-stats__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.n-cat-stats__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.n-cat-stats__label i { color: #1f64bc; }
.n-cat-stats__list {
    display: flex;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    padding-bottom: 2px;
}
.n-cat-stats__list::-webkit-scrollbar { display: none; }

.n-cat-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #f4f7fc;
    border: 1.5px solid #e5eaf5;
    border-radius: 10px;
    padding: 10px 18px 8px;
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .15s;
    min-width: 84px;
    cursor: pointer;
    flex-shrink: 0;
}
.n-cat-stat:hover {
    background: #ebf2ff;
    border-color: #1f64bc;
    transform: translateY(-1px);
}
.n-cat-stat--active {
    background: #1f64bc;
    border-color: #1f64bc;
}
.n-cat-stat__name {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    white-space: nowrap;
    line-height: 1.3;
    order: 2;
}
.n-cat-stat:hover:not(.n-cat-stat--active) .n-cat-stat__name { color: #1f64bc; }
.n-cat-stat--active .n-cat-stat__name { color: rgba(255,255,255,.80); }

.n-cat-stat__count {
    font-size: 24px;
    font-weight: 800;
    color: #1f64bc;
    line-height: 1;
    order: 1;
    letter-spacing: -1px;
}
.n-cat-stat--active .n-cat-stat__count { color: #FFCB00; }

.n-cat-stat__bar {
    width: 100%;
    height: 3px;
    background: rgba(31,100,188,.12);
    border-radius: 10px;
    overflow: hidden;
    order: 3;
}
.n-cat-stat__bar span {
    display: block;
    height: 100%;
    background: #1f64bc;
    border-radius: 10px;
    min-width: 8%;
    transition: width .4s ease;
}
.n-cat-stat--active .n-cat-stat__bar { background: rgba(255,255,255,.20); }
.n-cat-stat--active .n-cat-stat__bar span { background: #FFCB00; }

@media (max-width: 600px) {
    .n-cat-stats__label { display: none; }
    .n-cat-stats { padding: 10px 0 12px; }
}

/* ---- Posts Grid ---- */
.n-grid-section {
    padding: 48px 0 80px;
    background: #f8fafd;
}
.n-grid-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5eaf3;
}
.n-grid-header__title {
    font-size: 22px;
    font-weight: 800;
    color: #0a1f4e;
    margin: 0;
}
.n-grid-header__page {
    font-size: 16px;
    font-weight: 400;
    color: #8a9bbb;
}
.n-grid-header__count {
    font-size: 13px;
    font-weight: 600;
    color: #8a9bbb;
    background: #e5eaf3;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Card grid */
.n-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card */
.n-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.n-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.11);
}
.n-card__thumb-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5eaf3;
}
.n-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.n-card:hover .n-card__img { transform: scale(1.06); }
.n-card__img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #c9d8f0, #e5eaf3);
}
.n-card__img-overlay {
    position: absolute; inset: 0;
    background: rgba(10,31,78,0.0);
    transition: background 0.3s ease;
}
.n-card:hover .n-card__img-overlay { background: rgba(10,31,78,0.12); }
.n-card__body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.n-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #0a1f4e;
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.n-card__title a { color: inherit; text-decoration: none; }
.n-card__title a:hover { color: #1F64BC; }
.n-card__excerpt {
    font-size: 13px;
    color: #566077;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.n-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f4fb;
}
.n-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #f0f4ff;
    color: #1F64BC;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.n-card__cta:hover {
    background: #1F64BC;
    color: #fff;
    transform: translateX(2px);
}

/* Empty state */
.n-empty {
    text-align: center;
    padding: 80px 20px;
    color: #a0aec0;
}
.n-empty i { font-size: 48px; margin-bottom: 16px; display: block; opacity: 0.5; }
.n-empty p { font-size: 16px; margin: 0; }

/* ---- Pagination ---- */
.n-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
    flex-wrap: wrap;
}
.n-pagination__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 40px;
    background: #fff;
    border: 1px solid #e5eaf3;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.n-pagination__num:hover {
    background: #f0f4ff;
    border-color: #c5d4f5;
    color: #1F64BC;
}
.n-pagination__num--active {
    background: #1F64BC;
    border-color: #1F64BC;
    color: #fff !important;
    pointer-events: none;
}
.n-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 40px;
    background: #fff;
    border: 1px solid #e5eaf3;
    color: #1F64BC;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.n-pagination__btn:hover {
    background: #1F64BC;
    border-color: #1F64BC;
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .n-featured__grid { grid-template-columns: 1fr 1fr; }
    .n-feat-hero { grid-row: auto; grid-column: 1 / 3; }
    .n-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .n-featured { padding: 40px 0 0; display: none;}
    .n-featured__grid { grid-template-columns: 1fr; }
    .n-feat-hero { grid-column: auto; }
    .n-tabs-bar__left { display: none; }
    .n-tabs-bar__date-label { display: none; }
    .n-tabs-bar__sep { display: none; }
    .n-tabs-bar__inner { flex-wrap: wrap; gap: 6px; padding: 8px 0; }
    .n-hero { padding: 52px 0 44px; }
}
@media (max-width: 576px) {
    .n-grid { grid-template-columns: 1fr; }
    .n-feat-hero__body { padding: 18px 18px 20px; }
    .n-feat-hero__title { font-size: 17px; }
    .n-grid-section { padding: 36px 0 56px; }
    .n-tabs-bar__date { gap: 6px; }
    .n-date-select { min-width: 90px; font-size: 12px; }
}

/* ==========================================================================
   FILTRO DE DATAS — barra abaixo do filtro de categorias
   ========================================================================== */

.n-date-filter {
    background: #f4f7fb;
    border-bottom: 1px solid rgba(31,100,188,0.10);
    padding: 10px 0;
}
.n-date-filter__form {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.n-date-filter__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #5a6a85;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.n-date-filter__label i {
    color: #1F64BC;
    font-size: 13px;
}
.n-date-filter__controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.n-date-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231F64BC' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1.5px solid #d1ddf0;
    border-radius: 8px;
    padding: 6px 30px 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1a2d4d;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 130px;
}
.n-date-select:hover,
.n-date-select:focus {
    border-color: #1F64BC;
    box-shadow: 0 0 0 3px rgba(31,100,188,0.10);
    outline: none;
}
.n-date-filter__clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #e05a1a;
    text-decoration: none;
    padding: 6px 12px;
    border: 1.5px solid #e05a1a;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.n-date-filter__clear:hover {
    background: #e05a1a;
    color: #fff;
}
.n-date-filter__badge {
    display: inline-flex;
    align-items: center;
    background: #1F64BC;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* Contador de posts no tab de categoria */
.n-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31,100,188,0.12);
    color: #1F64BC;
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    margin-left: 5px;
    transition: background 0.2s, color 0.2s;
}
.n-tab-btn--active .n-tab-count,
.n-tab-btn:hover .n-tab-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Hero description */
.n-hero__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.80);
    max-width: 540px;
    margin: 8px 0 0;
    line-height: 1.6;
}

/* Filtro header title supplement */
.n-grid-header__filter {
    color: #1F64BC;
    font-weight: 500;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .n-date-filter__label { display: none; }
    .n-date-select { min-width: 110px; font-size: 12px; }
}
@media (max-width: 480px) {
    .n-date-filter__form { gap: 8px; }
    .n-date-select { min-width: 90px; }
}

/* =============================================================
   PÁGINA SOBRE O MAPTSS  (page-sobre-maptss.php)
   ============================================================= */

/* ---- Hero ---- */
.sobre-hero {
    background: linear-gradient(120deg, #071530 0%, #0e2d6b 55%, #1f64bc 100%);
    padding: 52px 0 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.sobre-hero__deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}
.sobre-hero__deco--1 { width: 420px; height: 420px; top: -150px; right: -80px; }
.sobre-hero__deco--2 { width: 220px; height: 220px; bottom: -100px; left: 10%; opacity: .04; }
.sobre-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.5);
    margin-bottom: 28px;
}
.sobre-hero__breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.sobre-hero__breadcrumb a:hover { color: #fff; }
.sobre-hero__breadcrumb .sep { font-size: 9px; opacity: .5; }
.sobre-hero__body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.sobre-hero__label {
    font-size: 11px;
    font-weight: 700;
    color: #FFCB00;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.sobre-hero__title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    margin: 0 0 14px;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.3px;
}
.sobre-hero__sub {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    max-width: 580px;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   MAPA DO SITE  (ms-*)
   ========================================================================== */

/* Hero */
.ms-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a4fa0 100%);
    padding: 60px 0 48px;
    position: relative;
    overflow: hidden;
}
.ms-hero__deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    pointer-events: none;
}
.ms-hero__deco--1 { width: 420px; height: 420px; top: -150px; right: -80px; }
.ms-hero__deco--2 { width: 220px; height: 220px; bottom: -100px; left: 10%; opacity: .04; }

.ms-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.55);
    margin-bottom: 28px;
}
.ms-hero__breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.ms-hero__breadcrumb a:hover { color: #fff; }
.ms-hero__breadcrumb .sep { font-size: 9px; opacity: .5; }
.ms-hero__body { max-width: 640px; }
.ms-hero__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}
.ms-hero__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}
.ms-hero__sub {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    line-height: 1.7;
    margin: 0;
}

/* =============================================================
   MAPA DO SITE — Layout redesenhado
   ============================================================= */

/* Hero stats (dentro do sobre-hero) */
.ms-hero__body-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.ms-hero-stats {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.ms-hero-stat {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    padding: 14px 20px;
    text-align: center;
    min-width: 72px;
    backdrop-filter: blur(4px);
}
.ms-hero-stat strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #f6c90e;
    line-height: 1;
}
.ms-hero-stat span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 4px;
}
@media (max-width: 768px) {
    .ms-hero__body-flex { flex-direction: column; align-items: flex-start; }
    .ms-hero-stats { gap: 6px; }
    .ms-hero-stat { padding: 10px 14px; min-width: 60px; }
    .ms-hero-stat strong { font-size: 20px; }
    .sobre-hero__breadcrumb span {display: none;}
}

/* Barra de pesquisa — estilo integrado no hero (igual à página FAQ) */
.ms-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px 12px 0 0;
    padding: 0 20px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.15);
    margin: 24px 0 0;
}
.ms-search__icon {
    color: #a0aec0;
    font-size: 15px;
    flex-shrink: 0;
    margin-right: 12px;
    pointer-events: none;
}
.ms-search #ms-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 0;
    font-size: 15px;
    color: #1a2d4d;
    background: transparent;
    font-family: inherit;
}
.ms-search #ms-search-input::placeholder { color: #adb5bd; }
.ms-search__clear {
    background: none; border: none; color: #a0aec0;
    cursor: pointer; padding: 6px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; transition: all .2s;
}
.ms-search__clear:hover { background: #fee2e2; color: #dc2626; }
/* Resultados da pesquisa */
.ms-search-results {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    overflow: hidden;
}
.ms-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f4fb;
    font-size: 14px;
    color: #2d3748;
    transition: background .15s;
}
.ms-search-result:last-child { border-bottom: none; }
.ms-search-result:hover, .ms-search-result--active { background: #eef3fc; color: var(--color-primary); }
.ms-search-result i:first-child { font-size: 13px; color: var(--color-primary); width: 18px; flex-shrink: 0; }
.ms-search-result span { flex: 1; }
.ms-search-result mark { background: #fef3c7; border-radius: 2px; padding: 0 2px; color: inherit; }
.ms-sr-arrow { font-size: 11px; color: #a0aec0; }
.ms-search-empty { padding: 16px 20px; text-align: center; color: #a0aec0; font-size: 14px; }

/* Body */
.ms-body {
    padding: 60px 0 80px;
    background: #f5f7fc;
}

/* Titles de bloco */
.ms-block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 48px 0 20px;
}
.ms-block-title:first-child { margin-top: 0; }
.ms-block-title__icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--color-primary), #1a4fa0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}
.ms-block-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a2d4d;
    margin: 0;
    flex: 1;
}
.ms-block-title__count {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(31,100,188,.1);
    border-radius: 20px;
    padding: 3px 10px;
}

/* Grid de páginas */
.ms-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
@media (max-width: 600px) { .ms-pages-grid { grid-template-columns: 1fr; } }

/* Card de página */
.ms-page-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8edf5;
    box-shadow: 0 1px 8px rgba(31,100,188,.06);
    overflow: hidden;
    transition: box-shadow .2s;
}
.ms-page-card:hover { box-shadow: 0 4px 20px rgba(31,100,188,.12); }
.ms-page-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}
.ms-page-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef3fc, #dae6fb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 16px;
    flex-shrink: 0;
}
.ms-page-card__meta { flex: 1; min-width: 0; }
.ms-page-card__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a2d4d;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .2s;
}
.ms-page-card__title:hover { color: var(--color-primary); }
.ms-page-card__sub {
    display: block;
    font-size: 12px;
    color: #a0aec0;
    margin-top: 2px;
}
.ms-page-card__toggle {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #718096;
    font-size: 11px;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.ms-page-card__toggle:hover { background: #eef3fc; color: var(--color-primary); border-color: var(--color-primary); }
.ms-page-card__toggle i { transition: transform .2s; }
.ms-page-card__body {
    border-top: 1px solid #f0f4fb;
    padding: 8px 16px 12px;
    background: #fafcff;
}

/* Tree de sub-páginas */
.ms-tree { }
.ms-tree__children {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ms-tree__children--d0 { padding: 0; }
.ms-tree__children--d1 { padding-left: 18px; }
.ms-tree__child { }
.ms-tree__child a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    color: #4a5568;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.ms-tree__child a:hover { background: #eef3fc; color: var(--color-primary); }
.ms-tree__cicon { font-size: 12px; color: var(--color-primary); opacity: .7; flex-shrink: 0; }

/* Tiles de navega\u00e7\u00e3o CPT */
.ms-cpt-tiles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ms-cpt-tile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-left: 4px solid var(--tile-color, #2b6cb0);
    border-radius: 10px;
    padding: 16px 20px;
    text-decoration: none;
    color: #2d3748;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
    transition: box-shadow .2s, transform .15s, border-color .15s;
}
.ms-cpt-tile:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.10);
    transform: translateX(3px);
    color: var(--color-primary);
}
.ms-cpt-tile__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--tile-color, #2b6cb0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ms-cpt-tile__body { flex: 1; min-width: 0; }
.ms-cpt-tile__label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a2d4d;
    margin-bottom: 2px;
}
.ms-cpt-tile:hover .ms-cpt-tile__label { color: var(--color-primary); }
.ms-cpt-tile__desc {
    font-size: 12.5px;
    color: #718096;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ms-cpt-tile__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.ms-cpt-tile__count {
    font-size: 20px;
    font-weight: 800;
    color: var(--tile-color, #2b6cb0);
    min-width: 32px;
    text-align: right;
    line-height: 1;
}
.ms-cpt-tile__arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--tile-color, #2b6cb0);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: .8;
    transition: opacity .15s;
}
.ms-cpt-tile:hover .ms-cpt-tile__arrow { opacity: 1; }
@media (max-width: 600px) {
    .ms-cpt-tile { padding: 12px 14px; gap: 12px; }
    .ms-cpt-tile__icon { width: 36px; height: 36px; font-size: 15px; }
    .ms-cpt-tile__count { font-size: 16px; }
    .ms-cpt-tile__desc { display: none; }
}

/* Grid de categorias */
.ms-cats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ms-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 13px;
    color: #2d3748;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.ms-cat-pill:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(31,100,188,.25);
}
.ms-cat-pill i { font-size: 11px; opacity: .7; }
.ms-cat-pill strong {
    background: #e2e8f0;
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 11px;
    transition: background .2s, color .2s;
}
.ms-cat-pill:hover strong { background: rgba(255,255,255,.25); color: #fff; }

/* Rodapé do mapa */
.ms-footer-note {
    margin-top: 48px;
    padding: 18px 24px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8edf5;
    font-size: 13px;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ms-footer-note strong { color: #2d3748; }
.ms-footer-note a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.ms-footer-note a:hover { text-decoration: underline; }

/* ---- Tabs de navegação interna ---- */
.sobre-tabs-wrap {
    background: #fff;
    border-bottom: 2px solid #e8edf5;
    position: sticky;
    top: 0;
    z-index: 200;
}
.sobre-tabs {
    display: flex;
    gap: 0;
}
.sobre-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}
.sobre-tab:hover { color: #1F64BC; }
.sobre-tab--active { color: #1F64BC; border-bottom-color: #1F64BC; }
.sobre-tab i { font-size: 13px; opacity: .75; }

/* ---- Main wrapper ---- */
.sobre-main { padding: 56px 0 80px; background: #f8fafd; }

/* =============================================================
   MISSÃO, VISÃO E VALORES
   ============================================================= */
.sobre-mvv {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Card base */
.mvv-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0 32px;
    background: #fff;
    border-radius: 16px;
    padding: 40px 40px 40px 0;
    box-shadow: 0 2px 16px rgba(31,100,188,.07);
    overflow: hidden;
    position: relative;
}
.mvv-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    border-radius: 4px 0 0 4px;
}
.mvv-card--missao::before  { background: #1F64BC; }
.mvv-card--visao::before   { background: #27ae60; }
.mvv-card--valores::before { background: #e67e22; }

/* Icon wrap */
.mvv-card__icon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0 0 40px;
}
.mvv-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}
.mvv-card--missao  .mvv-card__icon { background: #1F64BC; }
.mvv-card--visao   .mvv-card__icon { background: #27ae60; }
.mvv-card--valores .mvv-card__icon { background: #e67e22; }

.mvv-card__label-line {
    width: 2px;
    flex: 1;
    margin-top: 12px;
    border-radius: 2px;
    opacity: .2;
    min-height: 20px;
}
.mvv-card--missao  .mvv-card__label-line { background: #1F64BC; }
.mvv-card--visao   .mvv-card__label-line { background: #27ae60; }
.mvv-card--valores .mvv-card__label-line { background: #e67e22; }

/* Body */
.mvv-card__body { padding: 36px 0 36px; }
.mvv-card__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0a1f4e;
    margin-bottom: 14px;
}
.mvv-card__text {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 0;
}

/* Chips de valores */
.mvv-valores-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.mvv-chip {
    display: inline-flex;
    align-items: center;
    background: #eef4fc;
    color: #1F64BC;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #c8ddf7;
}

/* =============================================================
   NOSSA HISTÓRIA
   ============================================================= */
.sobre-historia { }

/* Intro */
.historia-intro {
    text-align: center;
    margin-bottom: 56px;
}
.historia-intro__title {
    font-size: 2rem;
    font-weight: 800;
    color: #0a1f4e;
    margin-bottom: 8px;
}
.historia-intro__sub {
    font-size: 1rem;
    color: #666;
}

/* Timeline */
.historia-timeline {
    position: relative;
    padding: 0 0 48px;
    margin-bottom: 56px;
}
.historia-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #1F64BC, #c8ddf7);
    transform: translateX(-50%);
    border-radius: 3px;
}

.tl-item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 40px;
    position: relative;
    width: 50%;
}
.tl-item--left  { margin-left: 0; padding-right: 60px; flex-direction: row-reverse; text-align: right; }
.tl-item--right { margin-left: 50%; padding-left: 60px; }

.tl-marker {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tl-item--left  .tl-marker { right: -22px; }
.tl-item--right .tl-marker { left: -22px; }

.tl-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 36px;
    background: #1F64BC;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    border-radius: 18px;
    padding: 0 14px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(31,100,188,.3);
}

.tl-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(31,100,188,.08);
    border: 1px solid #e8edf5;
    flex: 1;
}
.tl-content__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0a1f4e;
    margin-bottom: 8px;
}
.tl-content__text {
    font-size: .93rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Domínios */
.historia-dominios {
    margin-bottom: 56px;
}
.historia-dominios__title,
.historia-organismos__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0a1f4e;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 12px;
}
.historia-dominios__title::after,
.historia-organismos__title::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 48px; height: 3px;
    background: #1F64BC;
    border-radius: 2px;
}

.dominio-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px;
    height: 100%;
    box-shadow: 0 2px 12px rgba(31,100,188,.07);
    border-top: 4px solid #1F64BC;
    transition: transform .2s, box-shadow .2s;
}
.dominio-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(31,100,188,.14); }
.dominio-card__icon {
    font-size: 28px;
    color: #1F64BC;
    margin-bottom: 18px;
}
.dominio-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a1f4e;
    margin-bottom: 12px;
}
.dominio-card__text {
    font-size: .93rem;
    line-height: 1.75;
    color: #555;
    margin: 0;
}

/* Organismos */
.historia-organismos { }
.organismos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.org-card {
    flex: 0 0 calc(25% - 12px);
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(31,100,188,.06);
    border: 1px solid #e8edf5;
    transition: border-color .2s;
}
.org-card:hover { border-color: #1F64BC; }
.org-card__sigla {
    min-width: 72px;
    height: 48px;
    background: #1F64BC;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .5px;
    flex-shrink: 0;
}
.org-card__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.org-card__nome {
    font-size: .88rem;
    font-weight: 600;
    color: #0a1f4e;
    line-height: 1.3;
}
.org-card__decreto {
    font-size: .78rem;
    color: #888;
}

/* =============================================================
   RESPONSIVE — SOBRE MAPTSS
   ============================================================= */
@media (max-width: 991px) {
    .historia-timeline::before { left: 20px; }
    .tl-item { width: 100%; margin-left: 0 !important; padding-left: 60px !important; padding-right: 0 !important; flex-direction: row !important; text-align: left !important; }
    .tl-item--left  .tl-marker,
    .tl-item--right .tl-marker { left: -6px; right: auto; }
}
@media (max-width: 767px) {
    .sobre-hero { padding: 40px 0 32px; }
    .sobre-tab  { padding: 12px 16px; font-size: 13px; }
    .mvv-card   { grid-template-columns: 1fr; padding: 28px; }
    .mvv-card__icon-wrap { flex-direction: row; padding: 0 0 16px; }
    .mvv-card__label-line { display: none; }
    .mvv-card__body { padding: 0; }
    .historia-dominios__title,
    .historia-organismos__title { font-size: 1.3rem; }
}

/* =============================================================
   GALERIA DE MINISTROS  (page-galeria-ministros.php)
   ============================================================= */

/* ---- Hero ---- */
.gm-hero {
    background: linear-gradient(120deg, #071530 0%, #0e2d6b 55%, #1f64bc 100%);
    padding: 52px 0 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.gm-hero__deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}
.gm-hero__deco--1 { width: 420px; height: 420px; top: -150px; right: -80px; }
.gm-hero__deco--2 { width: 220px; height: 220px; bottom: -100px; left: 10%; opacity: .04; }
.gm-hero__breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 28px;
}
.gm-hero__breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.gm-hero__breadcrumb a:hover { color: #fff; }
.gm-hero__breadcrumb .sep { font-size: 9px; opacity: .5; }
.gm-hero__label {
    font-size: 11px;
    font-weight: 700;
    color: #FFCB00;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.gm-hero__body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.gm-hero__title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800; color: #fff; margin: 0 0 14px;
    line-height: 1.1; letter-spacing: -.3px;
}
.gm-hero__sub { font-size: 14px; color: rgba(255,255,255,.65); max-width: 580px; line-height: 1.7; margin: 0; }

/* Stats */
.gm-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.gm-stat { display: flex; flex-direction: column; }
.gm-stat { text-align: center; }
.gm-stat__num {
    display: block;
    font-size: 42px; font-weight: 800; color: #FFCB00; line-height: 1;
}
.gm-stat__label { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* ---- Controles ---- */
.gm-controls-wrap {
    background: #fff;
    border-bottom: 1px solid #e8edf5;
    padding: 16px 0 8px;
    position: sticky; top: 0; z-index: 200;
}
.gm-controls {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
}

/* Pesquisa */
.gm-search {
    position: relative; flex: 1 1 220px; min-width: 180px;
}
.gm-search__icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #999; pointer-events: none; font-size: 14px;
}
.gm-search__input {
    width: 100%; padding: 8px 12px 8px 34px;
    border: 1px solid #dde3ef; border-radius: 8px;
    font-size: 14px; color: #333; outline: none;
    transition: border-color .2s;
}
.gm-search__input:focus { border-color: #1F64BC; }

/* Filtros */
.gm-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.gm-filter {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 20px; border: 1px solid #dde3ef;
    background: #fff; font-size: 13px; font-weight: 600; color: #555;
    cursor: pointer; transition: all .2s; white-space: nowrap;
}
.gm-filter:hover { border-color: #1F64BC; color: #1F64BC; }
.gm-filter--active { background: #1F64BC; color: #fff; border-color: #1F64BC; }
.gm-filter--active .gm-filter__count { background: rgba(255,255,255,.25); color: #fff; }
.gm-filter__count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 4px;
    background: #eef4fc; color: #1F64BC;
    border-radius: 10px; font-size: 11px; font-weight: 700;
}

/* Toggle view */
.gm-view-toggle { display: flex; gap: 4px; margin-left: auto; }
.gm-view-btn {
    width: 34px; height: 34px; border-radius: 40px;
    border: 1px solid #dde3ef; background: #fff;
    display: flex; align-items: center; justify-content: center;
    color: #888; cursor: pointer; font-size: 14px; transition: all .2s;
}
.gm-view-btn:hover { border-color: #1F64BC; color: #1F64BC; }
.gm-view-btn--active { background: #1F64BC; color: #fff; border-color: #1F64BC; }

/* Contador */
.gm-results-info {
    font-size: 13px; color: #888; margin: 6px 0 0;
}

/* ---- Secção grid ---- */
.gm-section { padding: 48px 0 72px; background: #f8fafd; }

/* ---- Grelha de cards ---- */
.gm-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.gm-grid > .gm-card {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
}

/* View lista */
.gm-grid--list { justify-content: flex-start; }
.gm-grid--list > .gm-card { flex: 0 0 100%; max-width: 100%; }
.gm-grid--list .gm-card {
    flex-direction: row; align-items: center; gap: 20px; padding: 0;
}
.gm-grid--list .gm-card__photo-wrap {
    width: 80px; height: 80px; min-width: 80px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
}
.gm-grid--list .gm-card__photo-wrap .gm-card__year { display: none; }
.gm-grid--list .gm-card__photo-wrap .gm-card__overlay { border-radius: 50%; }
.gm-grid--list .gm-card__body { padding: 16px 16px 16px 0; }

/* ---- Card ---- */
.gm-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(31,100,188,.07);
    transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.gm-card:hover { transform: translateY(-6px); box-shadow: 0 10px 28px rgba(31,100,188,.15); }

/* Foto */
.gm-card__photo-wrap {
    position: relative; width: 100%; padding-top: 110%; /* ratio */
    overflow: hidden; background: #eef4fc;
}
.gm-card__photo {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    transition: transform .4s;
    filter: grayscale(100%);
}
.gm-card:hover .gm-card__photo { transform: scale(1.05); }
.gm-card__photo-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: #a0b4d6;
}
.gm-card__year {
    position: absolute; bottom: 8px; left: 10px;
    background: #1F64BC; color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 2px 10px; border-radius: 12px;
    letter-spacing: .5px;
}
.gm-card__overlay {
    position: absolute; inset: 0;
    background: rgba(10,31,78,.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .25s;
}
.gm-card:hover .gm-card__overlay { opacity: 1; }
.gm-card__detail-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; color: #1F64BC;
    font-size: 13px; font-weight: 700;
    padding: 8px 18px; border-radius: 20px;
    border: none; cursor: pointer;
    transition: background .2s, color .2s;
}
.gm-card__detail-btn:hover { background: #1F64BC; color: #fff; }

/* Body */
.gm-card__body { padding: 16px; flex: 1; }
.gm-card__name {
    font-size: .95rem; font-weight: 700; color: #0a1f4e;
    margin: 0 0 4px; line-height: 1.3;
}
.gm-card__role {
    font-size: .8rem; color: #555; margin: 0 0 8px; line-height: 1.4;
}
.gm-card__period {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .78rem; color: #888;
}

/* ---- Estado vazio ---- */
.gm-empty, .gm-no-results {
    grid-column: 1 / -1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 60px 20px; gap: 12px; color: #888;
}
.gm-empty i, .gm-no-results i { font-size: 3rem; color: #c5d4eb; }
.gm-empty__link, .gm-no-results__reset {
    margin-top: 8px; display: inline-flex; align-items: center;
    background: #1F64BC; color: #fff;
    border: none; cursor: pointer;
    font-size: 14px; font-weight: 600;
    padding: 10px 22px; border-radius: 20px;
    text-decoration: none; transition: background .2s;
}
.gm-empty__link:hover, .gm-no-results__reset:hover { background: #1550a0; color: #fff; }

/* ---- Linha do Tempo ---- */
.gm-timeline-section {
    background: #fff; padding: 64px 0 80px;
    border-top: 1px solid #e8edf5;
}
.gm-timeline-section__title {
    font-size: 1.6rem; font-weight: 800; color: #0a1f4e;
    text-align: center; margin-bottom: 48px;
}
.gm-timeline-section__title i { color: #1F64BC; margin-right: 8px; }

.gm-timeline {
    position: relative;
    max-width: 860px; margin: 0 auto;
    padding: 0 0 32px;
}
.gm-timeline::before {
    content: ''; position: absolute;
    left: 50%; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(to bottom, #1F64BC, #c8ddf7);
    transform: translateX(-50%); border-radius: 3px;
}

.gm-tl-item {
    display: flex; align-items: flex-start; gap: 24px;
    margin-bottom: 36px; position: relative; width: 50%;
}
.gm-tl-item.tl--left {
    margin-left: 0; padding-right: 52px;
    flex-direction: row-reverse; text-align: right;
}
.gm-tl-item.tl--right { margin-left: 50%; padding-left: 52px; }

/* Marcador */
.gm-tl-marker {
    position: absolute; z-index: 2;
}
.gm-tl-item.tl--left  .gm-tl-marker { right: -26px; }
.gm-tl-item.tl--right .gm-tl-marker { left: -26px; }
.gm-tl-marker__photo {
    width: 52px; height: 52px; border-radius: 50%;
    object-fit: cover; object-position: top center;
    border: 3px solid #1F64BC;
    box-shadow: 0 2px 10px rgba(31,100,188,.25);
    filter: grayscale(100%);
}
.gm-tl-marker__initial {
    width: 52px; height: 52px; border-radius: 50%;
    background: #1F64BC; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(31,100,188,.25);
}

/* Conteúdo da timeline */
.gm-tl-content {
    background: #f8fafd; border: 1px solid #e8edf5;
    border-radius: 12px; padding: 16px 20px;
    flex: 1;
    transition: box-shadow .2s;
}
.gm-tl-content:hover { box-shadow: 0 4px 16px rgba(31,100,188,.1); }
.gm-tl-year {
    display: inline-block; background: #1F64BC; color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .5px;
    padding: 2px 10px; border-radius: 12px; margin-bottom: 6px;
}
.gm-tl-name { font-size: .95rem; font-weight: 700; color: #0a1f4e; margin: 0 0 3px; }
.gm-tl-role { font-size: .82rem; color: #555; margin: 0 0 4px; }
.gm-tl-period { font-size: .78rem; color: #888; }

/* ---- Modal ---- */
.gm-modal-backdrop {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(10,31,78,.55);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}
body.gm-modal-open { overflow: hidden; }

.gm-modal {
    background: #fff; border-radius: 20px;
    width: 100%; max-width: 740px;
    max-height: 90vh; overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(10,31,78,.25);
}
.gm-modal__close {
    position: sticky; top: 16px; float: right;
    margin: 16px 16px 0 0;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid #e8edf5; background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; color: #555;
    transition: background .2s, color .2s;
    z-index: 10;
}
.gm-modal__close:hover { background: #1F64BC; color: #fff; border-color: #1F64BC; }

.gm-modal__body {
    display: grid; grid-template-columns: 200px 1fr;
    gap: 0; clear: both;
}
.gm-modal__photo-col {
    background: #eef4fc;
    border-radius: 20px 0 0 20px; overflow: hidden;
    display: flex; align-items: flex-start;
}
.gm-modal__photo {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    min-height: 280px;
}
.gm-modal__photo-placeholder {
    width: 100%; min-height: 200px;
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem; color: #a0b4d6;
}
.gm-modal__info-col { padding: 32px 28px 28px; }
.gm-modal__name {
    font-size: 1.4rem; font-weight: 800; color: #0a1f4e;
    margin: 0 0 6px;
}
.gm-modal__role { font-size: 1rem; color: #1F64BC; font-weight: 600; margin: 0 0 8px; }
.gm-modal__period,
.gm-modal__decreto { font-size: .88rem; color: #666; margin: 0 0 6px; }
.gm-modal__period i,
.gm-modal__decreto i { color: #1F64BC; margin-right: 5px; }
.gm-modal__notas,
.gm-modal__content {
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid #e8edf5;
    font-size: .88rem; line-height: 1.75; color: #444;
    white-space: pre-line;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .gm-timeline::before { left: 26px; }
    .gm-tl-item {
        width: 100%; margin-left: 0 !important;
        padding-left: 72px !important; padding-right: 0 !important;
        flex-direction: row !important; text-align: left !important;
    }
    .gm-tl-item .gm-tl-marker { left: 0; right: auto !important; }
    .gm-modal__body { grid-template-columns: 1fr; }
    .gm-modal__photo-col { border-radius: 20px 20px 0 0; min-height: 220px; }
    .gm-modal__photo { min-height: 220px; }
    .gm-grid { gap: 20px; }
    .gm-grid > .gm-card { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
}
@media (max-width: 767px) {
    .gm-hero { padding: 36px 0 28px; }
    .gm-grid { gap: 16px; }
    .gm-grid > .gm-card { flex: 0 0 calc(50% - 8px); max-width: calc(50% - 8px); }
    .gm-controls { gap: 8px; }
    .gm-view-toggle { display: none; }
    .gm-stats { gap: 20px; }
}
@media (max-width: 480px) {
    .gm-grid { gap: 12px; }
    .gm-grid > .gm-card { flex: 0 0 100%; max-width: 100%; }
}

/* =============================================================
   QUEM É QUEM  (page-quem-e-quem.php)
   ============================================================= */

/* ---- Hero ---- */
.qeq-hero {
    background: linear-gradient(135deg, #0a1f4e 0%, #1F64BC 100%);
    padding: 52px 0 44px; color: #fff;
}
.qeq-hero__breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 16px;
}
.qeq-hero__breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.qeq-hero__breadcrumb a:hover { color: #fff; }
.qeq-hero__breadcrumb span i { font-size: 9px; opacity: .5; }
.qeq-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800; color: #fff; margin: 0 0 10px;
}
.qeq-hero__sub { font-size: 1rem; color: rgba(255,255,255,.8); margin: 0; }

/* Layout com foto à direita */
.qeq-hero {
    position: relative;
    overflow: hidden;
}

.qeq-hero__photo-col {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 42%;
    pointer-events: none;
}

.qeq-hero__photo-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #0a1f4e 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.qeq-hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.qeq-hero__photo-btn {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    pointer-events: all;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.qeq-hero__photo-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Conteúdo textual */
.qeq-hero__content {
    position: relative;
    z-index: 2;
    max-width: 58%;
}

/* Nome da ministra */
.qeq-hero__minister-name {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.15;
}

.qeq-hero__minister-cargo {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    margin: 0 0 10px;
    padding-left: 12px;
    border-left: 3px solid #f0a500;
}

.qeq-hero__minister-bio {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin: 0 0 18px;
    max-width: 480px;
}

.qeq-hero__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.qeq-hero__titular-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0a500;
    color: #0a1f4e;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 24px;
}

/* Responsivo mobile — esconde a foto, mostra botão de perfil no conteúdo */
@media (max-width: 768px) {
    .qeq-hero__photo-col {
        display: none;
    }

    .qeq-hero__content {
        max-width: 100%;
    }

    .qeq-hero__minister-name {
        font-size: 1.7rem;
    }

    /* Botão "Ver Perfil Completo" inline no mobile */
    .qeq-hero__content .qeq-hero__profile-link {
        display: inline-flex;
    }
}

/* Botão de perfil inline (visível apenas em mobile, gerado em PHP) */
.qeq-hero__profile-link {
    display: none; /* oculto no desktop — existe no photo-btn */
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.qeq-hero__profile-link:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* ============================================================
   SECÇÃO MINISTRO — split layout
   Equivale ao "Author Section" do tema anterior
   ============================================================ */
.qeq-author-section {
    padding: 72px 0 64px; background: #fff;
    overflow: hidden;
}
.qeq-author-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 64px;
    align-items: center;
}
/* Texto */
.qeq-author-saudacao {
    font-size: 1.05rem; color: #888; margin: 0 0 6px;
}
.qeq-author-name {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800; color: #0a1f4e;
    margin: 0 0 8px; line-height: 1.15;
}
.qeq-author-cargo {
    font-size: 1.1rem; color: #1F64BC; font-weight: 600; margin: 0 0 20px;
}
.qeq-author-bio {
    font-size: .95rem; color: #555; line-height: 1.8; margin: 0 0 16px;
}
.qeq-author-content {
    font-size: .9rem; color: #444; line-height: 1.8; margin-bottom: 28px;
}
.qeq-author-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* Botões */
.qeq-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 24px; border-radius: 24px;
    font-size: 14px; font-weight: 700;
    text-decoration: none; transition: all .2s;
}
.qeq-btn--primary { background: #1F64BC; color: #fff; border: 2px solid #1F64BC; }
.qeq-btn--primary:hover { background: #1550a0; border-color: #1550a0; color: #fff; }
.qeq-btn--outline { background: #fff; color: #1F64BC; border: 2px solid #1F64BC; }
.qeq-btn--outline:hover { background: #eef4fc; color: #1F64BC; }
.qeq-btn--linkedin { background: #0077b5; color: #fff; border: 2px solid #0077b5; }
.qeq-btn--linkedin:hover { background: #005f8e; border-color: #005f8e; color: #fff; }

/* Foto */
.qeq-author-photo-col { position: relative; }
.qeq-author-photo-wrap {
    border-radius: 24px; overflow: hidden;
    box-shadow: 0 16px 56px rgba(31,100,188,.18);
}
.qeq-author-photo {
    width: 100%; display: block;
    object-fit: cover; object-position: top center;
    max-height: 560px;
}
.qeq-author-photo-placeholder {
    height: 420px; border-radius: 24px;
    background: #eef4fc;
    display: flex; align-items: center; justify-content: center;
    font-size: 7rem; color: #a0b4d6;
}

/* Animações (disparadas pelo IntersectionObserver) */
.fade-in-up    { opacity: 0; transform: translateY(30px);   transition: opacity .6s ease, transform .6s ease; }
.fade-in-left  { opacity: 0; transform: translateX(-40px);  transition: opacity .7s ease, transform .7s ease; }
.fade-in-right { opacity: 0; transform: translateX(40px);   transition: opacity .7s ease, transform .7s ease; }
.scale-in      { opacity: 0; transform: scale(.92);          transition: opacity .6s ease, transform .6s ease; }
.fade-in-up.animate,
.fade-in-left.animate,
.fade-in-right.animate,
.scale-in.animate { opacity: 1; transform: none; }

/* ============================================================
   SECÇÕES DE EQUIPA
   ============================================================ */
.qeq-team-section {
    padding: 64px 0 72px; background: #f8fafd;
}
.qeq-team-section--alt { background: #fff; }

/* Cabeçalho de secção */
.qeq-section-head { margin-bottom: 40px; text-align: center; }
.qeq-section-head__sub {
    font-size: .9rem; color: #888; margin: 0 0 6px;
}
.qeq-section-head__title {
    font-size: 1.6rem; font-weight: 800; color: #0a1f4e;
    margin: 0; display: flex; align-items: center;
    justify-content: center; gap: 10px;
}
.qeq-section-head__icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: #eef4fc; color: #1F64BC;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}

/* Grelha de cards */
.qeq-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}

/* ---- Card individual ---- */
.qeq-team-card {
    background: #fff; border-radius: 16px;
    overflow: hidden; text-align: center;
    box-shadow: 0 2px 14px rgba(31,100,188,.08);
    transition: transform .25s, box-shadow .25s;
    padding-bottom: 20px;
}
.qeq-team-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(31,100,188,.15); }

/* Foto */
.qeq-team-card__img-wrap {
    position: relative; overflow: hidden;
    width: 100%; padding-top: 100%; background: #eef4fc;
}
.qeq-team-card__photo {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    transition: transform .35s;
    display: block;
}
.qeq-team-card:hover .qeq-team-card__photo { transform: scale(1.06); }
.qeq-team-card__placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #1F64BC 0%, #0a3a7a 100%);
}
.qeq-team-card__li {
    position: absolute; bottom: 8px; right: 8px;
    width: 30px; height: 30px; border-radius: 50%;
    background: #0077b5; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transition: background .2s;
}
.qeq-team-card__li:hover { background: #005f8e; }

/* Texto */
.qeq-team-card__name {
    font-size: .95rem; font-weight: 700; color: #0a1f4e;
    margin: 14px 14px 4px; line-height: 1.35;
}
.qeq-team-card__name a { color: inherit; text-decoration: none; }
.qeq-team-card__name a:hover { color: #1F64BC; }
.qeq-team-card__cargo {
    display: block; font-size: .78rem; color: #1F64BC; font-weight: 600;
    margin: 0 14px 6px; line-height: 1.4;
}
.qeq-team-card__bio {
    font-size: .78rem; color: #777; line-height: 1.65;
    margin: 0 14px; text-align: left;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .qeq-author-grid { grid-template-columns: 1fr; gap: 36px; }
    .qeq-author-photo-col { order: -1; }
    .qeq-author-photo-wrap { max-width: 380px; margin: 0 auto; }
    .qeq-author-photo-placeholder { height: 260px; }
    .qeq-team-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-width: 767px) {
    .qeq-hero { padding: 36px 0 28px; }
    .qeq-author-section { padding: 48px 0 40px; }
    .qeq-team-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 16px; }
    .qeq-section-head__title { font-size: 1.3rem; }
}

/* ---- Estado vazio / fallback ---- */
.qeq-empty-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 20px;
    gap: 14px;
    color: #888;
}
.qeq-empty-page i { font-size: 4rem; color: #c5d4eb; }
.qeq-empty-page h2 { font-size: 1.4rem; font-weight: 700; color: #0a1f4e; margin: 0; }
.qeq-empty-page p  { font-size: .95rem; margin: 0; }

/* ---- Nota de administrador ---- */
.qeq-admin-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff8e1;
    border-left: 4px solid #f6c90e;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: .88rem;
    color: #5a4a00;
    margin-bottom: 28px;
}
.qeq-admin-notice i {
    color: #f6c90e;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ============================================================
   QUEM É QUEM — estilos portados do tema anterior
   ============================================================ */



/* Botões */
.e-btn {
    display: inline-block;
    height: 50px;
    line-height: 46px;
    text-align: center;
    padding: 0 25px;
    border-radius: 4px;
    font-weight: 500;
}
.e-btn:first-letter { text-transform: uppercase; }
.e-btn i { margin-left: 10px; }
.e-btn:hover {
    color: #fff;
    box-shadow: 0 10px 24px 0 rgba(4,23,118,.3);
}
.e-btn-border {
    height: 46px;
    line-height: 44px;
    border: 2px solid #d7d9e3;
    color: var(--heading-color, #19232d);
    background: transparent;
}
.e-btn-border:hover {
    background: var(--main-color-one, #1F64BC);
    border-color: var(--main-color-one, #1F64BC);
    color: #fff;
}
.btn-animated { transition: all .3s ease; }

/* Headings */
.theme-heading-title { margin-bottom: 38px; }
.theme-heading-title .title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--heading-color, #19232d);
    margin-bottom: 0;
}
.desktop-center { text-align: center; }

/* Secção Ministro */
.author-section-area {
    position: relative;
    z-index: 0;
    margin-top: 80px;
    padding-bottom: 60px;
}
.author-section-area .about-shape {
    position: absolute;
    z-index: -1;
    bottom: -45px;
    left: 27%;
    pointer-events: none;
}
.author-content-wrap { margin-top: 35px; }
.author-content-wrap .author-details {
    margin-bottom: 15px;
    padding-bottom: 15px;
}
.author-content-wrap .author-details .author-name {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--heading-color, #19232d);
    margin-bottom: 0;
}
.author-content-wrap .author-details .designation {
    display: block;
    font-size: 19px;
    line-height: 1.8;
    font-weight: normal;
    color: var(--secondary-color, #555);
    letter-spacing: .12em;
    margin: -.2em 0 15px 0;
    text-transform: uppercase;
}
.author-cargo {
    font-size: 16px;
    font-weight: 600;
    color: var(--main-color-one, #1F64BC);
    margin-bottom: 10px;
}
.author-content-wrap .about p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--heading-color, #19232d);
    margin-bottom: 0;
}
.list-items { margin-top: 25px; }
.list-items a + a { margin-left: 10px; }

/* Foto ministro */
.picture-box6 { position: relative; }
.picture-box6 .img-1 { position: relative; overflow: hidden; }
.picture-box6 .img-1 img { width: 100%; }
.thumbs-author-01 {
    width: 100%;
    height: 30rem;
    object-fit: cover;
    object-position: top;
}
.mega-hover { overflow: hidden; }
.mega-hover img { transition: transform .4s ease; }
.mega-hover:hover img { transform: scale(1.05); }

/* Secção de equipas */
.team-section-area {
    position: relative;
    z-index: 0;
    padding: 60px 0 40px;
}

/* Bloco de grupo (separação visual entre grupos) */
.qeq-grupo-block {
    padding: 50px 0 30px;
}
.qeq-grupo-block.section-bg {
    background: #f8fafd;
    margin: 0 -15px;
    padding: 50px 15px 30px;
}

/* Cards de equipa (th-team / team-grid) */
.th-team { position: relative; text-align: center; }
.th-team .box-img {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}
.th-team .box-img img {
    width: 100%;
    transition: transform .4s ease;
}
.th-team:hover .box-img img { transform: scale(1.05); }
.th-team .box-title {
    font-size: 17px;
    font-weight: 700;
    margin: 12px 0 4px;
    color: var(--heading-color, #19232d);
}
.th-team .box-title a { color: inherit; text-decoration: none; }
.th-team .box-title a:hover { color: var(--main-color-one, #1F64BC); }
.th-team span {
    display: block;
    font-size: 13px;
    color: var(--main-color-one, #1F64BC);
    font-weight: 600;
    margin-bottom: 6px;
}
.th-team p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Ícone LinkedIn sobre a foto */
.th-team .th-social,
.th-team .multi-social {
    position: absolute;
    bottom: 10px;
    right: 10px;
    transition: .3s ease;
}
.th-team .th-social a,
.th-team .multi-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--main-color-one, #1F64BC);
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: .3s ease;
}
.th-team .th-social a:hover,
.th-team .multi-social a:hover {
    background: var(--main-color-one, #1F64BC);
    color: #fff;
}

/* Placeholder quando não há foto */
.qeq-placeholder-img {
    width: 100%;
    height: 260px;
    background: #e8eef8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
}
.qeq-placeholder-img i { font-size: 4rem; color: #b0bfe0; }
.qeq-placeholder-img--lg {
    height: 420px;
    border-radius: 12px;
}

/* Espaçamento entre cards */
.row.justify-content-center .col-lg-4,
.row.justify-content-center .col-md-6 {
    margin-bottom: 30px;
}

/* Admin notice in quem e quem */
.qeq-admin-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff8e1;
    border-left: 4px solid #f6c90e;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: .88rem;
    color: #5a4a00;
    margin-bottom: 28px;
}
.qeq-admin-notice i { color: #f6c90e; font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.qeq-admin-notice a { color: #5a4a00; font-weight: 700; }

/* Estado vazio */
.qeq-empty-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 20px;
    gap: 14px;
    color: #888;
}
.qeq-empty-page i { font-size: 4rem; color: #c5d4eb; }
.qeq-empty-page h2 { font-size: 1.4rem; font-weight: 700; color: #0a1f4e; margin: 0; }
.qeq-empty-page p { font-size: .95rem; margin: 0; }

/* Responsive */
@media (max-width: 991px) {
    .author-content-wrap .author-details .author-name { font-size: 3rem; }
    .picture-box6 { margin-top: 30px; }
    .thumbs-author-01 { height: 22rem; }
}
@media (max-width: 767px) {
    .author-content-wrap .author-details .author-name { font-size: 2.2rem; }
    .thumbs-author-01 { height: 18rem; }
    .qeq-grupo-block { padding: 30px 0 20px; }
}

/* =============================================================
   SEARCH — Página de Resultados de Pesquisa
   search.php
============================================================= */

/* ---- Hero ---- */
.srch-hero {
    background: linear-gradient(120deg, #071530 0%, #0e2d6b 55%, #1f64bc 100%);
    padding: 52px 0 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.srch-hero__deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}
.srch-hero__deco--1 { width: 420px; height: 420px; top: -150px; right: -80px; }
.srch-hero__deco--2 { width: 220px; height: 220px; bottom: -100px; left: 10%; opacity: .04; }
.srch-hero__body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.srch-hero__label {
    font-size: 11px; font-weight: 700; color: #FFCB00;
    text-transform: uppercase; letter-spacing: 2px;
    margin: 0 0 12px; display: flex; align-items: center; gap: 7px;
}
.srch-hero__title {
    font-size: clamp(22px, 3.5vw, 40px);
    font-weight: 800; color: #fff; margin: 0 0 14px;
    line-height: 1.15; letter-spacing: -.3px;
}
.srch-hero__title em { font-style: italic; color: #FFCB00; }
.srch-hero__sub {
    font-size: 14px; color: rgba(255,255,255,.65);
    max-width: 580px; line-height: 1.7; margin: 0;
}
.srch-hero__stat { text-align: center; flex-shrink: 0; }
.srch-hero__stat-num {
    display: block; font-size: 52px; font-weight: 800;
    color: #FFCB00; line-height: 1;
}
.srch-hero__stat-label {
    font-size: .75rem; color: rgba(255,255,255,.6);
    text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; display: block;
}

/* ---- Layout ---- */
.srch-layout { padding: 48px 0 64px; background: #f4f7fc; }

/* ---- Barra de refinar pesquisa ---- */
.srch-bar { margin-bottom: 32px; }
.srch-bar__form {
    display: flex; gap: 0;
    background: #fff;
    border: 2px solid #e8edf5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(31,100,188,.08);
    transition: border-color .2s;
}
.srch-bar__form:focus-within { border-color: #1f64bc; }
.srch-bar__input {
    flex: 1; border: none; outline: none;
    padding: 14px 18px; font-size: 15px; color: #0a1f4e;
    background: transparent; font-family: inherit;
}
.srch-bar__input::placeholder { color: #a0aec0; }
.srch-bar__btn {
    background: #1f64bc; color: #fff; border: none;
    padding: 0 24px; font-size: 14px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: background .2s; font-family: inherit;
}
.srch-bar__btn:hover { background: #0e4fa0; }

/* ---- Item de resultado ---- */
.srch-results { display: flex; flex-direction: column; gap: 20px; }
.srch-item {
    display: flex; gap: 20px;
    background: #fff; border-radius: 12px;
    padding: 20px; border: 1px solid #e8edf5;
    box-shadow: 0 2px 10px rgba(31,100,188,.06);
    transition: box-shadow .2s, transform .2s;
}
.srch-item:hover { box-shadow: 0 6px 24px rgba(31,100,188,.13); transform: translateY(-2px); }
.srch-item__thumb-wrap { flex-shrink: 0; }
.srch-item__thumb {
    width: 110px; height: 80px; object-fit: cover;
    border-radius: 8px; display: block;
}
.srch-item__body { flex: 1; min-width: 0; }
.srch-item__meta {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 8px; flex-wrap: wrap;
}
.srch-item__type {
    background: #e8f0fc; color: #1f64bc;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; padding: 3px 10px; border-radius: 20px;
}
.srch-item__date { font-size: 12px; color: #8a9bbb; display: flex; align-items: center; gap: 5px; }
.srch-item__title {
    font-size: 1rem; font-weight: 700; margin: 0 0 6px; line-height: 1.4;
}
.srch-item__title a { color: #0a1f4e; text-decoration: none; transition: color .2s; }
.srch-item__title a:hover { color: #1f64bc; }
.srch-item__excerpt { font-size: 13px; color: #5a6a85; margin: 0 0 10px; line-height: 1.6; }
.srch-item__link {
    font-size: 12px; font-weight: 600; color: #1f64bc; text-decoration: none;
    display: inline-flex; align-items: center; gap: 5px; transition: gap .2s;
}
.srch-item__link:hover { gap: 8px; }

/* ---- Paginação (reutiliza .n-pagination da página de notícias) ---- */
.srch-layout .n-pagination {
    margin-top: 36px;
    flex-wrap: nowrap;
    overflow: hidden;
}

/* ---- Sem resultados ---- */
.srch-empty {
    background: #fff; border-radius: 16px; padding: 56px 32px;
    text-align: center; border: 1px solid #e8edf5;
}
.srch-empty__icon {
    width: 80px; height: 80px; background: #e8f0fc; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 2rem; color: #1f64bc;
}
.srch-empty__title { font-size: 1.4rem; font-weight: 800; color: #0a1f4e; margin: 0 0 12px; }
.srch-empty__text { font-size: 14px; color: #5a6a85; line-height: 1.7; margin: 0 0 28px; }
.srch-empty__btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #1f64bc; color: #fff; padding: 12px 28px;
    border-radius: 8px; font-size: 14px; font-weight: 600;
    text-decoration: none; transition: background .2s;
}
.srch-empty__btn:hover { background: #0e4fa0; color: #fff; }

/* ---- Sidebar ---- */
.srch-sidebar { display: flex; flex-direction: column; gap: 24px; }
.srch-widget {
    background: #fff; border-radius: 12px; padding: 24px;
    border: 1px solid #e8edf5;
    box-shadow: 0 2px 10px rgba(31,100,188,.06);
}
.srch-widget__title {
    font-size: 13px; font-weight: 700; color: #0a1f4e;
    text-transform: uppercase; letter-spacing: 1px;
    margin: 0 0 16px; padding-bottom: 12px;
    border-bottom: 2px solid #e8edf5;
    display: flex; align-items: center; gap: 8px;
}
.srch-widget__title i { color: #1f64bc; }
.srch-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.srch-tag {
    background: #f0f5ff; color: #1f64bc;
    font-size: 12px; font-weight: 600; padding: 6px 14px;
    border-radius: 20px; text-decoration: none;
    border: 1px solid #d6e4ff; transition: background .2s, color .2s;
}
.srch-tag:hover { background: #1f64bc; color: #fff; border-color: #1f64bc; }
.srch-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.srch-recent__item { border-bottom: 1px solid #f0f4fa; padding-bottom: 12px; }
.srch-recent__item:last-child { border-bottom: none; padding-bottom: 0; }
.srch-recent__link { text-decoration: none; display: flex; flex-direction: column; gap: 3px; }
.srch-recent__date { font-size: 11px; color: #8a9bbb; }
.srch-recent__title { font-size: 13px; font-weight: 600; color: #0a1f4e; line-height: 1.4; transition: color .2s; }
.srch-recent__link:hover .srch-recent__title { color: #1f64bc; }

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .srch-hero__body { flex-direction: column; align-items: flex-start; }
    .srch-hero__stat { align-self: flex-start; }
    .srch-item { flex-direction: column; }
    .srch-item__thumb { width: 100%; height: 160px; }
    .srch-bar__btn span { display: none; }
}

/* ==========================================================================
   SCROLL REVEAL — animações de entrada ao scroll
   Adicionadas por JS automaticamente aos cards e secções da homepage
   ========================================================================== */

.sr {
    opacity: 0;
    will-change: opacity, transform;
}
.sr--fade-up    { transform: translateY(48px); }
.sr--fade-down  { transform: translateY(-40px); }
.sr--fade-left  { transform: translateX(-48px); }
.sr--fade-right { transform: translateX(48px); }
.sr--zoom-in    { transform: scale(0.88); }

.sr.sr--visible {
    opacity: 1;
    transform: none;
    will-change: auto;
    transition:
        opacity  0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--sr-delay, 0ms);
}

/* Respeitar preferência do utilizador por menos movimento */
@media (prefers-reduced-motion: reduce) {
    .sr {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   PÁGINA 404
   ========================================================================== */

.error404-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0a3a6e 100%);
    overflow: hidden;
    text-align: center;
}

.error404-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.error404-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}

.error404-hero__inner {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
}

.error404-code {
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 900;
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.15);
    line-height: 1;
    margin-bottom: -20px;
    letter-spacing: -4px;
}

.error404-title {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.error404-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.error404-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.error404-btn:hover {
    background: var(--color-accent, #f0a500);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

/* Corpo da 404 */
.error404-body {
    padding: 60px 0 80px;
    background: var(--color-bg-light, #f7f9fc);
}

.error404-search-wrap {
    max-width: 600px;
    margin: 0 auto 56px;
    text-align: center;
}

.error404-search-label {
    font-size: 15px;
    color: var(--color-text-muted, #6b7a99);
    margin-bottom: 14px;
}

.error404-search-form {
    display: flex;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.error404-search-input {
    flex: 1;
    border: 1px solid #dde3ef;
    border-right: none;
    padding: 14px 20px;
    font-size: 15px;
    outline: none;
    border-radius: 12px 0 0 12px;
    background: #fff;
    color: var(--color-text, #1a2235);
}

.error404-search-input:focus {
    border-color: var(--color-primary);
}

.error404-search-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0 24px;
    font-size: 17px;
    cursor: pointer;
    border-radius: 0 12px 12px 0;
    transition: background 0.2s ease;
}

.error404-search-btn:hover {
    background: var(--color-primary-dark, #0a3a6e);
}

/* Links rápidos */
.error404-links__title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-heading, #1a2235);
    margin-bottom: 28px;
    font-family: var(--font-heading);
}

.error404-links__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

.error404-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #dde3ef;
    border-radius: 12px;
    padding: 24px 16px;
    text-decoration: none;
    color: var(--color-text, #1a2235);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.error404-quick-link i {
    font-size: 26px;
    color: var(--color-primary);
}

.error404-quick-link:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(31,100,188,0.2);
}

.error404-quick-link:hover i {
    color: #fff;
}

@media (max-width: 576px) {
    .error404-links__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .error404-hero__inner {
        padding: 60px 16px;
    }
}


/* ==========================================================================
   ÓRGÃOS SUPERINTENDIDOS — Cards de Destaque (Home V2)
   ========================================================================== */

/* Secção */
.os-section {
    position: relative;
    padding: 90px 0 100px;
    background: linear-gradient(165deg, #f0f5ff 0%, #fafbff 50%, #f5f0ff 100%);
    overflow: hidden;
}

.os-section__bg-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.os-section__bg-shape--1 {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, rgba(31,100,188,.06) 0%, transparent 70%);
}
.os-section__bg-shape--2 {
    width: 400px;
    height: 400px;
    bottom: -120px;
    right: -100px;
    background: radial-gradient(circle, rgba(123,45,139,.05) 0%, transparent 70%);
}

/* Cabeçalho */
.os-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 56px;
}
.os-header__badge {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--color-primary, #1F64BC);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(31,100,188,.28);
}
.os-header__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-primary, #1F64BC);
    margin-bottom: 6px;
}
.os-header__title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: #0d1b2e;
    margin: 0 0 10px;
    line-height: 1.2;
}
.os-header__title span {
    color: var(--color-primary, #1F64BC);
}
.os-header__subtitle {
    font-size: 16px;
    color: #5a6e88;
    max-width: 600px;
    margin: 0;
    line-height: 1.6;
}

/* Grid de cards compacto - 6 colunas (1 linha) */
.os-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

/* Card compacto com logo */
.os-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    box-shadow: 0 2px 14px rgba(0,0,0,.08);
    transition: all .3s ease;
    border: 1px solid rgba(0,0,0,.06);
    position: relative;
    min-height: 240px;
}
.os-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #1F64BC;
    border-radius: 14px 14px 0 0;
}
.os-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(31,100,188,.14);
}

/* Topo com sigla azul */
.os-card__top {
    padding: 8px 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: visible;
}
.os-card__acronym {
    font-size: 13px;
    font-weight: 800;
    color: #1F64BC;
    letter-spacing: .6px;
    text-transform: uppercase;
}

/* Logo compacto ou placeholder */
.os-card__logo-wrap {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65px;
    background: transparent;
    flex: 1;
    position: relative;
}
.os-card__logo {
    max-height: 80px;
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .3s ease;
}
.os-card:hover .os-card__logo {
    transform: scale(1.08);
}

/* Placeholder quando não há imagem */
.os-card__logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31,100,188,.08), rgba(31,100,188,.04));
    border-radius: 10px;
    color: #b0c4de;
    font-size: 32px;
    min-height: 55px;
}

/* Corpo com nome completo */
.os-card__body {
    flex: 0;
    padding: 6px 0;
}
.os-card__fullname {
    font-size: 12px;
    font-weight: 700;
    color: #0d1b2e;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rodapé / Botão */
.os-card__footer {
    padding: 12px 0 0;
    border-top: 1px solid #f0f3f8;
    margin-top: auto;
}
.os-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: #1F64BC;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
    white-space: nowrap;
}
.os-card__btn:hover {
    background: #1a52a8;
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(31,100,188,.32);
}
.os-card__btn i {
    font-size: 10px;
    transition: transform .25s ease;
}
.os-card__btn:hover i {
    transform: translateX(2px);
}

/* Responsivo */
@media (max-width: 1400px) {
    .os-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
    .os-card {
        min-height: 235px;
    }
}

@media (max-width: 1200px) {
    .os-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    .os-card {
        min-height: 230px;
        padding: 13px;
    }
}

@media (max-width: 991px) {
    .os-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .os-header {
        flex-direction: column;
        gap: 16px;
    }
    .os-card {
        min-height: 225px;
    }
}

@media (max-width: 768px) {
    .os-grid {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        margin: 0 -16px;
        padding: 2px 16px 16px;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x pan-y;
    }
    .os-grid::-webkit-scrollbar {
        display: none;
    }
    .os-card {
        flex: 0 0 calc((100% - 16px) / 2);
        min-height: 220px;
        padding: 12px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    .os-card__acronym {
        font-size: 12px;
    }
    .os-card__logo {
        max-height: 100px;
    }
    .os-card__fullname {
        font-size: 11px;
    }
    .os-card__btn {
        padding: 7px 14px;
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    .os-grid {
        gap: 14px;
        margin: 0 -20px;
        padding-inline: 20px;
        scroll-padding-inline: 20px;
    }
    .os-card {
        flex-basis: min(82vw, 340px);
        min-height: 200px;
        padding: 11px;
    }
    .os-card__logo-wrap {
        min-height: 55px;
    }
    .os-card__logo {
        max-height: 100px;
    }
    .os-card__acronym {
        font-size: 11px;
    }
    .os-card__fullname {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }
    .os-card__btn {
        padding: 6px 12px;
        font-size: 9px;
    }
}

/* Carousel mobile: sem navegação/paginação, com autoplay via JS e touch nativo */
.os-carousel-wrap {
    display: none;
}
.os-carousel-btn {
    display: none;
}
.os-carousel-dots {
    display: none;
}

/* ==========================================================================
   PERFIL — HERO  (single-quem-e-quem.php · .pqq-hero)
   ========================================================================== */

.pqq-hero {
    position: relative;
    overflow: hidden;
    background: #06173a;
}

/* Foto como fundo full — ocupa todo o hero */
.pqq-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    z-index: 0;
}

/* Overlay: esquerda sólida (texto legível) → direita transparente (foto visível) */
.pqq-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        100deg,
        rgba(6,23,58,.97)  0%,
        rgba(6,23,58,.88)  30%,
        rgba(6,23,58,.55)  55%,
        rgba(6,23,58,.15)  78%,
        transparent        100%
    );
}

/* ── INNER ─────────────────────────────────────────── */

.pqq-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 520px;
    padding-top: 32px;
    padding-bottom: 56px;
}

/* ── INFO (texto à esquerda — desktop) ───────────────── */

.pqq-hero__info {
    width: 54%;
    max-width: 600px;
    text-align: left;
}

.pqq-hero__dept {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f0b400;
    margin: 0 0 14px;
    line-height: 1.6;
}

.pqq-hero__dept-bar {
    flex-shrink: 0;
    display: inline-block;
    width: 3px;
    height: 30px;
    background: #f0b400;
    border-radius: 2px;
    margin-top: 3px;
}

.pqq-hero__name {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    margin: 0 0 12px;
    text-shadow: 0 3px 32px rgba(6,23,58,.8);
}

.pqq-hero__role {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: rgba(255,255,255,.65);
    margin: 0 0 24px;
}

.pqq-hero__role i { color: rgba(255,255,255,.35); font-size: 13px; }

.pqq-hero__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.pqq-hero__cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
}

.pqq-hero__cat-pill i { font-size: 10px; opacity: .5; }

.pqq-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Botões de acção */
.pqq-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.pqq-action-btn--ghost {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pqq-action-btn--ghost:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
    border-color: rgba(255,255,255,.38);
}

.pqq-action-btn--linkedin {
    background: #0a66c2;
    color: #fff;
}

.pqq-action-btn--linkedin:hover {
    background: #0958aa;
    color: #fff;
}

/* ── BREAKPOINTS ─────────────────────────────────── */

@media (max-width: 768px) {
    /* Overlay mobile: topo transparente (foto visível) → fundo escuro (texto legível) */
    .pqq-hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(6,23,58,.15)  0%,
            rgba(6,23,58,.1)   30%,
            rgba(6,23,58,.55)  62%,
            rgba(6,23,58,.92)  85%,
            rgba(6,23,58,.98)  100%
        );
    }
    /* Desloca o fundo para mostrar o rosto */
    .pqq-hero__bg {
        background-position: center 15%;
    }
    .pqq-hero__inner {
        min-height: 500px;
        padding-bottom: 44px;
        align-items: center;
        justify-content: flex-end;
    }
    .pqq-hero__info {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    .pqq-hero__dept { justify-content: center; }
    .pqq-hero__role { justify-content: center; }
    .pqq-hero__cats { justify-content: center; }
    .pqq-hero__actions { justify-content: center; }
    .pqq-hero__name { font-size: 26px; }
    .pqq-hero__role { font-size: 14px; }
}

@media (max-width: 480px) {
    .pqq-hero__inner { min-height: 420px; }
    .pqq-hero__name { font-size: 22px; }
}

/* ── Google Language Translator — ocultar ícone flutuante ── */
#glt-translate-trigger,
#glt-toolbar,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}
body.translated-ltr,
body.translated-rtl {
    top: 0 !important;
    margin-top: 0 !important;
}
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc {

	display: none;
}

/* ── Protecção de texto contra Google Translate ──
   O GT não consegue aceder a conteúdo CSS gerado via ::after.
   O texto fica no data-text e é renderizado pelo browser, não pelo DOM. */
.gt-protected {
    display: inline;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}
.gt-protected::after {
    content: var(--gt-text, '');
}
