/*
Theme Name: 365on Finanças
Theme URI: https://365on.com.br
Author: GEFF — Geferson Alencar
Author URI: https://gefersonalencar.com.br
Description: Portal Editorial de Finanças Pessoais, Investimentos e Cartões. Desenvolvido sob medida para máxima autoridade E-E-A-T, Core Web Vitals 100% e aprovação acelerada no Google AdSense.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: financas-365
Tags: finance, blog, news, editorial, responsive, custom-header, adsense, seo
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN SYSTEM — 365ON FINANÇAS PORTAL (PADRÃO ELITE)
   Cores: Azul Corporativo + Ardósia + Verde Esmeralda de Investimentos
   Tipografia: Inter & Plus Jakarta Sans (Escala Modular)
═══════════════════════════════════════════════════════════ */

:root {
    /* Cores Principais */
    --brand-dark:       #0A192F; /* Azul Noturno Nobre */
    --brand-navy:       #102A43; /* Azul Marinho Corporativo */
    --brand-navy-light: #1E3A8A; /* Azul Real */
    --brand-accent:     #0D9488; /* Verde Petróleo / Esmeralda */
    --brand-green:      #059669; /* Verde Positivo / Rendimentos */
    --brand-green-bg:   #ECFDF5;
    --brand-amber:      #D97706; /* Âmbar Alerta / Taxas */
    --brand-amber-bg:   #FFFBEB;
    --brand-red:        #DC2626;

    /* Superfícies e Fundos */
    --bg-site:          #F8FAFC; /* Cinza Nobre Suave */
    --bg-surface:       #FFFFFF;
    --bg-surface-alt:   #F1F5F9;
    --bg-surface-hover: #E2E8F0;
    
    /* Bordas */
    --border-light:     #E2E8F0;
    --border-subtle:    #EDF2F7;
    --border-dark:      #CBD5E1;

    /* Textos */
    --text-primary:     #0F172A; /* Ardósia Quase Preto */
    --text-secondary:   #334155; /* Cinza Escuro Leitura */
    --text-muted:       #64748B; /* Cinza Médio Metadados */
    --text-light:       #94A3B8;

    /* Tipografia */
    --font-heading:     'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono:        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Layout */
    --container-max:    1220px;
    --content-max:      72ch;
    --radius-sm:        6px;
    --radius-md:        10px;
    --radius-lg:        16px;
    --radius-pill:      9999px;

    /* Sombras Sutis e Elegantes */
    --shadow-subtle:    0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-card:      0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-hover:     0 12px 24px -6px rgba(15, 23, 42, 0.1), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
    --shadow-dropdown:  0 10px 25px -5px rgba(15, 23, 42, 0.15);

    /* Transições */
    --transition:       all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE LIMPA
═══════════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    background-color: var(--bg-site);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--brand-navy-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.2em;
}

/* Utilitários de Layout */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ═══════════════════════════════════════════════════
   1. TICKER SUPERIOR DE INDICADORES (MERCADO FINANCEIRO)
═══════════════════════════════════════════════════ */
.top-market-bar {
    background: var(--brand-dark);
    color: #94A3B8;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 0;
}

.top-market-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.market-indicators {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.market-indicators::-webkit-scrollbar {
    display: none;
}

.market-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.market-item .label {
    font-weight: 600;
    color: #E2E8F0;
    letter-spacing: 0.04em;
}

.market-item .value {
    color: #38BDF8;
    font-weight: 600;
    font-family: var(--font-mono);
}

.market-item .up {
    color: #4ADE80;
    font-size: 0.7rem;
}

.market-item .down {
    color: #F87171;
    font-size: 0.7rem;
}

.top-market-right {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.76rem;
}

.top-market-right a {
    color: #94A3B8;
}

.top-market-right a:hover {
    color: #FFFFFF;
}

.today-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #CBD5E1;
}

/* ═══════════════════════════════════════════════════
   2. HEADER PRINCIPAL (PORTAL EDITORIAL)
═══════════════════════════════════════════════════ */
.site-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

/* Logo Oficial 365ON */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-badge-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(10, 25, 47, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-badge-icon .num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #FFFFFF;
}

.logo-badge-icon .dot {
    width: 5px;
    height: 5px;
    background: #34D399;
    border-radius: 50%;
    margin-top: 2px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-title-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.logo-main-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-navy);
    letter-spacing: -0.04em;
    line-height: 1;
}

.logo-main-text span {
    color: var(--brand-accent);
}

.logo-tagline {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Menu de Navegação */
.primary-nav {
    display: flex;
    align-items: center;
}

.primary-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-nav a {
    display: inline-block;
    padding: 8px 14px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    color: var(--brand-navy);
    background: var(--bg-surface-alt);
}

/* Ações do Header (Busca + CTA) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search-btn {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.header-search-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--brand-navy);
}

.btn-header-cta {
    background: var(--brand-navy);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(16, 42, 67, 0.15);
}

.btn-header-cta:hover {
    background: var(--brand-accent);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

/* Menu Toggle Mobile */
.mobile-menu-btn {
    display: none;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* Barra de Busca Expansível */
.search-bar-dropdown {
    display: none;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 14px 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.search-bar-dropdown.active {
    display: block;
}

.search-bar-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar-input {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-bar-input:focus {
    border-color: var(--brand-navy);
    box-shadow: 0 0 0 3px rgba(16, 42, 67, 0.1);
}

.search-bar-submit {
    background: var(--brand-navy);
    color: #FFFFFF;
    border: none;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar-submit:hover {
    background: var(--brand-accent);
}

/* ═══════════════════════════════════════════════════
   3. BARRA DE TENDÊNCIAS / BREAKING NEWS
═══════════════════════════════════════════════════ */
.trending-bar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    font-size: 0.83rem;
}

.trending-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.trending-inner::-webkit-scrollbar {
    display: none;
}

.trending-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-amber);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.74rem;
    flex-shrink: 0;
}

.trending-pills {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-pill {
    background: var(--bg-surface-alt);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.trending-pill:hover {
    background: var(--brand-navy);
    color: #FFFFFF;
    border-color: var(--brand-navy);
}

/* ═══════════════════════════════════════════════════
   4. LAYOUT EDITORIAL HOMEPAGE (PORTAL FINANCEIRO)
═══════════════════════════════════════════════════ */
.site-main {
    padding: 32px 0 64px;
}

/* Seção de Capa: Hero Destaque + Coluna Trending */
.editorial-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
}

/* Artigo Principal de Capa */
.lead-story-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.lead-story-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-dark);
}

.lead-story-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--brand-dark);
}

.lead-story-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lead-story-card:hover .lead-story-thumb {
    transform: scale(1.03);
}

.lead-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--brand-navy);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.lead-story-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lead-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.lead-story-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.lead-story-title a {
    color: inherit;
}

.lead-story-title a:hover {
    color: var(--brand-accent);
}

.lead-story-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.lead-author-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.author-pill {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.author-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Coluna Lateral: Destaques Rápidos / Mais Lidas */
.trending-side-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.side-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-navy);
}

.side-block-title {
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trending-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-accent);
    line-height: 1;
    min-width: 24px;
}

.trending-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trending-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-amber);
}

.trending-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.trending-title a {
    color: inherit;
}

.trending-title a:hover {
    color: var(--brand-accent);
}

.trending-meta {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   5. WIDGET DE ALTO VALOR: SIMULADOR DE RENDA FIXA
   (Diferencial exclusivo para AdSense & E-E-A-T)
═══════════════════════════════════════════════════ */
.tool-simulator-banner {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-navy) 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: #FFFFFF;
    margin: 36px 0 48px;
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.simulator-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.simulator-title-group h2 {
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.simulator-title-group p {
    color: #94A3B8;
    font-size: 0.92rem;
    margin-bottom: 0;
}

.simulator-badge {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34D399;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.simulator-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.sim-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #CBD5E1;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sim-field select,
.sim-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.sim-field select option {
    background: var(--brand-dark);
    color: #FFFFFF;
}

.sim-field select:focus,
.sim-field input:focus {
    border-color: #38BDF8;
    background: rgba(255, 255, 255, 0.14);
}

.btn-simular {
    background: var(--brand-green);
    color: #FFFFFF;
    border: none;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-simular:hover {
    background: #047857;
    transform: translateY(-1px);
}

/* Resultados da Simulação */
.simulator-results {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sim-result-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 18px;
}

.sim-result-card.highlight {
    background: rgba(5, 150, 105, 0.15);
    border-color: rgba(52, 211, 153, 0.4);
}

.sim-result-name {
    font-size: 0.78rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 4px;
}

.sim-result-val {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.sim-result-card.highlight .sim-result-val {
    color: #34D399;
}

.sim-result-gain {
    font-size: 0.75rem;
    color: #CBD5E1;
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════
   6. GRID DE ARTIGOS POR CATEGORIA (PORTAL DE NOTÍCIAS)
═══════════════════════════════════════════════════ */
.section-heading-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.section-heading-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.section-heading-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--brand-accent);
}

.section-view-all {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-navy-light);
}

.section-view-all:hover {
    color: var(--brand-accent);
}

/* Grid de Artigos 3 Colunas */
.articles-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.article-card {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-dark);
}

.article-card-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-surface-alt);
}

.article-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.article-card:hover .article-card-thumb {
    transform: scale(1.04);
}

.article-card-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.article-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.article-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.article-card-title a {
    color: inherit;
}

.article-card-title a:hover {
    color: var(--brand-accent);
}

.article-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   7. BLOCO DE ANÚNCIO PUBLICITÁRIO (ADSENSE NATIVO)
   (Cumpre 100% dos requisitos de rotulagem do AdSense)
═══════════════════════════════════════════════════ */
.adsense-placement {
    margin: 32px auto;
    text-align: center;
    max-width: 100%;
}

.ad-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 6px;
}

.ad-slot-box {
    background: var(--bg-surface-alt);
    border: 1px dashed var(--border-dark);
    border-radius: var(--radius-md);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════════
   8. ARTIGO INDIVIDUAL (SINGLE.PHP) — MÁXIMO E-E-A-T
═══════════════════════════════════════════════════ */
.single-post-wrapper {
    padding: 24px 0 64px;
}

/* Breadcrumbs Semânticos */
.breadcrumbs-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumbs-nav a {
    color: var(--text-muted);
}

.breadcrumbs-nav a:hover {
    color: var(--brand-navy);
}

.breadcrumbs-sep {
    color: var(--border-dark);
}

/* Header do Artigo */
.single-post-header {
    max-width: var(--content-max);
    margin: 0 auto 32px;
}

.single-category-pill {
    display: inline-block;
    background: var(--brand-navy);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.single-post-title {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.single-post-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 400;
}

/* Box E-E-A-T de Autor e Checagem Editorial */
.author-eeat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.author-eeat-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eeat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-accent);
}

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

.eeat-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.eeat-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.eeat-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-green-bg);
    color: var(--brand-green);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.author-eeat-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-split {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.meta-split .date-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
}

.meta-split .date-val {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Imagem Destacada Principal */
.single-featured-wrap {
    max-width: var(--content-max);
    margin: 0 auto 36px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.single-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Disclaimer de Transparência Financeira (Topo do Artigo) */
.transparency-callout {
    max-width: var(--content-max);
    margin: 0 auto 28px;
    background: #F8FAFC;
    border-left: 3px solid var(--brand-navy);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 18px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.transparency-callout strong {
    color: var(--text-primary);
}

/* Índice de Conteúdo (Table of Contents - TOC) */
.toc-box {
    max-width: var(--content-max);
    margin: 32px auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    box-shadow: var(--shadow-subtle);
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    cursor: pointer;
}

.toc-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-toggle-btn {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-navy-light);
    background: none;
    border: none;
    cursor: pointer;
}

.toc-list {
    list-style: decimal;
    padding-left: 20px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-list li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    transition: var(--transition);
}

.toc-list li a:hover {
    color: var(--brand-accent);
}

/* Corpo do Conteúdo do Artigo */
.single-article-content {
    max-width: var(--content-max);
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.single-article-content h2 {
    font-size: 1.65rem;
    margin: 2.2em 0 0.8em;
    padding-top: 0.6em;
    border-top: 1px solid var(--border-light);
    color: var(--brand-navy);
}

.single-article-content h3 {
    font-size: 1.3rem;
    margin: 1.8em 0 0.6em;
    color: var(--text-primary);
}

.single-article-content p {
    margin-bottom: 1.4em;
}

.single-article-content ul,
.single-article-content ol {
    margin: 1.2em 0 1.5em 1.6em;
}

.single-article-content li {
    margin-bottom: 0.5em;
}

.single-article-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Tabelas Financeiras Impecáveis */
.single-article-content table,
.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.92rem;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-subtle);
}

.single-article-content th,
.table-responsive th {
    background: var(--brand-navy);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: left;
    padding: 13px 16px;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.single-article-content td,
.table-responsive td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.single-article-content tr:nth-child(even) td,
.table-responsive tr:nth-child(even) td {
    background: var(--bg-surface-alt);
}

.single-article-content tr:last-child td {
    border-bottom: none;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2em 0;
}

/* Caixas de Destaque Editorial no Artigo */
.editorial-callout {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--brand-accent);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 2em 0;
    box-shadow: var(--shadow-subtle);
}

.editorial-callout.tip {
    border-left-color: var(--brand-green);
    background: var(--brand-green-bg);
}

.editorial-callout.warning {
    border-left-color: var(--brand-amber);
    background: var(--brand-amber-bg);
}

.callout-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editorial-callout p:last-child {
    margin-bottom: 0;
}

/* Tags do Artigo */
.post-tags-row {
    max-width: var(--content-max);
    margin: 36px auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.tag-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.tag-pill {
    background: var(--bg-surface-alt);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    border: 1px solid var(--border-light);
}

.tag-pill:hover {
    background: var(--brand-navy);
    color: #FFFFFF;
}

/* Box de Biografia Completa do Autor (Final do Artigo) */
.author-bio-full-box {
    max-width: var(--content-max);
    margin: 48px auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow-card);
}

.author-bio-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-navy);
    flex-shrink: 0;
}

.author-bio-body {
    display: flex;
    flex-direction: column;
}

.author-bio-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 4px;
}

.author-bio-role {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-accent);
    margin-bottom: 10px;
}

.author-bio-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.author-bio-links {
    display: flex;
    gap: 14px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* FAQ Accordion Nativo */
.faq-box-container {
    max-width: var(--content-max);
    margin: 48px auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.faq-box-header {
    background: var(--brand-navy);
    color: #FFFFFF;
    padding: 20px 24px;
}

.faq-box-header h2 {
    color: #FFFFFF;
    font-size: 1.3rem;
    margin-bottom: 0;
}

.faq-accordion-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-accordion-item:last-child {
    border-bottom: none;
}

.faq-btn {
    width: 100%;
    padding: 18px 24px;
    text-align: left;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.faq-btn:hover {
    background: var(--bg-surface-alt);
    color: var(--brand-navy);
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.faq-panel {
    display: none;
    padding: 0 24px 20px;
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.faq-accordion-item.active .faq-panel {
    display: block;
}

.faq-accordion-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Posts Relacionados */
.related-posts-section {
    max-width: var(--container-max);
    margin: 56px auto 0;
    padding-top: 40px;
    border-top: 2px solid var(--border-light);
}

/* ═══════════════════════════════════════════════════
   9. SIDEBAR INSTITUCIONAL (PARA PÁGINAS E ARQUIVOS)
═══════════════════════════════════════════════════ */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
}

.sidebar-aside {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.widget-box {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 22px;
    box-shadow: var(--shadow-subtle);
}

.widget-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-navy);
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--brand-navy);
}

.author-widget {
    text-align: center;
}

.author-widget-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    object-fit: cover;
    border: 2px solid var(--brand-accent);
}

.author-widget h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.author-widget p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.widget-categories-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget-categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface-alt);
}

.widget-categories-list li a:hover {
    background: var(--brand-navy);
    color: #FFFFFF;
}

.cat-count {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 7px;
    border-radius: var(--radius-pill);
}

/* ═══════════════════════════════════════════════════
   10. FOOTER CORPORATIVO (4 COLUNAS + DISCLAIMER)
═══════════════════════════════════════════════════ */
.site-footer {
    background: var(--brand-dark);
    color: #94A3B8;
    padding: 60px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col-brand .footer-logo {
    margin-bottom: 16px;
}

.footer-brand-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #94A3B8;
    margin-bottom: 20px;
}

.footer-trust-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.trust-badge-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
}

.footer-col-title {
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-list a {
    color: #94A3B8;
    font-size: 0.86rem;
    transition: var(--transition);
}

.footer-nav-list a:hover {
    color: #38BDF8;
    padding-left: 4px;
}

/* Aviso Legal Financeiro YMYL no Rodapé (Obrigatório AdSense) */
.footer-disclaimer-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 36px;
    font-size: 0.76rem;
    line-height: 1.65;
    color: #64748B;
}

.footer-disclaimer-box strong {
    color: #CBD5E1;
}

.footer-bottom-bar {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748B;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom-bar a {
    color: #94A3B8;
}

.footer-bottom-bar a:hover {
    color: #FFFFFF;
}

/* ═══════════════════════════════════════════════════
   11. PAGINAÇÃO EDITORIAL
═══════════════════════════════════════════════════ */
.pagination-container {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--brand-navy);
    color: #FFFFFF;
    border-color: var(--brand-navy);
}

/* ═══════════════════════════════════════════════════
   12. RESPONSIVIDADE E MOBILE FIRST
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .editorial-hero-grid {
        grid-template-columns: 1fr;
    }
    .articles-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }
    .simulator-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-light);
        padding: 16px 20px;
        box-shadow: var(--shadow-dropdown);
    }
    .primary-nav.active {
        display: block;
    }
    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .btn-header-cta {
        display: none;
    }
    .articles-grid-3 {
        grid-template-columns: 1fr;
    }
    .simulator-form-grid {
        grid-template-columns: 1fr;
    }
    .simulator-results {
        grid-template-columns: 1fr;
    }
    .single-post-title {
        font-size: 1.75rem;
    }
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .author-bio-full-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .author-eeat-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ═══════════════════════════════════════════════════
   13. DARK MODE CARBON ENTERPRISE (PREFERS-COLOR-SCHEME)
   Suporte nativo WCAG AAA respeitando a preferência do SO
═══════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-site:          #07090E;
        --bg-surface:       #0E121B;
        --bg-surface-alt:   #141A27;
        --bg-surface-hover: #1E293B;
        --border-light:     #1E293B;
        --border-subtle:    #161E2E;
        --border-dark:      #334155;
        --text-primary:     #F8FAFC;
        --text-secondary:   #CBD5E1;
        --text-muted:       #94A3B8;
        --text-light:       #64748B;
        --brand-green-bg:   rgba(5, 150, 105, 0.14);
        --brand-amber-bg:   rgba(217, 119, 6, 0.14);
    }

    body {
        background-color: var(--bg-site);
        color: var(--text-primary);
    }

    .site-header,
    .trending-bar,
    .search-bar-dropdown {
        background: var(--bg-surface);
        border-color: var(--border-light);
    }

    .logo-main-text,
    .primary-nav a,
    .lead-story-title a,
    .article-card-title a,
    .trending-title a,
    .single-post-title,
    .single-article-content h2,
    .single-article-content h3,
    .toc-title,
    .section-heading-title,
    .side-block-title,
    .widget-title,
    .author-widget h4,
    .author-bio-title,
    .eeat-name {
        color: var(--text-primary) !important;
    }

    .primary-nav a:hover,
    .lead-story-title a:hover,
    .article-card-title a:hover,
    .trending-title a:hover,
    .toc-list li a:hover,
    .toc-toggle-btn,
    .section-view-all,
    .breadcrumbs-nav a {
        color: #38BDF8 !important;
    }

    .lead-story-card,
    .trending-side-card,
    .article-card,
    .widget-box,
    .author-eeat-card,
    .author-bio-full-box,
    .toc-box,
    .search-bar-input {
        background: var(--bg-surface);
        border-color: var(--border-light);
        color: var(--text-primary);
    }

    .transparency-callout {
        background: var(--brand-amber-bg);
        border-color: rgba(217, 119, 6, 0.35);
        color: #FDE68A;
    }

    .eeat-badge-verified {
        background: var(--brand-green-bg);
        color: #6EE7B7;
        border-color: rgba(16, 185, 129, 0.3);
    }

    .toc-list li a,
    .single-post-lead,
    .lead-story-excerpt,
    .article-card-excerpt {
        color: var(--text-secondary);
    }

    /* Sobrescreve estilos inline de artigos importados para preservar contraste */
    .single-article-content div[style*="background-color: #fff"],
    .single-article-content div[style*="background-color: #ffffff"],
    .single-article-content div[style*="background: #fff"],
    .single-article-content tr[style*="background-color: #f8fafc"] {
        background-color: var(--bg-surface-alt) !important;
        border-color: var(--border-dark) !important;
    }

    .single-article-content h3[style*="color"],
    .single-article-content p[style*="color"],
    .single-article-content td[style*="color"] {
        color: var(--text-secondary) !important;
    }

    .page-numbers {
        background: var(--bg-surface);
        color: var(--text-primary);
        border-color: var(--border-light);
    }

    .page-numbers.current,
    .page-numbers:hover {
        background: var(--brand-accent);
        color: #FFFFFF;
        border-color: var(--brand-accent);
    }
}
