/* Variáveis de Cores do Tema */
:root {
    --primary-color: #cf2b26; /* Vermelho vibrante para o header */
    --secondary-color: #1e4e35; /* Verde escuro para títulos e links */
    --text-color: #333;
    --light-grey: #f8f9fa;
    --dark-grey: #6c757d;
}

/* Base Geral */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #f0f2f5;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
}

/* Headers de Seção (h2) */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block; /* Para a borda inferior se ajustar ao texto */
}

/* Cabeçalho do Site */
.site-header .top-bar {
    background-color: var(--primary-color); /* Cor principal */
    color: white;
    font-size: 0.9rem;
}

.site-header .top-bar .social-icons a {
    color: white;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.site-header .top-bar .social-icons a:hover {
    color: #e0e0e0;
}

.site-header .logo-link img {
    max-height: 90px; /* Ajuste o tamanho da logo conforme necessário */
    width: auto;
    display: block;
    margin: 0 auto;
    padding:0px;
}

.site-header .main-nav {
    background-color: var(--secondary-color); /* Cor secundária */
    border-radius: 0; /* Remover border-radius se houver */
}

.site-header .main-nav .navbar-nav .nav-item .nav-link {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    padding: 1rem 1.2rem;
}

.site-header .main-nav .navbar-nav .nav-item .nav-link:hover,
.site-header .main-nav .navbar-nav .nav-item .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Banner do Cabeçalho (720x90) */
.ad-container-720x90 {
    width: 100%;
    max-width: 720px;
    height: 90px;
    margin: 15px auto;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    color: #888;
    font-size: 0.8rem;
    overflow: hidden; /* Garante que o conteúdo do anúncio não transborde */
}

@media (max-width: 767.98px) {
    .ad-container-720x90 {
        height: 60px; /* Menor em telas menores */
        font-size: 0.7rem;
    }
}


/* Destaques da Capa */
.featured-grid-section .featured-post {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: block; /* Para garantir que o link ocupe todo o espaço */
    height: 100%; /* Garante que ocupe a altura disponível */
}

.featured-grid-section .featured-post img {
    width: 100%;
    height: 100%; /* <<<<<<<<<<< ALTERAÇÃO PRINCIPAL AQUI */
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Ajuste para as imagens dos destaques laterais (regra removida pois a de cima já resolve) */
/* .featured-grid-section .featured-post-small img { ... } */


.featured-grid-section .featured-post:hover img {
    transform: scale(1.05);
}

.featured-grid-section .featured-post-content {
    position: absolute;
    bottom: 0; /* Posiciona o conteúdo mais abaixo */
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: white; /* Fonte branca */
}

.featured-grid-section .featured-post-content .category-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}

.featured-grid-section .featured-post-content .post-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 5px;
    margin-bottom: 0;
    line-height: 1.3;
    color: white; /* Fonte branca */
}

/* Destaques Laterais Pequenos */
.featured-grid-section .featured-post-small {
    height: calc(50% - 7.5px); /* Divide o espaço com um gap de 15px */
}

.featured-grid-section .featured-post-small .post-title {
    font-size: 1rem;
}


/* Cartões de Notícias Gerais (nas seções de editoria) */
.post-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
    overflow: hidden; /* Para garantir que a imagem se encaixe no radius */
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    height: 180px; /* Altura fixa para as imagens dos cartões */
    object-fit: cover;
}

.post-card .card-body {
    padding: 15px;
}

.post-card .post-category a {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.post-card .post-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 10px;
}

.post-card .post-title a {
    color: var(--text-color);
}

.post-card .post-title a:hover {
    color: var(--primary-color);
}

/* Banners (geral) */
.ad-container-600x300 {
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto; /* Centraliza */
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    color: #888;
    font-size: 1rem;
    overflow: hidden;
}

.ad-container-300x600 {
    width: 300px;
    height: 600px;
    margin: 0 auto;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    color: #888;
    font-size: 0.9rem;
    overflow: hidden;
}


/* Sidebar - Ajustado para ser mais neutro */
.sidebar {
    padding: 15px; /* Manter padding */
    background-color: #fff; /* Fundo branco, mais neutro */
    border-radius: 8px; /* Manter borda arredondada */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Manter sombra sutil */
}

.widget {
    margin-bottom: 25px; /* Manter espaçamento entre widgets */
}

.widget-title {
    font-size: 1.3rem; /* Manter tamanho */
    font-weight: 700; /* Manter peso */
    margin-bottom: 15px; /* Manter espaçamento */
    color: var(--secondary-color); /* Manter cor do título */
    border-bottom: 2px solid #eee; /* Borda mais suave */
    padding-bottom: 5px;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #eee; /* Linha divisória sutil */
    line-height: 1.4; /* Melhorar espaçamento da linha */
}

.widget-list li:last-child {
    border-bottom: none; /* Remover borda do último item */
    margin-bottom: 0;
    padding-bottom: 0;
}


.widget-list li a {
    color: var(--text-color); /* Cor de texto padrão */
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.widget-list li a:hover {
    color: var(--primary-color); /* Cor de hover */
}

/* Remover o estilo de círculo para o rank, torná-lo apenas texto */
.widget-list .rank {
    font-weight: bold;
    font-size: 0.9rem; /* Manter tamanho */
    color: var(--secondary-color); /* Cor para o número do rank */
    margin-right: 8px; /* Espaçamento à direita */
    flex-shrink: 0; /* Evitar que o número seja espremido */
}


/* Single Post (Notícia Única) */
.single-post-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.single-post-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.single-post-meta span {
    font-size: 0.9rem;
    color: var(--dark-grey);
}

.single-post-meta strong {
    color: var(--text-color);
}

.social-share-section {
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 20px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-share-section .share-label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--text-color);
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 5px;
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-share-btn:hover {
    opacity: 0.9;
    color: white; /* Garante que a cor do texto não mude ao hover */
}

/* Cores específicas dos botões sociais */
.share-btn.whatsapp { background-color: #25D366; }
.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter-x { background-color: #000; }
.share-btn.pinterest { background-color: #E60023; }

.content-formatted {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.content-formatted img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 8px;
}

/* Rodapé do Site */
.site-footer {
    background-color: #343a40; /* Fundo escuro do rodapé */
    color: white;
    padding: 40px 0;
    font-size: 0.9rem;
    margin-top: 30px;
}

.site-footer h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.site-footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.site-footer ul li a:hover {
    color: white;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
}

.site-footer .developer-logo {
    height: 40px; /* Ajuste conforme a altura da logo do desenvolvedor */
    margin-left: 5px;
    vertical-align: middle;
}

/* Novo estilo para o rodapé com logo e mídias sociais */
.footer-logo img {
    max-height: 70px; /* Ajuste conforme o tamanho da logo no rodapé */
    width: auto;
    display: block;
    margin-bottom: 15px;
}

.footer-social-icons a {
    color: white;
    font-size: 1.3rem;
    margin-right: 15px;
    transition: color 0.2s ease;
}
.footer-social-icons a:hover {
    color: var(--primary-color);
}

/* Cookie Consent Banner (Pop-up) */
.cookie-consent-banner {
    display: none; /* Escondido por padrão, JavaScript o exibe */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2b2b2b; /* Fundo escuro */
    color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
    z-index: 1050; /* Acima de outros elementos */
    max-width: 500px;
    text-align: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cookie-consent-banner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-consent-banner p a {
    color: #87CEEB; /* Azul claro para o link */
    text-decoration: underline;
}

.cookie-consent-banner .btn-accept {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.cookie-consent-banner .btn-accept:hover {
    background-color: #a6201f; /* Tom mais escuro do vermelho */
}

/* Overlay do Cookie Banner */
.cookie-overlay {
    display: none; /* Escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo escuro transparente */
    z-index: 1040; /* Abaixo do banner, mas acima do conteúdo */
}

/* Responsividade Básica */
@media (max-width: 991.98px) {
    .site-header .main-nav .navbar-toggler {
        border-color: rgba(255,255,255,.1);
    }
    .site-header .main-nav .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    .site-header .main-nav .navbar-collapse {
        margin-top: 10px;
        border-top: 1px solid rgba(255,255,255,.1);
        padding-top: 10px;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .footer-bottom .text-md-start,
    .footer-bottom .text-md-end {
        text-align: center !important;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.8rem;
    }
    .single-post-title {
        font-size: 2rem;
    }
    .social-share-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .social-share-section .share-label {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .cover-manager {
        grid-template-columns: 1fr; /* Coluna única em mobile */
    }
    .news-source-list {
        margin-bottom: 20px;
    }
}