/* =========================================
   VARIÁVEIS E RESET (Layout Geral)
   ========================================= */
:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --accent-color: #e67e22;
    --text-dark: #222222;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --drawer-bg: #111111;
    --drawer-text: #ecf0f1;
    
    /* Reduzi para 1200px para garantir que caiba em qualquer notebook sem bugs */
    --container-width: 1200px; 
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Fundamental para não quebrar layout */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   CONTAINER SEGURO
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px; 
}

/* =========================================
   BANNER
   ========================================= */
.welcome-banner {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 3.5rem 1rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

/* ESTILO DO TÍTULO DO BANNER (FORÇADO IGUAL AO DRAWER) */
.welcome-banner h1 {
    margin: 0 0 0.8rem 0;
    font-size: 2.8rem; 
    font-family: 'Montserrat', sans-serif !important; /* FORÇA A FONTE */
    font-weight: 800 !important; /* FORÇA O PESO (EXTRA BOLD) */
    text-transform: uppercase;
    letter-spacing: -0.5px !important; /* FORÇA O ESPAÇAMENTO (LETRAS JUNTAS) */
    line-height: 1.2;
}

.welcome-banner p {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.95;
}

/* =========================================
   LAYOUT GRID (PADRÃO OTIMIZADO PARA NOTEBOOK)
   ========================================= */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 2.5rem;
    margin-bottom: 4rem;
    align-items: start;
    min-width: 0;
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.section-header {
    text-align: left;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
}

/* Grid de Notícias Interno */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Destaque Principal */
.news-card.featured-large {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    min-height: 380px;
}

.news-card.featured-large .card-image {
    flex: 1.4; 
    min-height: 380px;
}

.news-card.featured-large .card-content {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
    background-color: var(--text-dark);
    z-index: 10;
}

.badge.exclusive {
    background-color: var(--primary-color);
    left: auto;
    right: 15px;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-content h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
    word-wrap: break-word;
}

.card-content h3 a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.2s;
}

.card-content h3 a:hover {
    color: var(--primary-color);
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.excerpt {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* =========================================
   SIDEBAR (SEGURA)
   ========================================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.widget {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%; 
    position: sticky;
    top: 20px;
}

.widget-title {
    margin-top: 0;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    text-transform: uppercase;
}

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

.trending-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-link {
    text-decoration: none;
    color: var(--text-dark);
    width: 100%;
    display: flex;
    gap: 10px;
}

.trending-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #eee;
    line-height: 1;
    min-width: 30px;
    flex-shrink: 0;
}

.trending-link:hover .trending-number {
    color: var(--primary-color);
}

.trending-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   COUNTER SUBTEXT (ESTILO NOVO)
   ========================================= */
.counter-subtext {
    text-align: center;
    font-family: 'Montserrat', sans-serif; /* Fonte moderna */
    font-weight: 700; /* Negrito */
    text-transform: uppercase; /* Caixa alta */
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    letter-spacing: 0.5px; /* Espaçamento elegante */
    line-height: 1.4;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: #111;
    color: #fff;
    padding: 4rem 0 0 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3, .footer-col h4 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-col p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 0.95rem;
    text-decoration: none;
    transition: padding 0.3s;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #000;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* =========================================
   CORREÇÃO ESPAÇOS LATERAIS NO PC
   ========================================= */
@media (min-width: 992px) {
    .container {
        padding: 0; /* Remove espaços laterais no PC */
    }
    
    .welcome-banner {
        padding: 4rem 0; /* Ajusta o banner para largura total */
    }
}

/* =========================================
   MODO WIDESCREEN (Monitores Maiores que 1600px)
   ========================================= */
@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
    
    .main-grid {
        grid-template-columns: 3fr 1fr;
        gap: 4rem;
    }
    
    .welcome-banner h1 {
        font-size: 3.5rem;
    }
    
    .news-card.featured-large .card-image {
        min-height: 450px;
    }
}

/* =========================================
   TABLET / MOBILE (Menores que 992px)
   ========================================= */
@media (max-width: 991px) {
    .container {
        padding: 0 15px;
    }

    .main-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-card.featured-large {
        flex-direction: column;
        min-height: auto;
    }
    
    .news-card.featured-large .card-image {
        min-height: 250px;
        flex: none;
        height: 250px;
    }
    
    .news-card.featured-large .card-content {
        padding: 1.5rem;
    }
    
    .welcome-banner h1 {
        font-size: 2rem;
    }
    
    .welcome-banner p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }

    .card-content h3 {
        font-size: 1.2rem;
    }

    .footer-grid {
        text-align: center;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* NOTA: Os estilos do Drawer (Overlay, Botão, Painel lateral) foram REMOVIDOS deste arquivo
   para evitar conflitos com base2.css, que agora contém a lógica corrigida do Drawer. */