/* ================================================================
   home-news.css  ·  Aura Design System — News List Page
   ================================================================ */

/* ── Hero ────────────────────────────────────────────────────── */
.nws-hero {
    position: relative;
    padding: 5.5rem 0 3.5rem;
    background: var(--aura-bg);
    overflow: hidden;
    text-align: center;
}
.nws-hero-title {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    margin-bottom: 1.25rem;
}
.nws-orb-1 {
    width: 540px; height: 540px;
    background: radial-gradient(circle, rgba(99,102,241,.28) 0%, transparent 70%);
    top: -180px; left: -100px; filter: blur(88px);
}
.nws-orb-2 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(45,212,191,.18) 0%, transparent 70%);
    top: 5%; right: -70px; filter: blur(80px);
}

/* ── Category Filter Bar ─────────────────────────────────────── */
.nws-filter-bar {
    background: var(--aura-bg-2);
    border-top: 1px solid var(--aura-border);
    border-bottom: 1px solid var(--aura-border);
    padding: 1rem 0;
}
.nws-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: .45rem 1.1rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--aura-muted);
    background: var(--aura-surface);
    border: 1px solid var(--aura-border);
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s;
    white-space: nowrap;
    min-height: 36px;
}
.nws-filter-pill:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.18);
    color: var(--aura-text);
}
.nws-filter-pill.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,.35);
}

/* ── Section titles ──────────────────────────────────────────── */
.nws-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--aura-text);
}

/* ── Card shared base ────────────────────────────────────────── */
.nws-featured-card,
.nws-article-card {
    background: var(--aura-surface);
    border: 1px solid var(--aura-border);
    border-radius: var(--aura-radius);
    overflow: hidden;
    color: var(--aura-text);
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.nws-featured-card:hover,
.nws-article-card:hover {
    border-color: rgba(99,102,241,.38);
    box-shadow: 0 0 0 1px rgba(99,102,241,.12), 0 16px 44px rgba(99,102,241,.1);
    transform: translateY(-3px);
    color: var(--aura-text);
}

/* ── Card image area ─────────────────────────────────────────── */
.nws-card-img-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.nws-featured-img-wrap { height: 180px; }
.nws-article-img-wrap  { height: 160px; }

.nws-card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.nws-featured-card:hover .nws-card-img,
.nws-article-card:hover  .nws-card-img { transform: scale(1.04); }

.nws-card-img-placeholder {
    width: 100%; height: 100%;
    background: rgba(99,102,241,.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nws-placeholder-icon {
    font-size: 2.5rem;
    color: rgba(148,163,184,.3);
}

/* Overlay badges on image */
.nws-card-badge {
    position: absolute;
    bottom: .65rem; left: .75rem;
    padding: .18rem .65rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .03em;
    background-color: var(--category-color, #6366f1);
}
.nws-pin-badge {
    position: absolute;
    top: .65rem; right: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(15,23,42,.65);
    backdrop-filter: blur(6px);
    color: #f1f5f9;
    font-size: .8rem;
}

/* ── Card body ───────────────────────────────────────────────── */
.nws-card-body {
    padding: 1.1rem 1.25rem .75rem;
}
.nws-card-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--aura-text);
    line-height: 1.45;
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nws-card-sub {
    font-size: .8rem;
    color: var(--aura-muted);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nws-card-meta {
    display: flex;
    justify-content: space-between;
    padding: .65rem 1.25rem .9rem;
    font-size: .73rem;
    color: var(--aura-muted);
    border-top: 1px solid var(--aura-border);
}

/* ── Divider ─────────────────────────────────────────────────── */
.nws-divider {
    height: 1px;
    background: var(--aura-border);
}

/* ── Pagination ──────────────────────────────────────────────── */
.nws-pagination {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.nws-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    border-radius: var(--aura-radius-sm);
    background: var(--aura-surface);
    border: 1px solid var(--aura-border);
    color: var(--aura-muted);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s;
}
.nws-page-btn:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.18);
    color: var(--aura-text);
}
.nws-page-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(99,102,241,.35);
}
.nws-page-btn.disabled {
    opacity: .35;
    pointer-events: none;
}

/* ── Empty State ─────────────────────────────────────────────── */
.nws-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
}
.nws-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--aura-text);
    margin-bottom: .5rem;
}
.nws-empty-sub {
    font-size: .875rem;
    color: var(--aura-muted);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .nws-hero { padding: 3.5rem 0 2.5rem; }
}
@media (max-width: 767.98px) {
    .nws-hero-title { font-size: 1.875rem !important; }
}
@media (max-width: 575.98px) {
    .nws-hero { padding: 2.75rem 0 2rem; }
    .nws-filter-bar { padding: .75rem 0; }
}
