/* ══════════════════════════════════════════════════════════════
   NQ57 — vỏ trang trắng dùng chung (header / menu / footer / typo)
   Tham khảo bố cục + màu + thang cỡ chữ digital.fpt.com
   Được @import vào source.css của gioi-thieu/, tru-cot/, bai-viet/
   ══════════════════════════════════════════════════════════════ */

.nqw {
  --w-navy: #1d3b14;      /* nền header FPT */
  --w-navy-2: #14290e;    /* hộp CTA tối */
  --w-navy-3: #0d1c09;
  --w-blue: #2f6b1f;      /* nút / link nhấn */
  --w-blue-2: #4a9a32;
  --w-sky: #8fd16a;
  --w-ink: #1f2124;
  --w-ink-2: #3a3f4a;
  --w-muted: #5d6372;
  --w-soft: #6b7180;
  --w-line: #e3e5ea;
  --w-bg-soft: #f3f6f1;
  --w-band: linear-gradient(90deg, #dfe9d9 0%, #eef4ea 100%);
  --w-wrap: 1160px;
  --w-hd: 68px;
  --w-pad: clamp(20px, 3.4vw, 56px);   /* lề header: trải sát hai bên */
  --w-font: "Be Vietnam Pro", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  font-family: var(--w-font);
  color: var(--w-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

html:has(.nqw),
body:has(.nqw) { margin: 0; background: #fff; }
html:has(.nqw) { scroll-padding-top: calc(var(--w-hd, 68px) + 72px); }

:where(.nqw) a { color: inherit; text-decoration: none; }
:where(.nqw) img { display: block; max-width: 100%; }
:where(.nqw) h1, :where(.nqw) h2, :where(.nqw) h3, :where(.nqw) h4, :where(.nqw) p, :where(.nqw) ul, :where(.nqw) ol, :where(.nqw) figure, :where(.nqw) blockquote { margin: 0; }
:where(.nqw) ul, :where(.nqw) ol { padding: 0; list-style: none; }
:where(.nqw) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ── Khung + chữ (thang cỡ chữ theo digital.fpt.com: thân 18/32, h1 64, h2 52–56, h3 24–28) ── */
.nqw-wrap { width: 100%; max-width: calc(var(--w-wrap) + 48px); margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.nqw-eyebrow { font-size: 20px; font-weight: 500; letter-spacing: .01em; color: var(--w-ink); }
.nqw-eyebrow--caps { font-size: 15px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--w-ink-2); }
.nqw-h1 { font-size: 64px; line-height: 1.12; font-weight: 600; letter-spacing: -.02em; margin-top: 12px; }
.nqw-h2 { font-size: 52px; line-height: 1.16; font-weight: 700; letter-spacing: -.02em; }
.nqw-h2--c { text-align: center; }
.nqw-h3 { font-size: 28px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.nqw-lead { font-size: 21px; line-height: 1.7; color: var(--w-muted); max-width: 860px; margin-top: 28px; }
.nqw-sub { font-size: 20px; line-height: 1.6; color: var(--w-ink-2); text-align: center; margin: 16px auto 0; max-width: 820px; }
.nqw-sec { padding: 112px 0; }
.nqw-sec--tight { padding: 72px 0; }

.nqw-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 30px;
  border-radius: 999px; background: var(--w-blue); color: #fff !important;
  font-size: 17px; font-weight: 600; transition: background .2s;
}
.nqw-btn:hover { background: var(--w-navy); }
.nqw-btn svg, .nqw-link svg { width: 18px; height: 18px; flex: none; }
.nqw-link { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: var(--w-blue) !important; }
.nqw-link:hover { text-decoration: underline; }

/* Hàng 2 cột: nhãn trái / nội dung phải (kiểu "Nhiệm vụ" FPT) */
.nqw-row { display: grid; grid-template-columns: 300px 1fr; gap: 0 96px; }
.nqw-row__label { font-size: 36px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.nqw-row__label--sm { font-size: 16px; font-weight: 600; padding-top: 18px; border-top: 1px solid var(--w-line); }
.nqw-row__body { border-top: 1px solid var(--w-line); padding-top: 26px; }
.nqw-row__body > b, .nqw-row__strong { display: block; font-size: 24px; line-height: 1.55; font-weight: 600; color: var(--w-ink); }
.nqw-row__body p { font-size: 18px; line-height: 1.8; color: var(--w-muted); margin-top: 20px; }
.nqw-row + .nqw-row { margin-top: 52px; }

/* Danh sách đánh số 01. (kiểu "Dịch vụ cung cấp" FPT) */
.nqw-num { border-top: 1px solid var(--w-line); }
.nqw-num__item { display: grid; grid-template-columns: 100px 1fr 1.1fr; gap: 0 48px; padding: 32px 0 36px; border-bottom: 1px solid var(--w-line); }
.nqw-num__no { font-size: 16px; color: var(--w-ink-2); padding-top: 6px; }
.nqw-num__no--u { text-decoration: underline; text-underline-offset: 3px; }
.nqw-num__title { font-size: 26px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.nqw-num__title a:hover { color: var(--w-blue); }
.nqw-num__meta { margin-top: 16px; font-size: 15.5px; line-height: 1.65; color: var(--w-soft); }
.nqw-num__meta b { color: var(--w-ink-2); font-weight: 600; }
.nqw-dots li { position: relative; padding-left: 18px; font-size: 17.5px; line-height: 1.7; color: var(--w-ink-2); }
.nqw-dots li + li { margin-top: 12px; }
.nqw-dots li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 5px; height: 5px; background: var(--w-soft); }
.nqw-dots b { color: var(--w-ink); font-weight: 600; }

/* Thẻ bài viết (kiểu "Tìm hiểu các nghiên cứu" FPT) */
.nqw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.nqw-card__img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--w-bg-soft); }
.nqw-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nqw-card:hover .nqw-card__img img { transform: scale(1.04); }
.nqw-card__tag { display: inline-block; margin-top: 24px; font-size: 14.5px; font-weight: 600; color: var(--w-blue); letter-spacing: .02em; }
.nqw-card__title { margin-top: 10px; padding-top: 0; font-size: 24px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.nqw-card:hover .nqw-card__title { color: var(--w-blue); }
.nqw-card time { display: block; margin-top: 16px; font-size: 14.5px; color: var(--w-soft); }
.nqw-card__sum { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--w-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Dải 5 trụ cột — bản sáng dùng trong trang */
.nqw-pills { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.nqw-pill {
  display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 18px; box-sizing: border-box;
  border: 1px solid var(--w-line); border-radius: 12px; background: #fff;
  font-size: 16px; line-height: 1.4; font-weight: 600; color: var(--w-ink);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.nqw-pill img { width: 34px; height: auto; flex: none; }
.nqw-pill:hover, .nqw-pill.is-active { border-color: var(--w-blue); box-shadow: 0 8px 24px -12px rgba(29, 59, 20, .35); }
.nqw-pill.is-active { background: #f0f6ec; }

/* ══ HEADER (bố cục + màu FPT) — thanh trải full chiều rộng: logo sát lề trái, 5 trụ cột xếp liền nhau cạnh logo (không dàn ra hết bề ngang) ══ */
.nqw-hd { position: sticky; top: 0; z-index: 50; color: #fff; background: var(--w-navy); background: radial-gradient(45% 160% at 100% 0%, rgba(74, 154, 50, .42) 0%, rgba(74, 154, 50, 0) 70%), linear-gradient(135deg, var(--w-navy-2) 0%, var(--w-navy) 100%); }
.nqw-hd__bar { display: flex; align-items: center; width: 100%; height: var(--w-hd); padding: 0 var(--w-pad); box-sizing: border-box; }
.nqw-hd__burger { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-left: -10px; padding: 0 10px; box-sizing: border-box; flex: none; }
.nqw-hd__burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nqw-hd__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nqw-hd__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nqw-hd__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nqw-hd__logo { margin-left: 18px; flex: none; }
.nqw-hd__search { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin: 0 -10px 0 auto; border-radius: 50%; color: #fff; transition: background .2s; }
.nqw-hd__search:hover, .nqw-hd__search[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
.nqw-hd__search svg { width: 22px; height: 22px; }
.nqw-hd__logo img { height: 32px; width: auto; }

.nqw-hd__nav { display: flex; align-items: stretch; justify-content: flex-start; gap: clamp(20px, 2vw, 36px); flex: 0 1 auto; min-width: 0; height: 100%; margin-left: clamp(48px, 6.5vw, 128px); }
.nqw-hd__item {
  position: relative; display: flex; align-items: center; padding: 0 2px; white-space: nowrap;
  font-size: clamp(13.5px, 1.04vw, 15.5px); line-height: 1.35; font-weight: 500; color: rgba(255, 255, 255, .84);
  transition: color .2s;
}
.nqw-hd__item::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 3px; background: var(--w-sky); transform: scaleX(0); transition: transform .25s; }
.nqw-hd__item:hover, .nqw-hd__item.is-active { color: #fff; }
.nqw-hd__item.is-active { font-weight: 700; }
.nqw-hd__item:hover::after, .nqw-hd__item.is-active::after { transform: scaleX(1); }

/* Ô tìm kiếm — mở dưới header */
.nqw-search { position: absolute; left: 0; right: 0; top: 100%; background: var(--w-navy); border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .5); }
.nqw-search[hidden] { display: none; }
.nqw-search__form { display: flex; align-items: center; gap: 12px; max-width: calc(var(--w-wrap) + 48px); margin: 0 auto; padding: 18px var(--w-pad); box-sizing: border-box; }
.nqw-search__form > svg { width: 22px; height: 22px; flex: none; color: rgba(255, 255, 255, .6); }
.nqw-search__form input { flex: 1; min-width: 0; height: 46px; padding: 0 4px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); background: none; font: inherit; font-size: 18px; color: #fff; outline: none; }
.nqw-search__form input::placeholder { color: rgba(255, 255, 255, .5); }
.nqw-search__form input:focus { border-bottom-color: var(--w-sky); }
.nqw-search__form button { height: 46px; padding: 0 24px; border-radius: 999px; background: var(--w-blue-2); color: #fff; font-size: 16px; font-weight: 600; transition: background .2s; }
.nqw-search__form button:hover { background: var(--w-blue); }

/* Menu hamburger — cao hơn màn hình thì cuộn bên trong menu (không cuộn trang nền) */
html.nqw-lock { overflow: hidden; }
.nqw-menu { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--w-hd)); max-height: calc(100dvh - var(--w-hd)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--w-navy); background: radial-gradient(50% 70% at 100% 0%, rgba(74, 154, 50, .22) 0%, rgba(74, 154, 50, 0) 70%), color-mix(in srgb, var(--w-navy) 97%, transparent); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .5); }
.nqw-menu[hidden] { display: none; }
.nqw-menu__in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; padding: 32px var(--w-pad) 40px; box-sizing: border-box; }
.nqw-menu__h { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 14px; }
.nqw-menu__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.nqw-menu__list a { display: block; padding: 11px 0; font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .9); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: color .2s, transform .2s; }
.nqw-menu__list a:hover { color: #fff; transform: translateX(4px); }
.nqw-menu__list a.is-current { color: #fff; font-weight: 700; }
.nqw-menu__sep { grid-column: 1 / -1; height: 10px; }
.nqw-menu__list a.nqw-menu__ai { color: var(--w-sky); }
.nqw-menu__pills { display: grid; gap: 6px; }
.nqw-menu__pills a { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); font-size: 15px; line-height: 1.4; font-weight: 500; color: rgba(255, 255, 255, .92); transition: background .2s; }
.nqw-menu__ic { flex: none; box-sizing: content-box; width: 20px; height: 20px; padding: 8px; border-radius: 7px; background: #fff; object-fit: contain; transition: transform .2s; }
.nqw-menu__pills span { flex: 1; min-width: 0; }
.nqw-menu__go { flex: none; width: 16px; height: 16px; opacity: .35; transition: opacity .2s, transform .2s; }
.nqw-menu__pills a:hover .nqw-menu__go, .nqw-menu__pills a.is-current .nqw-menu__go { opacity: .9; transform: translateX(3px); }
.nqw-menu__pills a:hover .nqw-menu__ic, .nqw-menu__pills a.is-current .nqw-menu__ic { transform: scale(1.06); }
.nqw-menu__pills a:hover, .nqw-menu__pills a.is-current { background: rgba(255, 255, 255, .14); }
.nqw-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(6, 16, 4, .45); }
.nqw-scrim[hidden] { display: none; }

/* ══ FOOTER ══════════════════════════════════════════════════════ */
.nqw-ft { background: var(--w-navy); color: rgba(255, 255, 255, .8); margin-top: 0; }
.nqw-ft__in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; padding: 56px 0 44px; }
.nqw-ft__brand img { height: 46px; width: auto; }
.nqw-ft__desc { margin-top: 22px; font-size: 16.5px; line-height: 1.75; max-width: 440px; }
.nqw-ft__desc b { color: #fff; }
.nqw-ft__h { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.nqw-ft__links a { display: block; padding: 7px 0; font-size: 16.5px; transition: color .2s; }
.nqw-ft__links a:hover { color: #fff; }
.nqw-ft__social { display: flex; gap: 12px; margin-top: 26px; }
.nqw-ft__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.nqw-ft__social a:hover { background: rgba(255, 255, 255, .16); }
.nqw-ft__social img { width: 20px; height: 20px; }
.nqw-ft__bot { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: 14.5px; color: rgba(255, 255, 255, .55); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .nqw-hd__nav { display: none; }
}
@media (max-width: 1024px) {
  .nqw-h1 { font-size: 52px; }
  .nqw-h2 { font-size: 40px; }
  .nqw-row { grid-template-columns: 1fr; gap: 20px; }
  .nqw-num__item { grid-template-columns: 64px 1fr; }
  .nqw-num__item > :last-child { grid-column: 2; margin-top: 20px; }
  .nqw-cards { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nqw-pills { grid-template-columns: repeat(3, 1fr); }
  .nqw-ft__in { grid-template-columns: 1fr 1fr; }
  .nqw-ft__brand { grid-column: 1 / -1; }
  .nqw-menu__in { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .nqw { --w-hd: 60px; }
  .nqw-hd__logo img { height: 26px; }
  .nqw-wrap { padding: 0 16px; }
  .nqw-eyebrow { font-size: 15px; }
  .nqw-h1 { font-size: 32px; line-height: 1.2; }
  .nqw-h2 { font-size: 28px; line-height: 1.2; }
  .nqw-h3 { font-size: 22px; }
  .nqw-lead { margin-top: 20px; font-size: 17px; line-height: 1.65; }
  .nqw-sub { font-size: 16px; line-height: 1.55; }
  .nqw-sec { padding: 72px 0; }
  .nqw-row__label { font-size: 28px; }
  .nqw-row__body > b { font-size: 20px; }
  .nqw-row__body p { font-size: 17px; }
  .nqw-cards { grid-template-columns: 1fr; }
  .nqw-card__tag { margin-top: 16px; font-size: 13.5px; }
  .nqw-card__title { font-size: 19px; }
  .nqw-card time { margin-top: 10px; font-size: 13.5px; }
  .nqw-cards { gap: 28px; }
  .nqw-pills { grid-template-columns: 1fr; }
  .nqw-num__item { grid-template-columns: 1fr; padding: 32px 0; }
  .nqw-num__item > :last-child { grid-column: auto; }
  .nqw-num__no { margin-bottom: 8px; }
  .nqw-num__title { font-size: 20px; }
  .nqw-dots li { font-size: 16px; }
  .nqw-hd__logo { margin-left: 12px; }
  .nqw-search__form { gap: 10px; padding: 14px 16px; }
  .nqw-search__form > svg { display: none; }
  .nqw-search__form input { height: 42px; font-size: 16px; }
  .nqw-search__form button { height: 42px; padding: 0 20px; font-size: 15px; }
  .nqw-menu__in { gap: 24px; padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); }
  .nqw-menu__h { margin-bottom: 6px; font-size: 11px; }
  .nqw-menu__list { grid-template-columns: 1fr; }
  .nqw-menu__list a { padding: 11px 0; font-size: 15.5px; }
  .nqw-menu__sep { height: 6px; }
  .nqw-menu__pills { gap: 6px; }
  .nqw-menu__pills a { gap: 12px; padding: 9px 12px 9px 9px; font-size: 14px; }
  .nqw-menu__ic { width: 18px; height: 18px; padding: 7px; }

  /* Footer mobile: logo + mạng xã hội → 2 cột liên kết → mô tả → bản quyền */
  .nqw-ft__in { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 36px 0 28px; }
  .nqw-ft__brand { display: contents; }
  .nqw-ft__brand > img { grid-column: 1 / -1; height: 36px; }
  .nqw-ft__social { grid-column: 1 / -1; margin-top: 0; gap: 10px; }
  .nqw-ft__social a { width: 38px; height: 38px; }
  .nqw-ft__links { min-width: 0; order: 2; }
  .nqw-ft__h { margin-bottom: 8px; font-size: 12.5px; }
  .nqw-ft__links a { padding: 6px 0; font-size: 14.5px; line-height: 1.4; }
  .nqw-ft__desc { grid-column: 1 / -1; order: 3; max-width: none; margin-top: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; line-height: 1.65; }
  .nqw-ft__bot { padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); font-size: 13px; }
}

/* ── Mobile: khối "tin bài" cuối trang (gioi-thieu + tru-cot) — tiêu đề nhỏ, căn giữa; nút "Xem tất cả" chuyển xuống dưới các bài, dạng viên xanh ── */
@media (max-width: 760px) {
  .nqw .gt-news .nqw-wrap, .nqw .tc-news .nqw-wrap { display: flex; flex-direction: column; }
  .nqw .gt-news__head, .nqw .tc-head { display: contents; }
  .nqw .gt-news__h, .nqw .tc-news__h { order: 0; margin-bottom: 22px; font-size: 19px; line-height: 1.3; font-weight: 700; text-align: center; }
  .nqw .gt-news .nqw-cards, .nqw .tc-news .nqw-cards { order: 1; }
  .nqw .gt-news .nqw-link, .nqw .tc-news .nqw-link {
    order: 2; align-self: center; justify-content: center; height: 46px; margin-top: 28px; padding: 0 26px;
    border-radius: 999px; background: var(--w-blue); color: #fff !important; font-size: 15.5px; transition: background .2s;
  }
  .nqw .gt-news .nqw-link:hover, .nqw .tc-news .nqw-link:hover { background: var(--w-navy); text-decoration: none; }
}
