/* ===================================================================
   News & Articles Page – Tabs + Card Grid + News List
   =================================================================== */

/* ─── Page Header ──────────────────────────────────────────────────── */
.np-page-header {
    background: linear-gradient(135deg, var(--title-color, #1a1a2e) 0%, #2d1520 60%, var(--theme-color, #980d1a) 100%);
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.np-page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.np-page-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.np-page-header__title {
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-size: 42px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 0.5px;
}

.np-page-header__breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.np-page-header__breadcrumb li { color: rgba(255,255,255,0.6); }
.np-page-header__breadcrumb li + li::before { content: '/'; margin-right: 8px; color: rgba(255,255,255,0.3); }
.np-page-header__breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 500; }
.np-page-header__breadcrumb a:hover { color: #fff; }

/* ─── Tabs ─────────────────────────────────────────────────────────── */
.np-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 36px 20px;
    background: #f9f8f6;
}

.np-tab {
    border: none;
    background: #fff;
    color: var(--title-color, #1a1a2e);
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.np-tab:hover {
    background: var(--theme-color, #980d1a);
    color: #fff;
    box-shadow: 0 4px 16px rgba(152, 13, 26, 0.3);
}

.np-tab.active {
    background: var(--theme-color, #980d1a);
    color: #fff;
    box-shadow: 0 4px 16px rgba(152, 13, 26, 0.35);
}

/* ─── Content Panels ───────────────────────────────────────────────── */
.np-panel { display: none; padding: 50px 0 80px; }
.np-panel.active { display: block; }

/* ─── Card Grid (Blogs, Events, Media) ─────────────────────────────── */
.np-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.np-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.np-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(152, 13, 26, 0.15);
}

.np-card:hover .np-card__title { color: var(--theme-color, #980d1a); }

.np-card__img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.np-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.np-card:hover .np-card__img-wrap img { transform: scale(1.08); }

.np-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--theme-color, #980d1a);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 50px;
}

.np-card__body { padding: 24px; }

.np-card__meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.np-card__meta i { margin-right: 6px; color: var(--theme-color, #980d1a); }

.np-card__title {
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-card__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--theme-color, #980d1a);
    margin-top: 16px;
}

.np-card__readmore i { transition: transform 0.3s; }
.np-card:hover .np-card__readmore i { transform: translateX(4px); }

/* ─── News List (Important News - no image) ────────────────────────── */
.np-news-list { max-width: 800px; margin: 0 auto; }

.np-news-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.np-news-item:hover { background: #fafafa; }

.np-news-item:hover .np-news-item__title { color: var(--theme-color, #980d1a); }

.np-news-item__date {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    background: var(--theme-color, #980d1a);
    color: #fff;
    border-radius: 10px;
    padding: 12px 8px;
}

.np-news-item__date-day { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.np-news-item__date-month { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; }

.np-news-item__content { flex: 1; }

.np-news-item__cat {
    font-size: 12px;
    font-weight: 600;
    color: var(--theme-color, #980d1a);
    margin-bottom: 6px;
}

.np-news-item__title {
    font-family: var(--title-font, 'Poppins', sans-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.np-news-item__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Empty State ─────────────────────────────────────────────────── */
.np-empty {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.np-empty i { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }

/* ─── Category Filter ──────────────────────────────────────────────── */
.np-cat-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.np-cat-btn {
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s;
}

.np-cat-btn:hover, .np-cat-btn.active {
    background: var(--theme-color, #980d1a);
    border-color: var(--theme-color, #980d1a);
    color: #fff;
}

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .np-page-header__title { font-size: 32px; }
    .np-card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
}

@media (max-width: 575px) {
    .np-page-header { padding: 85px 0 30px; }
    .np-page-header__title { font-size: 26px; }
    .np-tabs { padding: 24px 12px; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
    .np-tab { font-size: 14px; padding: 10px 22px; white-space: nowrap; flex-shrink: 0; }
    .np-news-item { flex-direction: column; gap: 12px; }
    .np-news-item__date { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
}
