/* ===== Viện Nghiên cứu những Bí ẩn của Vũ trụ và Văn hóa Phương Đông =====
   Giao diện trang trọng theo phong cách trang thông tin của tổ chức nhà nước:
   nền sáng, đỏ - vàng, khối viền rõ, chữ nghiêm túc. */

:root {
  --red: #98181A;
  --red-dark: #7A1213;
  --red-bright: #B71C1C;
  --gold: #C9A227;
  --gold-soft: #E7D9AE;
  --blue: #16549C;

  --ink: #20242B;
  --muted: #5b6169;
  --line: #d9d4c6;
  --line-2: #e6e2d6;
  --bg: #ffffff;
  --bg-soft: #F7F3E8;
  --bg-band: #FBF8F0;

  --ok: #1f7a45;
  --err: #b1281f;

  --wrap: 1320px;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", system-ui, "Segoe UI", Arial, sans-serif;

  --s0: 1rem;
  --s1: 1.12rem;
  --s2: 1.35rem;
  --s3: 1.75rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: 780px; }

.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red); margin: 0 0 0.5rem;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  padding: 0.62rem 1.25rem; border-radius: 2px;
  border: 1px solid var(--red); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn--sm { padding: 0.44rem 0.85rem; font-size: 0.82rem; }
.btn--block { width: 100%; justify-content: center; }
.btn.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.solid:hover { background: var(--red-dark); }
.btn.ghost { background: #fff; color: var(--red); }
.btn.ghost:hover { background: var(--bg-soft); }
.btn.ink { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ink:hover { border-color: var(--red); color: var(--red); }
.btn-link { background: none; border: 0; color: var(--blue); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.btn-link--danger { color: var(--err); }
.link-more { color: var(--red); text-decoration: none; font-weight: 600; font-size: 0.88rem; }
.link-more:hover { text-decoration: underline; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 3px solid var(--red); }
.site-topbar { background: var(--red-dark); color: #f3e6c9; font-size: 0.78rem; }
.site-topbar .wrap { width: 100%; max-width: none; margin: 0; display: flex; justify-content: flex-end; align-items: center; gap: 0; padding: 0.32rem clamp(1.25rem, 3.5vw, 3.5rem); }
.site-topbar span { white-space: nowrap; }
.site-topbar span + span { margin-left: 1.8rem; padding-left: 1.8rem; border-left: 1px solid rgba(255, 255, 255, 0.3); }
.site-topbar a { color: #f3e6c9; text-decoration: none; }
.site-topbar a:hover { color: #fff; }

.site-header__bar {
  width: 100%;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 1.5rem;
  padding: 0.55rem clamp(1.25rem, 3.5vw, 3.5rem);
}
.site-header__right { justify-self: end; display: flex; align-items: center; gap: 1.7rem; }
.brand { justify-self: start; display: flex; align-items: center; gap: 0.85rem; text-decoration: none; min-width: 0; }
.brand__mark { width: 60px; height: 60px; flex: none; }
.brand__mark img, .brand__mark svg { width: 100%; height: 100%; object-fit: contain; }
.brand__text { min-width: 0; }
.brand__name {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--red);
  max-width: 36ch;
}
.brand__short { display: none; }
.brand__aff {
  display: block; font-style: normal; font-size: 0.68rem;
  color: var(--muted); letter-spacing: 0.01em; margin-top: 2px;
}
.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.site-header__actions .btn { padding: 0.6rem 1.5rem; font-size: 0.92rem; }
.cart-link { position: relative; color: var(--muted); display: flex; }
.cart-link:hover { color: var(--red); }
.cart-link svg { width: 22px; height: 22px; }
.cart-link__count { position: absolute; top: -7px; right: -9px; background: var(--red); color: #fff; font-size: 0.62rem; font-weight: 700; min-width: 15px; height: 15px; border-radius: 8px; display: grid; place-items: center; padding: 0 3px; }
.site-nav > ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav > ul > li > a {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.55rem 0.9rem;
  color: var(--red); text-decoration: none;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  white-space: nowrap;
}
.site-nav > ul > li > a:hover { color: var(--red-dark); background: var(--bg-soft); }
.site-nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
.has-sub__caret { opacity: 0.8; }
.subnav {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  list-style: none; margin: 0; padding: 4px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .14s, transform .14s; z-index: 40;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav, .has-sub.is-open .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a { display: block; padding: 0.55rem 0.75rem; text-decoration: none; color: var(--ink); font-size: 0.9rem; }
.subnav a:hover { background: var(--bg-soft); color: var(--red); }

.nav-toggle { display: none; }

/* ---- hero ---- */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero__inner { padding: 2.2rem 0; }
.hero .eyebrow { margin-bottom: 0.35rem; }
.hero__facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.85rem; max-width: 78ch; }
.hero__facts li {
  position: relative; padding-left: 1.3rem; font-size: 1.02rem; line-height: 1.55; color: var(--ink);
}
.hero__facts li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px;
  background: var(--red); border-radius: 50%;
}
.hero__actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---- bands & section headers ---- */
.band { padding: 2.4rem 0; }
.band--paper { background: var(--bg-soft); }
.band--tight { padding: 1.6rem 0; }
.band__more { margin-top: 1.4rem; }

.sec-head { margin-bottom: 1.6rem; border-bottom: 2px solid var(--red); padding-bottom: 0.5rem; }
.sec-head h2 {
  font-family: var(--sans); font-weight: 700; font-size: var(--s2);
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--red);
  border-left: 5px solid var(--gold); padding-left: 0.7rem;
}
.sec-head .eyebrow { display: none; }
.sec-head__lead { margin-top: 0.6rem; color: var(--muted); }
.sec-sub { font-family: var(--sans); font-weight: 700; font-size: var(--s1); text-transform: uppercase; color: var(--red); margin: 2rem 0 1rem; border-left: 5px solid var(--gold); padding-left: 0.7rem; }

.page-title { font-family: var(--serif); font-weight: 700; font-size: var(--s3); color: var(--red); margin: 0.3rem 0 0.6rem; }
.page-lead { color: var(--muted); max-width: 66ch; margin-bottom: 1.6rem; }
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.7rem; }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs span { margin: 0 0.35rem; }

.rule { display: flex; align-items: center; gap: 0.9rem; color: var(--red); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin: 0; }
.rule::before, .rule::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---- pillars (dự phòng) ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pillar { border: 1px solid var(--line); padding: 1.4rem; background: #fff; }
.pillar__no { font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.pillar h3 { font-size: var(--s1); margin: 0.4rem 0 0.5rem; color: var(--red); }
.pillar p { font-size: 0.92rem; color: var(--muted); }

/* ---- chào mừng / giới thiệu nhanh ---- */
.welcome { background: var(--red); padding: 2.6rem 0; text-align: center; }
.welcome__inner { display: grid; gap: 0.3rem; }
.welcome__title { font-family: var(--serif); font-weight: 700; font-size: var(--s3); color: #fff; margin: 0; }
.welcome__lead { font-size: 1.05rem; color: var(--gold); margin: 0; letter-spacing: 0.02em; }

.wcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.wcard {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  padding: 1.6rem 1.4rem; text-align: center; display: grid; gap: 0.6rem; justify-items: center;
}
.wcard__ic {
  width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center;
}
.wcard h3 { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--red); margin: 0; text-transform: uppercase; }
.wcard p { font-size: 0.9rem; color: var(--muted); margin: 0; }

@media (max-width: 760px) {
  .wcards { grid-template-columns: 1fr; }
}

/* ---- tin & sự kiện (dạng lưới 4 ô) ---- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.news-card {
  background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.news-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 30px rgba(20, 12, 12, 0.14);
  border-color: var(--red);
}
.news-card__thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.news-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .6s ease;
}
.news-card__img.is-active { opacity: 1; }
.news-card__body { padding: 1.1rem 1.1rem 1.3rem; border-top: 3px solid var(--red); display: grid; gap: 0.4rem; }
.news-card__date { display: inline-block; font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--red); padding: 2px 8px; border-radius: 2px; width: fit-content; }
.news-card__body h3 { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--red); margin: 0; line-height: 1.35; }
.news-card__body p { font-size: 0.85rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 980px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ---- về chúng tôi (trang chủ) ---- */
.about { padding: 2.8rem 0; }
.about__inner { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 2.6rem; align-items: center; }
.about__eyebrow {
  display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.7rem;
  color: var(--red); font-weight: 700; font-size: 0.92rem;
}
.about__eyebrow-ic {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  border: 1.5px solid var(--red); border-radius: 50%; font-size: 0.8rem;
}
.about__title { font-family: var(--sans); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; text-transform: uppercase; color: var(--ink); margin: 0 0 0.9rem; }
.about__desc { color: var(--muted); font-size: 0.98rem; line-height: 1.65; margin: 0; }
.about__desc p { margin: 0 0 0.8em; }
.about__desc p:last-child { margin-bottom: 0; }
.about__divider { border-top: 1px solid var(--line); margin: 1.5rem 0 1.3rem; }
.about__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.about__media { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.about__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 860px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__media { order: -1; }
}

/* ---- tư cách pháp nhân (trang chủ) ---- */
.legal { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.6rem; align-items: center; }
.legal__text .factlist { margin-top: 1.1rem; background: #fff; }
.legal__media { position: relative; border: 1px solid var(--line); background: #fff; padding: 0.6rem; aspect-ratio: 4 / 3; overflow: hidden; }
.legal__media-img {
  position: absolute; inset: 0.6rem; width: calc(100% - 1.2rem); height: calc(100% - 1.2rem);
  object-fit: contain; opacity: 0; transition: opacity 1.6s ease;
}
.legal__media-img.is-active { opacity: 1; }

@media (max-width: 860px) {
  .legal { grid-template-columns: 1fr; }
  .legal__media { order: -1; width: 100%; max-width: 360px; margin: 0 auto; }
}

/* ---- tin & sự kiện + banner (di sản — carousel cũ, không còn dùng) ---- */
.eventbar {
  width: min(100% - 2rem, 1240px);
  margin-inline: auto;
  display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 2rem;
  align-items: start;
}
.eventbar__info h2 { font-family: var(--sans); font-weight: 700; font-size: var(--s2); text-transform: uppercase; color: var(--red); border-left: 5px solid var(--gold); padding-left: 0.7rem; margin: 0.3rem 0 1.1rem; }
.eventlist { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0; }
.eventitem {
  border: 1px solid var(--line); border-bottom: 0;
  padding: 0.75rem 0.95rem;
  cursor: default; background: #fff;
  transition: background .15s, border-color .15s;
}
.eventlist .eventitem:last-child { border-bottom: 1px solid var(--line); }
.eventitem:hover, .eventitem.is-active { background: var(--bg-soft); }
.eventitem.is-active { border-left: 4px solid var(--red); }
.eventcard__date { display: inline-block; font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--red); padding: 2px 8px; border-radius: 2px; margin-bottom: 0.4rem; }
.eventitem h3 { font-family: var(--serif); font-weight: 600; font-size: 0.97rem; line-height: 1.36; margin: 0 0 0.3rem; color: var(--ink); }
.eventitem:hover h3, .eventitem.is-active h3 { color: var(--red); }
.eventitem p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.carousel { position: relative; border: 1px solid var(--line); background: #eee; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform .5s ease; }
.carousel__slide { flex: 0 0 100%; aspect-ratio: 3 / 2; max-height: 600px; display: grid; place-items: center; background: #ddd; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 0.9rem; background: var(--bg-soft); }
.carousel__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: rgba(122,18,19,0.78); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }
.carousel__arrow:hover { background: var(--red-dark); }
.carousel__arrow[hidden] { display: none; }
.carousel__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.carousel__dot { width: 8px; height: 8px; border: 0; background: rgba(255,255,255,0.55); cursor: pointer; padding: 0; }
.carousel__dot[aria-current] { background: var(--gold); }

/* ---- service list ---- */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.svc-list--full { grid-template-columns: repeat(3, 1fr); }
.svc-list__item { border: 1px solid var(--line); background: #fff; }
.svc-list__item a { display: block; background: #fff; padding: 1.1rem 1.15rem; text-decoration: none; height: 100%; transition: background .15s; }
.svc-list__item a:hover { background: var(--bg-soft); }
.svc-list__item h3 { font-family: var(--serif); font-size: var(--s1); font-weight: 600; color: var(--red); }
.svc-list__item p { color: var(--muted); font-size: 0.88rem; margin-top: 0.3rem; }
.svc-list__item .link-more { margin-top: 0.5rem; display: inline-block; }

/* ---- cards (courses) ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.scard { border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 1.2rem 1.15rem; text-decoration: none; display: flex; flex-direction: column; gap: 0.4rem; background: #fff; transition: box-shadow .15s; }
.scard:hover { box-shadow: 0 8px 20px -12px rgba(0,0,0,.3); }
.scard__tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.scard h3 { font-family: var(--serif); font-size: var(--s1); color: var(--ink); }
.scard p { font-size: 0.88rem; color: var(--muted); }

/* ---- product grid ---- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.pcard { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 8px 20px -12px rgba(0,0,0,.3); }
.pcard__thumb { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--bg-soft); color: var(--red); border-bottom: 1px solid var(--line); overflow: hidden; }
.pcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard__badge { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 0.64rem; font-weight: 700; padding: 2px 7px; }
.pcard__body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.pcard__cat { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pcard__title { font-family: var(--serif); font-size: 1rem; font-weight: 600; }
.pcard__title a { text-decoration: none; color: var(--ink); }
.pcard__price { font-variant-numeric: tabular-nums; color: var(--red); font-weight: 700; }
.pcard__price s { color: var(--muted); font-weight: 400; margin-right: 0.4rem; font-size: 0.82rem; }
.pcard__enq { color: var(--muted); font-weight: 500; }
.pcard__add { margin-top: auto; }

/* ---- article grid ---- */
.agrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; align-items: start; }
.acard { border: 1px solid var(--line); background: #fff; }
.acard__link { display: block; background: #fff; padding: 1.2rem 1.2rem; text-decoration: none; height: 100%; transition: background .15s; }
.acard__link:hover { background: var(--bg-soft); }
.acard__cover img { aspect-ratio: 16/9; object-fit: cover; margin-bottom: 0.7rem; }
.acard__cat { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.acard__title { font-family: var(--serif); font-size: var(--s1); margin: 0.3rem 0; color: var(--red); }
.acard__excerpt { font-size: 0.88rem; color: var(--muted); }

/* ---- form đăng ký tư vấn / học ---- */
.lead-form { margin: 2.4rem auto 0; max-width: 680px; border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--bg-soft); padding: 1.4rem 1.5rem; }
.lead-form h2 { font-family: var(--serif); font-size: var(--s2); color: var(--red); margin: 0 0 0.3rem; }
.lead-form__sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.lead-form .form { max-width: none; }
.lead-form .field { margin-bottom: 0.8rem; }
.lead-form .grid-2 { gap: 0.9rem; }
.lead-form input, .lead-form textarea { width: 100%; }
.lead-form textarea { min-height: 84px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---- dải logo đối tác (trang chủ) ---- */
.logo-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.logo-strip li { background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 1.1rem 1rem; }
.logo-strip a { display: grid; place-items: center; width: 100%; }
.logo-strip img { max-height: 66px; width: auto; object-fit: contain; filter: saturate(0.92); transition: filter .15s, transform .15s; }
.logo-strip a:hover img { filter: none; transform: scale(1.04); }
.logo-strip span { font-size: 0.85rem; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .logo-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- partners ---- */
.plist { display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem; list-style: none; margin: 1rem 0 0; padding: 0; color: var(--ink); font-size: 0.95rem; }
.plist li { display: flex; align-items: center; gap: 0.5rem; }
.plist li::before { content: "●"; color: var(--red); font-size: 0.6rem; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.partner { background: #fff; border: 1px solid var(--line); padding: 1.4rem 1.3rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; text-decoration: none; color: var(--ink); }
a.partner:hover { background: var(--bg-soft); }
.partner__logo { max-height: 72px; width: auto; margin-bottom: 0.3rem; }
.partner > span:first-of-type, .partner span { font-family: var(--serif); font-weight: 600; }
.partner .link-more { font-family: var(--sans); font-weight: 600; }

/* ---- tabs ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 1.6rem; border-bottom: 2px solid var(--red); }
.tabs__item { padding: 0.55rem 1rem; text-decoration: none; color: var(--ink); font-size: 0.86rem; font-weight: 600; }
.tabs__item.is-active { background: var(--red); color: #fff; }

/* ---- prose ---- */
.prose { max-width: 78ch; font-size: 1.03rem; line-height: 1.78; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--serif); font-size: var(--s2); color: var(--red); margin: 1.8rem 0 0.7rem; }
.prose h3 { font-family: var(--serif); font-size: var(--s1); margin: 1.4rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.prose li { margin: 0.4rem 0; }
.prose a { color: var(--blue); }
.prose figure { margin: 1.4rem 0; }
.prose figure img { display: block; width: 100%; border: 1px solid var(--line); }
.prose figcaption { font-size: 0.86rem; color: var(--muted); font-style: italic; text-align: center; margin-top: 0.45rem; }
.prose > img { display: block; width: 100%; border: 1px solid var(--line); margin: 1.4rem 0; }

/* ---- trang tài liệu ---- */
.doc__head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 1.4rem 0 1.6rem; }
.doc__head .crumbs { color: var(--muted); }
.doc__head h1 { font-family: var(--serif); font-weight: 700; font-size: var(--s3); color: var(--red); margin: 0.4rem 0 0; }
.doc__head p { margin-top: 0.7rem; color: var(--muted); max-width: 66ch; }
.doc__body { background: #fff; padding: 2.2rem 0 3rem; font-size: 1.04rem; }
.doc__head .wrap { width: min(100% - 2rem, 1280px); }
.doc__sec { scroll-margin-top: 140px; }

.doc__layout {
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.6rem;
  align-items: start;
}
.doc-main { min-width: 0; max-width: 900px; }
.doc-side { position: sticky; top: 132px; border: 1px solid var(--line); background: var(--bg-soft); }
.doc-side__title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--red); margin: 0; padding: 0.5rem 0.9rem; }
.doc-side nav { display: flex; flex-direction: column; padding: 0.4rem; }
.doc-side a { display: block; padding: 0.5rem 0.7rem; text-decoration: none; color: var(--ink); border-left: 3px solid transparent; font-size: 0.9rem; line-height: 1.4; }
.doc-side a:hover { color: var(--red); }
.doc-side a[aria-current] { color: var(--red); border-left-color: var(--red); font-weight: 700; background: #fff; }

.doc__sec { margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.doc__sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc__sec > h2 { font-family: var(--serif); font-size: var(--s2); color: var(--red); margin: 0 0 1rem; }
.doc__sec .num { color: var(--gold); font-weight: 700; margin-right: 0.35rem; }
.doc__body ul, .doc__body ol { margin: 0 0 1.1rem; padding-left: 1.4rem; line-height: 1.7; }
.doc__body li { margin: 0.45rem 0; }
.doc__body p { line-height: 1.78; margin: 0 0 1rem; }
.doc__body a { color: var(--blue); }

.msg { border-left: 4px solid var(--red); background: var(--bg-soft); padding: 1.1rem 1.3rem; margin-bottom: 2.2rem; }
.msg p { font-size: 1.03rem; line-height: 1.8; margin: 0 0 0.9rem; }
.msg__sign { margin-top: 1.1rem; font-family: var(--serif); font-weight: 700; color: var(--red); }
.msg__sign span { display: block; font-weight: 400; font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

.figure-person { float: right; width: 230px; margin: 0.2rem 0 1.2rem 1.6rem; }
.figure-person img { width: 100%; border: 1px solid var(--line); }
.figure-person figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.5; }

.factlist { display: grid; gap: 0; margin: 0 0 1.2rem; border: 1px solid var(--line); }
.factlist > div { display: grid; grid-template-columns: 190px 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.factlist > div:last-child { border-bottom: 0; }
.factlist dt { color: var(--ink); font-weight: 600; font-size: 0.9rem; background: var(--bg-soft); padding: 0.6rem 0.9rem; }
.factlist dd { margin: 0; padding: 0.6rem 0.9rem; }

.people { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.8rem; }
.people li { padding-left: 0.9rem; border-left: 3px solid var(--red); }
.people b { display: block; }
.people span { color: var(--muted); font-size: 0.9rem; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin: 1.1rem 0 0; align-items: start; }
.cert { border: 1px solid var(--line); background: #fff; padding: 0.5rem; text-decoration: none; color: inherit; }
.cert img { width: 100%; }
.cert figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; text-align: center; }
.cert:hover { border-color: var(--red); }

.depts { display: grid; gap: 1.1rem; margin: 1.1rem 0 0; }
.dept { border: 1px solid var(--line); border-top: 3px solid var(--red); background: #fff; padding: 1.3rem 1.4rem; }
.dept h3 { font-family: var(--serif); margin: 0 0 0.6rem; font-size: 1.12rem; color: var(--red); }
.dept p:last-child { margin-bottom: 0; }

/* ---- cta box ---- */
.cta-box { margin-top: 1.8rem; padding: 1.3rem 1.5rem; border: 1px solid var(--line); background: var(--bg-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.cta-box p { font-weight: 600; margin-right: auto; }
.cta-box--inline { margin-top: 1.1rem; }
.learn { margin-top: 1.6rem; font-size: 0.9rem; color: var(--muted); }
.learn a { color: var(--blue); }

/* ---- product detail ---- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.product__media { aspect-ratio: 1/1; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--red); overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__price { font-size: 1.35rem; color: var(--red); font-weight: 700; margin: 0.6rem 0; font-variant-numeric: tabular-nums; }
.product__price s { color: var(--muted); font-weight: 400; font-size: 1rem; margin-right: 0.5rem; }
.product__desc { color: var(--muted); margin-bottom: 1.1rem; }
.product__buy { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.product__buy input[type=number] { width: 74px; }
.product__body { margin-top: 2rem; }

/* ---- forms ---- */
.form { display: grid; gap: 1rem; max-width: 520px; }
.field { display: grid; gap: 0.3rem; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--line);
  background: #fff; color: inherit; border-radius: 2px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--red); outline-offset: 0; }
.field__err { color: var(--err); font-size: 0.82rem; }
.field__hint { color: var(--muted); font-size: 0.78rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.4rem; }
.branches { border: 1px solid var(--line); }
.branch { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.branch:last-child { border-bottom: 0; }
.branch b { font-family: var(--serif); display: block; margin-top: 0.4rem; color: var(--red); }
.branch b:first-child { margin-top: 0; }
.branch p { color: var(--muted); font-size: 0.9rem; }
.cbox { border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 1.5rem; }
.cbox h2 { font-family: var(--serif); font-size: var(--s2); color: var(--red); margin-bottom: 1rem; }

/* ---- cart / order ---- */
.cart-table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; border: 1px solid var(--line); }
.cart-table th, .cart-table td { text-align: left; padding: 0.7rem 0.7rem; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.cart-table th { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--red); }
.qty-form { display: flex; gap: 0.4rem; align-items: center; }
.qty-form input { width: 60px; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 0.6rem; }
.cart-summary strong { color: var(--red); font-size: 1.2rem; }
.cart-note { color: var(--muted); font-size: 0.82rem; margin-top: 0.7rem; }
.order-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; margin-top: 1.4rem; }
.order-summary { border: 1px solid var(--line); padding: 1.3rem; align-self: start; }
.order-summary ul { list-style: none; margin: 0.8rem 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.order-summary li { display: flex; justify-content: space-between; gap: 1rem; }
.order-summary__total { border-top: 1px solid var(--line); padding-top: 0.8rem; }
.order-summary__total strong, .order-done strong { color: var(--red); }
.order-done { border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 1.7rem; }

/* ---- flash / toast / modal ---- */
.flash { padding: 0.75rem 1rem; margin: 1rem 0; font-size: 0.9rem; border: 1px solid; }
.flash.is-fading { opacity: 0; transition: opacity .5s; }
.flash--success { background: #edf6ee; border-color: #b9dcc0; color: var(--ok); }
.flash--error { background: #fbecea; border-color: #eec3bd; color: var(--err); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--red-dark); color: #fff; padding: 0.7rem 1.1rem; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 60; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; background: rgba(20, 20, 20, 0.5); display: grid; place-items: center; z-index: 70; padding: 1.2rem; }
.modal__box { background: #fff; border-top: 4px solid var(--red); padding: 1.5rem; max-width: 400px; width: 100%; }
.modal__title { font-family: var(--serif); font-size: 1.1rem; color: var(--red); }
.modal__text { color: var(--muted); margin: 0.5rem 0 1.2rem; }
.modal__actions { display: flex; justify-content: flex-end; gap: 0.6rem; }
body.has-modal { overflow: hidden; }

/* ---- pager ---- */
.pager { display: flex; gap: 0.3rem; margin-top: 2rem; }
.pager__item { padding: 0.4rem 0.75rem; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 0.85rem; }
.pager__item.is-current { background: var(--red); color: #fff; border-color: var(--red); }

.empty, .post-meta { color: var(--muted); }

/* ---- bài viết kiến thức (trang chi tiết) ---- */
.post { width: min(100% - 2.4rem, 760px); margin: 0 auto; padding: 2.2rem 0 2.6rem; }
.post__head { margin-bottom: 1.6rem; }
.post__head .crumbs { margin-bottom: 0.9rem; }
.post__title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.28; color: var(--red); margin: 0; }
.post__lead { margin: 0.8rem 0 0; font-size: 1.05rem; line-height: 1.6; color: var(--muted); }
.post__cover { margin: 0 0 1.8rem; }
.post__cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.post__body { max-width: none; }
.post__body > :first-child { margin-top: 0; }
.post__body h2 { font-family: var(--serif); font-size: 1.3rem; color: var(--red); margin: 2rem 0 0.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.post__body h2:first-of-type { border-top: 0; padding-top: 0; }
.post__body h3 { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin: 1.4rem 0 0.4rem; }
.post__body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.95rem; }
.post__body th, .post__body td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
.post__body th { background: var(--bg-soft); }
.post__body blockquote { margin: 1.4rem 0; padding: 0.9rem 1.2rem; border-left: 4px solid var(--gold); background: var(--bg-soft); font-style: italic; }
.post + .band { margin-top: 0; }
.post-cover { margin: 1.2rem 0; border: 1px solid var(--line); }
.error-page { text-align: center; padding: 3rem 0; }
.error-detail { text-align: left; background: var(--bg-soft); padding: 1rem; overflow-x: auto; font-size: 0.78rem; border: 1px solid var(--line); }

/* ---- footer ---- */
.site-footer { background: #23272e; color: #c7ccd4; margin-top: 2.5rem; font-size: 0.88rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.6rem; padding: 2.6rem 0 2rem; align-items: start; }
.site-footer__name { font-family: var(--serif); color: #fff; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; font-size: 0.98rem; line-height: 1.4; max-width: 34ch; }
.site-footer h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer a { color: #c7ccd4; text-decoration: none; }
.site-footer a:hover { color: #fff; }

.site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.site-footer__contact li { display: flex; gap: 0.6rem; line-height: 1.55; }
.site-footer__contact strong { color: #e8ebef; font-weight: 600; }
.site-footer__ic { flex: none; color: var(--gold); margin-top: 2px; }

.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer__links--check li { position: relative; padding-left: 1.35rem; }
.site-footer__links--check li::before {
  content: ""; position: absolute; left: 2px; top: 3px;
  width: 6px; height: 10px;
  border: solid var(--gold); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.site-footer__map { border: 1px solid rgba(255, 255, 255, 0.14); }
.site-footer__map iframe { display: block; width: 100%; height: 200px; border: 0; }

.site-footer__base { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1rem 0; font-size: 0.8rem; color: #8b919b; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
  .site-header__bar { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 1px solid var(--red); border-radius: 2px; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 20px; height: 2px; background: var(--red); display: block; }
  .site-nav {
    display: none; justify-self: auto;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--red); border-top: 1px solid rgba(255,255,255,0.2);
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; width: 100%; padding: 0; }
  .site-nav > ul > li > a { color: #fff; padding: 0.85rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.15); box-shadow: none; }
  .site-nav > ul > li > a:hover { background: var(--red-dark); }
  .site-nav > ul > li > a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: var(--red-dark); padding: 0; min-width: 0; }
  .subnav a { color: #f1e4c8; padding: 0.6rem 1.6rem; }
  .subnav a:hover { background: transparent; color: #fff; }
  .has-sub__caret { display: none; }
  .doc__layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .doc-main { max-width: none; }
  .doc-side { position: static; }
  .doc-side nav { flex-direction: row; flex-wrap: wrap; }
  .doc-side a { border-left: 0; border-bottom: 3px solid transparent; }
  .doc-side a[aria-current] { border-left: 0; border-bottom-color: var(--red); }
}
@media (max-width: 940px) {
  .brand__mark { width: 48px; height: 48px; }
  .brand__name, .brand__aff { display: none; }
  .brand__short { display: block; font-family: var(--serif); font-weight: 700; font-size: 0.92rem; line-height: 1.25; text-transform: uppercase; color: var(--red); }
  .site-header__actions .btn { display: none; }
  .eventbar { grid-template-columns: 1fr; gap: 1.4rem; }
  .pillars, .cards, .svc-list, .svc-list--full, .agrid, .partner-grid { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .product, .contact-grid, .order-layout { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .factlist > div { grid-template-columns: 1fr; }
  .factlist dt { border-bottom: 1px solid var(--line); }
  .figure-person { float: none; width: 100%; max-width: 280px; margin: 0 0 1.4rem; }
  .cart-table thead { display: none; }
  .cart-table td { display: flex; justify-content: space-between; border: 0; padding: 0.35rem 0.7rem; }
  .cart-table td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
  .cart-table tr { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .pgrid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-topbar { font-size: 0.7rem; }
  .site-topbar span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
