/* =====================================================
   News & Blog hub — additions only.
   Reuses news.css for the card grid + pagination.
   ===================================================== */

/* news.css sets body padding-top to 120px (designed for the old standalone
   news/blog list pages). Our hub uses the contact-hero pattern which expects
   the standard 78px header offset, so restore it here. Loaded after news.css
   in the template, so plain cascade wins — no !important needed. */
body {
    padding-top: var(--header-height);
}

.news-blog-page {
    background: #f6f8fc;
    padding-block: 0 clamp(2rem, 4vw, 3.5rem);
}

.news-blog-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ── Filter chips: flush against the hero's bottom edge ─ */
.news-blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
    padding-top: 0;
}

.news-blog-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.15rem;
    border: 1px solid #cdd6e2;
    border-radius: 999px;
    background: #fff;
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.news-blog-chip:hover,
.news-blog-chip:focus-visible {
    border-color: var(--color-primary);
    background: #eef2fa;
    color: var(--color-primary);
}

.news-blog-chip--active,
.news-blog-chip--active:hover,
.news-blog-chip--active:focus-visible {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ── Type badge above each card title ───────────────── */
.news-blog-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.55rem;
    padding: 0.18rem 0.6rem;
    border-radius: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
}

html[dir="rtl"] .news-blog-badge { letter-spacing: 0; }

.news-blog-badge--news {
    background: #fdecec;
    color: #c0223b;
}

.news-blog-badge--blog {
    background: #e6efff;
    color: #1e3a8a;
}

.news-pagination .pagination {
    flex-wrap: wrap;
    gap: 0.35rem;
}

.news-pagination .page-link {
    display: inline-flex;
    min-width: 2.5rem;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    font-weight: 700;
    line-height: 1;
}

.news-pagination .page-link:hover,
.news-pagination .page-link:focus {
    border-color: var(--color-primary-light);
    background: #eef2fa;
    color: var(--color-primary);
}

.news-pagination .page-item.active .page-link {
    color: #fff;
}

.news-pagination .page-item.disabled .page-link {
    border-color: #e1e7f0;
    background: #f3f6fa;
    color: #93a1b5;
}

@media (max-width: 640px) {
    .news-blog-filters { gap: 0.45rem; }
    .news-blog-chip { padding: 0.42rem 0.95rem; font-size: 0.88rem; }
}
