:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --brand-green: #0d9488;
    --brand-green-dark: #0a7a70;
    --brand-navy: #1a365d;
    --accent: #ea580c;
    --accent-soft: #ffedd5;
    --navy: #1a365d;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --radius: 10px;
    --shadow: 0 4px 24px rgba(26, 54, 93, 0.08);
    --shadow-hover: 0 12px 40px rgba(26, 54, 93, 0.14);
    --gradient: linear-gradient(135deg, #1a365d 0%, #0d9488 100%);
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

[data-bs-theme="dark"] {
    --bg: #020617;
    --surface: #0f172a;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.12);
    --navy: #020617;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, .display-font {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--gradient);
    z-index: 1100;
}

/* Topbar local */
.city-bar {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    padding: 0.4rem 0;
}

.city-bar strong { color: var(--primary-light); }

/* Navbar */
.site-nav {
    background: rgba(12, 25, 41, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.65rem 0;
}

/* Logo e marca */
.brand-lockup {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0;
    color: #fff !important;
    text-decoration: none !important;
}

.logo-link {
    display: block;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.logo-link:hover { transform: scale(1.06); }

.site-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.site-logo--nav {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    padding: 4px;
}

.brand-lockup .brand-text {
    color: inherit;
}

.brand-lockup .brand-text:hover .brand-title {
    color: var(--primary-light);
}

.site-logo--footer {
    width: 40px;
    height: 40px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.brand-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.brand-sub {
    display: block;
    font-size: 0.62rem;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #fde68a;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
    animation: live-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
}

.live-dot--hero {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.35rem;
}

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); opacity: 1; }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); opacity: 0.85; }
}

.hero-logo-link {
    display: block;
    flex-shrink: 0;
}

.hero-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.25);
    transition: transform 0.3s ease;
}

.hero-logo-link:hover .hero-logo {
    transform: scale(1.05) rotate(-2deg);
}

.exclusivo-wall {
    background: linear-gradient(135deg, rgba(234,88,12,0.08), rgba(13,148,136,0.08));
    border: 2px dashed rgba(234, 88, 12, 0.35);
}

.article-video video {
    display: block;
    width: 100%;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #fff;
}

.site-nav .navbar-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.45rem;
    color: #fff !important;
    line-height: 1.2;
}

.site-nav .nav-link {
    color: rgba(255,255,255,0.82) !important;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.45rem 0.95rem !important;
    font-size: 0.92rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    background: rgba(13, 148, 136, 0.25);
    color: #fff !important;
}

.btn-contribuir {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
}

.btn-contribuir:hover {
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45);
}

.badge-painel {
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    margin-left: 4px;
}

/* Trust strip */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.95);
}

.trust-item i { color: #fde68a; }

/* Hero */
.hero-banner {
    background: var(--gradient);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-banner h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    color: #fff;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.15);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* Cards */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.glass-card:hover {
    transform: translateY(-3px);
}

.news-card-item { overflow: hidden; }

.news-card-item .thumb {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.news-card-item .category-pill {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

.stat-box .num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-box .lbl {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

/* Paginação */
.pagination-modern { gap: 0.35rem; flex-wrap: wrap; }

.pagination-modern .page-link {
    border: none;
    border-radius: 12px !important;
    color: var(--primary-dark);
    font-weight: 600;
    min-width: 44px;
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin: 0;
}

.pagination-modern .page-item.active .page-link {
    background: var(--gradient);
    color: #fff;
}

/* Anúncios — só aparecem quando configurados */
.ad-slot--live {
    border-radius: var(--radius);
    overflow: hidden;
    margin: 1.25rem 0;
    text-align: center;
}

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

.ad-slot--sidebar.ad-slot--live { min-height: auto; }

/* Sidebar */
.sidebar-widget { margin-bottom: 1.25rem; }

.sidebar-widget .widget-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
}

.category-list a:hover,
.category-list a.active {
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary-dark);
}

.featured-card {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 280px;
    position: relative;
}

.featured-card img {
    width: 100%;
    min-height: 280px;
    object-fit: cover;
}

.featured-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,25,41,0.9) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    color: #fff;
}

/* Contribuir — passos */
.steps-envio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

.step-card .step-num {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Painel moderação */
.painel-envio {
    border-left: 4px solid var(--accent);
}

.painel-envio.status-aprovado { border-left-color: var(--primary); }
.painel-envio.status-rejeitado { border-left-color: #ef4444; }

.filter-tabs .nav-link {
    border-radius: 999px;
    font-weight: 600;
    color: var(--muted);
}

.filter-tabs .nav-link.active {
    background: var(--primary);
    color: #fff;
}

/* Footer */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.82);
    padding: 3.5rem 0 1.5rem;
    margin-top: auto;
}

.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--primary-light); }

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: #fff;
}

#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1000;
    border: none;
    box-shadow: var(--shadow);
}

#backToTop.show { opacity: 1; visibility: visible; }

.filter-pills .btn { border-radius: 999px; font-weight: 500; }
.filter-pills .btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* === Engajamento: curtir, comentar, compartilhar === */
.engagement-actions .btn-engagement {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 44px;
    transition: 0.2s;
}

.btn-engagement--active,
.btn-engagement.active {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.share-box { margin-top: 0.5rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    font-size: 0.88rem;
    min-height: 44px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}
.share-btn--whatsapp { background: #25d366; }
.share-btn--facebook { background: #1877f2; }
.share-btn--copy { background: var(--navy); color: #fff; }
.share-btn--native { background: var(--primary); color: #fff; }

.comments-section .comment-item {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.comment-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.comment-header small { margin-left: auto; }

.article-hero-img img { max-height: min(50vh, 420px); object-fit: cover; }
.article-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.25rem;
    background: linear-gradient(transparent, rgba(12,25,41,.92));
}
.related-thumb { height: 120px; object-fit: cover; }

/* Auth */
.auth-card { max-width: 100%; }
.auth-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; color: var(--primary);
}
.account-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

/* Barra fixa mobile — curtir / comentar / compartilhar */
.engagement-bar {
    position: fixed;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    left: 0; right: 0;
    z-index: 1040;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 0.35rem 0.5rem;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
}
.page-detalhe .engagement-bar { display: flex; }
.engagement-bar form { margin: 0; flex: 1; }
.engagement-item { flex: 1; text-align: center; text-decoration: none; }
.engagement-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
    padding: 0.5rem;
    border: none;
    background: none;
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 600;
    min-height: 48px;
    border-radius: 12px;
}
.engagement-btn i { font-size: 1.2rem; }
.engagement-btn.active { color: #ef4444; }
.engagement-btn--wa { color: #25d366; }

/* Menu inferior global */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1050;
    display: flex;
    justify-content: space-around;
    background: var(--navy);
    padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.4rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    border: none;
    background: none;
    min-height: 48px;
}
.mobile-nav-item i { font-size: 1.15rem; }
.mobile-nav-item.active { color: var(--primary-light); }

.has-mobile-nav { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
.page-detalhe.has-mobile-nav { padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }

#backToTop {
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}
.page-detalhe #backToTop {
    bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px));
}

/* === Responsivo: celular e tablet === */
@media (max-width: 991px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .site-nav .navbar-collapse {
        background: var(--navy);
        margin: 0.5rem -0.5rem 0;
        padding: 1rem;
        border-radius: var(--radius);
    }
    .nav-search { width: 100%; margin: 0.75rem 0 !important; }
    .trust-strip { gap: 0.5rem; }
    .trust-item { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .article-body { font-size: 1.05rem !important; }
}

@media (max-width: 768px) {
    .news-card-item .thumb { height: 200px; }
    .news-card-item .row { flex-direction: column; }
    .hero-banner { padding: 1.5rem 1rem; }
    .hero-banner h1 { font-size: 1.5rem; }
    .city-bar .container { font-size: 0.72rem; }
    .site-logo--nav { width: 48px; height: 48px; }
    .hero-logo { width: 80px; height: 80px; }
    .brand-title { font-size: 0.88rem; max-width: 140px; }
    .brand-sub { font-size: 0.55rem; max-width: 150px; }
    .hero-logo { width: 56px; height: 56px; }
    .featured-card { min-height: 220px; }
    .featured-card img { min-height: 220px; }
    .site-footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px)); }
    .display-font.h2 { font-size: 1.35rem; }
    .filter-pills { width: 100%; }
    .filter-pills .btn { flex: 1; font-size: 0.8rem; }
    .pagination-modern .page-link { min-width: 40px; padding: 0.5rem 0.75rem; }
    .steps-envio { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    .share-btn span { display: none !important; }
    .engagement-bar .engagement-btn span { font-size: 0.6rem; }
    .brand-sub { display: none; }
    .brand-title { max-width: 110px; font-size: 0.8rem; }
}

@media (max-width: 520px) {
    .city-bar .container > span:first-child { display: none; }
}

@media (min-width: 992px) {
    .cat-nav__collapse { display: block !important; height: auto !important; visibility: visible !important; }
    .cat-nav__toggle { display: none !important; }
    .engagement-bar { display: none !important; }
}

/* === Layout editorial (portal de notícias) === */
.editorial-hero {
    position: relative;
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    min-height: 320px;
    margin-bottom: 2rem;
    background: var(--navy) center/cover no-repeat;
    background-image: var(--hero-bg), linear-gradient(135deg, #0c1929 0%, #0d9488 100%);
    display: flex;
    align-items: flex-end;
}

.editorial-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(12,25,41,0.92) 0%, rgba(12,25,41,0.55) 55%, rgba(13,148,136,0.35) 100%);
}

.editorial-hero__content {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
    color: #fff;
    max-width: 720px;
}

.editorial-hero__logo-wrap {
    display: inline-block;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.editorial-hero__logo-wrap:hover { transform: scale(1.04); }

.editorial-hero__logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 20px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.25);
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.editorial-hero__kicker {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.75rem;
}

.editorial-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.08;
    margin-bottom: 0.75rem;
    color: #fff;
}

.editorial-hero__lead {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 540px;
}

.editorial-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-rail {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-rail::-webkit-scrollbar { display: none; }

.category-chip {
    flex-shrink: 0;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: 0.2s;
}

.category-chip:hover,
.category-chip.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

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

.featured-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: repeat(2, minmax(180px, 1fr));
    gap: 1rem;
}

.featured-story {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: #fff;
    min-height: 200px;
}

.featured-story--main {
    grid-row: span 2;
    min-height: 100%;
}

.featured-story img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.4s ease;
}

.featured-story:hover img { transform: scale(1.04); }

.featured-story__body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(12,25,41,0.92) 0%, transparent 65%);
}

.featured-story__tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fde68a;
    margin-bottom: 0.35rem;
}

.featured-story__title {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    line-height: 1.25;
    margin-bottom: 0.35rem;
}

.featured-story--main .featured-story__title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.featured-story__meta {
    font-size: 0.8rem;
    opacity: 0.85;
    margin: 0;
}

.news-grid {
    display: grid;
    gap: 1.5rem;
}

.news-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.news-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 200px;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card__media img { transform: scale(1.03); }

.news-card__category {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card__body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.news-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.news-card__title {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
}

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

.news-card__excerpt {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.news-card__link {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.news-card__link:hover { text-decoration: underline; }

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.logout-form button.btn-link {
    text-decoration: none;
    font-size: 0.85rem;
}

.logout-form button.btn-link:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Mobile nav mais discreto — menos “app” */
.mobile-bottom-nav {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(12,25,41,0.08);
}

[data-bs-theme="dark"] .mobile-bottom-nav {
    background: rgba(15,23,42,0.95);
    border-top-color: var(--border);
}

.mobile-nav-item {
    color: var(--muted);
}

.mobile-nav-item.active {
    color: var(--brand-green);
}

[data-bs-theme="dark"] .mobile-nav-item.active {
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .editorial-hero { min-height: 280px; }
    .editorial-hero__content { padding: 1.5rem 1rem; }
    .editorial-hero__logo { width: 88px; height: 88px; }
    .featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .featured-story--main { grid-row: auto; min-height: 260px; }
    .news-card {
        grid-template-columns: 1fr;
    }
    .news-card__media { min-height: 180px; }
    .site-logo--nav { width: 52px; height: 52px; }
}

/* ============================================================
   Portal v2 — estilo Rondônia Atual / VIP, mais moderno
   ============================================================ */

.top-strip {
    background: var(--brand-navy);
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-strip__live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fde68a;
    font-weight: 600;
}

.top-strip__clock {
    font-weight: 500;
    text-transform: capitalize;
}

/* Masthead — logo centralizada */
.masthead {
    background: #fff;
    padding: 1.25rem 0 1rem;
    border-bottom: 3px solid var(--brand-green);
    text-align: center;
}

.masthead__brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease;
}

.masthead__brand:hover {
    transform: scale(1.02);
    color: inherit;
}

.masthead__logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(13, 148, 136, 0.25);
    border: 3px solid var(--brand-green);
    padding: 6px;
    background: #fff;
}

.masthead__logo--sm {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border-width: 2px;
    padding: 3px;
}

.masthead__name {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--brand-navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.masthead__tagline {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Barra de categorias — verde sólida */
.cat-nav {
    background: var(--brand-green);
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
    z-index: 1030;
}

.cat-nav__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 48px;
}

.cat-nav__toggle {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.cat-nav__collapse { flex: 1; min-width: 0; }

.cat-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
}

.cat-nav__link {
    display: block;
    padding: 0.45rem 0.85rem;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s;
}

.cat-nav__link:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.cat-nav__link.is-active {
    background: #fff;
    color: var(--brand-green-dark);
}

.cat-nav__link--cta {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.35);
}

.cat-nav__tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-weather {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    white-space: nowrap;
}

.nav-weather strong { font-weight: 700; }

.nav-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 999px;
    overflow: hidden;
    max-width: 200px;
}

.nav-search-form input {
    border: none;
    background: transparent;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    width: 140px;
    outline: none;
}

.nav-search-form button {
    border: none;
    background: transparent;
    color: var(--brand-green);
    padding: 0.35rem 0.65rem;
    cursor: pointer;
}

.cat-nav__user {
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
    padding: 0.25rem;
}

.site-main { flex: 1; background: var(--surface-alt); }

/* Última hora */
.urgente-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid #ef4444;
    padding: 0.65rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.urgente-bar__label {
    flex-shrink: 0;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
}

.urgente-bar__text {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.urgente-bar__text:hover { color: var(--brand-green); }

/* Mosaico 1+4 — estilo Rondônia Atual */
.mosaic-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4px;
    margin-bottom: 1.75rem;
    border-radius: calc(var(--radius) + 2px);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 420px;
}

.mosaic-hero__main {
    position: relative;
    display: block;
    text-decoration: none;
    color: #fff;
    grid-row: span 1;
    min-height: 420px;
}

.mosaic-hero__main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mosaic-hero__main:hover img { transform: scale(1.04); }

.mosaic-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
}

.mosaic-hero__cat {
    display: inline-block;
    background: var(--brand-green);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.mosaic-hero__title {
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #fff;
}

.mosaic-hero__resumo {
    font-size: 0.92rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    max-width: 90%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mosaic-hero__meta {
    font-size: 0.78rem;
    opacity: 0.75;
}

.mosaic-hero__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4px;
}

.mosaic-hero__item {
    position: relative;
    display: block;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    min-height: 0;
}

.mosaic-hero__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mosaic-hero__item:hover img { transform: scale(1.06); }

.mosaic-hero__item-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.85rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 70%);
}

.mosaic-hero__item-date {
    font-size: 0.68rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.mosaic-hero__item-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    font-family: var(--font-sans);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Feed de notícias — grid estilo portal */
.feed-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--brand-green);
}

.feed-head__title {
    font-size: 1.35rem;
    margin: 0;
    color: var(--brand-navy);
}

.feed-head__sort {
    display: flex;
    gap: 0.35rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.2rem;
}

.feed-sort-btn {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    transition: 0.15s;
}

.feed-sort-btn.is-active {
    background: var(--brand-green);
    color: #fff;
}

.feed-sort-btn:hover:not(.is-active) {
    color: var(--brand-green);
}

.news-feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.feed-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}

.feed-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.feed-card__body {
    padding: 1rem 1.1rem 0.75rem;
    order: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feed-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.feed-card__time {
    font-size: 0.75rem;
    color: var(--muted);
}

.feed-card__cat {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-green);
    text-decoration: none;
}

.feed-card__cat:hover { text-decoration: underline; }

.feed-card__title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.feed-card__title a {
    color: var(--text);
    text-decoration: none;
}

.feed-card__title a:hover { color: var(--brand-green); }

.feed-card__excerpt {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 0.65rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feed-card__foot {
    display: flex;
    gap: 0.85rem;
    font-size: 0.75rem;
    color: var(--muted);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.feed-card__image {
    order: 2;
    display: block;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.feed-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feed-card:hover .feed-card__image img { transform: scale(1.05); }

.page-head__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--brand-navy);
}

/* Sidebar moderna */
.sidebar-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.sidebar-box__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
}

.sidebar-cats__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
    transition: background 0.15s;
}

.sidebar-cats__item:hover,
.sidebar-cats__item.is-active {
    background: rgba(13, 148, 136, 0.1);
    color: var(--brand-green-dark);
}

.sidebar-cats__count {
    background: var(--brand-green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    min-width: 1.5rem;
    text-align: center;
}

.sidebar-popular__item {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}

.sidebar-popular__item:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-popular__item img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-popular__item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.25rem;
    font-family: var(--font-sans);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-popular__item span {
    font-size: 0.75rem;
    color: var(--muted);
}

.sidebar-box--cta {
    border-color: var(--brand-green);
    border-width: 2px;
    text-align: center;
}

.sidebar-box--cta p {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

.footer-links a:hover { color: var(--primary-light); }

.glass-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

#backToTop {
    background: var(--brand-green);
}

@media (max-width: 991px) {
    .mosaic-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .mosaic-hero__main { min-height: 280px; }
    .mosaic-hero__side { min-height: 240px; }
    .news-feed { grid-template-columns: 1fr; }
    .nav-search-form { display: none; }
    .cat-nav__collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--brand-green-dark);
        padding: 0.5rem 1rem 1rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    }
    .cat-nav { position: relative; }
    .cat-nav__list { flex-direction: column; align-items: stretch; }
    .cat-nav__link { border-radius: 8px; }
}

@media (max-width: 576px) {
    .masthead__logo { width: 80px; height: 80px; }
    .mosaic-hero__side { grid-template-columns: 1fr; grid-template-rows: auto; }
    .mosaic-hero__item { min-height: 160px; }
    .top-strip__clock { display: none; }
}
