:root {
  --bg: #f5f8ff;
  --card: #fff;
  --tx: #14213d;
  --mu: #5b6785;
  --pr: #0b3fb8;
  --pr2: #e6eeff;
  --ac: #ffc533;
  --pk: #ff5c8a;
  --gr: #19a974;
  --bd: #dbe4f7;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Tu dong doi bien mau sang giao dien toi theo cai dat cua thiet bi. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1426;
    --card: #16203a;
    --tx: #eaf0ff;
    --mu: #9fb0d6;
    --pr: #6c97ff;
    --pr2: #1d2b52;
    --bd: #2a3a66;
  }
}

/* Giao dien toi khi trang co data-theme="dark". */
:root[data-theme="dark"] {
  --bg: #0d1426;
  --card: #16203a;
  --tx: #eaf0ff;
  --mu: #9fb0d6;
  --pr: #6c97ff;
  --pr2: #1d2b52;
  --bd: #2a3a66;
}

/* Quy tac nen: tinh kich thuoc hop bao gom ca padding va border. */
* {
  box-sizing: border-box;
}

/* Cuon trang muot va chua khoang cho thanh dieu huong co dinh. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(64px + env(safe-area-inset-top, 0px));
}

/* Noi dung chung cua toan bo trang. */
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 16px/1.65 'Be Vietnam Pro', system-ui, sans-serif;
}

/* Anh co kich thuoc toi da theo khung; lien ket ke thua mau chu xung quanh. */
img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Thanh dieu huong nav: dinh o dau man hinh, co the cuon ngang. */
nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: var(--card);
  border-bottom: 1px solid var(--bd);
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  overflow-x: auto;
  align-items: center;
}

/* Ten/thuong hieu trong nav. */
nav b {
  color: var(--pr);
  margin-right: 10px;
  white-space: nowrap;
}

/* Cac lien ket dieu huong va trang thai khi di chuot/duoc chon. */
nav a {
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 99px;
  white-space: nowrap;
  color: var(--mu);
}

nav a:hover,
nav a.on {
  background: var(--pr2);
  color: var(--pr);
}

/* .w: khung noi dung can giua, dung chung cho cac khu vuc trang. */
.w {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* section: tao khoang cach tren duoi cho tung muc noi dung. */
section {
  padding: 56px 0;
}

/* .hero: nen va mau chu cua phan gioi thieu dau trang. */
.hero {
  background: linear-gradient(135deg, #0b3fb8, #2f6bff);
  color: #fff;
  padding: 18px 0 16px;
}

/* Khung rieng trong dau trang va bo cuc hai cot gioi thieu. */
.hero .w {
  max-width: 1480px;
  margin: 0 auto;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 20px;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* .hero-brand: can giua logo trong cot thu nhat cua dau trang. */
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0;
}

.hero-brand img {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .25));
  object-fit: contain;
  transform: translateY(-18px);
}

/* .hero-copy: cot chua tieu de, mo ta va nut hanh dong dau trang. */
.hero-copy {
  width: 100%;
  max-width: 620px;
  min-width: 0;
  justify-self: center;
  align-self: center;
  padding: 8px 0 6px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 64px);
  line-height: .8;
  letter-spacing: -.08em;
  font-weight: 800;
  color: #fff;
}

/* .hero-line: xuong dong tieu de; dong dau co them bieu tuong vẫy tay. */
.hero-line {
  display: block;
  white-space: normal;
  line-height: .9;
  margin-bottom: 15px;
}

.hero-line--title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-wave {
  display: inline-block;
  font-size: clamp(30px, 2.8vw, 52px);
  transform: translateY(-8px);
}

/* .hero-intro: doan mo ta ngan ben duoi tieu de trang chu. */
.hero-intro {
  margin: 18px 0 0;
  opacity: .96;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.35;
  max-width: 760px;
  color: #fff;
}

/* Mau nen rieng cua cac the gio lam viec: gio hanh chinh va cac ca. */
.office {
  background: #2563eb;
}

.s1 {
  background: #f59e0b;
}

.s2 {
  background: #7c3aed;
}

.s3 {
  background: #0f766e;
}

/* details/summary: the noi dung mo rong va dong lai duoc. */
details {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 2px 18px;
}

summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
}

details p,
details li {
  color: var(--mu);
  font-size: 15px;
}

details ul {
  padding-left: 20px;
}

/* .two: bo tri hai cot, thuong dung cho noi dung va hinh minh hoa. */
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.two img {
  border-radius: 20px;
}

/* .warn: hop canh bao/noi dung can chu y. */
.warn {
  background: #fff3cd;
  color: #5c4400;
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 14px;
  font-size: 15px;
}

/* Chan trang: nen toi, chu sang va can giua. */
footer {
  background: #08246b;
  color: #cfdcff;
  text-align: center;
  padding: 36px 20px;
  font-size: 14px;
}

/* .lb: lop phu xem anh phong to; .on hien thi lop phu nay. */
.lb {
  position: fixed;
  inset: 0;
  background: #000c;
  display: none;
  place-items: center;
  z-index: 20;
  padding: 16px;
}

.lb.on {
  display: grid;
}

.lb img {
  max-height: 92vh;
  border-radius: 12px;
}

/* .vid va .video-slot: khu vuc video, can giua va gioi han chieu rong. */
.vid {
  background: linear-gradient(135deg, #061d4d, #0b3fb8);
  padding: 0;
}

.vid .w {
  max-width: 100%;
  padding: 0;
}

.video-slot {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: linear-gradient(135deg, #123c9c, #2f6bff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

/* Video/iframe vua khung; .ok hien video sau khi video san sang. */
.video-slot video,
.video-slot iframe {
  width: 100%;
  max-height: 82vh;
  height: auto;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000;
}

.video-slot .video-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(7, 17, 42, .15), rgba(7, 17, 42, .5));
  z-index: 1;
}

.video-slot video {
  display: none;
  background: #000;
}

.video-slot.ok video {
  display: block;
}

.video-slot.ok .video-ph {
  display: none;
}

.video-slot.ok {
  border: 0;
}

/* Lien ket trong khu vuc .ct: nhan manh mau chu va do dam. */
.ct a {
  color: var(--pr);
  font-weight: 700;
  text-decoration: none;
}

/* Tieu de trang lien he (header.phead) va phan gioi thieu ben trong. */
.phead {
  background: linear-gradient(135deg, #0b3fb8, #2f6bff);
  color: #fff;
  padding: 48px 0;
}

.phead p {
  opacity: .92;
  font-size: 18px;
  margin: 0;
}

/* .form: bo cuc bieu mau lien he va dinh dang nhan, o nhap, nut gui. */
.form {
  display: grid;
  gap: 12px;
}

.form label {
  font-weight: 700;
  font-size: 14px;
}

.form input,
.form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--bd);
  border-radius: 12px;
  background: var(--bg);
  color: var(--tx);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form button {
  font: inherit;
  border: 0;
  cursor: pointer;
  background: var(--pr);
  color: #fff;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 99px;
  justify-self: start;
}

/* .fnote: ghi chu nho, dung cho huong dan/phu chu thich cua bieu mau. */
.fnote {
  font-size: 13px;
  color: var(--mu);
}

/* .tag: nhan noi bat dang vien thuoc trong noi dung. */
.tag {
  display: inline-block;
  background: var(--ac);
  color: #3a2a00;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 99px;
}

/* .btn: nut hanh dong; khai bao sau cung duoc giu nguyen de dung giao dien nut hien tai. */
.btn {
  display: inline-block;
  background: var(--ac);
  color: #3a2a00;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 18px;
  text-decoration: none;
  margin-top: 18px;
  font-size: clamp(16px, 1.4vw, 20px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

/* Tieu de chung h1/h2 va mo ta .hero p trong khu vuc dau trang. */
h1 {
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.1;
  margin: 14px 0;
  letter-spacing: -1.5px;
}

h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  margin: 0 0 8px;
}

.hero p {
  opacity: .92;
  font-size: 18px;
  max-width: 620px;
}

/* Ghi de giao dien chung cho .btn: nut gon, dang vien thuoc. */
.btn {
  display: inline-block;
  background: var(--ac);
  color: #3a2a00;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 99px;
  text-decoration: none;
  margin-top: 10px;
}

.btn-blue {
  background: var(--pr);
  color: #fff;
}

/* .hero-visual: cot anh minh hoa trong phan dau trang. */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 0;
  min-width: 0;
  justify-self: center;
}

.hero-visual img {
  width: 100%;
  max-width: 760px;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
  display: block;
}

/* .sub: doan mo ta/phu de trong cac muc noi dung. */
.sub {
  color: var(--mu);
  margin: 0 0 28px;
  max-width: 640px;
}

/* .grid: luoi tu dong co gian cho cac the .c. */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* .c: the noi dung dung cho thong tin, huong dan va cac muc lien he. */
.c {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 18px;
  padding: 20px;
}

.c .i {
  font-size: 30px;
}

.c h3 {
  margin: 6px 0 4px;
  font-size: 17px;
}

.c p,
.c li {
  color: var(--mu);
  font-size: 15px;
  margin: 0;
}

.c ul {
  padding-left: 18px;
  margin: 6px 0 0;
}

/* Dau muc van hoa: gom tieu de va huy hieu/anh nhan dien. */
.van-hoa-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.van-hoa-badge {
  width: 78px;
  height: auto;
  flex-shrink: 0;
}

/* .vals: luoi ba cot trinh bay hinh anh cac gia tri van hoa. */
.vals {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vals figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 18px;
  overflow: hidden;
  transition: .2s;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vals figure:hover {
  transform: translateY(-4px);
}

.vals img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  cursor: zoom-in;
}

/* .steps: danh sach cac buoc co so thu tu hien thi trong hinh tron. */
.steps {
  counter-reset: s;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.steps li {
  list-style: none;
  counter-increment: s;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 14px 16px 14px 64px;
  position: relative;
  color: var(--mu);
}

.steps li:before {
  content: counter(s);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pr);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* .alt: mau nen phu cho cac section xen ke tren trang. */
.alt {
  background: var(--pr2);
}

/* .shift: luoi gio lam, moi div ben trong la mot loai ca/moc gio. */
.shift {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.shift div {
  border-radius: 18px;
  padding: 20px;
  color: #fff;
  text-align: center;
}

.shift b {
  font-size: 26px;
  display: block;
}

/* Tren man hinh vua/nho: chuyen dau trang thanh mot cot va thu gon anh. */
@media (max-width: 1024px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    overflow-x: hidden;
  }

  nav > a:first-child {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  nav > a:not(:first-child) {
    flex: 1 1 auto;
    min-width: 0;
    padding: 5px 8px;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 6vw, 74px);
  }

  .hero-intro {
    font-size: clamp(16px, 2vw, 22px);
  }

  .hero-visual img {
    max-width: 100%;
    max-height: 540px;
  }
}

/* Tren dien thoai: xep noi dung doc, thu gon padding va kich thuoc chu/anh. */
@media (max-width: 768px) {
  .hero {
    padding: 28px 0 22px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-copy {
    padding-bottom: 0;
    max-width: none;
  }

  .hero-copy h1 {
    font-size: clamp(32px, 10vw, 58px);
    line-height: .9;
  }

  .hero-line {
    white-space: normal;
  }

  .hero-line--title {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hero-wave {
    display: inline-block;
    margin-top: 0;
    transform: translateY(-2px);
  }

  .hero-intro {
    font-size: 17px;
    margin-top: 18px;
  }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }

  .hero-visual img {
    max-width: none;
    width: 100%;
    max-height: 420px;
    border-radius: 20px 20px 0 0;
  }

  .two {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0;
  }

  .w {
    padding: 0 16px;
  }
}

/* Quy tac dien thoai nho cho cac khu vuc khac va placeholder cua video. */
@media (max-width: 760px) {
  .hero .w,
  .two {
    grid-template-columns: 1fr;
  }

  section {
    padding: 40px 0;
  }

  .hero .w {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-brand {
    justify-content: flex-start;
  }

  .hero-copy {
    padding-bottom: 0;
    max-width: none;
  }

  .hero-visual img {
    max-width: 760px;
    width: 100%;
  }

  .vid .w {
    padding: 0;
  }

  .video-slot {
    max-width: 100%;
  }

  .video-slot video,
  .video-slot iframe {
    max-height: 60vh;
  }

  .video-slot .video-ph {
    padding: 18px;
  }
}
