/* Reset e Prevenção de Scroll Lateral */
*, *::before, *::after { box-sizing: border-box; }
html, body { 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden; /* Fundamental para matar o scroll lateral */
    width: 100%;
}

body { 
    /* Ajustado para 60px que é o padrão da sua navbar, evitando buracos brancos */
    padding-top: 60px !important; 
    position: relative; 
    font-family: 'Poppins', system-ui, -apple-system, sans-serif; 
    -webkit-font-smoothing: antialiased; 
    background-color: var(--bs-body-bg);
}

/* Tipografia e Links */
a { text-decoration: none !important; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6, .link { font-weight: 700 !important; font-family: 'Poppins', sans-serif !important; }
.f-menor { font-size: .75rem; color: #6c757d; }
.noticia-texto { line-height: 1.85; font-size: 1.25rem; color: var(--bs-body-color); }
.category-label { color: #198754; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }

/* Correção da Row do Bootstrap (evita que as margens negativas vazem a tela) */
.row {
    margin-right: 0;
    margin-left: 0;
}

/* Nav-Scroller: Integrado à Navbar */
.nav-scroller { 
    position: relative; 
    z-index: 1020; /* Logo abaixo da navbar fixa */
    height: auto; 
    overflow-y: hidden; 
    background-color: var(--bs-body-tertiary);
    border-bottom: 1px solid var(--bs-border-color);
}

.nav-scroller .nav { 
    display: flex; 
    flex-wrap: nowrap; 
    justify-content: center; 
    padding: 0.25rem 0; /* Diminuído para reduzir a distância */
    overflow-x: auto; 
    text-align: center; 
    white-space: nowrap; 
    -webkit-overflow-scrolling: touch; 
}

@media (max-width: 991px) { 
    .nav-scroller .nav { justify-content: flex-start; padding-left: 1rem; } 
}

.nav-scroller .nav a { 
    font-weight: 700; 
    font-size: 0.9rem; /* Levemente menor para caber mais itens */
    padding: .5rem .75rem; 
}

/* Conteúdo e Imagens */
.breadcrumb { background: transparent; padding: 0; margin-bottom: 1rem; font-size: 0.85rem; text-transform: uppercase; }
.conteudo-noticia { display: block; margin: 0 auto 1.5rem auto; text-align: center; }
.conteudo-noticia picture img { width: 100% !important; max-width: 960px !important; height: auto !important; border-radius: 8px; display: block; margin: 0 auto; }
.ratio-3x2 { aspect-ratio: 3/2; object-fit: cover; }
.ratio-16x9 { max-width: 960px; margin: 0 auto; }

/* Publicidade Otimizada */
#bloco-publicidade { display: block !important; width: 100% !important; clear: both !important; margin: 0 0 30px 0 !important; min-height: 50px; text-align: center !important; overflow: hidden; }
#bloco-publicidade > * { display: inline-block !important; margin: 0 auto !important; max-width: 100% !important; height: auto !important; vertical-align: middle; }
#bloco-publicidade img { max-width: 100% !important; height: auto !important; object-fit: contain !important; display: block; margin: 0 auto; }
@media (min-width: 768px) { #bloco-publicidade { min-height: 250px; } }

/* Cookiebar */
.cookiebar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(20, 20, 20, .96); color: #fff; z-index: 1080; transform: translateY(100%); opacity: 0; transition: transform .3s, opacity .3s; box-shadow: 0 -4px 16px rgba(0,0,0,.3); }
.cookiebar.is-visible { transform: translateY(0); opacity: 1; }
.cookiebar__inner { max-width: 1140px; margin: 0 auto; padding: 15px 20px; display: flex; gap: 15px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookiebar__text { margin: 0; font-size: 14px; flex: 1; min-width: 280px; }
.cookiebar__text a { color: #3ba0ff; text-decoration: underline !important; }
.cookiebar__actions { display: flex; gap: 10px; }

/* Botões do Cookie */
.cc-btn { font-weight: 600; border-radius: 6px; border: 1px solid transparent; padding: 8px 16px; cursor: pointer; transition: 0.2s; }
.cc-btn--primary { background: #198754; color: #fff; border-color: #198754; }
.cc-btn--primary:hover { filter: brightness(1.1); }
.cc-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.cc-btn--ghost:hover { background: rgba(255,255,255,.1); }

.lista-mais-lidas {
    counter-reset: ranking-counter;
    list-style: none;
    padding: 0;
}

.item-ranking {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.item-ranking:last-child { border-bottom: none; }

.item-ranking:hover {
    padding-left: 5px;
}

.numero-ranking {
    font-size: 2rem;
    font-weight: 800;
    color: #198754; /* Verde do portal */
    opacity: 0.3;
    line-height: 1;
    min-width: 40px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.item-ranking:hover .numero-ranking {
    opacity: 0.8;
}

.titulo-ranking {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.titulo-ranking a {
    color: var(--bs-body-color);
    display: block;
}

.titulo-ranking a:hover {
    color: #198754 !important;
}

@media (prefers-reduced-motion: reduce) { 
    .cookiebar, html { scroll-behavior: auto; transition: none; } 
}
.img-fluid { display: block; margin: 0 auto; }
.rounded-3 { border-radius: 0.5rem !important; }