/* ==========================================================================
   1. CONTAINER PRINCIPAL E TITULAR DA PÁGINA
   ========================================================================== */
.news-container {
    max-width: 900px; /* Largura ideal para leitura de artigos */
    margin: 3rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-header-title {
    font-size: 2rem;
    color: var(--primary-color);
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.75rem;
}

/* ==========================================================================
   2. CARDS DE NOTÍCIAS (LAYOUT HORIZONTAL REORGANIZÁVEL)
   ========================================================================== */
.news-card {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column; /* Mobile primeiro */
    gap: 1.5rem;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

/* Informações de Texto da Notícia */
.news-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.news-date {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    color: #1e3a8a;
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Corta o texto em 3 linhas para ficar simétrico */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-readmore {
    color: #0369a1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-readmore:hover {
    text-decoration: underline;
}

/* ==========================================================================
   3. MONETIZAÇÃO INTEGRADA (GOOGLE ADS IN-FEED)
   ========================================================================== */
.ad-news-row {
    background-color: #fafafa;
    border: 1px dashed #cbd5e1;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ad-news-row::before {
    content: "SPONSORED UPDATE";
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 0.6rem;
    font-weight: bold;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   4. COMPONENTE DE PAGINAÇÃO LIMPO E MODERNO
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-dots {
    color: #94a3b8;
    padding: 0 0.25rem;
}

/* ==========================================================================
   5. AJUSTES RESPONSIVOS (MEDIA QUERIES)
   ========================================================================== */
@media (min-width: 768px) {
    /* Em telas maiores, as notícias viram linhas horizontais e o anúncio ganha mais destaque */
    .news-card {
        flex-direction: row;
    }
}
