/* Reset e Variáveis do Layout Antigo */
:root {
    --primary: #0d3b26; /* Verde Escuro da Navbar */
    --accent: #e67e22; /* Laranja dos botões e badges */
    --text-main: #2c3e50;
    --bg-page: #f9fbfa;
    --bg-white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

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

/* ========================================================================= */
/* CABEÇALHO ESTILO GC NOTÍCIAS */
/* ========================================================================= */

.site-header-novo {
    width: 100%;
}

/* 1. Top Bar Branca */
.top-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    font-size: 13px;
    color: #666;
    padding: 8px 0;
}
.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-links a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}
.top-links a:hover {
    color: var(--primary);
}

/* 2. Cabeçalho Principal (Verde Gradient) */
.main-header {
    /* Gradiente parecido com o GC */
    background: linear-gradient(90deg, #104e63 0%, #176f8c 50%, #2e9fbd 100%);
    /* Como o Diário do Nortão usa Verde Escuro, vamos fazer um gradiente verde elegante */
    background: linear-gradient(90deg, #0d3b25 0%, #1a5638 50%, #277952 100%);
    padding: 25px 0;
}
.main-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left, .header-right {
    flex: 1;
}
.header-right {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    align-items: center;
}
.header-right a {
    opacity: 0.8;
    transition: opacity 0.3s;
}
.header-right a:hover {
    opacity: 1;
}
.logo-gc {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 5px; /* Adiciona um pequeno arredondamento caso a imagem seja quadrada com fundo branco */
}
.logo-gc h1 {
    color: white;
    font-size: 38px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
}
.city-selector-gc {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 15px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}
.city-selector-gc:hover {
    background-color: rgba(255, 255, 255, 0.25);
}
.city-selector-gc option {
    background-color: var(--primary);
    color: white;
}

/* 3. Barra de Categorias Branca */
.category-bar {
    background-color: #ffffff;
    border-bottom: 2px solid #eaeaea;
    padding: 15px 0;
}
.category-bar-container {
    display: flex;
    justify-content: center;
}
.menu-gc {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.menu-gc li a {
    color: #444;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}
.menu-gc li a:hover, .menu-gc li a.active {
    color: var(--accent);
}

@media (max-width: 768px) {
    .main-header-container {
        flex-direction: column;
        gap: 15px;
    }
    .header-left, .header-center, .header-right {
        flex: none;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .top-bar-container {
        flex-direction: column;
        gap: 10px;
    }
}

.city-selector {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}
.city-selector:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.city-selector option {
    background-color: var(--primary);
    color: white;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #ddd;
}
.btn-painel {
    background: var(--accent);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}

/* Publicidade Topo */
.ad-wrapper {
    margin: 30px auto;
    text-align: center;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ad-wrapper img { 
    width: 100%; 
    height: auto; 
    object-fit: contain; 
}

/* Hero Antigo (Banner Arredondado) */
.hero-section {
    margin-top: 20px;
    margin-bottom: 50px;
}
.hero-card-old {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 450px;
    display: block;
    text-decoration: none;
    background: #000;
}
.hero-card-old img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.5s;
}
.hero-card-old:hover img {
    opacity: 0.8;
    transform: scale(1.02);
}
.hero-content-old {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}
.hero-content-old h2 {
    font-size: 38px;
    margin-bottom: 15px;
    line-height: 1.2;
}
.hero-content-old p {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 20px;
    max-width: 800px;
}
.btn-ler {
    background: var(--accent);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    font-size: 14px;
}

/* Título da Seção Antiga */
.section-title-old {
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}
.section-title-old h2 {
    font-size: 24px;
    color: var(--primary);
    border-bottom: 3px solid var(--accent);
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: -2px;
}

/* Grid de Notícias Antigo (3 colunas) */
.news-grid-old {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}
@media(max-width: 900px) { .news-grid-old { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .news-grid-old { grid-template-columns: 1fr; } }

.news-card-old {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.news-card-old:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.news-card-old img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.news-card-content-old {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.badge-old {
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 12px;
}
.news-card-content-old h3 {
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    margin-bottom: 10px;
}
.news-card-content-old .meta {
    margin-top: auto;
    font-size: 12px;
    color: #888;
}

/* Slot para o anúncio lateral dentro do grid */
.ad-grid-slot {
    background: #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
    min-height: 250px;
}
.ad-grid-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer Antigo */
.site-footer {
    background: var(--primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}
.footer-content p { color: #aaa; font-size: 14px; margin-bottom: 10px; }

/* =========================================
   NOVOS ESTILOS: CARROSSEL E CATEGORIAS
   ========================================= */

/* Hero Bento Box */
.hero-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 50px;
    min-height: 500px;
}
@media(max-width: 900px) {
    .hero-bento {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.hero-bento-left {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    background: #000;
}
@media(max-width: 900px) { .hero-bento-left { height: 400px; } }

.hero-bento-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 100%;
}
@media(max-width: 600px) {
    .hero-bento-right {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

.side-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    background: #000;
}
@media(max-width: 900px) { .side-card { min-height: 200px; } }

.side-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.5s;
}
.side-card:hover img {
    opacity: 0.9;
    transform: scale(1.05);
}
.side-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    box-sizing: border-box;
}
.side-content h3 {
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}
.side-content .badge-old {
    margin-bottom: 8px;
    font-size: 10px;
    padding: 3px 6px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    text-decoration: none;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px 40px 60px 40px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7), transparent);
    color: white;
}

.carousel-content .badge-old {
    margin-bottom: 15px;
    display: inline-block;
}

.carousel-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
@media(max-width: 900px) { .carousel-content h2 { font-size: 32px; } }
@media(max-width: 600px) { .carousel-content h2 { font-size: 24px; } }

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.indicator.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* Container de Categorias Dinâmicas */
.category-block {
    margin-bottom: 60px;
}

.category-title {
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-title h2 {
    font-size: 28px;
    color: var(--primary);
    border-bottom: 4px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: -2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
@media(max-width: 1100px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media(max-width: 800px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 500px) { .category-grid { grid-template-columns: 1fr; } }

/* Popup Ad */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    background: transparent;
    border-radius: 8px;
}
.popup-close {
    position: absolute;
    top: -40px; right: 0;
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 20px;
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}
.popup-close:hover {
    background: white; color: black;
}

/* Anúncios Flutuantes (Arranha-céu) */
.floating-ad {
    position: fixed;
    top: 150px;
    width: 160px;
    height: 600px;
    z-index: 90;
    display: none; /* Esconde em telas menores */
    background-color: transparent;
}

/* 1200px (container) + 320px (2 ads) + 40px (margens) = 1560px mínimos para exibir */
@media(min-width: 1560px) {
    .floating-ad {
        display: block;
    }
    .floating-ad.left {
        left: calc(50% - 600px - 160px - 15px);
    }
    .floating-ad.right {
        right: calc(50% - 600px - 160px - 15px);
    }
}
