@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Noto+Serif:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap");

/* ========================================
   Correio da Manhã - Portal de Notícias
   Estilo Jornalístico Tradicional
   ======================================== */

/* CSS Variables */
:root {
    /* Cores da Marca */
    --primary-color: #1a3a5c;
    --primary-hover: #142d47;
    --color-primary: var(--primary-color);
    --color-primary-dark: var(--primary-hover);
    --color-primary-light: #2c527a;

    /* Cores de Header Regionais (podem ser alteradas via JS) */
    --color-header-bg: #1a3a5c;

    /* Cores de Fundo */
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f5;
    --color-bg-section: #fafafa;
    --color-bg-dark: #1a1a1a;

    /* Cores de Texto */
    --color-text: #000000;
    --color-text-dark: #333333;
    --color-text-gray: #666666;
    --color-text-light: #999999;
    --color-text-muted: #cccccc;

    /* Cores de Editorias */
    --color-politics: var(--primary-color);
    --color-economy: #0056b3;
    --color-sports: #00853e;
    --color-culture: #6a1b9a;
    --color-justice: #ff6b00;
    --color-brasil: #009c3b;

    /* Cores de UI */
    --color-border: #e0e0e0;
    --color-border-light: #eeeeee;
    --color-link: #0066cc;
    --color-link-hover: #004499;

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);

    /* Fontes */
    --font-display: "Noto Sans", sans-serif;
    --font-body: "Noto Serif", serif;
    --font-ui: "Noto Sans", sans-serif;
    --font-header: "Arial", sans-serif;
    --font-sans: var(--font-ui);
    --text-main: var(--color-text);
    --text-muted: var(--color-text-gray);
    --border-light: var(--color-border-light);

    /* Espaçamento Premium */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
    /* Increased for section breathing room */
    --spacing-2xl: 5rem;
    /* Added for major section separation */

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    /* Transições */
    --transition: all 0.2s ease;

    /* Breakpoints */
    --bp-xs: 375px;
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;
    --bp-2xl: 1440px;
}

/* Cores Regionais - Todas as regies usam o mesmo azul do Correio da Manh */

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.5;
    background-color: var(--color-bg);
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 130px !important;
    /* Compensa o header fixo no desktop */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ajuste específico para mobile */
@media (max-width: 768px) {
    body {
        padding-top: 210px !important;
        /* Compensa o header fixo (mais alto) no mobile */
    }
}

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

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

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar - Vermelho */
.top-bar {
    background-color: var(--color-header-bg, #1a3a5c);
    color: #ffffff;
    font-size: 0.75rem;
    padding: var(--spacing-sm) 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.top-bar-left span {
    font-weight: 400;
}

.top-bar-separator {
    color: rgba(255, 255, 255, 0.5);
}

#weather-info,
#usd-rate,
#ibov-rate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.value-up {
    color: #4ade80;
}

.value-down {
    color: #f87171;
}

.top-bar-right {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.social-icon {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.top-bar-right a {
    color: #ffffff;
    font-weight: 500;
}

.top-bar-right a:hover {
    text-decoration: underline;
}

/* Sticky Header Container */
.sticky-nav-unified {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-header-bg, #1a3a5c);
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-nav-unified.scrolled {
    padding: 2px 0;
    /* Header gets thinner */
    background-color: var(--color-header-bg, #1a3a5c);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sticky-nav-unified.scrolled {
    background-color: var(--color-header-bg, #1a3a5c);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.main-header {
    background-color: transparent;
    padding: 15px 0;
    position: relative;
    z-index: 1001;
    transition: all 0.4s ease;
}

.sticky-nav-unified.scrolled .main-header {
    padding: 5px 0;
}

.main-header .logo {
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header .logo-portal {
    transition:
        font-size 0.3s ease,
        letter-spacing 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
}

.header-content {
    flex-direction: row-reverse;
}

.logo-section a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-cm {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    color: white !important;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-tagline {
    font-size: 0.625rem;
    color: #ffffff;
    font-weight: 400;
    margin-top: var(--spacing-xs);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-portal {
    font-size: 0.81rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;

    line-height: 1.1;
}

/* Mixed Typography for Special Headlines */
.headline-mixed {
    display: inline;
}

.headline-prefix {
    font-family: var(--font-ui);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.headline-title {
    font-family: var(--font-body);
    font-weight: 700;
}

.search-section {
    flex: 1;
    max-width: 400px;
}

@media (max-width: 768px) {
    .search-section {
        display: none;
    }
}

.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9375rem;
    background: transparent;
    font-family: var(--font-body);
    color: #ffffff;
}

.search-box input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.25);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    color: #ffffff;
}

.search-btn:hover {
    color: var(--color-primary);
}

/* Navigation */
.main-nav {
    background-color: transparent;
    border-bottom: none;
    position: relative;
    z-index: 100;
}

.main-nav .container {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-sm);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    /* White for contrast on colored header */
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
}

.nav-link {
    display: block;
    padding: 14px 10px;
    color: rgba(255, 255, 255, 0.9);
    /* White text for regional branding contrast */
    font-weight: 600;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav-link-row {
    display: flex;
    align-items: stretch;
}

.nav-link-primary {
    padding-right: 4px;
}

.nav-link-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding-left: 2px;
    padding-right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    appearance: none;
}

.nav-link-caret {
    font-size: 0.72rem;
    line-height: 1;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.nav-dropdown:hover .nav-link-toggle,
.nav-dropdown.active .nav-link-toggle {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Mega Menu Refactor */
/* Vertical Dropdown Refactor */
.nav-dropdown {
    position: relative;
    /* Targeted positioning for classic dropdown */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #ffffff;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text, #1a1a1a);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: var(--color-primary, #cc0000);
}

.mega-menu-column a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.dropdown-menu li {
    border-bottom: 1px solid var(--color-border-light);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
}

/* --- Barra de AO VIVO (Breaking News) --- */
.breaking-news {
    background-color: #f9fafb;
    border-bottom: 2px solid #d0021b;
    /* Linha de destaque na base */
    padding: 10px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.breaking-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* O Rótulo Vermelho */
.breaking-label {
    background-color: #d0021b;
    color: #ffffff;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    /* Impede que o texto quebre de linha */
}

/* Bolinha branca a piscar dentro do rótulo vermelho */
.breaking-label::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: live-blink 1s infinite alternate;
}

@keyframes live-blink {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

/* Contentor do texto a passar */
.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    gap: 40px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-content span {
    font-size: 0.95rem;
    color: #1a1a2e;
    font-weight: 500;
}

/* Mantendo os estilos do painel expansível */
.live-expand-btn {
    background-color: rgba(208, 2, 27, 0.1);
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--color-primary);
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.live-expand-btn:hover {
    background-color: rgba(208, 2, 27, 0.2);
}

.live-panel {
    background-color: #ffffff;
    color: #1a1a1a;
    border-top: 1px solid #e5e5e5;
    display: none;
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.3s ease-out;
}

.live-panel.active {
    display: block;
    max-height: 600px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 600px;
    }
}

.live-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e5e5e5;
}

.live-panel-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.live-close-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #666666;
    padding: 4px;
    transition: color 0.2s;
}

.live-close-btn:hover {
    color: #1a1a1a;
}

.live-updates {
    padding: 20px 0;
}

.live-update {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.live-update:last-child {
    border-bottom: none;
}

.live-update.featured {
    background: linear-gradient(135deg,
            rgba(208, 2, 27, 0.05) 0%,
            rgba(26, 58, 92, 0.05) 100%);
    padding: 20px;
    margin: 0;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.update-time {
    flex-shrink: 0;
    width: 60px;
}

.time-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.update-content {
    flex: 1;
}

.update-content h3,
.update-content h4 {
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.update-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.update-content h4 {
    font-size: 1rem;
    font-weight: 600;
}

.update-content p {
    margin: 0 0 8px 0;
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.update-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.update-tags .tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.live-footer {
    padding: 12px 0;
    border-top: 1px solid #e5e5e5;
}

.auto-update {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #666666;
}

.pulse-small {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: live-blink 1s infinite alternate;
}

/* --- Ajustes Específicos para Telemóvel --- */
@media (max-width: 768px) {
    .breaking-container {
        flex-direction: column;
        /* Coloca o rótulo em cima e a notícia em baixo */
        align-items: flex-start;
        gap: 8px;
    }

    .breaking-header {
        display: flex;
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }

    .ticker-wrapper {
        width: 100%;
    }

    .live-update.featured {
        padding: 15px;
        margin: 0;
    }
}

/* --- Arquitetura de Publicidade (Nova Estratégia) --- */

/* Banner Horizontal de Topo */
.top-ad-banner {
    width: 100%;
    text-align: center;
    margin: 20px 0 30px 0;
    clear: both;
}

.top-ad-banner img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Anúncios Responsivos --- */
.ad-container-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 40px auto;
    /* Espaçamento vertical generoso */
    padding: 0 15px;
    /* Margem de segurança no mobile */
    box-sizing: border-box;
}

.ad-fluid {
    max-width: 100%;
    /* Nunca ultrapassa a largura da tela */
    height: auto;
    /* Mantém a proporção (não estica) */
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Sombra leve para destacar */
}

/* Ajuste específico para o banner lateral não ficar gigante no mobile */
.sidebar-ad-container img,
.ad-wrapper img {
    max-width: 100%;
    height: auto;
}

/* Layout de Duas Colunas (Principal + Sidebar) */
.layout-with-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.main-column {
    flex: 1;
    /* Ocupa o espaço restante */
    min-width: 60%;
}

.sidebar-column {
    width: 300px;
    /* Largura fixa para os banners */
    flex-shrink: 0;
}

/* --- Restauração do Grid Principal --- */
.newspaper-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 30px !important;
    width: 100%;
    margin-bottom: 40px;
}

/* Garante que os cards não vazem */
.newspaper-grid .news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Faz todos os cards da linha terem a mesma altura */
}

/* Anúncio Flutuante para dentro do texto da notícia */
.ad-float-right {
    float: right;
    margin: 10px 0 20px 25px;
    max-width: 300px;
}

.ad-float-left {
    float: left;
    margin: 10px 25px 20px 0;
    max-width: 300px;
}

/* Responsividade: No mobile, a sidebar desce e o float é anulado */
@media (max-width: 992px) {
    .sidebar-column {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        order: 2;
        /* Sidebar vai para baixo */
    }

    .main-column {
        order: 1;
    }

    .ad-float-right,
    .ad-float-left {
        float: none;
        margin: 20px auto;
        max-width: 300px;
        display: flex;
        justify-content: center;
    }
}

/* Redesign da Seção "Opinião" na Home */
.home-opinion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Grid responsivo automático */
    gap: 20px;
    margin-top: 25px;
}

.mini-opinion-card {
    display: flex;
    align-items: center;
    /* Alinha foto e texto verticalmente */
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    transition:
        transform 0.2s,
        border-color 0.2s;
}

.mini-opinion-card:hover {
    border-color: #1a3a5c;
    /* Azul CM */
    transform: translateY(-3px);
}

.opinion-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Foto redonda */
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.mini-opinion-content {
    display: flex;
    flex-direction: column;
}

.mini-opinion-content .author-name {
    font-size: 0.85rem;
    color: #1a3a5c;
    /* Vermelho CM para destaque */
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.opinion-headline {
    font-family: "Noto Serif", serif;
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0;
}

.opinion-headline a {
    text-decoration: none;
    color: #1a1a2e;
}

.opinion-headline a:hover {
    color: #2a5a8c;
}

/* Responsividade para telas muito pequenas */
@media (max-width: 480px) {
    .home-opinion-grid {
        grid-template-columns: 1fr;
        /* Um card por linha no celular */
    }
}

.ad-space img {
    max-width: 100%;
    height: auto;
}

.ad-medium {
    max-width: 300px;
}

/* Main Content */
.main-content {
    padding: var(--spacing-xl) 0;
    flex: 1;
}

/* Sticky footer layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =============================================
 * CM MATERIA IFRAME PAGE
 * ============================================= */

.is-cm-materia-iframe {
    overflow: hidden;   /* prevent double scrollbars */
}

/* Materia iframe page: cancel body padding from fixed-header compensation,
   keep tiny-header in flex flow so iframe fills the remaining space exactly */
body.is-cm-materia-iframe {
    padding-top: 0 !important;
}

body.is-cm-materia-iframe .tiny-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.cm-materia-iframe-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.cm-materia-iframe-wrap iframe {
    flex: 1;
    width: 100%;
    border: none;
    display: block;
    background: #fff;
}

/* =============================================
 * CM INSTITUTIONAL PAGE
 * ============================================= */
.cm-institucional-page {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.cm-institucional-header {
    margin-bottom: var(--spacing-xl);
    border-bottom: 2px solid #1a3a5c;
    padding-bottom: var(--spacing-lg);
}

.cm-institucional-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-text-primary, #1a1a1a);
    margin: var(--spacing-xs, 0.25rem) 0 0;
    line-height: 1.2;
}

.cm-institucional-deck {
    font-size: 1.15rem;
    color: var(--color-text-secondary, #555);
    margin-top: var(--spacing-sm);
    line-height: 1.6;
}

.cm-institucional-body {
    display: block;
}

.cm-institucional-body--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.cm-institucional-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.cm-institucional-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-primary, #1a1a1a);
}

.cm-institucional-text p {
    margin-bottom: var(--spacing-md);
}

@media (max-width: 768px) {
    .cm-institucional-body--two-col {
        grid-template-columns: 1fr;
    }

    .cm-institucional-title {
        font-size: 1.8rem;
    }
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 2.1fr 0.9fr;
    /* Refined proportions for 2/3 + 1/3 */
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
}

.hero-main {
    display: flex;
    flex-direction: column;
}

.hero-article {
    position: relative;
}

.article-tag {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    background-color: var(--color-primary);
    color: #ffffff;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.hero-image-wrapper {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    background-color: var(--color-bg-alt);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-article:hover .hero-image-wrapper img {
    transform: scale(1.03);
}

.hero-content h2 {
    font-family: var(--font-body);
    font-size: 2.25rem;
    /* Bold journalistic weight */
    font-weight: 900;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-content p {
    color: var(--color-text-gray);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.article-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.article-meta .author {
    font-weight: 500;
    color: var(--color-text-gray);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    border-left: 1px solid var(--color-border-light);
    padding-left: var(--spacing-xl);
}

.side-article {
    flex: 1;
    position: relative;
}

.side-image-wrapper {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    background-color: var(--color-bg-alt);
}

.side-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.side-article:hover .side-image-wrapper img {
    transform: scale(1.04);
}

.side-article h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.side-article .time {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Category Tags */
.category-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
    border-radius: 2px;
}

/* Source Badges (Pills) */
.source-badge {
    display: inline-block;
    padding: 2px 12px;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 20px;
    margin-bottom: var(--spacing-sm);
    border: 1px solid #e2e8f0;
}

.source-badge.badge-red {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

/* Section Styles */
.section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
}

.section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-text);
}

.section-title {
    font-family: var(--font-ui);
    font-size: 2rem;
    font-weight: 900;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    border-bottom: 3px solid #1a1a2e;
    /* Linha grossa embaixo, padrão jornal */
    padding-bottom: 10px;
    margin-bottom: 30px;
    position: relative;
}

/* Adiciona um detalhe vermelho sutil no início da linha preta */
.section-title::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Action Links */
.card-col-action {
    color: #1a3a5c !important;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 15px;
    font-size: 0.85rem;
}

.card-col-action:hover {
    color: #2a5a8c !important;
}

.section-link {
    color: #1a3a5c;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: #2a5a8c;
}

/* News Grid - New Layout: 1 Main + 3 Small */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* Modern Portal Section Layout (based on G1, Folha, BBC, NYT, Guardian research) */
.modern-section-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--spacing-lg);
    align-items: start;
}

/* Main featured article - spans 7 columns */
.modern-section-main {
    grid-column: 1 / 8;
    display: flex;
    flex-direction: column;
}

.modern-section-main .news-image {
    aspect-ratio: 16 / 9;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    border-radius: var(--radius-md);
}

.modern-section-main .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-section-main:hover .news-image img {
    transform: scale(1.03);
}

.modern-section-main h3 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.modern-section-main p {
    color: var(--color-text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.modern-section-main .article-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-top: auto;
}

.modern-section-main .article-meta .author {
    font-weight: 500;
    color: var(--color-text-gray);
}

/* Secondary articles sidebar - spans 5 columns */
.modern-section-sidebar {
    grid-column: 8 / 13;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.modern-section-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: start;
}

.modern-section-item .news-image {
    width: 140px;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.modern-section-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-section-item:hover .news-image img {
    transform: scale(1.05);
}

.modern-section-item .news-content {
    flex: 1;
}

.modern-section-item h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.modern-section-item .time {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.modern-section-item .author {
    font-size: 0.8125rem;
    color: var(--color-text-gray);
}

/* Compact list items for third article in sidebar */
.modern-section-item.compact {
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) 0;
    border-top: 1px solid var(--color-border);
}

.modern-section-item.compact .news-image {
    display: none;
}

.modern-section-item.compact h4 {
    font-size: 0.9375rem;
}

/* Main Article (Left Side - Full Height) */
.news-card.main {
    background-color: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-card.main .news-image {
    aspect-ratio: 16 / 9;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.news-card.main .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.news-card.main:hover .news-image img {
    transform: scale(1.02);
}

.news-card.main .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card.main .news-content h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.news-card.main .news-content p {
    color: var(--color-text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.news-card.main .article-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-top: auto;
}

.news-card.main .article-meta .author {
    font-weight: 500;
    color: var(--color-text-gray);
}

/* Small Articles (Right Side - Stack of 3) */
.small-articles-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.news-card.small {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    padding: var(--spacing-sm) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.news-card.small:last-child {
    border-bottom: none;
}

.news-card.small .news-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-sm);
}

.news-card.small .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card.small:hover .news-image img {
    transform: scale(1.05);
}

.news-card.small .news-content h4 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.news-card.small .news-content .author {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

/* Legacy styles for compatibility */
.news-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-md);
}

.news-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.news-image {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.02);
}

.news-content {
    padding: var(--spacing-md);
}

.news-content h3 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.news-content h4 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.news-content p {
    color: var(--color-text-gray);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.news-card .time {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.news-card.compact {
    background: transparent;
    border: none;
    padding: var(--spacing-sm) 0;
}

.news-card.compact:hover {
    box-shadow: none;
}

/* --- Estilos Dinâmicos: Jornal do Servidor --- */
#jornal-servidor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

/* O card da notícia injetada */
#jornal-servidor-grid .news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    /* Corta o que sobrar da imagem */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Container da imagem com altura fixa */
#jornal-servidor-grid .news-image {
    width: 100%;
    height: 180px;
    /* Altura padronizada para todas as fotos */
    display: block;
}

/* A imagem em si: cobre o espaço sem achatar */
#jornal-servidor-grid .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Container do texto */
#jornal-servidor-grid .news-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Faz o conteúdo empurrar o rodapé do card para baixo */
}

#jornal-servidor-grid .news-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 10px 0;
    font-family: "Noto Serif", serif;
}

#jornal-servidor-grid .news-content h3 a {
    color: #1a1a2e;
    text-decoration: none;
}

#jornal-servidor-grid .news-content h3 a:hover {
    color: #d0021b;
}

#jornal-servidor-grid .news-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* Most Read Section (Mais Lidos) */
.most-read-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.most-read-item {
    display: flex;
    align-items: flex-start;
    background-color: var(--color-bg);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.most-read-number {
    font-family: var(--font-ui);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    flex-shrink: 0;
}

.most-read-title {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
}

.most-read-title:hover {
    color: var(--color-primary);
}

/* Featured Section (Estilo El País) */
.featured-section {
    background-color: var(--color-bg-alt);
}

/* Desktop: Grid Híbrido */
@media (min-width: 769px) {
    .featured-grid-desktop {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: var(--spacing-lg);
    }
}

/* Mobile: 2 Colunas */
@media (max-width: 768px) {
    .featured-grid-desktop {
        display: grid;
        gap: var(--spacing-sm);
    }

    .featured-main {
        grid-column: 1 / -1;
    }

    .featured-secondary {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }

    .featured-content {
        padding: var(--spacing-md);
    }

    .featured-content h3 {
        font-size: 0.9375rem;
        margin-bottom: var(--spacing-xs);
    }

    .featured-content p {
        font-size: 0.8125rem;
        margin-bottom: var(--spacing-xs);
    }

    .featured-item h4 {
        font-size: 0.6875rem;
        padding: var(--spacing-xs) var(--spacing-sm);
        line-height: 1.2;
    }

    .featured-item .article-time {
        font-size: 0.625rem;
        padding: 0 var(--spacing-sm) var(--spacing-sm);
    }
}

.featured-main {
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.featured-main .category-tag {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    z-index: 2;
}

.featured-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-main:hover .featured-image-wrapper img {
    transform: scale(1.03);
}

.featured-content {
    padding: var(--spacing-lg);
}

.featured-content h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.featured-content p {
    color: var(--color-text-gray);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.article-time {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.featured-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--spacing-md);
}

.featured-item {
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
}

.featured-item .category-tag {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    z-index: 2;
    font-size: 0.625rem;
    padding: 2px 6px;
}

.featured-item-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.featured-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.featured-item:hover .featured-item-image img {
    transform: scale(1.05);
}

.featured-item h4 {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-xs);
    color: var(--color-text);
    margin: 0;
}

.featured-item .article-time {
    padding: 0 var(--spacing-md) var(--spacing-sm);
    font-size: 0.75rem;
}

/* Mobile: Carrossel Horizontal - desativado */
.featured-carousel-mobile {
    display: none;
}

/* Opinion Section */
.opinion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.opinion-article {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: var(--spacing-lg);
    border-left: 4px solid #d0021b;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.opinion-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.opinion-article.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
    color: #ffffff;
    border: none;
    border-left: none;
}

.opinion-article.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(26, 58, 92, 0.25);
}

.opinion-article.featured .opinion-author img {
    border-color: rgba(255, 255, 255, 0.3);
}

.opinion-article.featured .author-name {
    color: #ffffff;
    font-weight: 600;
}

.opinion-article.featured .author-role {
    color: rgba(255, 255, 255, 0.8);
}

.opinion-article.featured .opinion-title {
    color: #ffffff;
    font-family: "Noto Serif", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.3;
}

.opinion-article.featured .opinion-excerpt {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.opinion-article.featured .read-more {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-top: var(--spacing-sm);
    transition: all 0.3s ease;
}

.opinion-article.featured .read-more:hover {
    background: rgba(255, 255, 255, 0.25);
}

.opinion-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.opinion-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8e8e8;
}

.opinion-article.featured .opinion-author img {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-dark);
}

.author-role {
    font-size: 0.8rem;
    color: var(--color-text-gray);
    font-weight: 400;
}

.opinion-title {
    font-family: "Noto Serif", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

.opinion-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-gray);
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.opinion-date {
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-weight: 500;
    display: block;
    margin-top: var(--spacing-sm);
}

.opinion-author img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
}

.author-role {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.opinion-article.featured .author-name {
    color: #ffffff;
}

.opinion-article.featured .author-role {
    color: rgba(255, 255, 255, 0.7);
}

.opinion-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.opinion-article h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

.opinion-excerpt {
    color: var(--color-text-gray);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.read-more {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-text);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.read-more:hover {
    background-color: var(--color-text);
    color: #ffffff;
}

/* Regions Section */
.regions-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.region-tab {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-bg-alt);
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.region-tab:hover {
    background-color: var(--color-border);
}

.region-tab.active {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.region-content {
    display: none;
}

.region-content.active {
    display: block;
}

.region-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.region-header h3 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.region-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.region-site-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.region-site-button:hover {
    background-color: var(--color-primary-dark);
}

.region-site-button svg {
    width: 14px;
    height: 14px;
}

/* Newsletter Section */
.newsletter-section {
    background-color: #1a3a5c;
    /* CM Navy Blue */
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: #ffffff;
}

.newsletter-content h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 450px;
    margin: 0 auto;
    gap: var(--spacing-sm);
}

.newsletter-form input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    background-color: #ffffff;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.newsletter-form button {
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--color-primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--color-primary-dark);
}

/* Footer */
.main-footer {
    background-color: var(--color-bg-dark);
    color: #ffffff;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-title {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .opinion-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .opinion-article.featured {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
    }

    .logo-cm {
        font-size: 2.2rem;
    }

    .logo {
        font-size: 0.85rem;
    }

    .logo-portal {
        font-size: 0.5rem;
    }

    .nav-menu {
        flex-wrap: nowrap;
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 12px 8px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #ffffff !important;
        /* Fundo branco garantido */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: 1px solid var(--color-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Estilo das opções do menu */
    .nav-link {
        color: #1a3a5c !important;
        /* Azul escuro do portal */
        display: block;
        padding: 15px 20px;
        font-weight: 600;
        text-decoration: none;
        border-bottom: 1px solid #f0f0f0;
        /* Linha divisória suave */
        border-left: 3px solid transparent;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: #f8f9fa;
        border-left-color: var(--color-primary);
        border-bottom-color: #f0f0f0;
    }

    /* Ajuste do botão fechar (X) - Caso seja adicionado via JS futuramente */
    .close-menu-btn {
        color: #1a3a5c !important;
        background: transparent;
        border: none;
        font-size: 24px;
        padding: 15px;
        display: block;
        margin-left: auto;
        cursor: pointer;
    }

    /* Mobile dropdown styles */
    .nav-dropdown {
        position: static;
    }

    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background-color: var(--color-bg-alt);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
        padding: 0;
    }

    .nav-dropdown.active .mega-menu {
        max-height: 2000px;
        /* Large enough for content */
        transition: max-height 0.4s ease-in;
        padding-bottom: var(--spacing-md);
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mega-menu-column h4 {
        background-color: rgba(0, 0, 0, 0.03);
        padding: var(--spacing-sm) var(--spacing-lg);
        margin-bottom: 0;
        font-size: 0.7rem;
    }

    .mega-menu-column ul {
        padding: 0 var(--spacing-lg);
    }

    .mega-menu-column a {
        padding: var(--spacing-xs) 0;
        font-size: 0.875rem;
        border-bottom: 1px solid var(--color-border-light);
    }

    .mega-menu-column li:last-child a {
        border-bottom: none;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.large {
        grid-column: span 1;
    }

    /* Mobile styles for new layout */
    .news-card.main {
        margin-bottom: var(--spacing-lg);
    }

    .news-card.main .news-content h3 {
        font-size: 1.2rem;
    }

    .news-card.small {
        border-bottom: 1px solid var(--color-border);
        padding: var(--spacing-sm) 0;
    }

    .news-card.small:hover {
        padding-left: 0;
        padding-right: 0;
    }

    .opinion-grid {
        grid-template-columns: 1fr;
    }

    .opinion-article.featured {
        grid-column: span 1;
    }

    .most-read-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 1.375rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .top-bar .container {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    .top-bar-left {
        justify-content: center;
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .top-bar-separator {
        display: none;
    }

    .top-bar-right {
        justify-content: center;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .search-section {
        width: 100%;
        max-width: none;
    }

    .regions-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .region-tab {
        white-space: nowrap;
    }

    .region-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .section-title {
        font-size: 1.0625rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .logo-cm {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-portal {
        font-size: 0.59rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .breaking-label {
        display: none;
    }

    .opinion-article {
        padding: var(--spacing-md);
    }

    .opinion-title {
        font-size: 0.9375rem;
    }

    .hero-content h2 {
        font-size: 1.125rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.hidden {
    display: none;
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Loading State */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 0, 0, 0.05),
            transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Print Styles */
@media print {

    .top-bar,
    .main-nav,
    .breaking-news,
    .newsletter-section,
    .main-footer,
    .search-section,
    .ad-placeholder {
        display: none;
    }

    body {
        font-size: 11pt;
        line-height: 1.4;
    }

    .section {
        page-break-inside: avoid;
    }

    a {
        color: var(--color-text);
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--color-header-bg, #1a3a5c);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    filter: brightness(1.2);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- INTERFACE UPDATES --- */

/* 1. News Card without Thumbnail */
.news-card.card-no-thumbnail {
    grid-template-columns: 1fr !important;
    display: block !important;
}

.news-card.card-no-thumbnail .news-image,
.news-card.card-no-thumbnail .img-wrapper {
    display: none !important;
}

/* 2. Hide Inactive Ads */
.ad-placeholder:empty,
.ad-space:empty {
    display: none !important;
}

.ad-placeholder.inactive {
    display: none !important;
}

.cm-ad-slot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: -50px auto;
}

.cm-ad-slot .ad-unit {
    width: 100%;
    text-align: center;
}

.cm-ad-slot .ad-unit>div {
    display: inline-block;
    max-width: 100%;
}

.cm-ad-slot-top {
    padding: 24px 0 36px;
}

.cm-ad-slot-inline {
    padding: 28px 0 16px;
}

.cm-ad-slot-bottom {
    padding-top: 36px;
}

.cm-ad-slot-rail {
    align-items: flex-start;
}

/* Ensure no-image cards look clean */
.news-card.card-no-thumbnail .news-content {
    padding: 0 !important;
}

/* --- GLOBAL LAYOUT FIXES --- */

/* Generic rule for any container with card-no-thumbnail */
.card-no-thumbnail {
    grid-template-columns: 1fr !important;
    display: block !important;
}

.editorial-item.card-no-thumbnail,
.servidor-main.card-no-thumbnail,
.servidor-side.card-no-thumbnail {
    grid-column: span 1 !important;
    width: 100% !important;
}

/* --- Seção Ao Vivo --- */
.live-section {
    background-color: #f9fafb;
    /* Fundo levemente destacado */
    padding: 60px 0;
    margin-top: 40px;
    border-top: 1px solid #eaeaea;
}

.live-indicator {
    color: #d0021b;
    /* Vermelho CM */
    animation: blinker 1.5s linear infinite;
    margin-right: 8px;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* Container responsivo 16:9 para o iframe do YouTube */
.responsive-video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background-color: #000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.responsive-video-container iframe,
.responsive-video-container object,
.responsive-video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* --- Página de Notícia (Leitura Premium) --- */
.article-main-title {
    font-family: "Noto Serif", serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.article-subtitle {
    font-family: "Noto Sans", sans-serif;
    font-size: 1.25rem;
    color: #4b5563;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 24px;
}

.article-content {
    font-family: "Noto Serif", serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333333;
}

.article-content p {
    margin-bottom: 1.8rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .article-main-title {
        font-size: 1.85rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }

    .article-content {
        font-size: 1.05rem;
    }
}

/* Fallback para notícias sem foto */
.no-image-fallback {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d1e30 100%);
    /* Azul CM */
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16/9;
    /* Mantém a mesma proporção das fotos reais */
    color: rgba(255, 255, 255, 0.15);
    font-family: "Noto Serif", serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Estrutura de Banners e Publicidade --- */
.ad-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 50px auto;
    /* Aumenta o respiro vertical */
    padding: 15px;
    background-color: #f8fafc;
    /* Fundo leve para demarcar a área */
    border: 1px dashed #cbd5e1;
    /* Borda tracejada sutil */
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.ad-wrapper.grid-span-full {
    grid-column: 1 / -1;
    width: 100%;
}

.ad-label-small {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

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

/* --- Novo Layout de Opinião --- */
.opinion-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Esquerda 2x maior que a direita */
    gap: 25px;
    margin-bottom: 50px;
}

/* Garantia do Fundo Azul no Card Principal */
.opinion-main-feature {
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #1a3a5c 0%, #11263c 100%);
    box-shadow: 0 10px 30px rgba(26, 58, 92, 0.2);
}

/* Classes utilitárias de cor */
.main-card-blue {
    background-color: #1a3a5c;
}

.text-white {
    color: #fff;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7);
}

.border-white {
    border: 3px solid #fff;
}

.opinion-secondary-stack {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.opinion-secondary-card {
    padding: 25px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    flex: 1;
    /* Faz os dois ocuparem a mesma altura */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Correção das Imagens dos Colunistas (Hero) --- */

/* Avatar do Destaque Principal */
.avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    /* Impede que a imagem amasse */
}

/* Avatar dos Destaques Secundários */
.avatar-small {
    width: 60px;
    height: 60px;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
}

/* Alinhamento de Foto + Nome no Card Principal */
.columnist-info-large {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.col-name-large {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
}

.col-role {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: "Noto Serif", serif;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Alinhamento de Foto + Nome nos Cards Menores */
.columnist-info-small {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.col-name-small {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a5c;
}

/* Garante que o texto secundário não vaze */
.secondary-title {
    font-family: "Noto Serif", serif;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

/* Responsividade */
@media (max-width: 992px) {
    .opinion-hero-grid {
        grid-template-columns: 1fr;
        /* Vira uma coluna só no mobile/tablet */
    }

    .opinion-secondary-stack {
        flex-direction: row;
        /* No tablet, os secundários ficam lado a lado */
    }
}

@media (max-width: 768px) {
    .opinion-secondary-stack {
        flex-direction: column;
        /* No celular, tudo empilhado */
    }

    .hero-title {
        font-size: 1.8rem;
    }
}

/* --- Estilo Editorial Impresso: Jornal do Servidor --- */
.section-title-print {
    font-family: "Noto Serif", serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    color: #1a1a2e;
    border-top: 4px solid #1a1a2e;
    border-bottom: 2px solid #1a1a2e;
    padding: 15px 0;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

/* O contêiner principal simulando a página */
#jornal-servidor-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    /* Esquerda bem maior que a direita */
    gap: 30px;
    border-bottom: 4px solid #1a1a2e;
    padding-bottom: 30px;
}

/* Matéria Principal (Manchete) */
.print-featured-article {
    padding-right: 30px;
    border-right: 1px solid #ccc;
    /* Linha divisória de coluna de jornal */
}

.print-featured-article .print-headline {
    font-family: "Noto Serif", serif;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    color: #000;
    margin: 10px 0 20px 0;
    letter-spacing: -1px;
}

.print-featured-article img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 15px;
    border: 1px solid #eaeaea;
}

.print-excerpt {
    font-family: "Noto Serif", serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

/* Matérias Secundárias (Coluna da Direita) */
.print-side-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.print-secondary-article {
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.print-secondary-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.print-secondary-article .print-headline {
    font-family: "Noto Serif", serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    margin-bottom: 10px;
}

.print-tag {
    color: #d0021b;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.print-secondary-article .print-excerpt {
    font-size: 0.95rem;
    color: #333;
}

/* Responsividade: No mobile, vira uma coluna só e as linhas mudam */
@media (max-width: 768px) {
    #jornal-servidor-grid {
        grid-template-columns: 1fr;
    }

    .print-featured-article {
        padding-right: 0;
        border-right: none;
        border-bottom: 2px solid #000;
        padding-bottom: 25px;
    }
}

/* --- Seção Premium Ao Vivo --- */
.premium-live-section {
    background: linear-gradient(135deg, #1a3a5c 0%, #0a1724 100%);
    /* Fundo azul luxuoso */
    padding: 50px 0;
    margin: 40px 0;
    border-top: 3px solid #d0021b;
    /* Linha vermelha superior */
}

.live-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Coluna de Texto */
.live-info {
    flex: 1;
    max-width: 450px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(208, 2, 27, 0.15);
    color: #ff4d4d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border: 1px solid rgba(208, 2, 27, 0.3);
}

/* Efeito pulsante da bolinha vermelha */
.blink-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4d4d;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(255, 77, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

.live-title {
    font-family: "Noto Serif", serif;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.live-desc {
    color: #a0aec0;
    /* Cinza azulado claro para leitura */
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* Coluna do Vídeo */
.live-player-wrapper {
    flex: 1;
    max-width: 600px;
    /* Impede o vídeo de ficar gigante */
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Borda fina e elegante */
}

/* Ratio 16:9 inquebrável */
.responsive-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
}

.responsive-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Adaptação para Celular e Tablet */
@media (max-width: 992px) {
    .live-container {
        flex-direction: column;
        text-align: center;
    }

    .live-info {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .live-player-wrapper {
        max-width: 100%;
    }
}

/* --- Refinamentos de Layout --- */

/* --- Correção: Banner Topo Centralizado --- */
.top-ad-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px auto 30px auto;
    text-align: center;
}

.top-ad-img {
    max-width: 970px;
    width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Task 2: Barra horizontal de Colunistas (Home) */
.opinion-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opinion-bar-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1a3a5c;
    /* Borda vermelha CM */
}

.opinion-bar-name {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1a3a5c;
    text-transform: uppercase;
    display: block;
}

.opinion-bar-role {
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
}

/* --- Restauração Forçada do Grid Principal --- */
.newspaper-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 30px !important;
    width: 100%;
}

.newspaper-grid .news-card {
    height: 100%;
}

/* --- Correção: Título da Manchete (Forçando Sobrescrita) --- */

/* Desktop */
.hero-main-title {
    font-family: "Noto Serif", serif;
    font-size: 2rem !important;
    /* !important necessário para vencer o tema */
    font-weight: 900;
    line-height: 1.1;
    margin: 20px 0 10px 0;
    color: #1a1a2e;
}

/* Mobile (Telas menores que 992px) */
@media (max-width: 992px) {
    .hero-main-title {
        font-size: 1.5rem !important;
        /* Redução forçada para mobile */
        margin-top: 15px;
    }
}

/* --- Correção: Título do Jornal do Servidor --- */

/* Desktop */
.print-featured-article .print-headline {
    font-size: 2rem !important;
    /* Reduz de 2.8rem para 2rem */
    line-height: 1.2;
}

/* Mobile */
@media (max-width: 992px) {
    .print-featured-article .print-headline {
        font-size: 1.5rem !important;
        /* Redução para telas menores */
    }
}

/* --- PÁGINA DE OPINIÃO --- */

/* PERMANENTE: Títulos, labels, elementos fixos - Noto Sans (sem serifa) */
.page-header-title {
    font-family: "Noto Sans", sans-serif;
    font-size: 2.5rem;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.page-header-subtitle {
    font-family: "Noto Sans", sans-serif;
    color: #666;
    font-size: 1.1rem;
    margin: 0 0 40px 0;
}

/* Títulos de Seção com Linha Inferior */
.opinion-section-title {
    font-family: "Noto Sans", sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a2e;
    text-transform: uppercase;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
    margin-bottom: 30px;
    position: relative;
}

.opinion-section-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #1a3a5c;
}

/* Grid de Destaques */
.opinion-highlights-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.column-page-shell {
    padding: 40px 0 60px;
}

.column-page-shell .opinion-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .column-page-shell .opinion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .column-page-shell .opinion-grid,
    .column-page-shell .opinion-highlights-grid {
        grid-template-columns: 1fr;
    }
}

/* Grid de Editoriais */
.editorials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.editorial-card {
    background: #f8f9fa;
    padding: 30px;
    border-left: 4px solid #1a3a5c;
}

.opinion-page-main {
    margin-top: 40px;
}

.opinion-link-reset {
    text-decoration: none;
}

.link-reset {
    text-decoration: none;
}

.link-reset-inherit {
    text-decoration: none;
    color: inherit;
}

.sticky-top-20 {
    position: sticky;
    top: 20px;
}

.opinion-featured-card {
    background-color: #1a3a5c;
    padding: 40px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.opinion-author-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.opinion-author-avatar-lg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-right: 15px;
}

.opinion-author-avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3a5c, #2c527a);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.avatar-fallback-lg {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    border: 2px solid #fff;
}

.avatar-fallback-sm {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    font-size: 0.8rem;
}

.avatar-fallback-card {
    width: 60px;
    height: 60px;
    border: 2px solid #e8e8e8;
    font-size: 1rem;
}

.avatar-fallback-sidebar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    font-size: 1.6rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.opinion-author-name-inverse {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 800;
    color: #fff;
}

.opinion-author-name {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 800;
    color: #1a1a2e;
}

.opinion-author-role-inverse {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
}

.opinion-featured-title {
    font-family: "Noto Serif", serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 15px 0;
    color: #fff;
}

.opinion-featured-excerpt {
    font-family: "Noto Serif", serif;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    color: #ccc;
}

.opinion-highlights-stack {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.opinion-secondary-card {
    border: 1px solid #eaeaea;
    padding: 25px;
    border-radius: 4px;
    height: 100%;
}

.opinion-secondary-card .opinion-author-row {
    margin-bottom: 15px;
}

.opinion-secondary-title {
    font-family: "Noto Serif", serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #1a1a2e;
}

.opinion-columns-section {
    margin-bottom: 50px;
}

.opinion-columns-list {
    display: flex;
    flex-direction: column;
}

.opinion-column-item {
    display: flex;
    align-items: flex-start;
    padding: 25px 0;
    border-bottom: 1px solid #eaeaea;
}

.opinion-column-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    flex-shrink: 0;
}

.opinion-column-name {
    margin: 0 0 5px 0;
    font-weight: 800;
    color: #1a1a2e;
}

.opinion-column-role {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.opinion-column-title {
    font-family: "Noto Serif", serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px 0;
    color: #1a1a2e;
}

.opinion-column-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 10px 0;
}

.opinion-column-time {
    font-size: 0.8rem;
    color: #d0021b;
    font-weight: 700;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-family: "Noto Sans", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1a1a2e;
    margin: 0 0 20px 0;
}

.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.popular-article {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a3a5c;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.popular-article a {
    color: #1a1a2e;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.popular-article a:hover {
    color: #d0021b;
}

.editorial-label {
    font-size: 0.75rem;
    color: #d0021b;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.editorial-link {
    text-decoration: none;
}

.editorial-title {
    font-family: "Noto Serif", serif;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 15px 0;
    color: #1a1a2e;
}

.editorial-excerpt {
    font-size: 0.95rem;
    color: #444;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.editorial-time {
    font-size: 0.8rem;
    color: #999;
}

/* ======================================== */
/* --- TIPOGRAFIA OPINIÃO: REGRA GERAL --- */
/* ======================================== */

/* Força Noto Sans para elementos permanentes na página de opinião */
body main.container span[style*="text-transform: uppercase"],
body main.container .opinion-section-title {
    font-family: "Noto Sans", sans-serif !important;
}

/* Labels como "Colunista", "Há X horas" - SEM SERIFA */
.opinion-highlights-grid span[style*="text-transform: uppercase"],
.opinion-highlights-grid span[style*="color: #aaa"],
.opinion-highlights-grid span[style*="color: #1a3a5c"],
.opinion-highlights-grid span[style*="color: #666"] {
    font-family: "Noto Sans", sans-serif !important;
}

/* VARIÁVEL: Nomes de colunistas, manchetes, conteúdo - COM SERIFA */
.opinion-highlights-grid h4[style*="Noto Serif"],
.opinion-highlights-grid h3[style*="Noto Serif"],
.opinion-highlights-grid p[style*="Noto Serif"] {
    font-family: "Noto Serif", serif !important;
}

/* Links e títulos de artigos - COM SERIFA */
.opinion-highlights-grid a h3,
.opinion-highlights-grid a h4 {
    font-family: "Noto Serif", serif !important;
}

/* Seção de Colunas (lista vertical) */
.opinion-highlights-grid div[style*="border-bottom: 1px solid #eaeaea"] span[style*="text-transform: uppercase"] {
    font-family: "Noto Sans", sans-serif !important;
}

.opinion-highlights-grid div[style*="border-bottom: 1px solid #eaeaea"] h4,
.opinion-highlights-grid div[style*="border-bottom: 1px solid #eaeaea"] h3,
.opinion-highlights-grid div[style*="border-bottom: 1px solid #eaeaea"] p {
    font-family: "Noto Serif", serif !important;
}

/* Cards de editoriais - títulos COM SERIFA */
.editorial-card h3,
.editorial-card h4 {
    font-family: "Noto Serif", serif !important;
}

.editorial-card span,
.editorial-card time {
    font-family: "Noto Sans", sans-serif !important;
}

/* Responsividade */
@media (max-width: 992px) {

    .opinion-highlights-grid,
    .editorials-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SEÇÃO OPINIÃO (PREMIUM) --- */

.opinion-premium-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* O Card Interativo */
.columnist-premium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    flex: 1;
    min-width: 150px;
    transition: transform 0.3s ease;
}

.columnist-premium-card:hover {
    transform: translateY(-5px);
    /* Efeito de elevação suave ao passar o mouse */
}

/* O Avatar (Círculo Perfeito) */
.columnist-avatar-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 3px;
    /* Espaçamento entre a imagem e a borda */
    border: 2px solid #eaeaea;
    /* Borda cinza neutra inicial */
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.columnist-premium-card:hover .columnist-avatar-wrapper {
    border-color: #1a3a5c;
    /* O anel fica vermelho CM ao passar o mouse */
}

.columnist-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    /* Garante que rostos não fiquem achatados/esticados */
    display: block;
}

/* Tipografia do Nome */
.columnist-name {
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 900;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

/* Tag "Leia a Coluna" */
.columnist-action {
    font-family: sans-serif;
    font-size: 0.75rem;
    color: #1a3a5c;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.columnist-premium-card:hover .columnist-action {
    opacity: 1;
    /* Fica mais forte no hover */
}

/* ========================================= */
/* --- AJUSTES GERAIS MOBILE (Até 768px) --- */
/* ========================================= */

@media (max-width: 768px) {

    /* 1. Tipografia Geral Mobile */
    .hero-main-title {
        font-size: 1.6rem !important;
    }

    .section-title,
    .opinion-section-title,
    .strip-header h3 {
        font-size: 1.1rem !important;
    }

    .section {
        padding: 10px;
        margin-bottom: 30px !important;
    }

    /* 2. Top 5 (Faixa Numerada) -> Efeito Swipe (Rolagem Horizontal) */
    .numbered-strip {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        /* Suavidade no iOS */
        padding-bottom: 15px !important;
        gap: 15px !important;
    }

    .numbered-strip>div {
        /* Cada item ocupa 80% da tela, mostrando um pedaço do próximo para induzir o swipe */
        flex: 0 0 80vw !important;
        min-width: auto !important;
        border-left: none !important;
        border-right: 1px solid #eaeaea;
        padding-left: 0 !important;
        padding-right: 15px;
    }

    .numbered-strip>div:last-child {
        border-right: none;
    }

    /* Esconde a barra de rolagem (opcional, deixa mais clean) */
    .numbered-strip::-webkit-scrollbar {
        display: none;
    }

    /* 3. Colunistas Premium -> Efeito Swipe (Rolagem Horizontal) */
    .opinion-premium-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 15px !important;
        padding-bottom: 15px !important;
        justify-content: flex-start !important;
    }

    .columnist-premium-card {
        min-width: 120px !important;
        /* Largura fixa para os cards no carrossel */
        flex: 0 0 auto !important;
    }

    /* Diminui um pouco as fotos dos colunistas no celular */
    .columnist-avatar-wrapper {
        width: 85px !important;
        height: 85px !important;
        margin-bottom: 10px !important;
    }

    .columnist-name {
        font-size: 1rem !important;
    }

    .opinion-premium-grid::-webkit-scrollbar {
        display: none;
    }

    /* 4. Grids de Notícias (Política, Justiça, Economia...) */
    .newspaper-grid {
        grid-template-columns: 1fr !important;
        /* Força 1 coluna */
        gap: 20px !important;
    }

    .news-card img {
        height: 200px !important;
        /* Trava a altura para a imagem não ficar gigante */
        object-fit: cover !important;
    }

    /* 5. Jornal do Servidor (Reorganização de Colunas) */
    .print-featured-article {
        padding-right: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid #ccc !important;
        padding-bottom: 20px !important;
        margin-bottom: 20px !important;
    }

    .print-featured-article .print-headline {
        font-size: 1.6rem !important;
    }
}

/* ========================================= */
/* --- EFEITO SHRINK DO HEADER AO ROLAR  --- */
/* ========================================= */

/* 1. Prepara os elementos para uma animação suave */
header,
.main-header,
.logo,
.logo-portal {
    transition: all 0.3s ease-in-out !important;
}

/* 2. Reduz o tamanho da barra inteira (Estado Scrolled) */
header.scrolled,
.main-header.scrolled,
.sticky-nav-unified.scrolled {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    min-height: auto !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    /* Deixa a sombra um pouco mais forte */
}

/* 3. Encolhe o texto "CM" */
.scrolled .logo-cm {
    font-size: 1.8rem !important;
}

/* 4. Encolhe o texto "PORTAL" */
.scrolled .logo {
    display: none;
    font-size: 0.6rem !important;
}

.scrolled .logo-portal {
    font-size: 1rem !important;
}

/* ========================================= */
/* --- AJUSTES EXCLUSIVOS DO HEADER MOBILE --- */
/* ========================================= */

@media (max-width: 768px) {

    /* 1. Transforma o Header em uma pilha organizada */
    header,
    .main-header {
        flex-direction: column !important;
        /* Coloca um elemento em cima do outro */
        gap: 15px !important;
        /* Espaçamento entre logo, busca e menu */
        height: auto !important;
        /* Deixa o header crescer o necessário */
    }

    /* 2. Centraliza o Logo "CM PORTAL" */
    .logo-container-right {
        text-align: center !important;
        width: 100% !important;
    }

    .cm-text {
        font-size: 2.5rem !important;
        /* Reduz o tamanho da fonte */
        text-align: center !important;
    }

    .portal-text {
        text-align: center !important;
        font-size: 0.7rem !important;
    }

    /* 3. Ajusta a Barra de Busca para ocupar a tela toda */
    .header-search-box,
    header input[type="text"],
    .main-header input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    /* 4. Transforma o Menu de Navegação em "Swipe" (Rolagem Horizontal) */
    header nav ul,
    .main-header ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        /* Impede de quebrar em 5 linhas */
        overflow-x: auto !important;
        /* Permite arrastar para o lado */
        -webkit-overflow-scrolling: touch;
        /* Suavidade no iPhone */
        width: 100% !important;
        justify-content: flex-start !important;
        padding-bottom: 5px !important;
        gap: 20px !important;
    }

    /* Esconde a barrinha de rolagem feia do menu */
    header nav ul::-webkit-scrollbar,
    .main-header ul::-webkit-scrollbar {
        display: none;
    }
}

/* --- Oculta a barra de utilidades APENAS no mobile --- */
@media (max-width: 768px) {

    /* Nota pro agente: Se a classe da barra preta do topo for diferente, adicione-a aqui */
    .top-bar,
    .header-top,
    .top-header-bar,
    .ticker-container {
        display: none !important;
    }
}

/* --- TV Ao Vivo (Final da Página) --- */
.live-tv-footer-section {
    padding: 40px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
}

.live-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    /* Limitamos a largura no desktop para não ficar gigante */
    margin: 0 auto;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.live-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.live-header {
    text-align: center;
    margin-bottom: 20px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: #d0021b;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* --- HERO GRID REFINEMENT (1+2 Aesthetics) --- */

.hero-grid {
    display: grid;
    grid-template-columns: 1.72fr 0.88fr;
    gap: 24px;
    align-items: stretch;
    max-width: 1200px;
    margin: 28px auto 20px;
}

/* Responsividade para Mobile */
@media (max-width: 768px) {
    .hero-grid {
        padding: 10px;
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Distribuição da Barra Lateral */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Notícia Principal e Itens Laterais */
.main-featured-news,
.sidebar-card {
    display: flex;
    flex-direction: column;
}

.main-featured-news {
    min-width: 0;
}

/* Figuras e Imagens Quadradas (O Ponto Chave) */
.hero-figure {
    margin: 0;
    position: relative;
    overflow: hidden;
}

.hero-figure img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-featured-news:hover .hero-figure img,
.sidebar-card:hover .hero-figure img {
    transform: scale(1.03);
}

.main-featured-news .hero-figure img {
    aspect-ratio: 1.75 / 1;
}

.hero-sidebar .hero-figure img {
    aspect-ratio: 2.45 / 1.5;
}

/* Category Tags (Badges) */
.category-tag,
.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color) !important;
    color: white;
    padding: 4px 12px;
    font-family: var(--font-ui);
    font-size: 0.70rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 10;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.category-tag:hover,
.category-badge:hover {
    transform: translateY(-2px);
    background-color: var(--color-primary-dark) !important;
}

/* Hierarquia de Títulos */
.hero-content h1 {
    font-size: 2em;
    line-height: 1.4;
    font-weight: 800;
    margin: 16px 0 12px 0;
    color: #111;
    font-family: "Noto Serif", serif;
    transition: color 0.3s ease;
}

.main-featured-news:hover .hero-content h1,
.hero-content h1:hover {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 0;
}

/* Ajuste dos Textos Laterais */
.sidebar-card h3 {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 8px 0 0 0;
    color: #111;
    font-family: "Noto Serif", serif;
    transition: color 0.3s ease;
}

.sidebar-card:hover h3,
.sidebar-card h3:hover {
    color: var(--primary-color);
}

.sidebar-excerpt {
    display: none;
    /* Oculto para focar na imagem e título */
}

.hero-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.5em;
    }

    .hero-grid {
        margin: 24px auto 16px;
    }

    .main-featured-news .hero-figure img,
    .hero-sidebar .hero-figure img {
        aspect-ratio: 16 / 9;
    }
}

/* --- SEÇÃO MAGNAVITA --- */

.magnavita-wrapper {
    padding: 32px 0 24px;
    scroll-margin-top: 145px;
}

.magnavita-panel {
    padding: 28px 32px;
    border-radius: 10px;
    border: 1px solid #eaeaea;
    border-top: 4px solid var(--primary-color);
    background: #ffffff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.035);
}

.magnavita-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.magnavita-heading-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.magnavita-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 14px;
    border-radius: 16px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(26, 58, 92, 0.2);
}

.magnavita-author {
    display: flex;
    align-items: center;
    gap: 18px;
}

.magnavita-avatar {
    width: 124px;
    height: 124px;
    border-radius: 18px;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.magnavita-author {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 0;
}

.magnavita-author-copy h2 {
    margin: 0 0 6px 0;
    font-family: var(--font-ui);
    font-size: 2.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #10253b;
    line-height: 0.95;
    text-transform: uppercase;
}

.magnavita-author-copy p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #555;
    max-width: 520px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.magnavita-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 16px;
    border: 1px solid #eaeaea;
    background: #ffffff;
    color: #1a3a5c;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.magnavita-header-link:hover {
    border-color: var(--primary-color);
    background: var(--color-primary);
    color: #ffffff;
    transform: translateX(2px);
}

/* Layout: 58/42 split */
.magnavita-layout {
    display: grid;
    grid-template-columns: 58fr 42fr;
    gap: 24px;
    align-items: start;
}

/* Featured article */
.magnavita-featured {
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    border-top: 3px solid var(--primary-color);
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.02);
    transition: box-shadow .25s, transform .25s;
}

.magnavita-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,.07);
}

.magnavita-featured-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.magnavita-featured-media {
    overflow: hidden;
    background: #eef2f7;
    max-height: 500px;
}

.magnavita-featured-media img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .4s ease;
}

.magnavita-featured:hover .magnavita-featured-media img {
    transform: scale(1.03);
}

.magnavita-featured-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 20px;
}

.magnavita-story-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 11px;
    border-radius: 20px;
    background: #f1f5f9;
    color: var(--primary-color);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid #e2e8f0;
}

.magnavita-featured .headline-title {
    font-size: 1.65rem;
    line-height: 1.15;
    font-weight: 800;
    color: #1a1a2e;
    display: block;
    transition: color .25s;
}

.magnavita-featured:hover .headline-title {
    color: var(--primary-color);
}

.magnavita-featured-content p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #555;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
}

.magnavita-story-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #748092;
}

/* Stack of compact cards */
.magnavita-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.magnavita-compact {
    min-width: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    background: #fff;
    transition: box-shadow .25s, transform .25s;
}

.magnavita-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.07);
    border-color: #d1d5db;
}

/* Compact card: small square thumb + title + date */
.magnavita-compact-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    color: inherit;
    text-decoration: none;
    min-height: 90px;
}

.magnavita-compact-media {
    flex: 0 0 100px;
    width: 100px;
    align-self: stretch;
    overflow: hidden;
    background: #eef2f7;
}

.magnavita-compact-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.magnavita-compact:hover .magnavita-compact-media img {
    transform: scale(1.05);
}

.magnavita-compact-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
}

.magnavita-compact h3 {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.35;
    font-weight: 700;
    color: #1a1a2e;
    transition: color .25s;
}

.magnavita-compact:hover h3 {
    color: var(--primary-color);
}

.magnavita-compact .card-col-date {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #748092;
}

.magnavita-compact-link:focus-visible,
.magnavita-featured-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

/* Responsive */
@media (max-width: 900px) {
    .magnavita-layout {
        grid-template-columns: 1fr;
    }

    .magnavita-stack {
        flex-direction: row;
    }

    .magnavita-compact {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .magnavita-stack {
        flex-direction: column;
    }

    .magnavita-featured .headline-title {
        font-size: 1.4rem;
    }
}

/* --- SEÇÃO COLUNISTAS (CARDS MODERNOS) --- */

.colunistas-wrapper {
    background-color: #f4f5f7;
    /* Fundo cinza claro da seção */
    padding: 60px 0;
    margin: 40px 0;
}

/* Cabeçalho da Seção */
.colunistas-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.colunistas-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.colunistas-icon-box {
    background-color: var(--primary-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.colunistas-title-text h2 {
    font-family: var(--font-ui);
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a1a2e;
    margin: 0 0 5px 0;
}

.colunistas-title-text p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

.btn-outline-brand {
    border: 1px solid #eaeaea;
    background: #fff;
    color: #1a3a5c;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-outline-brand:hover {
    border-color: #1a3a5c;
    background: #f4f8fc;
}

/* Grid de Cards */
/* --- CARROSSEL HORIZONTAL DE COLUNISTAS (Desktop e Mobile) --- */

.colunistas-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}

.colunistas-carousel-shell {
    min-width: 0;
}

.colunistas-carousel-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.colunistas-carousel-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    background: #ffffff;
    color: #1a3a5c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.colunistas-carousel-btn:hover:not(:disabled) {
    border-color: #1a3a5c;
    background: #f4f8fc;
}

.colunistas-carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.colunistas-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.colunistas-carousel-track {
    display: flex;
    gap: 20px;
    /* Alinhado com o JS */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Trava a largura do Card para o Carrossel */
.card-colunista {
    flex: 0 0 auto !important;
    background-color: #ffffff;
    border-radius: 0;
    min-height: 272px;
    padding: 32px 32px 24px;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-colunista:hover {
    transform: none;
}

/* Topo do Card (Foto + Nome) */
.card-col-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.card-col-avatar {
    width: 50px;
    height: 50px;
    border-radius: 0;
    object-fit: cover;
    border: none;
    flex-shrink: 0;
}

.card-col-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d8e3ee 0%, #edf2f7 100%);
    color: #1a3a5c;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.card-col-info {
    display: flex;
    flex-direction: column-reverse;
}

.card-col-info span {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.card-col-info h3 {
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    margin: 0;
    line-height: 1.2;
}

/* Bio / Resumo */
.card-col-bio {
    font-size: 0.95rem;
    color: #666;
    background: #f4f5f7;
    padding: 20px 24px;
    border-left: 4px solid var(--primary-color);
    position: relative;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 24px;
}

.card-col-bio::before {
    content: "“";
    font-family: "Noto Serif", serif;
    font-size: 4rem;
    color: #e2e8f0;
    position: absolute;
    top: -15px;
    left: 15px;
    line-height: 1;
}

.card-col-bio p {
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Última Coluna (Com borda lateral) */
.card-col-latest {
    border-left: 3px solid #e0e0e0;
    padding-left: 12px;
    margin-bottom: 16px;
    flex-grow: 1;
    min-height: 0;
}

.card-col-latest-title {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.card-col-latest-title i {
    color: #aaa;
    margin-top: 4px;
}

.card-col-latest-title h4 {
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-col-date {
    font-size: 0.7rem;
    color: #999;
}

/* Botão do Card */
.card-col-action {
    text-align: center;
    margin-top: auto;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 992px) {
    .magnavita-panel {
        padding: 24px;
    }

    .colunistas-showcase {
        grid-template-columns: 1fr;
    }

    .colunistas-ad-slot {
        position: static;
        justify-content: flex-start;
        margin-top: 0;
    }

    .card-colunista {
        width: calc((100% - 24px) / 2) !important;
    }
}

@media (max-width: 768px) {
    .magnavita-panel {
        padding: 22px;
        border-radius: 14px;
    }

    .magnavita-heading,
    .magnavita-author {
        flex-direction: column;
        align-items: flex-start;
    }

    .magnavita-author-copy h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 600px) {
    .magnavita-panel {
        padding: 18px;
    }

    .magnavita-avatar {
        width: 84px;
        height: 84px;
        border-radius: 14px;
    }

    .card-colunista {
        width: 100% !important;
    }

    .colunistas-ad-slot {
        width: 100%;
    }
}

.home-columns-section {
    padding: 10px 0 60px;
    scroll-margin-top: 130px;
}

.home-columns-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.home-columns-section .section-title {
    font-size: 1.8rem;
}

.home-columns-intro {
    max-width: 640px;
    margin: -10px 0 28px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #5c6672;
}

.home-columns-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.home-column-card {
    min-width: 0;
}

.home-column-card-link {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100%;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    text-decoration: none;
    color: inherit;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.home-column-card-link:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

.home-column-card-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.home-column-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.home-column-card-link:hover .home-column-card-icon img {
    transform: scale(1.03);
}

.home-column-card-label {
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 5px 12px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.home-column-card-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 10px;
}

.home-column-card-author {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

.home-column-card-content h3 {
    margin: 0;
    font-family: "Noto Serif", serif;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1.2;
    color: #1a1a2e;
    transition: color 0.3s;
}

.home-column-card-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.home-column-card-link:hover .home-column-card-content h3 {
    color: var(--primary-color);
}

@media (max-width: 1100px) {
    .home-columns-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-columns-section {
        padding: 0 0 50px;
    }

    .home-columns-intro {
        margin: -4px 0 24px;
    }

    .home-columns-grid {
        grid-template-columns: 1fr;
    }

    .home-column-card-link {
        padding: 24px 20px;
    }
}

/* ========================================= */
/* --- CM COLUNAS SECTION + PAGE ----------- */
/* ========================================= */

.cm-colunas-section {
    padding: var(--spacing-xl) 0;
    background: #f8f8f8;
}

.cm-opiniao-section {
    background: #fff;
    border-bottom: 1px solid #ebebeb;
}

.cm-colunas-section .section-title-wrap {
    margin-bottom: 24px;
}

.cm-coluna-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #efefef;
}

.cm-coluna-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.cm-coluna-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.cm-coluna-card-kicker {
    background: #1e3a5c;
    color: #fff;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 5px 12px;
}

.cm-coluna-card-img {
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

.cm-coluna-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.cm-coluna-card:hover .cm-coluna-card-img img {
    transform: scale(1.03);
}

.cm-coluna-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.cm-coluna-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cm-coluna-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cm-coluna-card-author-title {
    font-size: 0.75rem;
    color: #666;
}

.cm-coluna-card-author-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.cm-coluna-card-author-role {
    display: block;
    font-size: 0.7rem;
    color: #888;
    line-height: 1.3;
}

.cm-coluna-card-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
}

.cm-coluna-card-excerpt {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cm-coluna-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.cm-coluna-card-date {
    font-size: 0.75rem;
    color: #888;
}

.cm-coluna-card-cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e3a5c;
}

/* Carousel */
.cm-colunas-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.cm-colunas-carousel-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.cm-colunas-carousel-btn:hover {
    background: var(--color-primary, #d71e15);
    border-color: var(--color-primary, #d71e15);
    color: #fff;
}

.cm-colunas-carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.cm-colunas-carousel-viewport {
    overflow: hidden;
    flex: 1;
}

.cm-colunas-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.35s ease;
    align-items: stretch;
}

/* Carousel cards reuse .cm-coluna-card — just constrain width to match pinned grid */
.cm-colunas-carousel-track .cm-coluna-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
}

/* Placeholder when article has no image */
.cm-coluna-card-img--placeholder {
    background: #f0f0f0;
}

.cm-coluna-card-img--placeholder::after {
    content: '';
    display: block;
    padding-bottom: 60%;
}

/* Footer CTA */
.cm-colunas-footer {
    text-align: center;
    padding-top: 8px;
}

.cm-colunas-all-btn {
    display: inline-block;
    padding: 11px 32px;
    border: 2px solid var(--color-primary, #d71e15);
    border-radius: 4px;
    color: var(--color-primary, #d71e15);
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
}

.cm-colunas-all-btn:hover {
    background: var(--color-primary, #d71e15);
    color: #fff;
}

/* All-columns page */
.cm-colunas-page-main {
    padding: var(--spacing-xl) 0;
    flex: 1;
}

.cm-colunas-page-header {
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-primary, #d71e15);
}

.cm-colunas-page-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.cm-colunas-page-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.cm-colunas-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cm-colunas-page-empty {
    color: #888;
    font-size: 0.95rem;
    text-align: center;
    padding: 48px 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .cm-colunas-pinned--unused {
        grid-template-columns: repeat(2, 1fr);
    }

    .cm-colunas-page-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cm-colunas-carousel-track .cm-coluna-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .cm-colunas-pinned--unused {
        grid-template-columns: 1fr;
    }

    .cm-colunas-carousel-wrap {
        gap: 8px;
    }

    .cm-colunas-carousel-track .cm-coluna-card {
        flex: 0 0 100%;
    }

    .cm-colunas-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cm-colunas-page-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* --- PADRONIZAÇÃO DE PUBLICIDADE (ADS) --- */
/* ========================================= */

/* Estilo base para todos os placeholders de anúncio */
.ad-placeholder {
    background-color: #f4f5f7;
    /* Cinza claro e elegante */
    border: 1px dashed #d1d5db;
    /* Borda pontilhada indicando espaço reservado */
    color: #6b7280;
    /* Texto discreto */
    font-family: sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 10px;
    /* Garante respiro em cima e embaixo, e centraliza na tela */
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 20px;
}

/* Modificadores de Tamanho (Cravam o limite no Desktop) */
.ad-970x250 {
    max-width: 970px;
    min-height: 250px;
}

.ad-950x250 {
    max-width: 950px;
    min-height: 250px;
}

/* Mobile: Desktop 950x250 -> Mobile 320x150 (Horizontal) */
@media (max-width: 992px) {
    .ad-950x250 {
        max-width: 320px !important;
        min-height: 150px !important;
        padding: 10px !important;
        margin: 20px auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* --- Novo formato intermediário (Desktop 970x150 -> Mobile 320x150) --- */
.ad-970x150 {
    max-width: 970px;
    min-height: 150px;
    transition: all 0.3s ease;
}

/* Força o tamanho exato de 320x150 em telas menores */
@media (max-width: 992px) {
    .ad-970x150 {
        max-width: 320px !important;
        min-height: 150px !important;
        padding: 10px !important;
        /* Reduz o padding para caber o texto no mobile */
    }
}

.ad-728x90 {
    max-width: 728px;
    min-height: 90px;
}

.ad-300x250 {
    max-width: 300px;
    min-height: 250px;
}

.ad-300x600 {
    max-width: 300px;
    min-height: 600px;
}

/* Mobile: Desktop 300x250 -> Mobile 300x250 (Vertical - stays same size) */
@media (max-width: 992px) {
    .ad-300x250 {
        max-width: 300px !important;
        min-height: 250px !important;
        margin: 20px auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .ad-300x600 {
        max-width: 300px !important;
        min-height: 250px !important;
        margin: 20px auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Responsividade: Impede que o anúncio vaze da tela no celular */
@media (max-width: 992px) {
    .ad-placeholder {
        min-height: auto;
        /* Remove a altura fixa */
        padding: 40px 20px;
        /* Mantém uma área clicável boa no mobile */
    }
}

/* --- Anúncio Mutável: Jornal do Servidor (Desktop 300x600 -> Mobile 300x250) --- */
.ad-jornal-sidebar {
    width: 100%;
    max-width: 300px;
    min-height: 600px;
    transition: min-height 0.3s ease;
    /* Transição suave caso redimensione a tela */
}

/* Quando a tela for menor que 992px (Tablets e Celulares) */
@media (max-width: 992px) {
    .ad-jornal-sidebar {
        min-height: 250px;
        margin: 20px auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* ========================================= */
/* --- AJUSTES MOBILE (JORNAL DO SERVIDOR) --- */
/* ========================================= */

@media (max-width: 992px) {

    /* 1. Garante que o container geral empilhe corretamente */
    .jornal-servidor-inner .layout-with-sidebar {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 2. O conteúdo principal de notícias vem primeiro */
    .jornal-servidor-inner .main-column {
        order: 1 !important;
    }

    /* 3. A sidebar (anúncio) vai lá pro final da seção */
    .jornal-servidor-sidebar {
        order: 2 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        /* Centraliza o conteúdo da sidebar */
        margin-top: 30px !important;
        /* Dá um respiro entre as notícias e o anúncio */
    }

    /* 4. Trava o tamanho do anúncio e centraliza */
    .ad-jornal-sidebar {
        margin: 0 auto !important;
        max-width: 300px !important;
        min-height: 250px !important;
    }
}

/* --- Botão Voltar ao Topo (Ajuste Mobile) --- */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px !important;
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
        opacity: 0.8;
        /* Leve transparência */
        z-index: 1001 !important;
        /* Garante que fique acima de tudo */
    }

    .back-to-top svg {
        width: 1.2rem !important;
        height: 1.2rem !important;
    }
}

/* ========================================= */
/* --- CARDS: NACIONAL E REGIONAIS --- */
/* ========================================= */

.card-regional {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    /* Borda cinza bem sutil do design original */
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Faz todos os cards da linha terem a mesma altura */
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.card-regional:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.card-regional-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Container da Imagem + Tag */
.card-regional-media {
    position: relative;
    width: 100%;
    height: 180px;
    /* Altura fixa para alinhar o grid */
    overflow: hidden;
}

.card-regional-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card-regional:hover .card-regional-media img {
    transform: scale(1.04);
}

/* Área de Texto com Espaçamento (Padding) */
.card-regional-content {
    padding: 20px 15px;
    /* Devolve o "respiro" branco em volta do texto */
    flex-grow: 1;
}

.card-regional-content h3 {
    font-family: "Noto Serif", serif;
    font-size: 1.05rem;
    /* Tamanho original mais delicado */
    font-weight: 700;
    /* Reduzido de 800 para tirar o peso excessivo */
    line-height: 1.4;
    color: #222;
    margin: 0;
}

/* Estilo da Tag Flutuante */
.tag-sobreposta {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    color: #fff;
    font-size: 0.7rem;
    font-family: sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    background-color: #1a3a5c;
    /* Azul característico do site */
    border-radius: 2px;
    z-index: 2;
}

/* ========================================= */
/* --- SEÇÃO MULTIMÍDIA / VÍDEOS --- */
/* ========================================= */

.video-section {
    margin: 50px auto;
    padding: 30px 0;
    border-top: 2px solid #eaeaea;
}

.video-section-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-section-header h2 {
    font-family: var(--font-ui);
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a1a2e;
    text-transform: uppercase;
    margin: 0;
}

/* Grid de Vídeos: Esquerda (Principal) e Direita (Lista) */
.video-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* --- PLAYER PRINCIPAL --- */
.video-main {
    display: flex;
    flex-direction: column;
}

/* Truque para deixar o iframe do YouTube 100% responsivo */
.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-main-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a2e;
    margin: 0;
}

/* Tags sobre o vídeo principal */
.video-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
}

.tag-live {
    background-color: #d0021b;
    animation: pulse-red 2s infinite;
}

.tag-highlight {
    background-color: #1a3a5c;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(208, 2, 27, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(208, 2, 27, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(208, 2, 27, 0);
    }
}

/* --- LISTA DE VÍDEOS LATERAL --- */
.video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.video-sidebar-title {
    font-size: 1rem;
    font-weight: 800;
    color: #555;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
}

.video-brand-icon {
    color: #d0021b;
    font-size: 1.8rem;
}

.video-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eaeaea;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.video-sidebar-title-plain {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.video-sidebar-link {
    font-size: 0.75rem;
    color: #1a3a5c;
    text-decoration: none;
    font-weight: bold;
}

.video-side-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.video-side-item:hover {
    transform: translateX(5px);
}

.video-side-item:hover h5 {
    color: #d0021b;
}

.video-side-thumb {
    position: relative;
    width: 130px;
    /* Largura fixa para a miniatura lateral */
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.video-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-side-item:hover .video-side-thumb img {
    opacity: 1;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-side-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-side-info h5 {
    font-family: "Noto Serif", serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a2e;
    margin: 0 0 5px 0;
    transition: color 0.2s ease;
}

.video-side-info span {
    font-size: 0.75rem;
    color: #888;
}

/* Responsividade */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: 1fr;
        /* Empilha tudo no celular */
    }

    .video-side-thumb {
        width: 150px;
    }
}

/* ========================================= */
/* --- SEÇÃO MULTIMÍDIA / VÍDEOS --- */
/* ========================================= */

.video-section {
    margin: 50px auto;
    padding: 30px 0;
    border-top: 2px solid #eaeaea;
}

.video-section-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-section-header h2 {
    font-family: var(--font-ui);
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a1a2e;
    text-transform: uppercase;
    margin: 0;
}

/* Grid de Vídeos: Esquerda (Principal) e Direita (Lista) */
.video-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* --- PLAYER PRINCIPAL --- */
.video-main {
    display: flex;
    flex-direction: column;
}

/* Truque para deixar o iframe do YouTube 100% responsivo */
.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-main-title {
    font-family: "Noto Serif", serif;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a2e;
    margin: 0;
}

/* Tags sobre o vídeo principal */
.video-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
}

.tag-live {
    background-color: #d0021b;
    animation: pulse-red 2s infinite;
}

.tag-highlight {
    background-color: #1a3a5c;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(208, 2, 27, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(208, 2, 27, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(208, 2, 27, 0);
    }
}

/* --- LISTA DE VÍDEOS LATERAL --- */
.video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.video-sidebar-title {
    font-size: 1rem;
    font-weight: 800;
    color: #555;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
}

.video-side-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.video-side-item:hover {
    transform: translateX(5px);
}

.video-side-item:hover h5 {
    color: #d0021b;
}

.video-side-thumb {
    position: relative;
    width: 130px;
    /* Largura fixa para a miniatura lateral */
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.video-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-side-item:hover .video-side-thumb img {
    opacity: 1;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-side-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-side-info h5 {
    font-family: "Noto Serif", serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a2e;
    margin: 0 0 5px 0;
    transition: color 0.2s ease;
}

.video-side-info span {
    font-size: 0.75rem;
    color: #888;
}

/* Responsividade */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: 1fr;
        /* Empilha tudo no celular */
    }

    .video-side-thumb {
        width: 150px;
    }
}

/* ========================================= */
/* --- RESPONSIVIDADE: NACIONAL E REGIONAIS --- */
/* ========================================= */

.grid-regionais {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Para Tablets (Telas médias) */
@media (max-width: 1024px) {
    .grid-regionais {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* Para Celulares (Telas pequenas) */
@media (max-width: 768px) {
    .grid-regionais {
        grid-template-columns: 1fr !important;
        /* Empilha 1 card por linha */
        gap: 20px !important;
    }

    /* Ajuste opcional para a imagem não ficar gigante no celular */
    .card-regional-media {
        height: 220px !important;
    }
}

/* ========================================= */
/* --- SEÇÃO INSTAGRAM (CORREIO DA MANHÃ) --- */
/* ========================================= */

.instagram-section {
    background-color: #fafafa;
    /* Fundo característico do Instagram */
    padding: 60px 0;
    margin: 50px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.insta-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}

.insta-icon {
    font-size: 2.5rem;
    background: -webkit-linear-gradient(45deg,
            #f09433 0%,
            #e6683c 25%,
            #dc2743 50%,
            #cc2366 75%,
            #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.insta-title {
    font-family: var(--font-ui);
    font-size: 1.8rem;
    font-weight: 900;
    color: #1a1a2e;
    margin: 0 0 5px 0;
}

.insta-subtitle {
    font-family: sans-serif;
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-follow-insta {
    background-color: #0095f6;
    /* Azul oficial do botão de seguir do Instagram */
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-follow-insta:hover {
    background-color: #1877f2;
}

/* Container onde o Script/Iframe será injetado */
.insta-feed-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fallback visual caso o widget demore a carregar */
.insta-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.insta-placeholder-item {
    aspect-ratio: 1 / 1;
    background-color: #eaeaea;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .insta-placeholder-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 fotos por linha no celular */
    }
}

/* ========================================= */
/* --- GRIDS DAS SEÇÕES REGIONAIS (4x1) --- */
/* ========================================= */

.regional-section-wrapper {
    margin: 50px auto;
    /* Espaçamento padrão entre as seções */
}

.regional-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Reutilizando o design de card limpo (fundo branco, borda sutil) */
.regional-card-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    white-space: normal !important;
    /* Desfaz o bug do nowrap */
    width: 100%;
}

.regional-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.regional-card-item img {
    width: 100%;
    height: 180px;
    /* Altura padrão para as fotos */
    object-fit: cover;
}

.regional-card-content {
    padding: 20px 15px;
    flex-grow: 1;
}

.regional-card-content h3 {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    font-family: "Noto Serif", serif;
    font-size: 1rem !important;
    /* Tamanho idêntico aos cards originais */
    font-weight: 700;
    line-height: 1.4 !important;
    color: #222;
    margin: 0;
}

/* Responsividade */
@media (max-width: 1024px) {
    .regional-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .regional-grid-4 {
        grid-template-columns: 1fr;
    }

    .regional-card-item img {
        height: 220px;
    }
}

/* ========================================= */
/* --- AJUSTE DOS CABEÇALHOS REGIONAIS --- */
/* ========================================= */

/* 1. Protege APENAS o link "VER TODOS" (ignora os cards) */
.regional-section-wrapper>div:first-child>a {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin-left: 15px !important;
}

/* 2. Permite que o Título ocupe o espaço restante corretamente */
.regional-section-wrapper h2 {
    flex: 1;
    overflow-wrap: break-word;
    /* Se a palavra for maior que a tela, quebra com segurança */
}

/* 3. Ajuste Responsivo para Celulares */
@media (max-width: 768px) {
    .regional-section-wrapper h2 {
        font-size: 1.4rem !important;
        /* Reduz de 2rem para 1.4rem no mobile */
    }

    /* Centraliza os itens verticalmente no mobile para ficar mais harmônico */
    .regional-section-wrapper>div:first-child {
        align-items: center !important;
    }
}

/* 4. Ajuste Extremo (Para celulares muito pequenos tipo iPhone SE) */
@media (max-width: 375px) {
    .regional-section-wrapper h2 {
        font-size: 1.2rem !important;
    }

    .regional-section-wrapper a {
        font-size: 0.75rem !important;
    }
}

/* ========================================= */
/* --- PADRONIZAÇÃO DE TÍTULOS (MOBILE) --- */
/* ========================================= */

@media (max-width: 768px) {

    /* O seletor mira exatamente o <h2> que fica dentro da primeira <div>
       de qualquer <section> (que é o padrão de cabeçalho do portal)
    */
    section>div:first-child>h2,
    .regional-section-wrapper h2 {
        font-size: 1.25rem !important;
        /* Tamanho único, elegante e que não quebra a tela */
        line-height: 1.3 !important;
    }

    /* Garante que o botão 'VER TODOS' nas seções antigas também fique protegido */
    section>div:first-child>a {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-size: 0.8rem !important;
        margin-left: 10px !important;
    }
}

/* Ajuste fino para celulares muito pequenos (ex: iPhone SE) */
@media (max-width: 375px) {

    section>div:first-child>h2,
    .regional-section-wrapper h2 {
        font-size: 1.15rem !important;
    }
}

/* ========================================= */
/* --- BARRA DE PESQUISA EXPANSÍVEL MOBILE --- */
/* ========================================= */

@media (max-width: 768px) {

    /* O container do formulário precisa alinhar os itens */
    .search-box {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* Oculta o campo de texto por padrão no celular */
    #search-input {
        width: 0 !important;
        padding: 0 !important;
        opacity: 0;
        border: none !important;
        transition:
            width 0.4s ease,
            opacity 0.4s ease,
            padding 0.4s ease;
        overflow: hidden;
    }

    /* Garante que o botão da lupa fique sempre visível e clicável */
    .search-btn {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        color: #fff;
        /* O ícone é branco no portal */
        z-index: 2;
    }

    /* O estado "Aberto" (ativado pelo JavaScript) */
    .search-box.search-active #search-input {
        width: 200px !important;
        /* Largura da barra quando aberta */
        opacity: 1;
        padding: 8px 15px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        /* Borda da barra ativa */
    }
}

/* ========================================
   Modern Mais Lidos & Destaques Section Layout
   Mobile-first design based on modern portal patterns
   ======================================== */

/* ========================================
   MAIS LIDOS (Most Read) Section
   ======================================== */

.most-read-section {
    margin-bottom: var(--spacing-xl, 40px);
}

.most-read-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.most-read-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: var(--color-bg-alt, #f8f8f8);
    border: 1px solid var(--color-border, #e5e5e5);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.most-read-item:hover {
    background-color: var(--color-bg, #ffffff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
    border-color: var(--color-header-bg, #cc0000);
}

.most-read-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-header-bg, #cc0000);
    color: #ffffff;
    font-family: "Noto Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50%;
}

.most-read-title {
    font-family: "Noto Sans", sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text, #1a1a1a);
    margin: 0;
}

.most-read-item:hover .most-read-title {
    color: var(--color-header-bg, #cc0000);
}

/* ========================================
   DESTAQUES (Featured) Section
   ======================================== */

.featured-section {
    margin-bottom: var(--spacing-xl, 40px);
}

/* Desktop: Bento grid layout - hidden on mobile */
.featured-grid-desktop {
    display: none;
}

/* Mobile featured grid - hidden on desktop */
.featured-grid-mobile {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 16px 4px;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 85%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.carousel-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Global Category Tag Style (Red Box / White Text) */
.category-tag {
    display: inline-block;
    background-color: var(--color-primary, #d0021b);
    color: #ffffff !important;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.carousel-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    background-color: var(--color-bg-alt, #f8f8f8);
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-item:hover .carousel-image img {
    transform: scale(1.05);
}

.carousel-item h4 {
    font-family: "Noto Serif", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: var(--color-text, #1a1a1a);
    padding: 0 12px;
}

.carousel-item .article-time {
    font-size: 0.75rem;
    color: var(--color-text-light, #999999);
    padding: 0 12px 12px 12px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 0 4px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-border, #e5e5e5);
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--color-header-bg, #cc0000);
}

/* ========================================
   Mobile Featured Items (Stacked Layout)
   ======================================== */

.featured-main {
    display: flex;
    flex-direction: column;
    background: var(--color-bg, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.featured-main .category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    margin: 0;
}

.featured-main>a {
    text-decoration: none;
    display: block;
}

.featured-main .featured-image-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
}

.featured-main .featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-main:hover .featured-image-wrapper img {
    transform: scale(1.03);
}

.featured-main h3 {
    font-family: "Noto Serif", Georgia, serif;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px 0;
    color: var(--color-text, #1a1a1a);
}

.featured-main p {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text-gray, #666666);
    margin: 0 0 8px 0;
}

.featured-secondary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--color-bg, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    padding: 12px;
}

.featured-item .category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
}

.featured-item .featured-item-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

.featured-item .featured-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-item:hover .featured-item-image img {
    transform: scale(1.05);
}

.featured-item h4 {
    font-family: "Noto Sans", sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--color-text, #1a1a1a);
}

.featured-item .article-time {
    font-size: 0.75rem;
    color: var(--color-text-light, #999999);
}

/* ========================================
   Desktop Layouts (768px and up)
   ======================================== */

@media (min-width: 769px) {

    /* Most Read - 3 columns on desktop */
    .most-read-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .most-read-item {
        padding: 20px;
    }

    .most-read-number {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }

    .most-read-title {
        font-size: 1rem;
    }

    /* Featured Section - Bento grid layout */
    .featured-grid-desktop {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: repeat(2, 1fr);
        gap: 20px;
        align-items: stretch;
    }

    .featured-carousel-mobile {
        display: none;
    }

    /* Desktop featured main article - spans 2 rows on left */
    .featured-main {
        grid-row: 1 / 3;
        grid-column: 1;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .featured-main .category-tag {
        position: absolute;
        top: 20px;
        left: 20px;
        margin: 0;
    }

    .featured-main>a {
        text-decoration: none;
        display: block;
    }

    .featured-main .featured-image-wrapper {
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border-radius: 12px;
        margin-bottom: 16px;
    }

    .featured-main .featured-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .featured-main:hover .featured-image-wrapper img {
        transform: scale(1.03);
    }

    .featured-main h3 {
        font-family: "Noto Serif", Georgia, serif;
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.3;
        margin: 0 0 12px 0;
        color: var(--color-text, #1a1a1a);
    }

    .featured-main p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--color-text-gray, #666666);
        margin: 0 0 12px 0;
    }

    /* Desktop featured secondary grid - 2x2 grid on right */
    .featured-secondary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2, 1fr);
        gap: 16px;
        grid-row: 1 / 3;
        grid-column: 2;
    }

    .featured-item {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: var(--color-bg, #ffffff);
        border-radius: 12px;
        overflow: hidden;
        padding: 12px;
        position: relative;
    }

    .featured-item .category-tag {
        position: absolute;
        top: 12px;
        left: 12px;
    }

    .featured-item .featured-item-image {
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border-radius: 8px;
    }

    .featured-item .featured-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .featured-item:hover .featured-item-image img {
        transform: scale(1.05);
    }

    .featured-item h4 {
        font-family: "Noto Sans", sans-serif;
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.4;
        margin: 0;
        color: var(--color-text, #1a1a1a);
    }

    .featured-item .article-time {
        font-size: 0.75rem;
        color: var(--color-text-light, #999999);
    }
}

/* ========================================
   Tablet Layout (481px - 768px)
   ======================================== */

@media (min-width: 481px) and (max-width: 768px) {
    .most-read-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel-item {
        flex: 0 0 65%;
    }
}

/* ========================================
   Small Mobile (up to 480px)
   ======================================== */

@media (max-width: 480px) {
    .most-read-grid {
        grid-template-columns: 1fr;
    }

    .most-read-item {
        padding: 12px;
    }

    .most-read-number {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .most-read-title {
        font-size: 0.875rem;
    }

    .carousel-item h4 {
        font-size: 0.9375rem;
    }

    /* Featured items - stacked on mobile */
    .featured-main h3 {
        font-size: 1rem;
    }

    .featured-main p {
        font-size: 0.875rem;
    }

    .featured-item h4 {
        font-size: 0.875rem;
    }
}

/* ========================================
   Mobile Featured Section (Stacked Layout)
   ======================================== */

@media (max-width: 768px) {
    .featured-section {
        background-color: #f7f7f7;
        padding: 20px 0;
    }

    .featured-grid-desktop {
        display: none;
    }

    .featured-grid-mobile {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-grid-main {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .mobile-grid-main .carousel-image {
        position: relative;
        margin-bottom: 0;
        border-radius: 0;
        aspect-ratio: 16 / 11;
        width: 100%;
        overflow: hidden;
    }

    .mobile-grid-main .carousel-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-grid-main .category-tag,
    .mobile-grid-item .category-tag {
        position: absolute;
        top: 10px;
        left: 10px;
    }

    .mobile-grid-main .mobile-grid-content {
        padding: 16px;
    }

    .mobile-grid-main h4 {
        font-family: var(--font-body);
        font-size: 1.15rem;
        line-height: 1.3;
        margin: 0;
        color: #1a1a1a;
        font-weight: 700;
    }

    .mobile-grid-secondary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .mobile-grid-item {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        display: flex;
        flex-direction: column;
    }

    .mobile-grid-item .carousel-image {
        position: relative;
        margin-bottom: 0;
        border-radius: 0;
        aspect-ratio: 4 / 3;
        width: 100%;
        overflow: hidden;
    }

    .mobile-grid-item .carousel-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-grid-item .mobile-grid-content {
        padding: 10px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .mobile-grid-item h4 {
        font-family: var(--font-body);
        font-size: 0.9rem;
        line-height: 1.3;
        margin: 0 0 8px 0;
        color: #1a1a1a;
        flex: 1;
        font-weight: 700;
    }

    .mobile-grid-item .article-time {
        font-size: 0.7rem;
        color: #999;
    }
}

/* ========================================
   Modern Portal Section Layout
   Based on research of top news portals:
   - G1 (Brazil): Clean grid with hero + sidebar
   - Folha de S.Paulo: Balanced 12-column grid
   - BBC News: Modular bento-style sections
   - NYT: Editorial hierarchy with clear visual hierarchy
   - Guardian: Card-based layouts with consistent spacing
   ======================================== */

/* Modern 12-column grid system for sections */
.modern-section-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: start;
}

/* Main featured article - spans 7 columns (58% width) */
.modern-section-main {
    grid-column: 1 / 8;
    display: flex;
    flex-direction: column;
}

.modern-section-main>a {
    display: block;
    text-decoration: none;
}

.modern-section-main .news-image {
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

.modern-section-main .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-section-main:hover .news-image img {
    transform: scale(1.03);
}

/* Hide category tags inside image links for main articles */
.modern-section-main .news-image .category-tag {
    display: none;
}

.modern-section-main h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: var(--color-text, #1a1a1a);
}

.modern-section-main p {
    color: var(--color-text-gray, #666666);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.modern-section-main .article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--color-text-light, #999999);
    margin-top: auto;
}

.modern-section-main .article-meta .author {
    font-weight: 500;
    color: var(--color-text-gray, #666666);
}

/* Secondary articles sidebar - spans 5 columns (42% width) */
.modern-section-sidebar {
    grid-column: 8 / 13;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modern-section-item {
    display: flex;
    gap: 12px;
    align-items: start;
}

.modern-section-item .news-image {
    width: 130px;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    display: block;
}

.modern-section-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-section-item:hover .news-image img {
    transform: scale(1.03);
}

.modern-section-item .news-content {
    flex: 1;
}

/* Move category tags outside of image links for sidebar items */
.modern-section-item .news-image .category-tag {
    position: static;
    display: inline-block;
    background-color: var(--color-primary, #d0021b);
    color: #ffffff !important;
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 2px;
}

.modern-section-item h4 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    color: var(--color-text, #1a1a1a);
}

.modern-section-item .time,
.modern-section-item .author {
    font-size: 0.8125rem;
    color: var(--color-text-light, #999999);
}

.modern-section-item .category-tag {
    display: inline-block;
    background-color: var(--color-primary, #d0021b);
    color: #ffffff !important;
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

/* Compact list items for third article in sidebar */
.modern-section-item.compact {
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    border-top: 1px solid var(--color-border, #e5e5e5);
}

.modern-section-item.compact .news-image {
    display: none;
}

.modern-section-item.compact h4 {
    font-size: 0.9375rem;
    line-height: 1.4;
}

.modern-section-item.compact:hover h4 {
    color: var(--color-header-bg, #cc0000);
}

/* Section header improvements */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-primary, #d0021b);
}

.section-title {
    font-family: "Noto Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text, #1a1a1a);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-link {
    color: #1a3a5c;
    font-weight: 800;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.section-link:hover {
    color: #2a5a8c;
}

/* Responsive design */
@media (max-width: 1200px) {
    .modern-section-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 20px;
    }

    .modern-section-main {
        grid-column: 1 / 6;
    }

    .modern-section-sidebar {
        grid-column: 6 / 9;
    }

    .modern-section-item .news-image {
        width: 100px;
    }
}

@media (max-width: 768px) {
    .modern-section-grid {
        grid-template-columns: 1fr;
    }

    .modern-section-main,
    .modern-section-sidebar {
        grid-column: 1 / -1;
    }

    .modern-section-item .news-image {
        width: 110px;
    }

    .modern-section-main h3 {
        font-size: 1.15rem;
    }

    .modern-section-main p {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .modern-section-item {
        flex-direction: column;
    }

    .modern-section-item .news-image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .modern-section-item.compact {
        padding: 10px 0;
    }
}

/* ========================================
   Regions Section - Defensive Grid & Fallbacks
   Focus: Anti-Layout Shift & Scalable Content
   ======================================== */

.regions-section {
    position: relative;
    margin-bottom: var(--spacing-xl, 40px);
    background-color: var(--color-bg, #ffffff);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Modern Tab Navigation */
.regions-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.region-tab {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.region-tab:hover {
    background-color: var(--color-bg-alt, #f8f8f8);
    color: var(--color-primary, #cc0000);
    border-color: var(--color-primary, #cc0000);
}

.region-tab.active {
    background-color: var(--color-primary, #cc0000);
    color: #ffffff;
    border-color: var(--color-primary, #cc0000);
}

/* Region Header */
.region-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-primary, #cc0000);
}

.region-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.region-link {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
}

.region-content {
    display: none;
}

.region-content.active {
    display: block;
}

.regions-section {
    min-height: 400px;
    /* Prevent collapse during load */
}

/* Defensive Grid Structure */
.regions-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    align-items: start;
    transition: opacity 0.3s ease;
}

/* Fallback: Only one article */
.regions-grid.has-one {
    grid-template-columns: 1fr;
}

/* Main Article Standard */
.region-main-item {
    display: flex;
    flex-direction: column;
}

.region-main-item .img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #eee;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
    position: relative;
}

.region-main-item .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Secondary List Standard */
.region-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* First sidebar item has thumbnail */
.region-sidebar-item:first-child {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.region-sidebar-item:first-child .thumb {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #eee;
}

.region-sidebar-item:first-child .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Subsequent sidebar items: Text-only */
.region-sidebar-item:not(:first-child) {
    padding-top: 4px;
}

.region-sidebar-item:not(:first-child) .thumb {
    display: none;
}

.region-sidebar-item:not(:last-child):not(:first-child) {
    padding-bottom: 16px;
    border-bottom: 1px dashed #eee;
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 10px;
    width: 100%;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 15px;
    width: 90%;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 20px;
}

/* Empty state handling */
.region-empty-state {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-style: italic;
    grid-column: 1 / -1;
}

.is-empty .region-empty-state {
    display: block;
}

.is-empty .regions-grid {
    display: none;
}

/* Loading state */
.region-skeleton {
    display: none;
    margin-top: 20px;
}

.is-loading .region-skeleton {
    display: block;
}

.is-loading .region-header,
.is-loading .regions-grid,
.is-loading .region-empty-state {
    display: none;
}

@media (max-width: 992px) {
    .regions-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MOBILE BOTTOM NAVIGATION
   ========================================
   Modern pattern used by Instagram, Twitter/X, NYT
   ======================================== */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    padding-bottom: env(safe-area-inset-bottom, 10px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: var(--spacing-sm);
    flex: 1;
    text-decoration: none;
    color: var(--color-text-light);
    transition: all 0.2s;
    position: relative;
}

.nav-item:hover {
    color: var(--color-primary);
}

.nav-item.active {
    color: var(--color-primary);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.2s;
}

.nav-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Notification Badge */
.nav-badge {
    position: absolute;
    top: 4px;
    right: calc(50% + 4px);
    min-width: 18px;
    height: 18px;
    background: var(--color-primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Dark mode for bottom nav */
body.dark-mode .mobile-bottom-nav {
    background: var(--dm-bg-alt);
    border-top-color: var(--dm-border);
}

body.dark-mode .nav-item {
    color: var(--dm-text-secondary);
}

body.dark-mode .nav-item:hover,
body.dark-mode .nav-item.active {
    color: var(--color-primary);
}

/* Show only on mobile */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Add bottom padding to main content to account for fixed nav */
    .main-content {
        padding-bottom: 70px;
    }

    /* Hide footer on mobile when bottom nav is active */
    .main-footer {
        padding-bottom: 80px;
    }
}

/* Adjust padding when keyboard is open (iOS) */
.keyboard-open .mobile-bottom-nav {
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 10px));
}

/* Animation for new badge */
.nav-badge.new {
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

/* Dark Mode Colors */
:root {
    --dm-bg: #0a0a0a;
    --dm-bg-alt: #1a1a1a;
    --dm-bg-card: #141414;
    --dm-text: #e8e8e8;
    --dm-text-secondary: #a0a0a0;
    --dm-text-muted: #707070;
    --dm-border: #2a2a2a;
    --dm-shadow: rgba(0, 0, 0, 0.5);
    --dm-shadow-lg: rgba(0, 0, 0, 0.7);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    bottom: 80px;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-bg-alt);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.dark-mode-toggle:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.dark-mode-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-text);
    transition: stroke 0.3s;
}

.dark-mode-toggle:hover svg {
    stroke: #ffffff;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: var(--dm-bg);
    color: var(--dm-text);
}

body.dark-mode .top-bar {
    background-color: #0d0d0d;
    border-bottom: 1px solid var(--dm-border);
}

body.dark-mode .main-header {
    background-color: #0d0d0d;
    border-bottom-color: var(--dm-border);
}

body.dark-mode .main-nav {
    background-color: var(--dm-bg-alt);
    border-bottom-color: var(--dm-border);
}

body.dark-mode .nav-link {
    color: var(--dm-text);
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    color: var(--color-primary);
}

body.dark-mode .dropdown-menu {
    background-color: var(--dm-bg-card);
    border-color: var(--dm-border);
    box-shadow: var(--dm-shadow-lg);
}

body.dark-mode .dropdown-menu a {
    color: var(--dm-text);
}

body.dark-mode .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .sidebar-widget {
    background-color: var(--dm-bg-card);
    border-color: var(--dm-border);
}

body.dark-mode .widget-title,
body.dark-mode .popular-article a {
    color: var(--dm-text);
}

body.dark-mode .breaking-news {
    background-color: var(--dm-bg-alt);
    border-bottom-color: var(--dm-border);
}

body.dark-mode .breaking-label {
    background-color: var(--color-primary);
}

body.dark-mode .ticker-content span {
    color: var(--dm-text-secondary);
}

body.dark-mode .main-content {
    background-color: var(--dm-bg);
}

body.dark-mode .section-title {
    color: var(--dm-text);
}

body.dark-mode .hero-article,
body.dark-mode .side-article {
    background-color: var(--dm-bg-card);
    border-color: var(--dm-border);
}

body.dark-mode .article-tag {
    background-color: var(--color-primary);
}

body.dark-mode .hero-content h2,
body.dark-mode .side-article h3,
body.dark-mode .news-content h3,
body.dark-mode .news-content h4 {
    color: var(--dm-text);
}

body.dark-mode .hero-content p,
body.dark-mode .news-content p {
    color: var(--dm-text-secondary);
}

body.dark-mode .most-read-item {
    background-color: var(--dm-bg-card);
    border-color: var(--dm-border);
}

body.dark-mode .most-read-item:hover {
    background-color: var(--dm-bg-alt);
}

body.dark-mode .opinion-article {
    background-color: var(--dm-bg-card);
    border-color: var(--dm-border);
}

body.dark-mode .opinion-article.featured {
    background: linear-gradient(135deg, #0a1628 0%, #1a2744 100%);
}

body.dark-mode .news-card {
    background-color: var(--dm-bg-card);
    border-color: var(--dm-border);
}

body.dark-mode .news-card:hover {
    background-color: var(--dm-bg-alt);
    box-shadow: var(--dm-shadow);
}

body.dark-mode .news-image {
    background-color: var(--dm-bg-alt);
}

body.dark-mode .category-tag {
    background-color: var(--color-primary);
}

body.dark-mode .article-title,
body.dark-mode .related-articles-title,
body.dark-mode .sidebar-widget-title {
    color: var(--dm-text);
}

body.dark-mode .article-body,
body.dark-mode .related-article-title {
    color: var(--dm-text);
}

body.dark-mode .article-body p {
    color: var(--dm-text-secondary);
}

body.dark-mode .article-body blockquote {
    background-color: var(--dm-bg-alt);
    border-left-color: var(--color-primary);
}

body.dark-mode .article-tag {
    background-color: var(--dm-bg-alt);
    border-color: var(--dm-border);
    color: var(--dm-text-secondary);
}

body.dark-mode .article-tag:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

body.dark-mode .sidebar-widget {
    background-color: var(--dm-bg-card);
    border-color: var(--dm-border);
}

body.dark-mode .sidebar-article-title {
    color: var(--dm-text);
}

body.dark-mode .sidebar-article-time {
    color: var(--dm-text-muted);
}

body.dark-mode .related-article-card {
    background-color: var(--dm-bg-card);
    border-color: var(--dm-border);
}

body.dark-mode .related-article-title {
    color: var(--dm-text);
}

body.dark-mode .main-footer {
    background-color: #0d0d0d;
    border-top-color: var(--dm-border);
}

body.dark-mode .footer-title {
    color: #ffffff;
}

body.dark-mode .footer-links a {
    color: var(--dm-text-secondary);
}

body.dark-mode .footer-links a:hover {
    color: #ffffff;
}

body.dark-mode .footer-bottom p {
    color: var(--dm-text-muted);
}

body.dark-mode .back-to-top {
    background-color: var(--color-primary);
}

body.dark-mode .search-box {
    background-color: var(--dm-bg-card);
    border-color: var(--dm-border);
}

body.dark-mode .search-box input {
    color: var(--dm-text);
    background: transparent;
}

body.dark-mode .search-box input::placeholder {
    color: var(--dm-text-muted);
}

body.dark-mode .search-btn {
    color: var(--dm-text-secondary);
}

body.dark-mode .search-btn:hover {
    color: var(--color-primary);
}

/* Dark mode for newsletter section */
body.dark-mode .newsletter-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
}

/* Dark mode for sections with light backgrounds */
body.dark-mode .section {
    border-bottom-color: var(--dm-border);
}

/* Transition for smooth dark mode switch */
body,
.top-bar,
.main-header,
.main-nav,
.breaking-news,
.main-content,
.news-card,
.opinion-article,
.section,
.footer-section {
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

/* Dark mode icon in toggle */
.dark-mode-toggle .sun-icon,
.dark-mode-toggle .moon-icon {
    display: none;
}

body:not(.dark-mode) .dark-mode-toggle .moon-icon {
    display: block;
}

body.dark-mode .dark-mode-toggle .sun-icon {
    display: block;
}

/* ========================================= */
/* --- HEADER BRAND LOCKUP RESTORE --- */
/* ========================================= */

.sticky-nav-unified .logo-section {
    flex-shrink: 0;
}

.sticky-nav-unified .portal-brand {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #ffffff;
    white-space: nowrap;
}

.sticky-nav-unified .logo-cm {
    font-size: 2.95rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

.sticky-nav-unified .logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

.sticky-nav-unified .logo {
    display: block !important;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.sticky-nav-unified .logo-portal {
    display: block !important;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.sticky-nav-unified.scrolled .logo-cm {
    font-size: 2.8rem !important;
}

.sticky-nav-unified.scrolled .logo {
    display: block !important;
    font-size: 0.72rem !important;
}

.sticky-nav-unified.scrolled .logo-portal {
    font-size: 0.58rem !important;
}

@media (max-width: 992px) {
    .sticky-nav-unified .logo-cm {
        font-size: 2.75rem;
    }

    .sticky-nav-unified .logo {
        font-size: 0.86rem;
    }

    .sticky-nav-unified .logo-portal {
        font-size: 0.54rem;
    }
}

@media (max-width: 768px) {
    .sticky-nav-unified .header-content {
        flex-direction: row !important;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
    }

    .sticky-nav-unified .main-header {
        padding: 12px 0 10px;
    }

    .sticky-nav-unified .logo-section {
        width: 100%;
        margin: 0;
    }

    .sticky-nav-unified .portal-brand {
        gap: 8px;
        align-items: flex-start;
        white-space: nowrap;
    }

    .sticky-nav-unified .logo-cm {
        font-size: 1.95rem;
    }

    .sticky-nav-unified .logo {
        font-size: 0.8rem;
        letter-spacing: -0.02em;
    }

    .sticky-nav-unified .logo-portal {
        font-size: 0.37rem;
    }

    .sticky-nav-unified.scrolled .logo-cm {
        font-size: 1.9rem !important;
    }

    .sticky-nav-unified.scrolled .logo {
        font-size: 0.64rem !important;
    }

    .sticky-nav-unified.scrolled .logo-portal {
        font-size: 0.84rem !important;
    }

    .sticky-nav-unified .main-nav {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .sticky-nav-unified .main-nav .container {
        min-height: 42px;
        display: flex;
        align-items: center;
    }

    .sticky-nav-unified .mobile-menu-toggle {
        display: flex;
        margin-right: auto;
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .sticky-nav-unified .portal-brand {
        gap: 8px;
    }

    .sticky-nav-unified .logo-cm {
        font-size: 2.8rem;
    }

    .sticky-nav-unified .logo {
        font-size: 1.8rem;
    }

    .sticky-nav-unified .logo-portal {
        font-size: 0.77rem;
    }
}

:root {
    --text-main: #1a1a1a;
    --text-muted: #4a4a4a;
    --border-light: #e5e5e5;
    --bg-white: #ffffff;
    --font-serif: "Noto Serif", serif;
    --font-sans: "Noto Sans", sans-serif;
}

/* Reset Editorial Severo */
* {
    border-radius: 0 !important;
}

/* Remover sombras de componentes genéricos (cards, etc), mas permitir no dropdown */
body :not(.dropdown-menu) {
    box-shadow: none;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
}

img {
    border-radius: 0;
    display: block;
}

/* Grid System */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: start;
}

/* Manchete Principal (8 colunas) */
.main-headline {
    grid-column: span 8;
}

.main-headline .image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 16px;
    overflow: hidden;
}

.main-headline .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-headline h1,
.main-headline h2 {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 2.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.main-headline .excerpt {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Manchetes Secundárias (4 colunas) */
.side-headlines {
    grid-column: span 4;
    border-left: 1px solid var(--border-light);
    padding-left: 24px;
}

.side-headlines .side-item {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.side-headlines .side-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.side-headlines h3 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.side-headlines .meta {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

/* Blocos Editoriais (Editorial Block) */
.editorial-block {
    border-top: 4px solid var(--text-main);
    padding-top: 16px;
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.editorial-block .section-title {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.editorial-block-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.editorial-item {
    border-right: 1px solid var(--border-light);
    padding-right: 14px;
}

.editorial-item:last-child {
    border-right: none;
    padding-right: 0;
}

.editorial-item .img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 12px;
    overflow: hidden;
}

.editorial-item .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-item h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
}

/* Seção Nacional e Regiões - Tabs Estilo Índice */
.regions-dynamic-section {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
    border-top: 1px solid var(--border-light);
    padding-top: 32px;
}

.tabs-container {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    border-bottom: 1px solid var(--border-light);
    gap: 32px;
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.tabs-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.tab-item {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    padding-bottom: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.tab-item:hover {
    color: var(--text-main);
}

.tab-item.active {
    color: #000000;
    font-weight: 800;
    border-bottom: 3px solid #b91c1c;
}

/* 3. Layout Defensivo (Notícia sem Imagem) */
.editorial-item .img-wrapper:empty {
    display: none !important;
}

.editorial-item {
    display: flex;
    flex-direction: column;
}

/* Layout de Conteúdo das Regiões */
.region-render-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.region-main-news {
    grid-column: span 6;
}

.region-main-news .img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 16px;
}

.region-main-news h3 {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.75rem;
    line-height: 1.2;
}

.region-side-news {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.region-side-item {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.region-side-item:last-child {
    border-bottom: none;
}

.region-side-item h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
}

/* --- Refatoração Cirúrgica (Fase 2) --- */

/* 1. Alinhamento Rigoroso de Imagens */
.editorial-item .img-wrapper,
.region-main-news .img-wrapper,
.region-side-item .img-wrapper {
    width: 100%;
    aspect-ratio: 16/9 !important;
    height: auto !important;
    overflow: hidden;
    background-color: #f3f4f6;
}

.editorial-item .img-wrapper img,
.region-main-news .img-wrapper img,
.region-side-item .img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 2. Dropdown Header Vertical Simples */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column !important;
    min-width: 200px !important;
    background-color: var(--bg-white) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    padding: 8px 0 !important;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown .dropdown-menu.show {
    display: flex !important;
}

.dropdown-menu li {
    width: 100% !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.dropdown-menu li:last-child {
    border-bottom: none !important;
}

.dropdown-menu a {
    display: block !important;
    padding: 12px 20px !important;
    color: var(--text-main) !important;
    font-family: var(--font-sans) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: background 0.2s ease;
    text-transform: none !important;
}

.dropdown-menu a:hover {
    background-color: #f9fafb !important;
    color: #b91c1c !important;
}

.columns-mega-menu {
    width: min(640px, calc(100vw - 24px)) !important;
    min-width: min(640px, calc(100vw - 24px)) !important;
    max-width: min(640px, calc(100vw - 24px)) !important;
    box-sizing: border-box;
    padding: 16px !important;
}

.nav-dropdown:hover .columns-mega-menu,
.nav-dropdown .columns-mega-menu.show {
    display: block !important;
}

.columns-mega-menu .mega-menu-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.columns-mega-menu .mega-menu-column {
    padding: 4px 0;
}

.columns-group-title {
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d9e2ec;
    color: #1a3a5c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.columns-mega-menu .mega-menu-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.columns-mega-menu .mega-menu-column li {
    border-bottom: none !important;
}

.columns-mega-menu .mega-menu-column li+li {
    border-top: 1px solid var(--border-light) !important;
}

.columns-mega-menu .mega-menu-column a {
    padding: 8px 0 !important;
    white-space: normal !important;
    line-height: 1.32;
    font-size: 0.82rem !important;
}

@media (max-width: 768px) {
    .columns-mega-menu {
        min-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .columns-mega-menu .mega-menu-grid {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .columns-mega-menu .mega-menu-column {
        padding: 0;
    }

    .columns-group-title {
        padding: 14px 20px 8px;
        margin: 0;
    }

    .columns-mega-menu .mega-menu-column li+li {
        border-top: none !important;
    }

    .columns-mega-menu .mega-menu-column a {
        padding: 12px 20px !important;
    }
}

/* Remover rótulos cinzas legados */
.dropdown-menu h4,
.dropdown-menu .category-label {
    display: none !important;
}

/* Responsividade Mobile */
@media (max-width: 900px) {
    .grid-12 {
        grid-template-columns: 1fr;
    }

    .main-headline,
    .side-headlines {
        grid-column: span 1;
    }

    .side-headlines {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-light);
        padding-top: 24px;
        margin-top: 24px;
    }

    .main-headline h1,
    .main-headline h2 {
        font-size: 2rem;
    }

    .editorial-block-grid {
        grid-template-columns: 1fr;
    }

    .editorial-item {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-right: 0;
        padding-bottom: 16px;
    }

    .region-main-news,
    .region-side-news {
        grid-column: span 12;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Newsletter & Footer Refactoring (Hard News Premium) --- */

.newsletter-section {
    background-color: #f8f9fa;
    padding: 64px 20px;
    text-align: center;
    width: 100%;
    position: relative;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.newsletter-content p {
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    border: 1px solid #d1d5db;
    padding: 14px 20px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background-color: #ffffff;
    border-right: none;
}

.newsletter-form button {
    background-color: #b91c1c;
    /* Cor de destaque CM */
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    padding: 14px 28px;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
}

.newsletter-form button:hover {
    background-color: #991b1b;
}

/* Footer Principal */
.main-footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 80px 0 40px;
    width: 100%;
    position: relative;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.footer-title {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    display: block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 64px;
    padding-top: 32px;
    text-align: left;
}

.footer-bottom .footer-logo {
    font-family: var(--font-serif);
    font-weight: 900;
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-bottom p {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.footer-bottom p {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

/* --- NOVO DESIGN SYSTEM (EDITORIAL GRID) --- */

/* 1. Mais Lidos Horizontal */
.most-read-horizontal {
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 24px 0;
    margin: 2rem 0;
}

.most-read-horizontal .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.most-read-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* 1. Destaques e Colunistas (Standardized 5-Column Grid) */
.section-header {
    border-top: 3px solid var(--primary-color);
    padding-top: 10px;
    margin-top: 40px;
    width: fit-content;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #1a1a1a;
    font-family: var(--font-ui);
}

.destaques-list,
.colunistas-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 25px;
    padding: 0;
}

/* Estilo dos Destaques */
.destaque-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding-right: 15px;
    border-right: 1px solid #eee;
}

.destaque-item:last-child {
    border-right: none;
}

.destaque-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    font-family: var(--font-ui);
}

.destaque-content h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #333;
    transition: color 0.3s ease;
}

.destaque-item:hover .destaque-content h4 {
    color: var(--primary-color);
}

/* Estilo dos Colunistas */
.colunista-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.colunista-foto-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: var(--radius-sm, 4px);
    border: 1px solid #ddd;
}

.colunista-foto-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.colunista-item:hover img {
    transform: scale(1.05);
}

.columnist-name {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.columnist-action {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 1024px) {

    .destaques-list,
    .colunistas-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .destaques-list,
    .colunistas-list {
        grid-template-columns: 1fr;
    }

    .destaque-item {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
}

.editorial-section {
    padding-top: 24px;
    margin: 4rem 0;
}

.editorial-section .container {
    border-top: 4px solid #000000;
    padding-top: 20px;
}

.editorial-section .section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.editorial-section .section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
}

.editorial-section .section-link {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #1a3a5c;
    text-decoration: none;
    font-weight: 800;
}

.editorial-section .newspaper-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100%;
    margin-bottom: 40px;
}

.editorial-section .newspaper-grid .news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    border: 1px solid #d9dee6;
    border-top: 4px solid #183a5a;
    border-radius: 0;
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.editorial-section .newspaper-grid .news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(10, 18, 30, 0.08);
    border-color: #bfc8d4;
}

.editorial-section .newspaper-grid .news-image {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #e8edf3;
}

.editorial-section .newspaper-grid .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-section .newspaper-grid .news-image .category-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    margin: 0;
    padding: 7px 11px;
    max-width: calc(100% - 28px);
    background: #183a5a;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.editorial-section .newspaper-grid .news-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 18px 16px 16px;
}

.editorial-section .newspaper-grid .news-content .category-tag {
    display: -webkit-box;
    width: auto;
    max-width: min(100%, 240px);
    margin: 0 0 2px;
    padding: 6px 10px;
    background: #183a5a;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.editorial-section .newspaper-grid .news-content h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #111827;
}

.editorial-section .newspaper-grid .news-content h3 a {
    color: inherit;
    text-decoration: none;
}

.editorial-section .newspaper-grid .news-content h3 a:hover {
    color: #183a5a;
}

.editorial-section .newspaper-grid .news-excerpt {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.editorial-section .newspaper-grid .news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #eef2f6;
}

.editorial-section .newspaper-grid .news-card-date,
.editorial-section .newspaper-grid .news-card-cta {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.editorial-section .newspaper-grid .news-card-date {
    color: #7a8595;
}

.editorial-section .newspaper-grid .news-card-cta {
    color: #183a5a;
}

@media (max-width: 1200px) {
    .editorial-section .newspaper-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .editorial-section .newspaper-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .editorial-section .newspaper-grid .news-content h3 {
        font-size: 1.16rem;
    }
}

.editorial-section-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.editorial-section-grid .editorial-item {
    border-right: 1px solid #eeeeee;
    padding-right: 32px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.editorial-section-grid .editorial-item:last-child {
    border-right: none;
    padding-right: 0;
}

.editorial-section-grid .editorial-item:hover h3 {
    color: #d0021b;
}

.editorial-section-grid .editorial-item .img-wrapper {
    aspect-ratio: 16/9;
    margin-bottom: 16px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.editorial-section-grid .editorial-item .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.editorial-section-grid .editorial-item:hover .img-wrapper img {
    transform: scale(1.05);
}

.editorial-section-grid .editorial-item .category-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #000000;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    width: fit-content;
}

.editorial-section-grid .editorial-item h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0;
    transition: color 0.2s;
}

/* 3. Jornal do Servidor (Wrapper > Inner Pattern) */
.jornal-servidor-wrapper {
    width: 100%;
    background-color: #f8f9fa;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    margin: 4rem 0;
}

.jornal-servidor-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
}

.jornal-servidor-inner .section-title {
    font-family: var(--font-display);
    font-weight: 950;
    font-size: 3rem;
    letter-spacing: -0.05em;
    margin-bottom: 48px;
    text-align: center;
}

.servidor-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
}

.servidor-main {
    grid-column: span 6;
    display: block;
    text-decoration: none;
    color: inherit;
}

.servidor-main .img-wrapper {
    aspect-ratio: 16/9;
    margin-bottom: 24px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.servidor-main .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.servidor-main h3 {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 2.5rem;
    line-height: 1.1;
}

.servidor-side {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-decoration: none;
    color: inherit;
}

.servidor-side .img-wrapper {
    aspect-ratio: 16/9;
    margin-bottom: 12px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.servidor-side .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.servidor-side h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .editorial-section-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .most-read-horizontal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .most-read-horizontal-grid {
        grid-template-columns: 1fr;
    }

    .most-read-horizontal-item {
        border-right: none;
        border-bottom: 1px solid #eeeeee;
        padding-bottom: 16px;
    }

    .editorial-section-grid {
        grid-template-columns: 1fr;
    }

    .editorial-section-grid .editorial-item {
        border-right: none;
        border-bottom: 1px solid #eeeeee;
        padding-bottom: 24px;
        margin-bottom: 24px;
        padding-right: 0;
    }

    .servidor-grid {
        grid-template-columns: 1fr;
    }

    .servidor-main,
    .servidor-side {
        grid-column: span 1;
    }

    .servidor-main h3 {
        font-size: 1.8rem;
    }

    .servidor-highlight .section-title {
        font-size: 2rem;
    }
}

/* ========================================
   ESTILOS CONSOLIDADOS (EX-INLINE)
   ======================================== */

/* --- Grid Cultura Blindado (Home) --- */
.culture-section {
    margin: 50px auto;
}

.culture-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.culture-section-title {
    font-family: "Noto Serif", serif;
    font-size: 2rem;
    font-weight: 900;
    color: #1a1a2e;
    margin: 0;
    position: relative;
}

.culture-section-title-accent {
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #1a3a5c;
}

.culture-section-link {
    color: #1a3a5c;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.culture-section .grid-cultura-blindado {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1fr 300px !important;
    grid-template-rows: 285px 285px !important;
    gap: 30px !important;
    margin-top: 30px !important;
}

.culture-section .item-vertical {
    grid-area: 1 / 1 / 3 / 2 !important;
}

.culture-section .item-pequeno-1 {
    grid-area: 1 / 2 / 2 / 3 !important;
}

.culture-section .item-pequeno-2 {
    grid-area: 1 / 3 / 2 / 4 !important;
}

.culture-section .item-pequeno-3 {
    grid-area: 2 / 2 / 3 / 3 !important;
}

.culture-section .item-pequeno-4 {
    grid-area: 2 / 3 / 3 / 4 !important;
}

.culture-section .item-anuncio {
    grid-area: 1 / 4 / 3 / 5 !important;
}

.culture-section .item-anuncio>div {
    width: 100%;
    height: 100%;
}

.culture-section .ad-slot-fill {
    width: 100%;
    height: 100%;
}

.culture-section .ad-slot-box {
    width: 100%;
    height: 100%;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: transparent;
    border: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: inherit;
}

.culture-section .ad-slot-box .ad-unit {
    min-height: 600px;
}

.correio-editoria-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cm-editoria-rail-ad {
    position: sticky;
    top: 24px;
}

.cm-editoria-rail-ad .ad-unit {
    min-height: 600px;
}

.cm-editoria-top-ad {
    margin-bottom: 8px;
}

@media (max-width: 991px) {

    .cm-ad-slot-top,
    .cm-ad-slot-inline,
    .cm-ad-slot-bottom {
        padding: 20px 0;
    }

    .cm-editoria-rail-ad {
        position: static;
        order: -1;
    }
}

.culture-section .card-blindado {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.culture-section .card-blindado img {
    width: 100%;
    object-fit: cover;
}

.culture-section .culture-story-card:hover {
    transform: translateY(-4px);
    border-color: #c9d3df;
    box-shadow: 0 14px 30px rgba(16, 37, 59, 0.08);
}

.culture-section .culture-story-card img {
    transition: transform 0.35s ease;
}

.culture-section .culture-story-card:hover img {
    transform: scale(1.03);
}

.culture-section .second-caderno-cover-art {
    flex: 1;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #e8eef5 0%, #dbe4ee 100%);
    color: #4b5563;
    font-family: var(--font-ui);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    padding: 24px;
}

.culture-section .culture-cover-card.has-edition-cover .second-caderno-cover-art {
    padding: 0;
    background: #eef2f6;
}

.culture-section .culture-cover-card.has-edition-cover .second-caderno-cover-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.culture-section .second-caderno-cover-label {
    display: block;
    max-width: 200px;
    line-height: 1.35;
}

.culture-section .culture-cover-card {
    justify-content: space-between;
}

.culture-section .culture-cover-card .conteudo-blindado {
    padding: 22px 20px 24px;
}

.culture-section .item-pequeno-1 img,
.culture-section .item-pequeno-2 img,
.culture-section .item-pequeno-3 img,
.culture-section .item-pequeno-4 img {
    height: 140px;
}

.culture-section .culture-story-card img {
    display: block;
}

.culture-section .conteudo-blindado {
    padding: 15px;
}

.culture-section .titulo-blindado {
    font-family: var(--font-ui);
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.3;
    margin: 0;
}

.culture-section .culture-cover-card .titulo-blindado {
    font-size: 1.05rem;
    font-family: var(--font-display);
    line-height: 1.15;
}

.culture-section .culture-story-card .conteudo-blindado {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.culture-section .culture-story-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef3f8;
    color: #1a3a5c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.culture-section .culture-story-card .titulo-blindado {
    font-size: 1rem;
    font-family: var(--font-display);
    line-height: 1.16;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.culture-section .culture-story-excerpt {
    margin: 0;
    color: #5b6470;
    font-size: 0.88rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.culture-section .culture-story-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a8491;
}

.culture-section .culture-story-date {
    color: #7a8491;
}

.culture-section .culture-story-cta {
    color: #1a3a5c;
}

.culture-section .second-caderno-cover-edition {
    display: block;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a3a5c;
}

.culture-section .tag-cega {
    font-size: 0.7rem;
    font-weight: 800;
    color: #1a3a5c;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

@media (max-width: 1180px) {
    .culture-section .grid-cultura-blindado {
        grid-template-columns: 1.1fr 1fr 1fr 260px !important;
        gap: 24px !important;
    }
}

@media (max-width: 1024px) {
    .culture-section .grid-cultura-blindado {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .culture-section .second-caderno-cover-art {
        min-height: 250px;
    }

    .culture-section .item-anuncio>div {
        min-height: 320px !important;
    }
}

@media (max-width: 768px) {
    .culture-section .item-anuncio>div {
        min-height: 240px !important;
    }
}

/* --- Estilos de Página de Notícia (Artigo) --- */
.article-page-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.breadcrumb {
    margin-bottom: 24px;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 0.875rem;
    color: #6b7280;
}

#article-author {
    font-weight: 700;
    color: #1a1a2e;
}

.article-featured-image {
    margin-bottom: 32px;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

#article-image-caption {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

.not-found {
    text-align: center;
    padding: 100px 0;
    display: none;
}

.not-found h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .article-page-container {
        margin: 20px auto;
    }
}

/* --- Estilos da Listagem de Notícias (Feed) --- */
.news-page-header {
    background-color: var(--color-bg-alt);
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
}

.news-page-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.news-page-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.news-page-subtitle {
    color: var(--color-text-gray);
    font-size: 1rem;
    margin-top: var(--spacing-sm);
}

.news-filters {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-gray);
}

.filter-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font-ui);
    background-color: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.view-toggle {
    display: flex;
    gap: 2px;
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-text-gray);
}

.view-btn:hover {
    background-color: var(--color-border);
}

.view-btn.active {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-weight: 600;
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

.category-pills {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.category-pill {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category-pill:hover {
    background-color: var(--color-border);
}

.category-pill.active {
    background-color: var(--color-text);
    color: #ffffff;
    border-color: var(--color-text);
}

.category-pill.politics.active {
    background-color: var(--color-politics);
    border-color: var(--color-politics);
}

.category-pill.economy.active {
    background-color: var(--color-economy);
    border-color: var(--color-economy);
}

.category-pill.sports.active {
    background-color: var(--color-sports);
    border-color: var(--color-sports);
}

.category-pill.culture.active {
    background-color: var(--color-culture);
    border-color: var(--color-culture);
}

.category-pill.justice.active {
    background-color: var(--color-justice);
    border-color: var(--color-justice);
}

.category-pill.brasil.active {
    background-color: var(--color-brasil);
    border-color: var(--color-brasil);
}

.news-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-sm);
}

.results-count {
    font-size: 0.875rem;
    color: var(--color-text-gray);
}

.results-count strong {
    color: var(--color-text);
    font-weight: 600;
}

.sort-select {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-family: var(--font-ui);
    background-color: var(--color-bg);
    color: var(--color-text);
}

.news-grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.news-list-view {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.news-card-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-category {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-category.politics {
    background-color: var(--color-politics);
}

.news-card-category.economy {
    background-color: var(--color-economy);
}

.news-card-category.sports {
    background-color: var(--color-sports);
}

.news-card-category.culture {
    background-color: var(--color-culture);
}

.news-card-category.justice {
    background-color: var(--color-justice);
}

.news-card-category.brasil {
    background-color: var(--color-brasil);
}

.news-card-content {
    padding: var(--spacing-md);
}

.news-card-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.news-card-excerpt {
    color: var(--color-text-gray);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.news-card-author {
    font-weight: 500;
    color: var(--color-text-gray);
}

.news-list-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.news-list-item:hover {
    box-shadow: var(--shadow-sm);
    background-color: var(--color-bg-alt);
}

.news-list-item-image {
    flex-shrink: 0;
    width: 350px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-sm);
}

.news-list-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-list-item:hover .news-list-item-image img {
    transform: scale(1.05);
}

.news-list-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-list-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.news-list-item-category {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-list-item-category.politics {
    background-color: var(--color-politics);
}

.news-list-item-category.economy {
    background-color: var(--color-economy);
}

.news-list-item-category.sports {
    background-color: var(--color-sports);
}

.news-list-item-category.culture {
    background-color: var(--color-culture);
}

.news-list-item-category.justice {
    background-color: var(--color-justice);
}

.news-list-item-category.brasil {
    background-color: var(--color-brasil);
}

.news-list-item-title {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.news-list-item-excerpt {
    color: var(--color-text-gray);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.news-list-item-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

.no-results {
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-text-light);
}

.no-results-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.no-results-text {
    color: var(--color-text-gray);
}

/* --- Estilos de Listagem de Categoria (Brasil, Cultura, etc) --- */
.category-view .newspaper-grid {
    display: block !important;
    margin-top: 30px;
}

.category-view .newspaper-grid .news-card {
    display: grid !important;
    grid-template-columns: 350px 1fr !important;
    gap: 32px !important;
    margin-bottom: 40px !important;
    background: #fff;
    border: none !important;
    border-bottom: 1px solid #e5e5e5 !important;
    padding-bottom: 32px !important;
    overflow: hidden;
    transition: transform 0.2s;
}

.category-view .newspaper-grid .news-card:hover {
    transform: translateX(5px);
}

.category-view .newspaper-grid .news-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    overflow: hidden;
}

.category-view .newspaper-grid .news-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.category-view .newspaper-grid .news-content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.category-view .newspaper-grid .news-content h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
}

.category-view .newspaper-grid .news-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.category-view .newspaper-grid .news-excerpt {
    font-size: 1rem !important;
    color: #4b5563 !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
}

.category-view .newspaper-grid .article-meta {
    margin-top: auto;
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #6b7280;
}

.category-view .newspaper-grid .category-tag {
    display: inline-block;
    padding: 4px 8px;
    background: var(--category-main-color, #d0021b);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    width: fit-content;
}

@media (max-width: 768px) {
    .category-view .newspaper-grid .news-card {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .category-view .newspaper-grid .news-content h3 {
        font-size: 1.25rem !important;
    }
}

.category-view .newspaper-grid .news-card.featured {
    grid-column: span 2;
}

.category-view .newspaper-grid .news-card.featured .news-image {
    height: 280px;
}

.category-view .newspaper-grid .news-card.featured .news-content h3 {
    font-size: 1.4rem;
}

.loading-spinner {
    display: none;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d0021b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Specific Category Colors Override */
.category-brasil {
    --category-main-color: var(--color-brasil, #009c3b);
}

.category-cultura {
    --category-main-color: var(--color-culture, #d97706);
}

.category-politica {
    --category-main-color: var(--color-politics, #1a3a5c);
}

.category-economia {
    --category-main-color: var(--color-economy, #0056b3);
}

.category-esportes {
    --category-main-color: var(--color-sports, #00853e);
}

.category-justica {
    --category-main-color: var(--color-justice, #ff6b00);
}

.category-view .newspaper-grid .news-content h3 a:hover {
    color: var(--category-main-color);
}

/* ========================================
   REGIONAL / PRODUCT HEADERS
   Shell aligned to portal-cm test branch
   ======================================== */

body.has-regional-headers {
    padding-top: 139px !important;
}

.tiny-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 49px;
    background-color: #1a3a5c;
    z-index: 1002;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tiny-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.tiny-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.tiny-logo-link:hover {
    opacity: 0.85;
}

.tiny-logo-cm {
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.5px;
}

.tiny-logo-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tiny-dropdown-wrapper {
    position: relative;
}

.tiny-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
}

.tiny-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.tiny-dropdown-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.tiny-dropdown-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tiny-dropdown-icon {
    font-size: 0.6rem;
    color: #ffffff;
    transition: transform 0.2s ease;
}

.tiny-dropdown-btn.active .tiny-dropdown-icon {
    transform: rotate(180deg);
}

.tiny-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    z-index: 1003;
}

.tiny-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tiny-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #1a1a2e;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.tiny-dropdown-item:last-child {
    border-bottom: none;
}

.tiny-dropdown-item:hover {
    background-color: #f8f9fa;
}

.tiny-dropdown-item.active {
    background-color: #f0f4f8;
    color: #1a3a5c;
    font-weight: 600;
}

.tiny-dropdown-check {
    font-size: 0.8rem;
    color: #1a3a5c;
    width: 16px;
    text-align: center;
}

.tiny-dropdown-item:not(.active) .tiny-dropdown-check {
    color: #cccccc;
}

.tiny-dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 4px 0;
}

.tiny-dropdown-back {
    color: #1a3a5c;
    font-weight: 600;
}

.tiny-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.tiny-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.product-header {
    position: relative;
    margin-top: 49px;
    height: 90px;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border-top: 2px solid var(--product-color, #d20a11);
    border-bottom: 2px solid var(--product-color, #d20a11);
}

.product-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 30px;
    max-width: 1280px;
    margin: 0 auto;
}

.product-menu-btn,
.product-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1a1a2e;
    padding: 0;
}

.product-menu-btn:hover,
.product-search-btn:hover {
    color: var(--product-color, #d20a11);
    opacity: 0.7;
}

.product-menu-btn.active {
    color: var(--product-color, #d20a11);
}

.product-menu-btn i,
.product-search-btn i {
    font-size: 1.5rem;
}

.product-logo {
    font-family: "Noto Serif", serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a2e;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
    flex: 1;
    text-align: center;
}

.product-logo:hover {
    color: var(--product-color, #d20a11);
}

body.is-correio-editoria-page .tiny-header {
    height: 49px;
    background: #1a3a5c;
    border-top: 2px solid var(--product-color, #d20a11);
}

body.is-correio-editoria-page .tiny-header-container {
    justify-content: space-between;
}

body.is-correio-editoria-page .tiny-dropdown-btn {
    background: transparent;
    border: none;
    padding: 0;
}

body.is-correio-editoria-page .tiny-dropdown-btn:hover,
body.is-correio-editoria-page .tiny-dropdown-btn.active {
    background: transparent;
}

.product-header.product-header-editoria {
    position: fixed;
    top: 49px;
    left: 0;
    right: 0;
    margin-top: 0;
    height: auto;
    background: transparent;
    box-shadow: none;
    border: none;
    z-index: 1001;
}

.product-header-editoria .product-header-mainbar,
.product-header-site .product-header-mainbar {
    background: linear-gradient(180deg, var(--product-header-bg, #1f4f7b) 0%, var(--product-header-bg, #1f4f7b) 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.product-header-editoria .product-header-container-editoria,
.product-header-site .product-header-container-site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.product-header-editoria .product-header-left,
.product-header-editoria .product-header-actions,
.product-header-editoria .product-header-context,
.product-header-site .product-header-left,
.product-header-site .product-header-actions,
.product-header-site .product-header-context {
    display: flex;
    align-items: center;
}

.product-header-editoria .product-header-left,
.product-header-site .product-header-left {
    min-width: 0;
    gap: 22px;
}

.product-header-editoria .product-menu-btn-editoria,
.product-header-editoria .product-search-btn-editoria,
.product-header-site .product-search-btn-editoria {
    width: auto;
    height: auto;
    gap: 10px;
    color: #ffffff;
    font-size: 1rem;
}

.product-header-editoria .product-menu-btn-editoria:hover,
.product-header-editoria .product-search-btn-editoria:hover,
.product-header-site .product-search-btn-editoria:hover {
    color: #ffffff;
    opacity: 0.82;
}

.product-header-editoria .product-menu-label,
.product-header-editoria .product-search-label,
.product-header-site .product-search-label {
    font-size: 0.95rem;
    font-weight: 700;
}

.product-header-editoria .product-menu-btn-editoria i,
.product-header-editoria .product-search-btn-editoria i,
.product-header-site .product-search-btn-editoria i {
    font-size: 1.25rem;
}

.product-header-editoria .product-header-context {
    min-width: 0;
    gap: 18px;
}

.product-header-editoria .product-logo-editoria,
.product-header-site .product-logo-site {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0;
    text-align: left;
    flex: 0 1 auto;
}

.product-header-editoria .product-logo-editoria:hover,
.product-header-site .product-logo-site:hover {
    color: #ffffff;
    opacity: 0.92;
}

.product-header-editoria .product-logo-name,
.product-header-site .product-logo-name {
    font-family: "Noto Sans", sans-serif;
    font-size: 2.05rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.product-header-editoria .product-header-divider {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.product-header-editoria .product-header-editoria-name {
    font-family: "Noto Serif", serif;
    font-size: 1.9rem;
    line-height: 1;
    color: #ffffff;
    white-space: nowrap;
}

.product-header-editoria .product-editoria-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.product-header-editoria .product-editoria-nav-container {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

.product-header-editoria .product-editoria-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.product-header-editoria .product-editoria-nav-link+.product-editoria-nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 22px;
    transform: translateY(-50%);
    background: #e5e7eb;
}

.product-header-editoria .product-editoria-nav-link:hover,
.product-header-editoria .product-editoria-nav-link.is-active {
    color: #1a1a2e;
}

.product-header-editoria .product-editoria-nav-link.is-active {
    font-weight: 800;
}

.product-header-editoria .product-editoria-nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 3px;
    background: var(--product-color, #d20a11);
    border-radius: 999px 999px 0 0;
}

@media (max-width: 768px) {
    body.has-regional-headers {
        padding-top: 147px !important;
    }

    .tiny-header {
        height: 49px;
    }

    .tiny-header-container {
        padding: 0 15px;
    }

    .tiny-logo-cm {
        font-size: 1.2rem;
    }

    .tiny-logo-text {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }

    .tiny-dropdown-btn {
        padding: 6px 12px;
        gap: 6px;
    }

    .tiny-dropdown-text {
        font-size: 0.7rem;
    }

    .tiny-dropdown-menu {
        right: -15px;
        min-width: 200px;
    }

    .tiny-menu-toggle {
        display: flex;
    }

    .product-header {
        height: 72px;
    }

    .product-header-container {
        padding: 0 16px;
    }

    .product-header-editoria .product-header-container-editoria,
    .product-header-site .product-header-container-site {
        min-height: 64px;
        gap: 12px;
    }

    .product-header-editoria .product-logo-name,
    .product-header-site .product-logo-name {
        font-size: 1.35rem;
    }

    .product-header-editoria .product-header-editoria-name {
        font-size: 1.25rem;
    }

    .product-header-editoria .product-menu-label,
    .product-header-editoria .product-search-label,
    .product-header-editoria .product-header-divider,
    .product-header-site .product-search-label {
        display: none;
    }

    .product-header-editoria .product-header-context {
        gap: 12px;
    }

    .product-header-editoria .product-editoria-nav-container {
        padding: 0 12px;
    }

    .product-header-editoria .product-editoria-nav-link {
        min-height: 42px;
        padding: 0 12px;
        font-size: 0.85rem;
    }
}

/* ========================================
   REGIONAL NEWS LAYOUT
   News grid for regional pages
   ======================================== */

#regional-news-container {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}

.regional-top-stories {
    margin-bottom: 40px;
}

.regional-top-stories-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(320px, 1fr);
    gap: 32px;
    align-items: start;
}

/* Hero Article */
.regional-hero-article {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.regional-hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.regional-hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.regional-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.regional-hero-article:hover .regional-hero-image img {
    transform: scale(1.05);
}

.regional-hero-content {
    padding: 30px;
}

.regional-hero-title {
    font-family: "Noto Serif", serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a2e;
    margin: 0 0 15px 0;
}

.regional-hero-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666666;
    margin: 0 0 20px 0;
}

.regional-article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.875rem;
    color: #999999;
}

.regional-author {
    font-weight: 500;
    color: #1a3a5c;
}

.regional-time {
    color: #999999;
}

/* Regional Category Tags */
.regional-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background-color: #d20a11;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.regional-hero-sidebar {
    display: grid;
    gap: 22px;
}

.regional-hero-side-card {
    background-color: #ffffff;
}

.regional-hero-side-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.regional-hero-side-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f1f3f5;
}

.regional-hero-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.regional-hero-side-card:hover .regional-hero-side-image img {
    transform: scale(1.04);
}

.regional-hero-side-content {
    padding: 18px 0 10px;
}

.regional-hero-side-title {
    font-family: "Noto Serif", serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.28;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.regional-hero-side-excerpt {
    font-size: 0.94rem;
    line-height: 1.55;
    color: #666666;
    margin: 0 0 16px 0;
}

/* News Grid */
.regional-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Regional News Cards */
.regional-news-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.regional-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.regional-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.regional-card-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.regional-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.regional-news-card:hover .regional-card-image img {
    transform: scale(1.1);
}

.regional-card-content {
    padding: 26px 22px 22px;
}

.regional-card-title {
    font-family: "Noto Serif", serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a2e;
    margin: 0 0 14px 0;
}

.regional-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666666;
    margin: 0 0 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design for Regional News */

@media (max-width: 1024px) {
    .regional-top-stories-grid {
        grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
        gap: 26px;
    }

    .regional-hero-side-image {
        height: 240px;
    }

    .regional-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .regional-card-image {
        height: 270px;
    }

    .regional-hero-title {
        font-size: 1.75rem;
    }

    .regional-hero-excerpt {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    #regional-news-container {
        padding: 0 15px;
        margin: 30px auto;
    }

    .regional-top-stories-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .regional-hero-content {
        padding: 20px;
    }

    .regional-hero-title {
        font-size: 1.5rem;
    }

    .regional-hero-excerpt {
        font-size: 0.95rem;
    }

    .regional-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .regional-hero-side-image {
        height: 250px;
    }

    .regional-hero-side-content {
        padding: 16px 0 8px;
    }

    .regional-hero-side-title {
        font-size: 1rem;
    }

    .regional-hero-side-excerpt {
        font-size: 0.875rem;
    }

    .regional-card-content {
        padding: 22px 18px 18px;
    }

    .regional-card-image {
        height: 250px;
    }

    .regional-card-title {
        font-size: 1rem;
    }

    .regional-card-excerpt {
        font-size: 0.875rem;
    }

    .regional-category-tag {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .regional-hero-title {
        font-size: 1.25rem;
    }

    .regional-hero-excerpt {
        font-size: 0.875rem;
    }

    .regional-card-title {
        font-size: 0.95rem;
    }

    .regional-card-excerpt {
        font-size: 0.8rem;
    }
}

/* ========================================
   UNIFIED MOBILE MENU OVERLAY
   ======================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-menu-drawer {
    position: absolute;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active .mobile-menu-drawer {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eeeeee;
    background-color: #1a3a5c;
    color: #ffffff;
}

.mobile-logo-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-logo-text {
    display: flex;
    flex-direction: column;
}

.mobile-logo-brand .logo-cm {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.mobile-logo-brand .logo {
    font-family: var(--font-header);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.mobile-logo-brand .logo-portal {
    font-family: var(--font-header);
    font-size: 0.45rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
}

.mobile-menu-search {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eeeeee;
}

.mobile-search-form {
    display: flex;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    overflow: hidden;
}

.mobile-search-form input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 0.9rem;
    outline: none;
}

.mobile-search-form button {
    padding: 0 12px;
    color: #1a3a5c;
}

.mobile-nav-links {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.mobile-nav-section {
    margin-bottom: 25px;
}

.mobile-nav-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.mobile-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 5px;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #333333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.mobile-nav-links a i {
    width: 20px;
    text-align: center;
    color: #1a3a5c;
}

.mobile-nav-links a:hover {
    color: #1a3a5c;
}

/* Mobile Sub-menu Styles */
.mobile-nav-main {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-main>li {
    margin-bottom: 0;
    border-bottom: 1px solid #eeeeee;
}

.mobile-nav-main>li:last-child {
    border-bottom: none;
}

.mobile-nav-main>li>a {
    width: 100%;
    padding: 14px 0;
}

.mobile-nav-link-row {
    display: flex;
    align-items: stretch;
}

.mobile-nav-link-primary {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    color: #333333;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.mobile-nav-link-primary i {
    width: 20px;
    text-align: center;
    color: #1a3a5c;
}

.mobile-nav-link-row .mobile-submenu-toggle {
    width: auto;
    padding: 14px 0 14px 16px;
    flex-shrink: 0;
}

.mobile-nav-link-row .mobile-submenu-toggle .mobile-submenu-arrow {
    color: #999999;
}

/* Sub-menu Toggle Button */
.mobile-submenu-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    background: none;
    border: none;
    color: #333333;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-nav-link-row .mobile-submenu-toggle span {
    display: none;
}

.mobile-submenu-toggle:hover {
    background-color: #f8f9fa;
}

.mobile-submenu-toggle span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-submenu-toggle i:first-child {
    width: 20px;
    text-align: center;
    color: #1a3a5c;
}

/* Sub-menu Arrow */
.mobile-submenu-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    transition:
        transform 0.3s ease,
        color 0.2s ease;
}

.mobile-submenu-arrow.active {
    transform: rotate(180deg);
    color: #1a3a5c;
}

/* Sub-menu Container */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    background-color: #f8f9fa;
    transition: max-height 0.3s ease;
}

.mobile-submenu.active {
    max-height: 2600px;
}

.mobile-submenu li {
    border-bottom: 1px solid #eaeaea;
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu-group-label {
    padding: 14px 0 8px 32px;
    background-color: #eef3f8;
    color: #1a3a5c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 1px solid #dbe4ee !important;
}

.mobile-submenu a {
    display: block;
    padding: 12px 0 12px 32px;
    color: #555555;
    font-weight: 500;
    font-size: 0.9rem;
    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.mobile-submenu a:hover {
    color: #1a3a5c;
    padding-left: 38px;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid #eeeeee;
    background-color: #f8f9fa;
}

.mobile-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.mobile-socials a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a3a5c;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.9rem;
}

.mobile-copyright {
    font-size: 0.7rem;
    color: #999999;
}

/* ========================================= */
/* --- LAYOUT RESTAURADO E SIDEBAR FLUTUANTE --- */
/* ========================================= */

/* 1. Trava o container no centro da tela, idêntico às outras seções */
.home-master-layout {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important;
    /* Ajuste para a largura máxima padrão do seu site */
    margin: -75px auto !important;
    /* Centraliza à força */
    padding: 0 !important;
}

/* 2. Devolve os 100% de espaço para as notícias quentes */
.main-news-wrapper {
    width: 100% !important;
    display: block !important;
}

/* ========================================= */
/* --- SIDEBAR: EDIÇÕES DIGITAIS --- */
/* ========================================= */

.digital-editions-sidebar {
    padding: 20px;
    background: #f8fafc;
    /* leve tom azul-acinzentado */
    border-radius: 12px;
    height: fit-content;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
    /* fundinho suave */
}

.digital-editions-title {
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--primary-color);
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    /* linha sutil em comparacao ao 1a3a5c */
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.digital-editions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.edition-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #222;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.edition-card:hover {
    transform: translateY(-3px);
}

.edition-card:hover .edition-cover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #1a3a5c;
}

.edition-cover {
    width: 100%;
    aspect-ratio: 1 / 1.4;
    background: #f4f5f7;
    border: 1px solid #d1d5db;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
    color: #9ca3af;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.edition-cover i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.edition-cover span {
    font-size: 0.65rem;
    font-weight: bold;
    font-family: sans-serif;
}

.edition-name {
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    font-family: sans-serif;
}

/* 3. A MÁGICA: Em monitores grandes, a sidebar fica levitando do lado de fora */
@media (min-width: 1450px) {
    .digital-editions-sidebar {
        position: absolute !important;
        top: 0 !important;
        /* right: 100% empurra para fora da caixa. O + 30px dá a distância ideal */
        right: calc(100% + 50px) !important;
        width: 244px !important;
        margin: 0 !important;
        z-index: 10;
    }
}

/* 4. Telas Médias (Laptops onde a margem vazia é pequena) */
@media (max-width: 1449px) and (min-width: 769px) {
    .digital-editions-sidebar {
        position: relative !important;
        width: 100% !important;
        right: auto !important;
        margin-bottom: 40px !important;
    }

    .digital-editions-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 5. Celular (Empilha de 2 em 2 no topo) */
@media (max-width: 768px) {
    .digital-editions-sidebar {
        position: relative !important;
        width: 100% !important;
        right: auto !important;
        margin-bottom: 30px !important;
    }

    .digital-editions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ======================================== */
/* --- CM PRODUCT BRAND HEADER ----------- */
/* ======================================== */

.cm-product-brand-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 24px;
    min-height: 72px;
    margin-top: 49px;
}

.cm-product-brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #fff;
}

.cm-product-brand-link:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.cm-product-brand-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.cm-product-brand-subtitle {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-align: center;
    text-decoration: none;
    opacity: 0.85;
    text-transform: uppercase;
}

/* ========================================= */
/* --- CORREIO SHELL (PRODUCT + ARTICLE) --- */
/* ========================================= */

body.has-correio-shell,
body.has-regional-headers.has-correio-shell {
    --correio-shell-brand: #d32f2f;
    padding-top: 0 !important;
}

@media (max-width: 768px) {

    body.has-correio-shell,
    body.has-regional-headers.has-correio-shell {
        padding-top: 0 !important;
    }
}

.correio-shell {
    position: relative;
    z-index: 20;
}

.correio-shell-topbar {
    background: var(--correio-shell-brand);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 500;
}

.correio-shell-topbar-content {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
}

.correio-shell-topbar-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.correio-shell-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.correio-shell-topbar-item i {
    opacity: 0.92;
}

.correio-shell-topbar-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.28);
}

.correio-shell-trend-up {
    color: #9cffc4;
    font-weight: 700;
}

.correio-shell-socials,
.correio-shell-topbar-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.correio-shell-socials a,
.correio-shell-topbar-links a {
    color: #ffffff;
}

.correio-shell-main-header {
    background: var(--correio-shell-brand);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.correio-shell-main-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.correio-shell-brand-block {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 31px
}

.correio-shell-brand-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #ffffff;
}

.correio-shell-brand-link:hover {
    color: #ffffff;
}

.correio-shell-brand-title {
    font-family: "Noto Serif", serif;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.correio-shell-brand-subtitle {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.92;
}

.correio-shell-region-selector {
    position: relative;
}

.correio-shell-region-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.correio-shell-region-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.correio-shell-region-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 320px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #dde5ee;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    display: none;
}

.correio-shell-region-selector.is-open .correio-shell-region-menu {
    display: grid;
    gap: 6px;
}

.correio-shell-region-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #1f2937;
}

.correio-shell-region-option:hover {
    background: #f6f8fb;
    color: #1f2937;
}

.correio-shell-region-option.is-active {
    background: #eef4fb;
}

.correio-shell-region-option-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--correio-shell-brand);
    flex-shrink: 0;
}

.correio-shell-region-option-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.correio-shell-region-option-text strong {
    font-size: 0.9rem;
    line-height: 1.2;
}

.correio-shell-region-option-text small {
    font-size: 0.72rem;
    color: #6b7280;
}

.correio-shell-search {
    width: min(360px, 100%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.correio-shell-search-label {
    display: none;
}

.correio-shell-search input {
    width: 100%;
    min-height: 42px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 0.92rem;
}

.correio-shell-search input::placeholder {
    color: rgba(255, 255, 255, 0.82);
}

.correio-shell-search input:focus {
    outline: none;
}

.correio-shell-nav {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.correio-shell-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
}

.correio-shell-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
}

.correio-shell-mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #1f2937;
}

.correio-shell-nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 52px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.correio-shell-nav-item {
    position: relative;
}

.correio-shell-nav-btn,
.correio-shell-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    background: none;
    border: none;
    color: #1f2937;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.correio-shell-nav-btn:hover,
.correio-shell-nav-link:hover {
    color: var(--correio-shell-brand);
}

.correio-shell-dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 220px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    display: none;
    z-index: 20;
}

.correio-shell-nav-dropdown.is-open .correio-shell-dropdown-menu {
    display: block;
}

.correio-shell-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 0.86rem;
    color: #1f2937;
}

.correio-shell-dropdown-menu a:hover {
    background: #f6f8fb;
    color: var(--correio-shell-brand);
}

.correio-shell-dropdown-menu-grouped {
    width: min(640px, calc(100vw - 24px));
    min-width: min(640px, calc(100vw - 24px));
    max-width: min(640px, calc(100vw - 24px));
    box-sizing: border-box;
    padding: 8px;
    overflow: visible;
}

.correio-shell-dropdown-group+.correio-shell-dropdown-group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef2f6;
}

.correio-shell-dropdown-group-label {
    padding: 8px 12px 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--correio-shell-brand);
}

.correio-shell-mobile-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
    z-index: 50;
}

.correio-shell-mobile-overlay.is-open {
    display: block;
}

.correio-shell-mobile-drawer {
    width: min(88vw, 340px);
    height: 100%;
    margin-left: auto;
    background: #ffffff;
    box-shadow: -16px 0 36px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
}

.correio-shell-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.correio-shell-mobile-drawer-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--correio-shell-brand);
}

.correio-shell-mobile-close {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    background: #ffffff;
}

.correio-shell-mobile-drawer-body {
    padding: 14px 14px 24px;
    overflow-y: auto;
}

.correio-shell-mobile-link,
.correio-shell-mobile-submenu-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 12px;
    border-radius: 10px;
    color: #1f2937;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
}

.correio-shell-mobile-link:hover,
.correio-shell-mobile-submenu-toggle:hover {
    background: #f7f9fc;
    color: var(--correio-shell-brand);
}

.correio-shell-mobile-item+.correio-shell-mobile-item,
.correio-shell-mobile-link+.correio-shell-mobile-item,
.correio-shell-mobile-item+.correio-shell-mobile-link {
    margin-top: 4px;
}

.correio-shell-mobile-submenu {
    display: none;
    padding: 6px 0 0;
}

.correio-shell-mobile-item.is-open .correio-shell-mobile-submenu {
    display: block;
}

.correio-shell-mobile-item.is-open .correio-shell-mobile-submenu-toggle i {
    transform: rotate(180deg);
}

.correio-shell-mobile-submenu-toggle i {
    transition: transform 0.2s ease;
}

.correio-shell-mobile-subgroup+.correio-shell-mobile-subgroup {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}

.correio-shell-mobile-subgroup-label {
    padding: 0 12px 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--correio-shell-brand);
}

.correio-shell-mobile-sublink {
    font-size: 0.9rem;
    font-weight: 600;
    padding-left: 12px;
    padding-right: 12px;
}

.correio-product-page {
    padding-top: 28px;
}

.has-correio-shell .article-page-container {
    padding-top: 28px;
}

@media (max-width: 1024px) {
    .correio-shell-main-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .correio-shell-search {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body.has-correio-shell-mobile-open {
        overflow: hidden;
    }

    .correio-shell-topbar {
        display: none !important;
    }

    .correio-shell {
        position: relative;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: 0;
    }

    .correio-shell-main-header {
        border-bottom: none;
        margin: 0;
    }

    .correio-shell .container,
    .correio-shell-main-grid.container,
    .correio-shell-nav .container {
        max-width: none;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .correio-shell-main-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 18px 16px 20px;
    }

    .correio-shell-brand-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .correio-shell-brand-link {
        width: 100%;
    }

    .correio-shell-search {
        display: none !important;
    }

    .correio-shell-region-selector {
        width: 100%;
    }

    .correio-shell-region-btn {
        width: 100%;
        justify-content: space-between;
        border-radius: 0;
        padding: 12px 14px;
    }

    .correio-shell-region-menu {
        left: 0;
        right: 0;
        width: 100%;
        min-width: 0;
    }

    .correio-shell-nav {
        display: block !important;
        position: absolute;
        top: 18px;
        right: 16px;
        width: auto;
        background: transparent;
        border: none;
        z-index: 26;
    }

    .correio-shell-nav .container,
    .correio-shell-nav-inner {
        min-height: 0;
        padding: 0;
        width: auto;
    }

    .correio-shell-mobile-toggle {
        display: inline-flex !important;
        width: 42px;
        height: 42px;
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(4px);
    }

    .correio-shell-mobile-toggle span {
        background: #ffffff;
    }

    .correio-shell-nav-list {
        display: none !important;
    }

    .correio-shell-brand-title {
        font-size: 2rem;
    }

    .correio-shell-brand-subtitle {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }
}

@media (max-width: 520px) {
    .correio-shell-main-grid {
        padding-right: 64px;
    }

    .correio-shell-brand-subtitle {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }
}
