:root {
    --nw-primary: #2563eb;
    --nw-primary-dark: #1e40af;
    --nw-ink: #0f172a;
    --nw-text: #1f2937;
    --nw-muted: #64748b;
    --nw-border: #e2e8f0;
    --nw-bg: #ffffff;
}

body {
    color: var(--nw-text);
    background: #f4f6f9;
    -webkit-font-smoothing: antialiased;
}

/* ===================== Hero ===================== */
.nw-hero {
    padding: 140px 0 64px;
    background: linear-gradient(180deg, #0f172a 0%, #172554 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.nw-hero-content {
    max-width: 760px;
}

.nw-hero-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    margin-bottom: 10px;
}

.nw-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.nw-hero-subtitle {
    font-size: 1.06rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    max-width: 750px;
    line-height: 1.9;
}

/* ===================== Breadcrumb ===================== */
.nw-breadcrumb-wrap {
    background: var(--nw-bg);
    padding: 14px 0;
    border-bottom: 1px solid var(--nw-border);
}

.nw-breadcrumb-wrap .breadcrumb-item a {
    color: var(--nw-primary);
    text-decoration: none;
}

.nw-breadcrumb-wrap .breadcrumb-item.active {
    color: var(--nw-muted);
}

/* ===================== Main ===================== */
.nw-main {
    background: #f4f6f9;
    padding: 40px 0 72px;
}

/* ===================== Tab Bar ===================== */
.nw-tabs-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--nw-bg);
    border-radius: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    width: fit-content;
    padding: 5px;
    margin-bottom: 36px;
}

.nw-tab-btn {
    border: none;
    background: transparent;
    color: var(--nw-muted);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 10px 28px;
    cursor: pointer;
    border-radius: 32px;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nw-tab-btn:hover {
    color: var(--nw-ink);
}

.nw-tab-btn.active {
    background: var(--nw-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}

/* ===================== Tab Panel ===================== */
.nw-tab-panel[hidden] {
    display: none !important;
}

/* ===================== Featured News ===================== */
.nw-featured-news {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--nw-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

a.nw-featured-news:hover {
    color: inherit;
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.nw-featured-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
}

.nw-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 320px;
}

.nw-featured-body {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.nw-badge {
    display: inline-block;
    width: fit-content;
    background: var(--nw-primary);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.nw-featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nw-ink);
    line-height: 1.6;
    margin: 0 0 14px;
}

.nw-featured-summary {
    font-size: 0.9rem;
    color: var(--nw-muted);
    line-height: 1.8;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-featured-meta {
    font-size: 0.82rem;
    color: var(--nw-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nw-featured-meta i {
    color: var(--nw-primary);
}

/* ===================== Card List ===================== */
.nw-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nw-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 24px 28px;
    background: var(--nw-bg);
    border-bottom: 1px solid var(--nw-border);
    text-decoration: none;
    color: inherit;
    transition: background 0.25s ease;
    cursor: pointer;
}

.nw-card:first-child {
    border-top: 1px solid var(--nw-border);
    border-radius: 10px 10px 0 0;
}

.nw-card:last-child {
    border-radius: 0 0 10px 10px;
    border-bottom: none;
}

.nw-card:only-child {
    border-radius: 10px;
}

.nw-card:hover {
    background: #f8fafc;
}

.nw-card-image {
    flex-shrink: 0;
    width: 200px;
    height: 130px;
    border-radius: 8px;
    overflow: hidden;
}

.nw-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nw-card:hover .nw-card-image img {
    transform: scale(1.05);
}

.nw-card-body {
    flex: 1;
    min-width: 0;
}

.nw-card-date {
    font-size: 0.78rem;
    color: var(--nw-muted);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.nw-card-date i {
    color: var(--nw-primary);
    margin-right: 4px;
}

.nw-card-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--nw-ink);
    margin: 0 0 8px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.nw-card:hover .nw-card-title {
    color: var(--nw-primary);
}

.nw-card-text {
    font-size: 0.84rem;
    color: var(--nw-muted);
    margin: 0;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================== Footer ===================== */
.nw-footer {
    background: var(--nw-ink);
    color: rgba(255, 255, 255, 0.6);
    padding: 28px 0;
    font-size: 0.86rem;
}

.nw-footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s ease;
}

.nw-footer-link:hover {
    color: #ffffff;
}

/* ===================== Responsive ===================== */
@media (max-width: 991px) {
    .nw-hero {
        padding: 120px 0 48px;
    }

    .nw-hero-title {
        font-size: 2.3rem;
    }

    .nw-featured-image {
        min-height: 240px;
    }

    .nw-featured-image img {
        min-height: 240px;
    }

    .nw-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .nw-card-image {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 767px) {
    .nw-tabs-bar {
        margin-bottom: 24px;
    }

    .nw-tab-btn {
        padding: 9px 20px;
        font-size: 0.86rem;
    }

    .nw-featured-body {
        padding: 20px 18px;
    }

    .nw-featured-title {
        font-size: 1.2rem;
    }

    .nw-card {
        padding: 18px 16px;
        gap: 12px;
    }

    .nw-card-image {
        height: 160px;
    }

    .nw-main {
        padding: 28px 0 48px;
    }
}

@media (max-width: 576px) {
    .nw-hero-title {
        font-size: 1.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nw-card-image img {
        transition: none;
    }
}
