:root {
    --bg: #070d11;
    --panel: #0f1a20;
    --border: #1f2f38;
    --primary: #00c2a8;
    --text: #e8f1f5;
    --muted: #8faab5;
}

/* ===== PAGE ===== */
.main-content {
    max-width: 1280px;
    width: 100%;
    margin: 24px auto;
    padding: 0 16px;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2rem);
    margin-bottom: 16px;
}

/* ===== FILTERS ===== */
.news-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.news-filters::-webkit-scrollbar {
    display: none;
}

.categoria-btn {
    white-space: nowrap;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.categoria-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.categoria-btn.active {
    background: var(--primary);
    color: #001b17;
    border-color: var(--primary);
}

/* ===== LAYOUT ===== */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
}

/* ===== LIST ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ===== CARD ===== */
.news-card {
    display: flex;
    gap: 20px;
    cursor: pointer;
    align-items: flex-start;
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
}

.news-card img {
    width: 220px;
    height: 130px;
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0;
}

/* ===== CONTENT ===== */
.news-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

.news-meta .category {
    background: rgba(0, 194, 168, 0.15);
    color: var(--primary);
    padding: 4px 12px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
}

.news-meta span {
    opacity: 0.9;
}

.news-meta span:not(.category) {
    font-weight: 500;
}

.news-content h3 {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
}

.news-content p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 90%;
}

.news-card:hover h3 {
    text-decoration: underline;
}

.tempo-leitura {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #777;
    font-size: 0.95rem;
}

/* ===== ADS ===== */
#ads-top .ad-box {
    aspect-ratio: 31 / 7;
    width: 100%;
    margin-bottom: 24px;
}

#ads-sidebar {
    position: sticky;
    top: 180px;
    height: fit-content;
}

#ads-sidebar .ad-box {
    aspect-ratio: 32 / 55;
    width: 100%;
}















.critica-card .nota {
    font-weight: 700;
    color: #f5b301;
}

.critica-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 6px;
    opacity: 0.85;
}
















/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {

    #ads-top,
    #ads-sidebar {
        display: none;
    }

    .main-content {
        margin-top: 9.5rem;
    }
}

@media (max-width: 640px) {
    .news-filters {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(1, auto);
        gap: 10px;
        overflow-x: auto;
        padding: 6px 4px 4px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .categoria-btn {
        scroll-snap-align: start;
        width: 100%;
        text-align: center;
        font-size: 14px;
        padding: 6px 12px;
        border-radius: 8px;
    }

    /* Remove scrollbar */
    .news-filters::-webkit-scrollbar {
        display: none;
    }

    .news-list {
        gap: 22px;
    }

    .news-card {
        gap: 0;
        flex-direction: column;
        border-radius: 18px;
        background: var(--panel);
        color: var(--text);
    }
    
    .news-content {
        padding: 16px;

    }

    .news-card img {
        width: 100%;
        height: 190px;
        border-radius: 16px 16px 0 0;
    }

    .news-content h3 {
        font-size: 18px;
        line-height: 1.35;
    }

    .news-content p {
        font-size: 14px;
        max-width: 100%;
    }

    .news-meta {
        font-size: 11px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .tempo-leitura {
        display: inline-block;
        font-size: 0.85rem;
        color: var(--text);
    }

    .tempo-leitura i {
        margin-right: 4px;
    }
}
