﻿/* Mockup trang kiáº¿n thá»©c: term cha vÃ  term con. */
:root {
    --nw-navy: #0c2a4d;
    --nw-deep: #071f3b;
    --nw-blue: #0857a6;
    --nw-yellow: #ffcb32;
    --nw-line: #dbe5ef;
    --nw-muted: #60738a;
}

html {
    scroll-behavior: smooth;
}

.nw-page {
    background: #fff;
    color: var(--nw-navy);
    font-family: inherit;
}

.nw-page *,
.nw-header *,
.nw-footer * {
    box-sizing: border-box;
}

.nw-page a,
.nw-header a,
.nw-footer a {
    text-decoration: none;
}

.nw-page [hidden] {
    display: none !important;
}

.nw-page {
    overflow: hidden;
}

.nw-wrap {
    width: min(100% - 48px, 1192px);
    margin-inline: auto;
}

.nw-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 15px;
    border-radius: 6px;
    background: #fff;
    color: var(--nw-navy);
}

.nw-skip:focus {
    top: 10px;
}

.nw-header {
    background: #082340;
    color: #fff;
}

.nw-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 72px;
}

.nw-logo {
    display: inline-flex;
    flex: none;
}

.nw-logo img {
    display: block;
    width: auto;
    height: 34px;
}

.nw-header__nav {
    display: flex;
    gap: 27px;
    align-items: center;
    margin-left: auto;
}

.nw-header__nav a {
    font-size: 13px;
    font-weight: 700;
    color: #d8e6f5;
}

.nw-header__nav a:hover,
.nw-header__nav a[aria-current] {
    color: var(--nw-yellow);
}

.nw-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 17px;
    border-radius: 5px;
    background: var(--nw-yellow);
    color: var(--nw-deep);
    font-size: 12px;
    font-weight: 800;
}

.nw-hero {
    position: relative;
    isolation: isolate;
    min-height: 306px;
    background: var(--nw-deep);
    color: #fff;
}

.nw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(5, 27, 53, .94), rgba(8, 43, 81, .85)), var(--nw-hero-image) center/cover no-repeat;
}

.nw-hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 306px;
    padding-block: 50px 55px;
}

.nw-crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    color: #d8e7f5;
    font-size: 11px;
}

.nw-crumb a {
    color: inherit;
}

.nw-crumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.nw-crumb span[aria-current] {
    color: #fff;
    font-weight: 700;
}

.nw-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4.7vw, 58px);
    line-height: 1.12;
    letter-spacing: -.04em;
    font-weight: 800;
}

.nw-hero__lede {
    max-width: 690px;
    margin: 14px 0 0;
    color: #d8e5f4;
    font-size: 14px;
    line-height: 1.7;
}

.nw-search {
    display: flex;
    align-items: center;
    width: min(100%, 650px);
    min-height: 52px;
    margin-top: 25px;
    padding: 5px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}

.nw-search label {
    flex: 1;
    min-width: 0;
}

.nw-search input {
    width: 100%;
    min-height: 40px;
    padding: 0 15px;
    border: 0;
    outline: 0;
    color: var(--nw-navy);
    font: inherit;
    font-size: 13px;
}

.nw-search input:focus-visible {
    outline: 2px solid var(--nw-blue);
    outline-offset: -2px;
    border-radius: 4px;
}

.nw-search button {
    align-self: stretch;
    flex: none;
    min-width: 106px;
    padding: 0 17px;
    border: 0;
    border-radius: 5px;
    background: var(--nw-yellow);
    color: var(--nw-deep);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.nw-search button:hover {
    background: #f1bd20;
}

.nw-search-status {
    margin: 12px 0 0;
    color: #e0ebf7;
    font-size: 12px;
}

.nw-section {
    padding-block: 66px;
}

.nw-section--soft {
    background: #f3f7fb;
}

.nw-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 27px;
}

.nw-section__head h2 {
    margin: 0;
    color: var(--nw-navy);
    font-size: clamp(23px, 2.5vw, 30px);
    line-height: 1.23;
    letter-spacing: -.027em;
    font-weight: 800;
}

.nw-section__head p {
    margin: 8px 0 0;
    color: var(--nw-muted);
    font-size: 13px;
    line-height: 1.65;
}

.nw-section__head a {
    flex: none;
    color: var(--nw-blue);
    font-size: 12px;
    font-weight: 800;
}

.nw-section__head a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nw-topics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.nw-topic {
    display: block;
    min-width: 0;
    border: 1px solid var(--nw-line);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
    color: var(--nw-navy);
    box-shadow: 0 3px 9px rgba(9, 38, 69, .03);
    transition: transform .2s, box-shadow .2s;
}

.nw-topic:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(9, 38, 69, .12);
}

.nw-topic img {
    display: block;
    width: 100%;
    aspect-ratio: 1.58;
    object-fit: cover;
}

.nw-topic__body {
    display: block;
    padding: 15px 14px 17px;
}

.nw-topic strong {
    display: block;
    color: var(--nw-navy);
    font-size: 13px;
    line-height: 1.4;
}

.nw-topic small {
    display: block;
    margin-top: 7px;
    color: var(--nw-muted);
    font-size: 11px;
    line-height: 1.55;
}

.nw-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.nw-post {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--nw-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 11px rgba(9, 38, 69, .045);
    transition: transform .2s, box-shadow .2s;
}

.nw-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(9, 38, 69, .12);
}

.nw-post__image {
    display: block;
    overflow: hidden;
}

.nw-post__image img {
    display: block;
    width: 100%;
    aspect-ratio: 1.82;
    object-fit: cover;
    transition: transform .35s;
}

.nw-post:hover .nw-post__image img {
    transform: scale(1.045);
}

.nw-post__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 18px 20px;
}

.nw-post__cat {
    display: block;
    margin-bottom: 9px;
    color: var(--nw-blue);
    font-size: 10px;
    letter-spacing: .09em;
    line-height: 1.4;
    font-weight: 900;
    text-transform: uppercase;
}

.nw-post h3 {
    margin: 0;
    color: var(--nw-navy);
    font-size: 17px;
    line-height: 1.42;
    font-weight: 800;
    font-style: normal;
    letter-spacing: -.015em;
}

.nw-post h3 a {
    color: inherit;
}

.nw-post h3 a:hover {
    color: var(--nw-blue);
}

.nw-post p {
    margin: 10px 0 18px;
    color: var(--nw-muted);
    font-size: 14px;
    line-height: 1.65;
}

.nw-post__more {
    margin-top: auto;
    color: var(--nw-blue);
    font-size: 11px;
    font-weight: 800;
}

.nw-post__more:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nw-section--group {
    padding-block: 64px 0;
}

.nw-section--group:last-of-type {
    padding-bottom: 76px;
}

.nw-section--group .nw-post {
    box-shadow: none;
}

.nw-child-intro {
    max-width: 640px;
    padding-top: 55px;
}

.nw-child-intro h2 {
    margin: 0;
    font-size: 28px;
    color: var(--nw-navy);
}

.nw-child-intro p {
    margin-top: 9px;
    color: var(--nw-muted);
    font-size: 13px;
}

.nw-child-posts {
    padding-top: 25px;
    padding-bottom: 55px;
}

.nw-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--nw-line);
    border-radius: 8px;
    color: var(--nw-muted);
    font-size: 14px;
}

.nw-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-bottom: 75px;
}

.nw-pagination a,
.nw-pagination span {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--nw-line);
    border-radius: 6px;
    color: var(--nw-navy);
    font-size: 12px;
    font-weight: 700;
}

.nw-pagination [aria-current] {
    border-color: var(--nw-blue);
    background: var(--nw-blue);
    color: #fff;
}

.nw-footer {
    background: #082340;
    color: #d1ddec;
}

.nw-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    min-height: 110px;
    padding-block: 25px;
}

.nw-footer p {
    margin: 0;
    font-size: 12px;
}

.nw-footer a {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.nw-footer a:hover {
    color: var(--nw-yellow);
}

@media (max-width: 980px) {
    .nw-topics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .nw-header__nav {
        gap: 15px;
    }
}

@media (max-width: 720px) {
    .nw-wrap {
        width: min(100% - 32px, 1192px);
    }

    .nw-header__inner {
        min-height: 62px;
        gap: 16px;
    }

    .nw-header__nav {
        display: none;
    }

    .nw-header__cta {
        margin-left: auto;
    }

    .nw-logo img {
        height: 28px;
    }

    .nw-hero,
    .nw-hero__inner {
        min-height: 310px;
    }

    .nw-hero__inner {
        padding-block: 36px 42px;
    }

    .nw-section {
        padding-block: 48px;
    }

    .nw-section--group {
        padding-block: 48px 0;
    }

    .nw-topics,
    .nw-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nw-section__head {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .nw-hero h1 {
        font-size: 36px;
    }

    .nw-hero__lede {
        font-size: 13px;
    }

    .nw-search {
        min-height: 48px;
    }

    .nw-search button {
        min-width: 90px;
        padding-inline: 10px;
    }

    .nw-topics,
    .nw-posts {
        grid-template-columns: 1fr;
    }

    .nw-topic {
        display: grid;
        grid-template-columns: 120px 1fr;
    }

    .nw-topic img {
        height: 100%;
        aspect-ratio: auto;
    }

    .nw-topic__body {
        align-self: center;
    }

    .nw-section__head {
        flex-direction: column;
        gap: 9px;
    }

    .nw-section__head a {
        align-self: flex-start;
    }

    .nw-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .nw-topic,
    .nw-post,
    .nw-post__image img {
        transition: none;
    }
}

.nw-hero__eyebrow {
    margin: 0 0 10px;
    color: var(--nw-yellow);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nw-topic__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1.58;
    background: linear-gradient(135deg, #d9e4ee, #aebfd1);
}

.nw-post__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1.82;
    background: linear-gradient(135deg, #d9e4ee, #aebfd1);
}

.nw-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.nw-pagination {
    display: block;
}

.nw-pagination .page-numbers.current {
    border-color: var(--nw-blue);
    background: var(--nw-blue);
    color: #fff;
}

.nw-pagination .page-numbers.dots {
    border: 0;
}

@media (max-width:520px) {
    .nw-topic__placeholder {
        height: 100%;
        aspect-ratio: auto;
    }
}
/* Card tin tức theo mẫu ảnh 2 */
.nw-post__image { aspect-ratio: 1.78; }
.nw-post__image img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.nw-post__body { padding: 18px 20px 22px; }
.nw-post__date { display: block; margin-bottom: 12px; color: var(--nw-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.nw-post h3 { font-style: italic; font-size: 18px; line-height: 1.42; }
.nw-post p { margin: 12px 0 18px; font-size: 13px; line-height: 1.7; }
.nw-post__more { font-size: 13px; }

/* Slider bài viết nổi bật và các nhóm term con. */
.nw-slider { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 12px; }
.nw-slider__button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--nw-line); border-radius: 50%; background: #fff; color: var(--nw-navy); font: inherit; font-size: 18px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.nw-slider__button:hover:not(:disabled), .nw-slider__button:focus-visible { border-color: var(--nw-blue); background: var(--nw-blue); color: #fff; }
.nw-slider__button:disabled { opacity: .38; cursor: default; }
.nw-slider:not(.is-overflowing) { grid-template-columns: minmax(0, 1fr); }
.nw-slider:not(.is-overflowing) .nw-slider__button { display: none; }
.nw-slider__track { grid-column: 2; display: flex; min-width: 0; gap: 20px; overflow-x: auto; overflow-y: hidden; padding: 4px 1px 16px; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.nw-slider__track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.nw-slider:not(.is-overflowing) .nw-slider__track { grid-column: 1; }
.nw-slider__track > .nw-post { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
.nw-slider__track > .nw-empty { flex: 0 0 100%; }
.nw-slider__track:focus-visible { outline: 2px solid var(--nw-blue); outline-offset: 2px; }
@media (max-width: 900px) { .nw-slider__track > .nw-post { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .nw-slider { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 6px; } .nw-slider__button { width: 30px; height: 30px; } .nw-slider__track { gap: 14px; } .nw-slider__track > .nw-post { flex-basis: 88%; } }
@media (prefers-reduced-motion: reduce) { .nw-slider__track { scroll-behavior: auto; } .nw-slider__button { transition: none; } }
