/* ==========================================================================
   1. RESET BÁSICO E ESTILOS GLOBAIS
   ========================================================================== */

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #192324;
    text-decoration: none;
}

hr {
    border: 0;
    border-top: 1px solid #e0e0e0;
}

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

/* ==========================================================================
   1.5. SOBRESCRITAS DE FONTES (PARA CORRIGIR BOOTSTRAP)
   ========================================================================== */

h1, h2, h3, h4, h5, h6, .widget-titulo, .colunista-nome {
    font-weight: 700;
}

/* ==========================================================================
   2. HEADER, NAVEGAÇÃO E BUSCA
   ========================================================================== */

.site-header {
    background-color: #192324;
    padding: 10px 0;
    color: #fff;
    margin-bottom: 30px;
}
.site-header .container, .header-left-group { display: flex; align-items: center; }
.site-header .container { justify-content: space-between; }
.header-left-group { gap: 15px; }
.header-action-btn { display: flex; align-items: center; gap: 8px; background: none; border: none; color: #fff; font-weight: bold; font-size: 1.1em; cursor: pointer; padding: 8px; border-radius: 3px; transition: background-color 0.2s; }
.header-action-btn:hover { background-color: rgba(0,0,0,0.1); }
.hamburger-icon { display: flex; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; }
.hamburger-icon .icon-bar { display: block; width: 100%; height: 2px; background: #fff; border-radius: 1px; }
.site-header .logo img { height: 35px; width: auto; }
.header-action-btn .btn-text { display: none; }
.mobile-menu-container { position: fixed; top: 0; left: -100%; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; transition: opacity 0.3s; opacity: 0; visibility: hidden; }
.mobile-menu-container.is-open { left: 0; opacity: 1; visibility: visible; }
.mobile-menu-nav { position: absolute; top: 0; left: -300px; width: 300px; height: 100%; background-color: #fff; padding: 20px; transition: left 0.3s ease-in-out; display: flex; flex-direction: column; }
.mobile-menu-container.is-open .mobile-menu-nav { left: 0; }
.mobile-menu-header { display: flex; justify-content: flex-end; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }
.mobile-menu-close-btn { font-size: 2em; background: none; border: none; color: #333; cursor: pointer; }
.mobile-menu-nav a { color: #333; font-size: 1.2em; padding: 15px 0; text-decoration: none; border-bottom: 1px solid #f0f0f0; }
.search-overlay-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); z-index: 1050; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.search-overlay-container.is-open { opacity: 1; visibility: visible; }
.search-close-btn { position: absolute; top: 20px; right: 30px; font-size: 3em; color: #fff; background: none; border: none; cursor: pointer; }
.search-form { width: 100%; max-width: 700px; display: flex; }
.search-input { flex-grow: 1; border: 2px solid #fff; background: transparent; color: #fff; font-size: 2em; padding: 15px; border-radius: 5px 0 0 5px; outline: none; }
.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-submit-btn { background-color: #192324; border: 2px solid #192324; color: #fff; font-size: 1.5em; font-weight: bold; padding: 0 30px; cursor: pointer; border-radius: 0 5px 5px 0; }

/* ==========================================================================
   3. LAYOUT DA PÁGINA INICIAL E COMPONENTES GLOBAIS
   ========================================================================== */

.home-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 25px; align-items: stretch; }
.coluna-principal-g1 { display: flex; }
.coluna-secundaria-g1 { display: flex; flex-direction: column; gap: 25px; }

.card-destaque-principal.sem-imagem { background-color: #fff; border: 1px solid #f0f0f0; padding: 30px; border-radius: 5px; width: 100%; display: flex; flex-direction: column; justify-content: center; }
.card-destaque-principal.sem-imagem .editoria-tag-home { font-size: 1.1em; font-weight: bold; color: #555; text-transform: uppercase; }
.card-destaque-principal.sem-imagem h1 { font-size: 2.8em; line-height: 1.15; margin: 10px 0; }
.card-destaque-principal.sem-imagem .subtitulo-g1 { font-weight: 400; font-size: 1.2em; color: #555; position: relative; padding-left: 20px; }
.card-destaque-principal.sem-imagem .subtitulo-g1::before { content: '•'; color: #192324; position: absolute; left: 0; top: 0; font-size: 1.2em; font-weight: bold; }

.card-destaque-principal.com-imagem { display: block; position: relative; width: 100%; height: 513px; background-size: cover; background-position: center; border-radius: 8px; text-decoration: none; overflow: hidden; }
.card-destaque-principal.com-imagem .overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 60%); z-index: 1; transition: background 0.3s ease; }
.card-destaque-principal.com-imagem:hover .overlay { background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.1) 70%); }
.card-destaque-principal.com-imagem .conteudo-destaque { position: absolute; bottom: 0; left: 0; right: 0; padding: 25px; z-index: 2; color: #fff; }
/* --- CORREÇÃO APLICADA AQUI --- */
.card-destaque-principal.com-imagem .conteudo-destaque h1 { color: #fff !important; font-size: 2.2rem; line-height: 1.2; margin: 10px 0 0 0; }
.card-destaque-principal.com-imagem .conteudo-destaque .subtitulo-g1 { font-weight: 400; color: #eee; font-size: 1.2rem; margin-top: 10px; }

/* --- CORREÇÃO APLICADA AQUI --- */
.noticia-secundaria { position: relative; overflow: hidden; height: 244.16px; border-radius: 8px; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.noticia-secundaria:hover { transform: scale(1.03); z-index: 10; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.noticia-secundaria a { display: block; position: relative; height: 100%;}
.noticia-secundaria img { width: 100%; height: 100%; object-fit: cover; }
.noticia-secundaria .texto-sobre-imagem { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.85) 20%, transparent 100%); color: #fff; }
.noticia-secundaria .editoria-tag-home { font-size: 0.9em; }
.noticia-secundaria h3 { font-size: 1.4em; line-height: 1.2; margin: 5px 0 0; }

.full-width-banner { margin: 30px 0; text-align: center; min-height: 90px; }
.lower-home-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; align-items: start; margin-top: 30px; }
.post-card-horizontal { display: flex; align-items: flex-start; gap: 20px; background-color: #fff; border: 1px solid #f0f0f0; padding: 15px; border-radius: 5px; margin-bottom: 20px; }
.post-card-horizontal .post-image-container { width: 300px; flex-shrink: 0; aspect-ratio: 16 / 9; background-color: #f0f0f0; border-radius: 5px; overflow: hidden; }
.post-card-horizontal .post-image-container img { width: 100%; height: 100%; object-fit: cover; }
.post-card-horizontal .post-content { flex-grow: 1; display: flex; flex-direction: column; }
.post-card-horizontal .post-content .editoria-tag-home { font-size: 0.9em; font-weight: bold; color: #555; text-transform: uppercase; margin-bottom: 8px; }
.post-card-horizontal .post-content h3 { font-size: 1.5em; line-height: 1.2; margin: 0; }
.post-card-horizontal .post-content p { font-size: 1em; color: #666; margin-top: 10px; }
.post-card-horizontal .post-content .post-meta { font-size: 0.9em; color: #888; margin-top: auto; }

/* ==========================================================================
   4. LAYOUT DA PÁGINA DE NOTÍCIA E EDITORIA
   ========================================================================== */
.editoria-header { color: #ffffff; padding: 2.5rem 0; margin-top:-30px }
.editoria-header h1 { margin: 0; font-size: 2.5rem; }
.cabecalho-noticia { margin-bottom: 25px; }
.cabecalho-noticia .editoria-tag { background-color: #192324; color: #fff; padding: 5px 10px; font-size: 0.9em; border-radius: 3px; text-transform: uppercase; display: inline-block; margin-bottom: 10px; }
.cabecalho-noticia h1 { font-size: 2.8em; margin: 10px 0; }
.cabecalho-noticia h2 { font-size: 1.5em; color: #555; margin-bottom: 20px; }
.cabecalho-noticia .info-publicacao { font-size: 0.9em; color: #777; }
.noticia-layout { display: flex; flex-wrap: wrap; gap: 30px; }
.coluna-principal { flex: 1; min-width: 65%; }
.coluna-sidebar { width: 300px; }
.conteudo-noticia .imagem-destaque-noticia { width: 100%; max-height: 480px; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; margin-bottom: 20px; border-radius: 5px; }
.conteudo-noticia .texto-principal { font-size: 1.2em; line-height: 1.7; }
.conteudo-noticia .texto-principal iframe, .conteudo-noticia .texto-principal amp-iframe { max-width: 100%; }
.legenda-imagem-container { background-color: #f1f1f1; padding: 10px 15px; font-size: 0.9em; color: #555; margin-top: -20px; margin-bottom: 20px; position: relative; z-index: 1; border-radius: 0 0 5px 5px; }
.widget { background-color: #fff; padding: 20px; margin-bottom: 25px; border-radius: 5px; border: 1px solid #f0f0f0; }
.widget-titulo { font-size: 1.3em; border-bottom: 2px solid #192324; padding-bottom: 10px; margin-bottom: 15px; margin-top: 0; }
.sidebar-ad-slot .anuncio-link, .sidebar-ad-slot img { max-width: 100%; display: block; margin-left: auto; margin-right: auto; height: auto; }
.colunistas-widget-item { margin-bottom: 1rem; }
.colunistas-widget-item a { text-decoration: none; color: #212529; transition: color 0.2s; display: flex; align-items: center; }
.colunistas-widget-item a:hover { color: #0d6efd; }
.colunista-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-right: 15px; border: 2px solid #eee; }
.pagination .page-item.active .page-link { background-color: #192324; border-color: #192324; color: #fff; }
.pagination .page-link { color: #192324; }
.pagination .page-link:hover { color: #000; }

/* ==========================================================================
   5. RODAPÉ
   ========================================================================== */
.site-footer { background-color: #192324; color: #fff; padding: 40px 0; margin-top: 40px; font-size: 0.9em; }
.footer-container { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-info p { margin: 0; line-height: 1.6; }

/* ==========================================================================
   6. RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */
@media (min-width: 992px) { .header-action-btn .btn-text { display: inline; } }

/* ATUALIZADO: Seção completa para telas menores */
@media (max-width: 992px) { 
    .home-grid, .lower-home-grid { grid-template-columns: 1fr; } 
    .coluna-sidebar { width: 100%; margin-top: 20px; } 
    .card-destaque-principal.com-imagem { height: auto; aspect-ratio: 16 / 9; }
    .noticia-secundaria { height: auto; aspect-ratio: 16 / 9; }
    .noticia-secundaria img { width: 100%; height: 100%; object-fit: cover; } 
}
@media (max-width: 768px) { 
    .footer-container { flex-direction: column; text-align: center; } 
    .post-card-horizontal { flex-direction: column; } 
    .post-card-horizontal .post-image-container { width: 100%; } 
    .post-card-horizontal .post-image-container img { height: auto; aspect-ratio: 16 / 9; } 
    .card-destaque-principal.sem-imagem h1 { font-size: 2em; }
    .home-grid .coluna-principal-g1 a.card-destaque-principal h1 { font-size: 26px !important; line-height: 1.2 !important; }
    .coluna-secundaria-g1 .noticia-secundaria h3 { font-size: 18px; }
    .live-bar-content { flex-direction: column; gap: 5px; }
    .live-text { font-size: 1em; line-height: 1.3; }
    .cabecalho-noticia h1 { font-size: 32px; line-height: 1.25; }
}
@media (max-width: 480px) { 
    .header-action-btn .btn-text { display: none; } 
    .card-destaque-principal.sem-imagem h1 { font-size: 1.8em; }
}

/* ==========================================================================
   7. WIDGETS E SEÇÕES DIVERSAS
   ========================================================================== */
.widget-noticia-item-com-imagem { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.widget-noticia-item-com-imagem:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.widget-noticia-imagem-link { width: 100px; height: 70px; flex-shrink: 0; display: block; background-color: #f0f0f0; border-radius: 5px; overflow: hidden; }
.widget-noticia-imagem-link img { width: 100%; height: 100%; object-fit: cover; }
.widget-noticia-titulo a { font-weight: bold; color: #333; text-decoration: none; line-height: 1.3; }
.widget-noticia-titulo a:hover { color: #000; }
.widget-lista-numerada { list-style: none; padding-left: 0; margin-left: 0; counter-reset: ranking-counter; }
.widget-lista-numerada li { counter-increment: ranking-counter; margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px; }
.widget-lista-numerada li::before { content: counter(ranking-counter) "º"; font-size: 1.5rem; font-weight: 700; color: #ccc; min-width: 30px; text-align: right; }
.widget-lista-numerada li a { font-weight: bold; color: #333; text-decoration: none; line-height: 1.3; }
.widget-lista-numerada li a:hover { color: #000; }
.editoria-tag-home, .cabecalho-noticia .editoria-tag { background-color: var(--editoria-cor, #192324); color: #ffffff; padding: 5px 10px; font-size: 0.9em; border-radius: 3px; text-transform: uppercase; display: inline-block; margin-bottom: 10px; font-weight: bold; border: none; }
.card-destaque-principal.sem-imagem h1, .noticia-secundaria h3, .post-card-horizontal .post-content h3 { color: var(--editoria-cor, #121212); }
.card-destaque-principal a, .noticia-secundaria a, .post-card-horizontal a { text-decoration: none; }
.card-destaque-principal.sem-imagem .subtitulo-g1 { color: #555; }
.editoria-tag-home, .cabecalho-noticia .editoria-tag { color: #ffffff !important; }
.noticia-secundaria .texto-sobre-imagem h3 { color: #ffffff !important; text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8); }
.weather-widget .weather-icon { filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.4)); }

#btn-carregar-mais { width: 100%; background-color: #192324; border-color: #192324; color: #fff; padding: 12px 20px; font-size: 1.1em; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; border-radius: 5px; transition: background-color 0.2s, border-color 0.2s; }
#btn-carregar-mais:hover { background-color: #3a4a4c; border-color: #3a4a4c; }

.live-bar { background-color: #d92d20; color: #fff; padding: 10px 0; text-align: center; font-weight: bold; display: block; text-decoration: none; transition: background-color 0.2s; z-index: 100000; position: relative; }
.live-bar:hover { background-color: #b9261a; }
.live-bar-content { display: flex; align-items: center; justify-content: center; gap: 10px; }
.live-pulse { display: flex; align-items: center; background-color: #fff; color: #d92d20; padding: 3px 10px; border-radius: 4px; font-size: 0.9em; }
.live-pulse::before { content: ''; display: inline-block; width: 9px; height: 9px; background-color: #d92d20; border-radius: 50%; margin-right: 8px; animation: blinking-dot 1.2s infinite; }
.live-text { font-size: 1.1em; }
@keyframes blinking-dot { 0% { opacity: 1; } 50% { opacity: 0.25; } 100% { opacity: 1; } }

/* --- WIDGET DE COLUNISTAS (SIDEBAR) --- */
.widget .widget-titulo { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; border-bottom: 2px solid #eee; padding-bottom: 0.5rem; }
.colunistas-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 20px 16px; }
.colunista-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #444; transition: transform 0.2s ease-in-out; }
.colunista-item:hover { transform: translateY(-4px); }
.colunista-item:hover span { color: #0d6efd; text-decoration: underline; }
.colunista-item img { width: 75px; height: 75px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 8px rgba(0,0,0,0.15); transition: transform 0.2s ease-in-out; }
.colunista-item span { margin-top: 8px; font-size: 0.8rem; font-weight: 600; text-align: center; line-height: 1.3; max-width: 100%; }

/* --- PÁGINA DE COLUNISTA (HEADER) --- */
.header-colunista { background-color: #f8f9fa; border-bottom: 1px solid #e9ecef; padding: 2rem 1.5rem; margin-bottom: 2rem; text-align: center; }
@media (min-width: 768px) { .header-colunista { text-align: left; } .header-colunista-foto { margin-bottom: 0; } }
.header-colunista-foto { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #ffffff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-bottom: 1rem; }
.header-colunista .nome-colunista { font-weight: 700; font-size: 2.5rem; color: #333; }
.header-colunista .descricao-colunista { font-size: 1.1rem; color: #6c757d; }