/* ==========================================================================
 * ALADDIN VINA — News / Blog (trang tin tức + card dùng chung trang chủ)
 * Palette bám theme: cam var(--brand-primary, #EE4D2D), kem ấm, xanh sage nhẹ.
 * ========================================================================== */

:root {
    --nw-primary: var(--brand-primary, #EE4D2D);
    --nw-primary-dark: var(--brand-primary-dark, #C92C0D);
    --nw-primary-soft: #FEF1ED;
    --nw-sage: #EEF4EC;
    --nw-sage-dark: #5F7A5A;
    --nw-cream: #FFFBF5;
    --nw-ink: #1A1F1A;
    --nw-ink-2: #4A5249;
    --nw-muted: #7A8378;
    --nw-line: #EEEDE7;
    --nw-radius: 20px;
    --nw-radius-sm: 12px;
    --nw-shadow: 0 6px 24px rgba(26, 31, 26, 0.06);
    --nw-shadow-hover: 0 18px 44px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.16);
    --nw-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nw-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.news-page,
.news-page *,
.news-card,
.news-card * {
    font-family: var(--nw-font) !important;
    letter-spacing: normal;
    box-sizing: border-box;
}

.news-page {
    background: linear-gradient(180deg, var(--nw-cream) 0%, #FFFFFF 520px);
    color: var(--nw-ink);
    padding-bottom: 32px;
}

.news-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------- Breadcrumb ---------------- */
.news-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 22px;
}
.news-breadcrumb a { color: inherit; text-decoration: none; transition: color .2s; }
.news-breadcrumb a:hover { color: #FFFFFF; text-decoration: underline; }
.news-breadcrumb [aria-current] { color: #FFFFFF; font-weight: 600; }
.news-breadcrumb--dark { color: var(--nw-muted); padding-top: 22px; margin-bottom: 18px; }
.news-breadcrumb--dark a:hover { color: var(--nw-primary); }

/* ---------------- Hero (Clean Modern Minimal Header) ---------------- */
.news-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 38px 0 42px;
    color: var(--nw-ink);
    background:
        radial-gradient(900px 360px at 50% 0%, rgba(254, 237, 232, 0.75) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, #FFFFFF 0%, #FFFDFB 45%, #FFF7F2 100%);
    border-bottom: 1px solid #F0E6DE;
    min-height: auto;
}

.news-hero__content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.news-hero .news-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 16px;
}
.news-hero .news-breadcrumb a {
    color: #718096;
    text-decoration: none;
    transition: color .2s;
}
.news-hero .news-breadcrumb a:hover {
    color: var(--nw-primary);
}
.news-hero .news-breadcrumb [aria-current] {
    color: #1A202C;
    font-weight: 600;
}

.news-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 999px;
    background: #FFF1EC;
    border: 1px solid #FED7CC;
    color: var(--nw-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.06);
}
.news-hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--nw-primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.2);
}

.news-hero__title {
    margin: 0 0 14px;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.22;
    font-weight: 800;
    color: #1A1F1A;
    letter-spacing: -0.025em !important;
}
.news-hero__title-base {
    display: inline;
    color: #1A1F1A;
}
.news-hero__title-accent,
.news-hero__title span {
    background: linear-gradient(135deg, var(--brand-primary, #EE4D2D) 0%, #FF6B42 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline;
}
.news-hero__subtitle {
    max-width: 540px;
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.65;
    color: #4A5568;
}

/* Suggestions chips */
.news-hero__suggestions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 12.5px;
}
.news-hero__suggestions-label {
    color: #718096;
    font-weight: 500;
    flex-shrink: 0;
}
.news-hero__suggestions-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.news-hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #4A5568;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all .2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.news-hero__chip:hover {
    border-color: var(--nw-primary);
    color: var(--nw-primary);
    background: #FFF5F2;
    transform: translateY(-1px);
}





/* ---------------- Category Filter Tabs ---------------- */
.news-cat-nav {
    background: #FFFFFF;
    border-bottom: 1px solid var(--nw-line);
    padding: 10px 0;
    position: sticky;
    top: 56px;
    z-index: 90;
    transition: box-shadow .2s;
}
.news-cat-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
}
.news-cat-scroll::-webkit-scrollbar { display: none; }
.news-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #F8F9F8;
    border: 1px solid #E5E8E4;
    color: var(--nw-ink-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .2s;
}
.news-cat-pill:hover {
    border-color: var(--nw-primary);
    color: var(--nw-primary);
    background: var(--nw-primary-soft);
}
.news-cat-pill.is-active {
    background: var(--nw-primary);
    border-color: var(--nw-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.28);
}
.news-cat-count {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.06);
}
.news-cat-pill.is-active .news-cat-count {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.news-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 540px;
    padding: 6px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #F6DCD2;
    box-shadow: 0 12px 32px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.12);
}
.news-search__icon { position: absolute; left: 22px; color: var(--nw-muted); pointer-events: none; }
.news-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 12px 12px 46px;
    font-size: 14.5px;
    color: var(--nw-ink);
}
.news-search button {
    flex-shrink: 0;
    border: 0;
    border-radius: 999px;
    padding: 12px 26px;
    background: linear-gradient(135deg, var(--nw-primary), #FF7A45);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform .3s var(--nw-ease), box-shadow .3s;
}
.news-search button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.4); }

/* ---------------- Body ---------------- */
.news-body { padding-top: 24px; }

.news-section-head {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 28px 0 18px;
    padding-bottom: 12px;
}
.news-section-head::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--nw-primary) 0, var(--nw-primary) 56px, var(--nw-line) 56px);
}
.news-section-head h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--nw-ink); }
.news-section-head__more { color: var(--nw-primary); font-weight: 600; font-size: 14px; text-decoration: none; }
.news-section-head__more:hover { text-decoration: underline; }

.news-results-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.news-results-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.news-results-head span { color: var(--nw-muted); font-size: 14px; }

/* ---------------- Grid ---------------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.news-list-compact { display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
 * NEWS CARD (shared)
 * ========================================================================== */
.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--nw-line);
    border-radius: var(--nw-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(26, 31, 26, 0.03);
    transition: transform .5s var(--nw-ease), box-shadow .5s var(--nw-ease), border-color .3s;
    animation: nwFadeUp .7s var(--nw-ease) both;
}
.news-grid .news-card:nth-child(2) { animation-delay: .06s; }
.news-grid .news-card:nth-child(3) { animation-delay: .12s; }
.news-grid .news-card:nth-child(4) { animation-delay: .18s; }
.news-grid .news-card:nth-child(5) { animation-delay: .24s; }
.news-grid .news-card:nth-child(6) { animation-delay: .3s; }

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--nw-shadow-hover);
    border-color: #FAD3C8;
}

.news-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--nw-sage);
}
.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .9s var(--nw-ease);
}
.news-card:hover .news-card__img { transform: scale(1.07); }
.news-card__media::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent);
    pointer-events: none;
}

.news-card__badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 1;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    color: var(--nw-primary);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.news-card__flag {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 1;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFCE3D, #FFB020);
    color: #4A3200;
    font-size: 12px;
    font-weight: 800;
}

.news-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 20px;
}
.news-card__title {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2; line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__title a { color: var(--nw-ink); text-decoration: none; transition: color .25s; }
.news-card:hover .news-card__title a,
.news-card__title a:hover { color: var(--nw-primary); }

.news-card__excerpt {
    margin: 0 0 16px;
    color: var(--nw-ink-2);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3; line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--nw-line);
    color: var(--nw-muted);
    font-size: 12.5px;
}
.news-card__meta-item { display: inline-flex; align-items: center; gap: 5px; }
.news-card__more {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--nw-primary);
    font-weight: 700;
    text-decoration: none;
}
.news-card__more svg { transition: transform .35s var(--nw-ease); }
.news-card:hover .news-card__more svg { transform: translateX(4px); }

/* Featured variant */
.news-featured { margin-bottom: 8px; }
.news-card--featured {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    border-radius: 26px;
    box-shadow: var(--nw-shadow);
}
.news-card--featured .news-card__media { aspect-ratio: auto; min-height: 380px; }
.news-card--featured .news-card__body { padding: 38px 40px; justify-content: center; }
.news-card--featured .news-card__title { font-size: 28px; line-height: 1.3; -webkit-line-clamp: 3; line-clamp: 3; letter-spacing: -0.015em !important; }
.news-card--featured .news-card__excerpt { font-size: 15.5px; -webkit-line-clamp: 4; line-clamp: 4; }
.news-card--featured .news-card__more {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--nw-primary);
    color: #FFFFFF;
}
.news-card--featured:hover { transform: translateY(-4px); }

/* Compact variant (mobile / list) */
.news-card--compact {
    flex-direction: row;
    border-radius: 16px;
    animation: none;
}
.news-card--compact .news-card__media { flex: 0 0 116px; aspect-ratio: auto; min-height: 112px; }
.news-card--compact .news-card__media::after { display: none; }
.news-card--compact .news-card__badge { left: 6px; top: 6px; padding: 3px 8px; font-size: 10px; max-width: calc(100% - 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-card--compact .news-card__body { padding: 10px 12px; min-width: 0; }
.news-card--compact .news-card__title { font-size: 14px; margin-bottom: 4px; }
.news-card--compact .news-card__excerpt { font-size: 12.5px; -webkit-line-clamp: 2; line-clamp: 2; margin-bottom: 6px; line-height: 1.5; }
.news-card--compact .news-card__meta { padding-top: 6px; gap: 10px; font-size: 11.5px; }
.news-card--compact .news-card__meta-item:nth-child(2) { display: none; }
.news-card--compact:hover { transform: translateY(-2px); }

/* Mini variant (sidebar) */
.news-card--mini {
    flex-direction: row;
    gap: 12px;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    background: transparent;
    animation: none;
}
.news-card--mini .news-card__media { flex: 0 0 84px; height: 64px; aspect-ratio: auto; border-radius: 12px; }
.news-card--mini .news-card__media::after { display: none; }
.news-card--mini .news-card__body { padding: 0; min-width: 0; }
.news-card--mini .news-card__date { font-size: 11.5px; color: var(--nw-muted); margin-bottom: 3px; }
.news-card--mini .news-card__title { font-size: 13.5px; margin: 0; line-height: 1.45; }
.news-card--mini:hover { transform: none; box-shadow: none; }

/* ---------------- Empty / Pagination / CTA ---------------- */
.news-empty {
    text-align: center;
    padding: 64px 24px;
    border: 1px dashed #F3C9BC;
    border-radius: var(--nw-radius);
    background: #FFFFFF;
}
.news-empty__icon { font-size: 46px; margin-bottom: 10px; }
.news-empty h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.news-empty p { margin: 0 0 20px; color: var(--nw-muted); }

.news-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--nw-primary);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform .3s var(--nw-ease), box-shadow .3s;
}
.news-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.35); }
.news-btn--light { background: #FFFFFF; color: var(--nw-primary) !important; }

.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 32px 0 0;
}
.news-page-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--nw-line);
    background: #FFFFFF;
    color: var(--nw-ink-2);
    font-weight: 700;
    text-decoration: none;
    transition: all .25s;
}
a.news-page-btn:hover { border-color: var(--nw-primary); color: var(--nw-primary); }
.news-page-btn.is-active { background: var(--nw-primary); border-color: var(--nw-primary); color: #FFFFFF; }
.news-page-btn.is-disabled { opacity: .4; }

.news-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 36px;
    margin-bottom: 0;
    padding: 28px 32px;
    border-radius: 24px;
    background: linear-gradient(120deg, var(--nw-primary) 0%, #FF7A45 60%, #FFB020 130%);
    color: #FFFFFF;
}
.news-cta::after {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}
.news-cta h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #FFFFFF; }
.news-cta p { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 14.5px; }
.news-cta .news-btn { position: relative; z-index: 1; flex-shrink: 0; }

/* ==========================================================================
 * DETAIL PAGE
 * ========================================================================== */
.news-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 2000;
    background: transparent;
}
.news-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--nw-primary), #FFB020);
    transition: width .1s linear;
}

.news-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.news-article {
    background: #FFFFFF;
    border: 1px solid var(--nw-line);
    border-radius: 26px;
    padding: 40px 48px 36px;
    box-shadow: var(--nw-shadow);
}
.news-article__cat {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--nw-primary-soft);
    color: var(--nw-primary);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}
.news-article__title {
    margin: 16px 0 20px;
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.25;
    font-weight: 800;
    color: var(--nw-ink);
    letter-spacing: -0.02em !important;
}
.news-article__byline { display: flex; align-items: center; gap: 12px; }
.news-article__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: contain;
    background: #FFFFFF;
    border: 1px solid var(--nw-line);
    padding: 4px;
}
.news-article__byline strong { display: block; font-size: 14px; color: var(--nw-ink); }
.news-article__byline small { color: var(--nw-muted); font-size: 12.5px; }

.news-article__cover {
    margin: 28px -16px 26px;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--nw-sage);
}
.news-article__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-article__lead {
    margin: 0 0 22px;
    padding: 18px 22px;
    border-left: 4px solid var(--nw-primary);
    border-radius: 0 14px 14px 0;
    background: var(--nw-cream);
    font-size: 16.5px;
    line-height: 1.7;
    font-weight: 500;
    color: var(--nw-ink);
}

.news-article__content {
    font-size: 16.5px;
    line-height: 1.85;
    color: #2D332C;
    overflow-wrap: anywhere;
}
.news-article__content > * + * { margin-top: 1.1em; }
.news-article__content p { margin: 0 0 1.1em; }
.news-article__content h2,
.news-article__content h3,
.news-article__content h4 {
    margin: 1.8em 0 .6em;
    font-weight: 800;
    color: var(--nw-ink);
    line-height: 1.35;
}
.news-article__content h2 { font-size: 24px; }
.news-article__content h3 { font-size: 20px; }
.news-article__content h3::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--nw-primary);
    vertical-align: middle;
}
.news-article__content a { color: var(--nw-primary); text-decoration: underline; text-underline-offset: 3px; }
.news-article__content img { max-width: 100%; height: auto; border-radius: 14px; }
.news-article__content ul,
.news-article__content ol { padding-left: 1.4em; }
.news-article__content li { margin-bottom: .45em; }
.news-article__content li::marker { color: var(--nw-primary); }
.news-article__content blockquote {
    margin: 1.5em 0;
    padding: 18px 22px;
    border-radius: 14px;
    background: var(--nw-sage);
    color: var(--nw-sage-dark);
    font-style: italic;
}
.news-article__content table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.news-article__content th,
.news-article__content td { border: 1px solid var(--nw-line); padding: 10px 12px; }
.news-article__content th { background: var(--nw-cream); }

.news-article__foot { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--nw-line); }
.news-share { display: flex; align-items: center; gap: 10px; color: var(--nw-muted); font-size: 14px; font-weight: 600; }
.news-share__btn {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    color: #FFFFFF;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .3s var(--nw-ease);
}
.news-share__btn:hover { transform: translateY(-3px); }
.news-share__btn--fb { background: #1877F2; }
.news-share__btn--zalo { background: #0068FF; }
.news-share__btn--copy { background: var(--nw-sage); color: var(--nw-ink); }

.news-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.news-prevnext__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--nw-line);
    text-decoration: none;
    transition: border-color .25s, background .25s;
}
.news-prevnext__item small { color: var(--nw-muted); font-size: 12px; font-weight: 600; }
.news-prevnext__item span { color: var(--nw-ink); font-weight: 700; font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-prevnext__item:hover { border-color: var(--nw-primary); background: var(--nw-primary-soft); }
.news-prevnext__item--next { text-align: right; grid-column: 2; }

/* Sidebar */
.news-sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.news-side-box {
    background: #FFFFFF;
    border: 1px solid var(--nw-line);
    border-radius: var(--nw-radius);
    padding: 22px;
}
.news-side-box__title { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--nw-ink); }
.news-side-topics { list-style: none; margin: 0; padding: 0; }
.news-side-topics a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--nw-ink-2);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.news-side-topics a em { font-style: normal; font-size: 12px; color: var(--nw-muted); background: var(--nw-sage); padding: 1px 8px; border-radius: 999px; }
.news-side-topics a:hover,
.news-side-topics a.is-active { background: var(--nw-primary-soft); color: var(--nw-primary); }
.news-side-list { display: flex; flex-direction: column; gap: 14px; }
.news-side-cta {
    padding: 24px 22px;
    border-radius: var(--nw-radius);
    background: linear-gradient(150deg, var(--nw-primary), #FF8A50);
    color: #FFFFFF;
}
.news-side-cta h2 { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: #FFFFFF; }
.news-side-cta p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .9); }

/* Suggested products */
.news-products__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.news-product {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--nw-line);
    background: #FFFFFF;
    text-decoration: none;
    transition: transform .45s var(--nw-ease), box-shadow .45s var(--nw-ease);
}
.news-product:hover { transform: translateY(-4px); box-shadow: var(--nw-shadow-hover); }
.news-product__thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #FAFAF7; margin-bottom: 6px; }
.news-product__thumb img { width: 100%; height: 100%; object-fit: contain; }
.news-product__thumb em { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--nw-primary); color: #FFFFFF; font-style: normal; font-size: 11.5px; font-weight: 700; }
.news-product__brand { font-size: 11.5px; font-weight: 700; color: var(--nw-sage-dark); text-transform: uppercase; }
.news-product__name { font-size: 14px; font-weight: 600; color: var(--nw-ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.news-product__price { font-size: 16px; font-weight: 800; color: var(--nw-primary); }
.news-product__price del { margin-left: 6px; font-size: 12.5px; font-weight: 500; color: var(--nw-muted); }

.news-related { margin-top: 12px; }

/* ---------------- Animations ---------------- */
@keyframes nwFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .news-card { animation: none !important; }
    .news-card, .news-card__img { transition: none !important; }
}

/* ---------------- Responsive ---------------- */
/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
    .news-detail { grid-template-columns: 1fr; }
    .news-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
    .news-side-cta { grid-column: 1 / -1; }
    .news-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .news-page {
        padding-bottom: 8px !important;
    }
    .news-hero {
        padding: 32px 0 36px !important;
        min-height: auto !important;
        background:
            radial-gradient(500px 300px at 90% 20%, rgba(254, 237, 232, 0.6) 0%, rgba(255, 255, 255, 0) 70%),
            linear-gradient(180deg, #FFFFFF 0%, #FFFDFB 45%, #FFF6F1 100%) !important;
        border-bottom: 1px solid #F0E6DE !important;
    }
    .news-hero__content {
        max-width: 100% !important;
    }
    .news-hero .news-breadcrumb { margin-bottom: 12px !important; }
    .news-hero__title { font-size: 28px !important; line-height: 1.25 !important; margin: 0 0 10px !important; }
    .news-hero__subtitle { font-size: 14px !important; line-height: 1.55 !important; margin-bottom: 18px !important; }
    .news-cat-nav { top: 50px; }
    .news-body { padding-top: 20px !important; }
    .news-section-head { margin: 18px 0 14px !important; padding-bottom: 8px !important; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .news-pagination { margin: 24px 0 0 !important; gap: 6px !important; }
    .news-cta {
        margin-top: 24px !important;
        margin-bottom: 0 !important;
        padding: 20px 20px !important;
        border-radius: 16px !important;
    }
}

/* ---------------- Mobile (<= 640px) ---------------- */
@media (max-width: 640px) {
    .news-container {
        padding: 0 14px !important;
    }
    .news-page {
        padding-bottom: 10px !important;
    }

    /* Hero Banner: bright, radiant, immaculate white-to-soft-coral, no muddy tones */
    .news-hero {
        padding: 16px 0 20px !important;
        min-height: auto !important;
        background: linear-gradient(180deg, #FFFFFF 0%, #FFFDFB 50%, #FFF5EF 100%) !important;
        border-bottom: 1px solid #EFE4DC !important;
    }
    .news-hero__content {
        max-width: 100% !important;
    }
    .news-hero .news-breadcrumb {
        margin-bottom: 8px !important;
        font-size: 12px !important;
        color: #718096 !important;
    }
    .news-hero .news-breadcrumb a {
        color: #718096 !important;
    }
    .news-hero .news-breadcrumb a:hover {
        color: var(--nw-primary) !important;
    }
    .news-hero .news-breadcrumb [aria-current] {
        color: #1A202C !important;
        font-weight: 700 !important;
    }
    .news-hero__badge {
        font-size: 11px !important;
        padding: 4px 11px !important;
        margin-bottom: 8px !important;
        background: #FFF1EC !important;
        border: 1px solid #FED7CC !important;
        color: var(--brand-primary, #EE4D2D) !important;
    }
    .news-hero__badge-dot {
        width: 6px !important;
        height: 6px !important;
    }
    .news-hero__title {
        font-size: 22px !important;
        line-height: 1.28 !important;
        margin: 0 0 8px !important;
        letter-spacing: -0.02em !important;
    }
    .news-hero__title-base {
        display: block !important;
        color: #1A1F1A !important;
    }
    .news-hero__title-accent {
        display: inline-block !important;
        background: linear-gradient(90deg, var(--brand-primary, #EE4D2D), #FF6A3D) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        color: transparent !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
    }
    .news-hero__subtitle {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin: 0 0 14px !important;
        color: #4A5568 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }




    /* Mobile Search Bar: balanced, responsive, native pill */
    .news-search {
        max-width: 100% !important;
        padding: 4px 4px 4px 12px !important;
        background: #FFFFFF !important;
        border: 1.5px solid #F1D4CA !important;
        border-radius: 999px !important;
        box-shadow: 0 4px 16px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.08) !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }
    .news-search:focus-within {
        border-color: var(--nw-primary) !important;
        box-shadow: 0 6px 20px rgba(var(--brand-primary-rgb, 238, 77, 45), 0.18) !important;
    }
    .news-search__icon {
        position: static !important;
        width: 16px !important;
        height: 16px !important;
        color: #A0AEC0 !important;
        flex-shrink: 0 !important;
    }
    .news-search input {
        padding: 8px 4px !important;
        font-size: 13.5px !important;
        min-width: 0 !important;
        flex: 1 !important;
    }
    .news-search button {
        padding: 9px 18px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 999px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    /* Mobile Suggestion Chips */
    .news-hero__suggestions {
        margin-top: 10px !important;
        gap: 6px !important;
        font-size: 11.5px !important;
        flex-wrap: wrap !important;
    }
    .news-hero__suggestions-label {
        font-size: 11.5px !important;
        color: #718096 !important;
    }
    .news-hero__suggestions-list {
        gap: 6px !important;
    }
    .news-hero__chip {
        padding: 3px 10px !important;
        font-size: 11px !important;
        border-radius: 999px !important;
        background: #FFFFFF !important;
        border: 1px solid #E2E8F0 !important;
    }

    /* Category Filter Nav on Mobile */
    .news-cat-nav {
        padding: 8px 0 !important;
        top: 48px !important;
    }
    .news-cat-pill {
        padding: 5px 12px !important;
        font-size: 12px !important;
    }
    .news-cat-count {
        font-size: 10px !important;
        padding: 0 5px !important;
    }

    /* Body & Section Header */
    .news-body {
        padding-top: 10px !important;
    }
    .news-section-head {
        margin: 10px 0 10px !important;
        padding-bottom: 6px !important;
    }
    .news-section-head h2 {
        font-size: 17px !important;
    }

    /* News Grid & Cards on Mobile */
    .news-page .news-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .news-card {
        border-radius: 14px !important;
    }

    /* Featured (First) Card */
    .news-page .news-grid .news-card:first-child .news-card__media {
        aspect-ratio: 16 / 9;
    }
    .news-page .news-grid .news-card:first-child .news-card__body {
        padding: 14px 16px !important;
    }
    .news-page .news-grid .news-card:first-child .news-card__title {
        font-size: 16px !important;
        line-height: 1.4 !important;
        margin-bottom: 6px !important;
    }
    .news-page .news-grid .news-card:first-child .news-card__excerpt {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
    }
    .news-page .news-grid .news-card:first-child .news-card__meta {
        padding-top: 10px !important;
        font-size: 12px !important;
    }

    /* Subsequent Cards: Compact Horizontal Rows */
    .news-page .news-grid .news-card:not(:first-child) {
        flex-direction: row !important;
        align-items: stretch;
        border-radius: 14px !important;
        animation: none;
    }
    .news-page .news-grid .news-card:not(:first-child):hover { transform: none; }
    .news-page .news-grid .news-card:not(:first-child) .news-card__media {
        flex: 0 0 115px;
        width: 115px;
        aspect-ratio: auto;
        min-height: 98px;
    }
    .news-page .news-grid .news-card:not(:first-child) .news-card__media::after { display: none; }
    .news-page .news-grid .news-card:not(:first-child) .news-card__badge {
        left: 6px; top: 6px;
        max-width: calc(100% - 12px);
        padding: 2px 6px;
        font-size: 9px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .news-page .news-grid .news-card:not(:first-child) .news-card__body {
        min-width: 0;
        padding: 8px 10px !important;
    }
    .news-page .news-grid .news-card:not(:first-child) .news-card__title {
        font-size: 13.5px !important;
        line-height: 1.38 !important;
        margin-bottom: 4px !important;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    .news-page .news-grid .news-card:not(:first-child) .news-card__excerpt { display: none !important; }
    .news-page .news-grid .news-card:not(:first-child) .news-card__meta {
        gap: 8px;
        padding-top: 4px !important;
        border-top: 0;
        font-size: 11px !important;
    }
    .news-page .news-grid .news-card:not(:first-child) .news-card__more { display: none; }

    /* Pagination - Touch Friendly & Clean Spacing */
    .news-pagination {
        margin: 16px 0 0 !important;
        gap: 6px !important;
    }
    .news-page-btn {
        min-width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    /* Consultation CTA Card - Zero extra whitespace */
    .news-cta {
        margin-top: 14px !important;
        margin-bottom: 0 !important;
        padding: 16px 14px !important;
        border-radius: 14px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .news-cta h2 {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }
    .news-cta p {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }
    .news-cta .news-btn {
        width: 100% !important;
        justify-content: center !important;
        min-height: 40px !important;
        border-radius: 999px !important;
        font-size: 13px !important;
        margin-top: 4px !important;
    }

    /* Article detail responsive */
    .news-article { padding: 18px 14px !important; border-radius: 14px !important; }
    .news-article__cover { margin: 14px -6px !important; border-radius: 12px !important; }
    .news-article__content { font-size: 14.5px !important; }
    .news-sidebar { grid-template-columns: 1fr !important; }
    .news-prevnext { grid-template-columns: 1fr !important; }
    .news-prevnext__item--next { grid-column: auto !important; }
    .news-products__grid { gap: 10px !important; }
}

/* ---------------- Mục lục bài viết (TOC) — cột cố định bên trái ---------------- */
/* --nw-sticky-top: chiều cao header dính, JS đo thật & cập nhật. */
.news-article__content h2[id],
.news-article__content h3[id] { scroll-margin-top: calc(var(--nw-sticky-top, 96px) + 20px); }

.news-container:has(.news-detail--toc) { max-width: 1440px; }
.news-detail--toc { grid-template-columns: 272px minmax(0, 1fr) 300px; gap: 28px; }
.news-detail--toc .news-sidebar { top: calc(var(--nw-sticky-top, 96px) + 16px); }

.news-toc {
    position: sticky;
    top: calc(var(--nw-sticky-top, 96px) + 16px);
    max-height: calc(100vh - var(--nw-sticky-top, 96px) - 32px);
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--nw-line);
    border-radius: var(--nw-radius);
    box-shadow: 0 6px 24px rgba(30, 40, 30, .06);
    overflow: hidden;
    transition: top .2s ease, max-height .2s ease;
}
.news-toc__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 12px;
}
.news-toc__title {
    flex: 1;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--nw-ink);
}
.news-toc__pct { font-size: 12px; font-weight: 700; color: var(--nw-primary); font-variant-numeric: tabular-nums; }
.news-toc__close { display: none; flex-shrink: 0; border: 0; background: var(--nw-sage); color: var(--nw-ink); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.news-toc__progress { height: 3px; margin: 0 18px; border-radius: 3px; background: var(--nw-line); overflow: hidden; }
.news-toc__progress span { display: block; width: 0; height: 100%; background: var(--nw-primary); transition: width .15s linear; }
.news-toc__body {
    padding: 10px 8px 14px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%);
}
.news-toc:hover .news-toc__body { scrollbar-color: rgba(0, 0, 0, .18) transparent; }
.news-toc__body::-webkit-scrollbar { width: 6px; }
.news-toc__body::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
.news-toc:hover .news-toc__body::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .18); }

.news-toc-list,
.news-toc-list ol { list-style: none; margin: 0; padding: 0; }
.news-toc-list { counter-reset: toc; display: flex; flex-direction: column; gap: 2px; }
.news-toc-list > li { counter-increment: toc; }
.news-toc-list ol { counter-reset: tocsub; margin: 2px 0 6px 19px; padding-left: 6px; border-left: 1px solid var(--nw-line); }
.news-toc-list ol > li { counter-increment: tocsub; }
.news-toc-list a {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--nw-ink-2);
    font-size: 13.5px;
    line-height: 1.45;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.news-toc-list > li > a { font-weight: 600; color: var(--nw-ink); }
.news-toc-list > li > a::before { content: counter(toc); flex-shrink: 0; min-width: 18px; font-size: 12px; font-weight: 800; color: var(--nw-muted); }
.news-toc-list ol a { padding: 5px 10px; font-size: 13px; color: var(--nw-muted); }
.news-toc-list a:hover { background: #F4F5F1; color: var(--nw-ink); }
.news-toc-list a.is-active { background: var(--nw-primary-soft); color: var(--nw-primary); font-weight: 700; }
.news-toc-list a.is-active::after {
    content: '';
    position: absolute;
    left: 0; top: 7px; bottom: 7px;
    width: 3px;
    border-radius: 3px;
    background: var(--nw-primary);
}
.news-toc-list > li.is-current > a::before { color: var(--nw-primary); }
.news-toc-list > li.is-current > a:not(.is-active) { color: var(--nw-primary); }

/* Desktop: chỉ mở mục con của phần đang đọc cho gọn */
@media (min-width: 1081px) {
    .news-toc-list > li > ol { display: none; }
    .news-toc-list > li.is-current > ol { display: block; }
    .news-toc-caret { display: inline-block; margin-left: auto; padding-left: 6px; font-size: 11px; color: var(--nw-muted); font-style: normal; transition: transform .2s; }
    .news-toc-list > li.is-current .news-toc-caret { transform: rotate(90deg); color: var(--nw-primary); }
}
@media (max-width: 1080px) {
    .news-toc-caret { display: none; }
}

.news-toc-fab, .news-toc-backdrop { display: none; }

/* Màn hình vừa: cột trái + bài, sidebar phải xuống dưới */
@media (max-width: 1280px) {
    .news-detail--toc { grid-template-columns: 240px minmax(0, 1fr); }
    .news-detail--toc .news-sidebar { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: repeat(3, 1fr); }
}

/* Tablet/mobile: mục lục thành ngăn kéo trượt từ trái + nút nổi bên trái */
@media (max-width: 1080px) {
    .news-detail--toc { grid-template-columns: 1fr; }
    .news-detail--toc .news-sidebar { grid-template-columns: repeat(2, 1fr); }
    .news-toc {
        position: fixed;
        top: 0; bottom: 0; left: 0;
        z-index: 100001;
        width: min(86vw, 340px);
        max-height: none;
        border-radius: 0 18px 18px 0;
        transform: translateX(-105%);
        transition: transform .3s var(--nw-ease);
        box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
    }
    .news-toc.is-open { transform: translateX(0); }
    .news-toc__close { display: inline-flex; align-items: center; justify-content: center; }
    .news-toc-fab {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        position: fixed;
        left: 12px;
        bottom: 84px;
        z-index: 2050;
        padding: 10px 16px;
        border: 0;
        border-radius: 999px;
        background: var(--nw-primary);
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 700;
        box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
        cursor: pointer;
    }
    .news-toc-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .35); }
}
@media (max-width: 991px) {
    .news-detail--toc .news-sidebar { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .news-toc { transition: none; }
}
