/* Cache bust: NEXT_PUBLIC_CLUB_CSS_VERSION trong .env */
/* base.css — biến, layout, header, footer (dùng chung mọi trang) */

:root {
  /* —— Layout & radius —— */
  --radius-header-bottom: 0.35rem;
  --radius-cta: 0.3rem;
  --text-white: #ffffff;
  --font-sans: var(--font-roboto, "Roboto"), system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-script: var(--font-great-vibes, "Great Vibes"), cursive;
  --shadow-cta: 0 0.1em 0.25em rgba(0, 0, 0, 0.2);
  --underline-active: 0.12em;
  --container-max: 1440px;
  --container-gutter: clamp(0.75rem, 3vw, 1.5rem);
  --section-pad-y: clamp(1.5rem, 4vw, 3rem);
  --section-pad-y-lg: clamp(2rem, 6vw, 4.5rem);
  --container-width: 64rem;
  --content-max: 86rem;
  --section-pad-band: clamp(1.5rem, 3.5vw, 2.75rem);
  --surface-cream-warm: rgb(251 236 211);
  --surface-cream-partners: #fdfaf3;
  --surface-cream-news: #fdf8f3;
  --placeholder-bg: #c9c4bf;
  --placeholder-bg-light: #eeeeee;

  /* —— Brand (đồng bộ hero / boxicon / overview / giới thiệu) —— */
  --brand-red-dark: #620305;
  --brand-red-mid: #7a1519;
  --brand-red-accent: #9f211b;
  --brand-gold: rgb(242, 189, 86);
  --brand-gold-light: color-mix(in srgb, var(--brand-gold) 52%, #fff);
  --brand-gold-soft: color-mix(in srgb, var(--brand-gold) 55%, #fff);

  /* —— Nền & chữ —— */
  --surface-cream: #faf7f3;
  --surface-cream-alt: #f5efe6;
  --surface-card: #fffdf9;
  --surface-section-white: #fff;
  --surface-muted-band: #ebe3d9;
  --text-primary: #2a211c;
  --text-muted: #575049;
  --border-ui: color-mix(in srgb, var(--brand-gold) 24%, #6e5f56 18%);
  --placeholder-gray: #d4cfca;

  /* Vạch ngăn section + focus */
  --section-divider: 1px solid color-mix(in srgb, var(--brand-gold) 30%, transparent);
  --focus-ring: 0.15em solid var(--brand-gold);

  /* Stacking (thấp → cao): body ≤ --z-page < header < overlay < drawer */
  --z-page: 1;
  --z-header: 1000;
  --z-nav-overlay: 1100;
  --z-nav-drawer: 1200;
  --nav-drawer-width: min(18.5rem, 88vw);

  /* Breakpoint (desktop-first, chỉ max-width ở cuối file) */
  --bp-nav-desktop: 1200px;
  --bp-tablet: 992px;
  --bp-mobile: 640px;
}

html[data-scroll-behavior="smooth"] {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--surface-cream);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header + main + footer: footer luôn dính đáy khi đang load (loading.tsx) */
.site-shell {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
}

.site-shell__main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

.site-shell > .site-header,
.site-shell > .site-footer {
  flex-shrink: 0;
}

/* ——— Layout dùng chung toàn site ——— */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.section {
  padding-block: var(--section-pad-y-lg);
}

/* Container nội dung section (86rem) — căn lề ngang giống header .container */
.page-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.page-container--layered {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .club-intro-section > .page-container--layered,
  .club-stats-bar > .page-container--layered {
    width: 100%;
    max-width: 100%;
    padding-inline: var(--container-gutter);
  }
}

/* Vỏ section: vạch trên + padding dọc */
.section-shell {
  border-top: var(--section-divider);
  padding-block: var(--section-pad-band);
}

.bg-cream-warm {
  background: var(--surface-cream-warm);
}

.bg-cream-partners {
  background: var(--surface-cream-partners);
}

.bg-cream-news {
  background: var(--surface-cream-news);
}

/* Tiêu đề block section (đỏ, uppercase) */
.section-heading {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-red-dark);
}

.section-heading--band {
  font-size: clamp(0.82rem, 1.35vw, 0.98rem);
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.section-heading--band-center {
  text-align: center;
}

.section-heading--band-spaced {
  margin-bottom: clamp(0.75rem, 1.6vw, 1.1rem);
}

.section-heading--benefits {
  margin-bottom: clamp(0.85rem, 2vw, 1.35rem);
  font-size: clamp(0.95rem, 1.55vw, 1.15rem);
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-align: center;
}

.section-heading--partners {
  font-size: clamp(0.88rem, 1.45vw, 1.05rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

/* Hàng tiêu đề + “Xem tất cả” */
.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: clamp(0.5rem, 2vw, 1rem);
}

.section-header-row--start {
  align-items: flex-start;
}

.section-header-row--spaced-sm {
  margin-bottom: clamp(0.55rem, 1.4vw, 0.85rem);
}

.section-header-row--spaced-md {
  margin-bottom: clamp(0.85rem, 1.8vw, 1.25rem);
}

.link-view-all {
  flex-shrink: 0;
  font-size: clamp(0.58rem, 0.95vw, 0.72rem);
  font-weight: 600;
  color: var(--brand-red-dark);
  text-decoration: none;
  white-space: nowrap;
}

.link-view-all--muted {
  color: color-mix(in srgb, var(--text-primary) 55%, var(--text-muted));
}

.link-view-all:hover {
  text-decoration: underline;
}

.link-view-all:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
  border-radius: 0.15rem;
}

/* Ảnh placeholder xám (tin, đối tác, thư viện, …) */
.media-placeholder {
  background: var(--placeholder-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 7%, transparent);
}

.media-placeholder--light {
  background: var(--placeholder-bg-light);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-primary) 6%, transparent);
}

/* Tiêu đề section căn giữa + line + kim cương (dùng chung nhiều trang) */
.section-title-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 1.2vw, 0.85rem);
  margin: 0 0 clamp(1rem, 2.2vw, 1.65rem);
}

.section-title-band__side {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.9vw, 0.55rem);
  flex: 1 1 0;
  min-width: 0;
  max-width: clamp(4rem, 18vw, 11rem);
}

.section-title-band__side--end {
  flex-direction: row-reverse;
}

.section-title-band__line {
  flex: 1 1 auto;
  height: 1px;
  min-width: 0.5rem;
  background: color-mix(in srgb, var(--brand-gold) 38%, var(--border-ui) 40%);
}

.section-title-band__gem {
  flex-shrink: 0;
  font-size: clamp(0.35rem, 0.65vw, 0.45rem);
  line-height: 1;
  color: var(--brand-gold);
}

.section-title-band__title {
  flex-shrink: 0;
  margin: 0;
  text-align: center;
}

/* Thẻ thành viên: avatar trái + nội dung phải (tái sử dụng nhiều section) */
.member-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(0.55rem, 1.2vw, 0.85rem);
  align-items: stretch;
  min-width: 0;
  padding: clamp(0.65rem, 1.4vw, 0.95rem);
  background: var(--surface-section-white);
  border: 1px solid color-mix(in srgb, var(--brand-red-dark) 8%, #ddd 72%);
  border-radius: 0.45rem;
  box-shadow: 0 0.06em 0.2em color-mix(in srgb, var(--text-primary) 5%, transparent);
}

.member-card__avatar {
  align-self: center;
  flex-shrink: 0;
  width: clamp(4.25rem, 11vw, 5.5rem);
  height: clamp(4.25rem, 11vw, 5.5rem);
  border-radius: 50%;
  object-fit: cover;
}

.member-card__avatar.media-placeholder,
.member-card__avatar[class*="placeholder"] {
  display: block;
}

.member-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2em;
  min-width: 0;
  min-height: 100%;
}

.member-card__name {
  margin: 0;
  font-size: clamp(0.78rem, 1.15vw, 0.92rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-red-dark);
}

.member-card__role {
  margin: 0;
  font-size: clamp(0.62rem, 0.95vw, 0.72rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.member-card__company {
  margin: 0;
  font-size: clamp(0.58rem, 0.88vw, 0.68rem);
  line-height: 1.4;
  color: var(--text-primary);
}

.member-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.35em;
  margin: 0;
  font-size: clamp(0.55rem, 0.82vw, 0.65rem);
  line-height: 1.35;
  color: var(--text-muted);
}

.member-card__meta i {
  flex-shrink: 0;
  margin-top: 0.12em;
  font-size: 0.9em;
}

.member-card__meta--field i {
  color: var(--brand-gold);
}

.member-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.42em 0.8em;
  font-family: inherit;
  font-size: clamp(0.5rem, 0.78vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-red-dark);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--brand-red-dark) 75%, #000);
  border-radius: 0.28rem;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.member-card__btn:hover {
  background: color-mix(in srgb, var(--brand-red-dark) 8%, #fff);
}

.member-card__btn:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

/* Tiêu đề section cột trái + gạch kim cương (dùng chung) */
.section-title-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.45rem, 1vw, 0.65rem);
  min-width: 0;
}

.section-title-side__title {
  margin: 0;
  font-size: clamp(0.88rem, 1.45vw, 1.05rem);
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--brand-red-dark);
}

.section-title-side__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.3rem, 0.75vw, 0.45rem);
  width: 100%;
  max-width: clamp(6.5rem, 16vw, 9.5rem);
}

.section-title-side__line {
  flex: 1 1 auto;
  height: 1px;
  min-width: 0.35rem;
  background: color-mix(in srgb, var(--brand-gold) 55%, var(--border-ui) 35%);
}

.section-title-side__gem {
  flex-shrink: 0;
  font-size: clamp(0.32rem, 0.6vw, 0.42rem);
  line-height: 1;
  color: var(--brand-gold);
}

/* Icon box: vòng đỏ + icon vàng + tiêu đề + mô tả (tái sử dụng) */
.benefit-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.35rem, 0.9vw, 0.55rem);
  min-width: 0;
  height: 100%;
  padding: clamp(0.65rem, 1.4vw, 0.95rem) clamp(0.45rem, 1vw, 0.7rem);
  background: var(--surface-section-white);
  border: 1px solid color-mix(in srgb, var(--brand-red-dark) 10%, var(--brand-gold) 14%);
  border-radius: clamp(0.4rem, 0.9vw, 0.55rem);
  box-shadow: 0 0.06em 0.18em color-mix(in srgb, var(--brand-red-dark) 6%, transparent);
}

.benefit-box__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: clamp(2.35rem, 5vw, 2.9rem);
  height: clamp(2.35rem, 5vw, 2.9rem);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand-gold) 40%, transparent);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--brand-red-mid) 92%, #000) 0%,
    var(--brand-red-dark) 55%,
    color-mix(in srgb, var(--brand-red-dark) 88%, #000) 100%
  );
  box-shadow:
    inset 0 0.12em 0.22em color-mix(in srgb, #000 35%, transparent),
    0 0.08em 0.15em color-mix(in srgb, var(--brand-red-dark) 22%, transparent);
}

.benefit-box__icon i {
  font-size: clamp(0.85rem, 1.75vw, 1.05rem);
  line-height: 1;
  background: linear-gradient(
    148deg,
    color-mix(in srgb, var(--brand-gold) 72%, #fff9e8) 0%,
    color-mix(in srgb, var(--brand-gold) 95%, #f0d48a) 22%,
    color-mix(in srgb, var(--brand-gold) 100%, #b8860b) 42%,
    color-mix(in srgb, var(--brand-gold) 82%, #6b4a0a) 55%,
    color-mix(in srgb, var(--brand-gold) 100%, #c9a227) 72%,
    color-mix(in srgb, var(--brand-gold) 88%, #fff4d4) 88%,
    color-mix(in srgb, var(--brand-gold) 65%, #fffdf6) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .benefit-box__icon i {
    background: none;
    color: var(--brand-gold);
    -webkit-text-fill-color: unset;
  }
}

.benefit-box__title {
  margin: 0;
  font-size: clamp(0.5rem, 0.88vw, 0.62rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--brand-red-dark);
}

.benefit-box__desc {
  margin: 0;
  font-size: clamp(0.48rem, 0.78vw, 0.58rem);
  line-height: 1.45;
  color: color-mix(in srgb, var(--brand-red-dark) 88%, #1a0a0a);
}

/* Thẻ lĩnh vực: ảnh trên + nhãn dưới (tái sử dụng) */
.sector-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: var(--surface-section-white);
  border: 1px solid color-mix(in srgb, var(--brand-gold) 28%, #ddd 65%);
  border-radius: clamp(0.4rem, 0.9vw, 0.55rem);
  overflow: hidden;
  box-shadow: 0 0.06em 0.18em color-mix(in srgb, var(--text-primary) 5%, transparent);
}

.sector-card__link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.sector-card__link:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.sector-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sector-card__media.media-placeholder {
  min-height: 0;
}

.sector-card__title {
  margin: 0;
  padding: clamp(0.55rem, 1.2vw, 0.75rem) clamp(0.35rem, 0.8vw, 0.5rem);
  font-size: clamp(0.5rem, 0.82vw, 0.62rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  color: var(--brand-red-dark);
}

/* Thẻ chia sẻ / testimonial: dấu ngoặc + avatar trái + nội dung phải */
.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: clamp(1rem, 2vw, 1.35rem);
  padding-top: clamp(1.65rem, 3.2vw, 2.1rem);
  background: color-mix(in srgb, var(--surface-cream-warm) 35%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-gold) 22%, #fff 78%);
  border-radius: clamp(0.4rem, 0.9vw, 0.55rem);
  box-shadow: 0 0.06em 0.2em color-mix(in srgb, var(--text-primary) 6%, transparent);
}

.quote-card__mark {
  position: absolute;
  top: clamp(0.45rem, 1vw, 0.65rem);
  left: clamp(0.55rem, 1.2vw, 0.85rem);
  font-size: clamp(1.75rem, 3.8vw, 2.35rem);
  line-height: 1;
  color: var(--brand-red-dark);
  opacity: 0.92;
  pointer-events: none;
}

.quote-card__mark i {
  display: block;
}

.quote-card__layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(0.55rem, 1.2vw, 0.85rem);
  align-items: start;
  flex: 1 1 auto;
  min-height: 0;
}

.quote-card__avatar {
  flex-shrink: 0;
  width: clamp(2.85rem, 7vw, 3.65rem);
  height: clamp(2.85rem, 7vw, 3.65rem);
  border-radius: 50%;
  object-fit: cover;
}

.quote-card__avatar.media-placeholder {
  display: block;
}

.quote-card__content {
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 0.8vw, 0.5rem);
  min-width: 0;
}

.quote-card__text {
  margin: 0;
  padding: 0;
  border: 0;
}

.quote-card__text p {
  margin: 0;
  font-size: clamp(0.72rem, 1.02vw, 0.84rem);
  font-weight: 400;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text-primary) 90%, var(--text-muted));
}

.quote-card__name {
  margin: 0;
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--brand-red-dark);
}

.quote-card__meta {
  margin: 0;
  font-size: clamp(0.65rem, 0.92vw, 0.76rem);
  font-weight: 500;
  line-height: 1.35;
  color: color-mix(in srgb, var(--text-primary) 50%, var(--text-muted));
}

/* Dots carousel (tái sử dụng) */
.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 0.8vw, 0.5rem);
  margin: 0;
  padding: clamp(0.85rem, 2vw, 1.25rem) 0 0;
  list-style: none;
}

.carousel-dots__btn {
  width: clamp(0.42rem, 0.85vw, 0.52rem);
  height: clamp(0.42rem, 0.85vw, 0.52rem);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text-muted) 35%, #ccc);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.carousel-dots__btn:hover {
  background: color-mix(in srgb, var(--brand-red-dark) 45%, #ccc);
}

.carousel-dots__btn:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.carousel-dots__btn[aria-selected="true"],
.carousel-dots__btn.is-active {
  background: var(--brand-red-dark);
  transform: scale(1.08);
}

/* Nút “Xem thêm” căn giữa cuối section (theme bottom) */
.theme-bottom {
  display: flex;
  justify-content: center;
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

.theme-bottom__btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.45rem, 1vw, 0.65rem);
  padding: 0.62em 0.45em 0.62em 1.35em;
  font-family: inherit;
  font-size: clamp(0.68rem, 1.1vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-gold) 32%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand-red-mid) 92%, #000) 0%,
    var(--brand-red-dark) 100%
  );
  box-shadow: 0 0.15em 0.4em color-mix(in srgb, var(--brand-red-dark) 35%, transparent);
  transition: filter 0.2s ease, transform 0.15s ease;
}

.theme-bottom__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-0.04em);
}

.theme-bottom__btn:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
}

.theme-bottom__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.75em;
  height: 1.75em;
  border-radius: 50%;
  background: color-mix(in srgb, #fff 18%, transparent);
  font-size: 0.72em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  color: var(--text-white);
  box-shadow: 0 0.15em 0.35em rgba(0, 0, 0, 0.25);
  overflow: visible;
  border-bottom-left-radius: var(--radius-header-bottom);
  border-bottom-right-radius: var(--radius-header-bottom);
}

.site-header--fallback {
  pointer-events: none;
}

.site-header--fallback .top-bar {
  min-height: 2.25rem;
}

.site-header--fallback .main-nav {
  min-height: 4.5rem;
}

/* ——— Top bar ——— */
.top-bar {
  background: var(--brand-red-dark);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-gold) 18%, transparent);
  padding-block: clamp(0.4rem, 1vw, 0.5rem);
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.45rem, 1.8vw, 1rem);
}

.top-bar__slogan {
  margin: 0;
  font-size: clamp(0.75rem, 1.05vw, 0.875rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--brand-gold-soft);
  line-height: 1.45;
  flex: 1 1 auto;
  min-width: min(100%, 14rem);
}

.top-bar__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.45rem, 1.5vw, 1rem);
  flex: 1 1 auto;
  min-width: 0;
}

.top-bar__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.45rem, 1.4vw, 0.95rem);
  min-width: 0;
}

.top-bar__contact li {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-white);
  white-space: nowrap;
}

.top-bar__contact a {
  color: inherit;
  text-decoration: none;
}

.top-bar__contact a:hover {
  color: var(--brand-gold);
}

.top-bar__icon {
  flex-shrink: 0;
  font-size: 0.95em;
  color: var(--brand-gold);
  line-height: 1;
}

.top-bar__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(0.35rem, 1vw, 0.55rem);
}

.top-bar__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(1.55rem, 2.2vw, 1.75rem);
  height: clamp(1.55rem, 2.2vw, 1.75rem);
  border-radius: 0.28rem;
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.78rem, 1.05vw, 0.88rem);
  line-height: 1;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.top-bar__social-link:hover {
  transform: translateY(-0.08rem);
  opacity: 0.92;
}

.top-bar__social-link:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.top-bar__social-link--fb {
  background: #1877f2;
}

.top-bar__social-link--ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.top-bar__social-link--tt {
  background: #010101;
}

.top-bar__social-link--zalo {
  background: #0068ff;
}

.top-bar__social-link--yt {
  background: #ff0000;
}

.top-bar__social-link--in {
  background: #0a66c2;
}



/* ——— Main navigation ——— */
.main-nav {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.55rem, 1.8vw, 1rem);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-block: clamp(0.75rem, 2vw, 1.05rem);
  padding-inline: max(
    var(--container-gutter),
    calc((100% - var(--container-max)) / 2)
  );
  background: var(--brand-red-dark);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-gold) 15%, transparent);
}

.main-nav__inner.container {
  order: 1;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.55rem, 1.8vw, 1rem);
  z-index: auto;
}

.main-nav__group--brand {
  flex: 0 0 max-content;
  max-width: max-content;
  min-width: 0;
}

.main-nav__group--actions {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 0.9rem);
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
}

.brand:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 0.2em;
  border-radius: 0.2em;
}

.brand__logo {
  width: clamp(2.85rem, 8vw, 4.1rem);
  height: clamp(2.85rem, 8vw, 4.1rem);
  border-radius: 50%;
  object-fit: cover;
  border: 0.1em solid var(--brand-gold);
  box-shadow: 0 0.06em 0.18em rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  line-height: 1.1;
  min-width: 0;
}

.brand__line1 {
  font-size: clamp(0.65rem, 1.1vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.brand__line2 {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold);
  white-space: nowrap;
}

.main-nav__toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--text-white) 35%, transparent);
  border-radius: 0.25em;
  background: color-mix(in srgb, black 25%, transparent);
  color: var(--text-white);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.main-nav__toggle:hover {
  background: color-mix(in srgb, var(--brand-gold) 12%, transparent);
  border-color: var(--brand-gold);
}

.main-nav__toggle:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 0.15em;
}

.main-nav__toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 0.28em;
}

.main-nav__toggle-icon span {
  display: block;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.2s;
}

.main-nav__toggle[aria-expanded="true"] .main-nav__toggle-icon span:nth-child(1) {
  transform: translateY(0.38em) rotate(45deg);
}

.main-nav__toggle[aria-expanded="true"] .main-nav__toggle-icon span:nth-child(2) {
  opacity: 0;
}

.main-nav__toggle[aria-expanded="true"] .main-nav__toggle-icon span:nth-child(3) {
  transform: translateY(-0.38em) rotate(-45deg);
}

.main-nav__panel {
  order: 2;
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.55rem, 2vw, 1.5rem);
  min-width: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.main-nav__panel nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.main-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.2rem, 0.6vw, 0.35rem) clamp(0.45rem, 1.6vw, 1rem);
}

.main-nav__list > li {
  position: relative;
}

.main-nav__list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding-block: 0.5em;
  font-size: clamp(0.7rem, 1.08vw, 0.8125rem);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-white);
  transition: color 0.2s;
}

.main-nav__list > li > a:hover {
  color: var(--brand-gold);
}

.main-nav__list > li > a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 0.2em;
  border-radius: 0.15em;
}

.main-nav__chevron {
  font-size: 0.65em;
  opacity: 0.95;
  line-height: 1;
}

.main-nav__list > li.main-nav__item--active > a,
.main-nav__list > li.main-nav__item--active > a:hover {
  color: var(--brand-gold);
}

.main-nav__list > li.main-nav__item--active > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin-inline: auto;
  width: 100%;
  max-width: 100%;
  height: var(--underline-active);
  background: var(--brand-gold);
  border-radius: 1px;
}

.main-nav__list li:not(.main-nav__item--active) > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  width: 85%;
  height: 1px;
  background: var(--brand-gold);
  opacity: 0.45;
  transition: transform 0.2s ease;
}

.main-nav__list li:not(.main-nav__item--active) > a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.main-nav__drawer-head,
.main-nav__drawer-close {
  display: none;
}

.main-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-top: 0;
  flex: 0 0 auto;
  align-self: center;
  padding: clamp(0.5em, 1.3vw, 0.62em) clamp(0.95em, 2vw, 1.25em);
  font-size: clamp(0.68rem, 1vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-red-dark);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand-gold) 28%, white) 0%,
    var(--brand-gold) 42%,
    color-mix(in srgb, var(--brand-gold) 88%, #6b3a0a) 100%
  );
  border-radius: var(--radius-cta);
  box-shadow: var(--shadow-cta);
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.2s, transform 0.15s;
}

.main-nav__cta:hover {
  filter: brightness(1.04);
  transform: translateY(-0.04em);
}

.main-nav__cta:focus-visible {
  outline: 0.15em solid var(--text-white);
  outline-offset: 0.15em;
}

.main-nav__backdrop {
  display: none;
}




/* ——— Footer ——— */
.site-footer {
  background: var(--brand-red-dark);
  color: #fff;
  font-family: var(--font-sans);
  border-top: 1px solid var(--brand-gold);
}

.site-footer__top {
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 0;
  align-items: start;
}

.site-footer__col {
  padding-left: clamp(0.85rem, 2vw, 1.35rem);
  margin-left: clamp(0.85rem, 2vw, 1.35rem);
  border-left: 1px solid color-mix(in srgb, #fff 14%, transparent);
  min-width: 0;
}

.site-footer__col--brand {
  padding-left: 0;
  margin-left: 0;
  border-left: none;
}

.site-footer__brand-head {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.5vw, 0.95rem);
  margin-bottom: clamp(0.65rem, 1.5vw, 0.95rem);
}

.site-footer__logo-ring {
  flex-shrink: 0;
  width: clamp(3.25rem, 7vw, 4.25rem);
  aspect-ratio: 1;
  padding: 0.12rem;
  border-radius: 50%;
  border: 2px solid var(--brand-gold);
  background: color-mix(in srgb, var(--brand-gold) 12%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-gold) 35%, transparent);
}

.site-footer__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.site-footer__brand-line1 {
  margin: 0;
  font-size: clamp(0.58rem, 0.95vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.site-footer__brand-line2 {
  margin: 0.1rem 0 0;
  font-size: clamp(0.78rem, 1.35vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.site-footer__intro {
  margin: 0 0 clamp(0.85rem, 2vw, 1.15rem);
  max-width: 22rem;
  font-size: clamp(0.68rem, 1.05vw, 0.8rem);
  font-weight: 400;
  line-height: 1.55;
  color: #fff;
}

.site-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.28rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.site-footer__social-link:hover {
  transform: translateY(-0.08rem);
  opacity: 0.92;
}

.site-footer__social-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.site-footer__social-link--fb {
  background: #1877f2;
}

.site-footer__social-link--zalo {
  background: #0068ff;
}

.site-footer__social-link--yt {
  background: #ff0000;
}

.site-footer__social-link--in {
  background: #0a66c2;
}

.site-footer__social-link--ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.site-footer__social-link--tt {
  background: #010101;
}

.site-footer__heading {
  margin: 0 0 clamp(0.65rem, 1.4vw, 0.9rem);
  font-size: clamp(0.68rem, 1.05vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
  color: #d4af37;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-footer__links a {
  display: inline-block;
  padding-block: 0.45rem;
  font-size: clamp(0.75rem, 1vw, 0.82rem);
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: color-mix(in srgb, var(--brand-gold) 88%, #fff);
  text-decoration: underline;
}

.site-footer__links a:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
  border-radius: 0.15rem;
}

.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: clamp(0.75rem, 1vw, 0.82rem);
  line-height: 1.45;
  color: #fff;
}

.site-footer__contact a {
  display: inline-block;
  padding-block: 0.45rem;
  color: inherit;
  text-decoration: none;
}

.site-footer__contact a:hover {
  color: color-mix(in srgb, var(--brand-gold) 88%, #fff);
  text-decoration: underline;
}

.site-footer__contact a:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
  border-radius: 0.15rem;
}

.site-footer__contact-icon {
  flex-shrink: 0;
  margin-top: 0.45rem;
  width: 1em;
  text-align: center;
  color: #d4af37;
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
}

.site-footer__newsletter-text {
  margin: 0 0 clamp(0.55rem, 1.2vw, 0.75rem);
  font-size: clamp(0.62rem, 0.98vw, 0.74rem);
  line-height: 1.5;
  color: #fff;
}

.site-footer__newsletter {
  display: flex;
  align-items: stretch;
  max-width: 100%;
}

.site-footer__newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid color-mix(in srgb, #fff 38%, transparent);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: #fff;
  color: #2a211c;
  font-family: inherit;
  font-size: clamp(0.65rem, 1vw, 0.76rem);
}

.site-footer__newsletter-input::placeholder {
  color: #888;
}

.site-footer__newsletter-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--brand-gold);
}

.site-footer__newsletter-btn {
  flex-shrink: 0;
  padding: 0.55rem clamp(0.75rem, 2vw, 1.1rem);
  border: 1px solid #fff;
  border-radius: 0 999px 999px 0;
  background: var(--brand-red-mid);
  color: #fff;
  font-family: inherit;
  font-size: clamp(0.58rem, 0.9vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-footer__newsletter-btn:hover {
  background: color-mix(in srgb, #fff 12%, var(--brand-red-mid));
}

.site-footer__newsletter-btn:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

.site-footer__bottom {
  border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
  padding-block: clamp(0.85rem, 2vw, 1.15rem);
}

.site-footer__container--bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
}

.site-footer__copyright {
  margin: 0;
  font-size: clamp(0.58rem, 0.92vw, 0.7rem);
  line-height: 1.4;
  color: #fff;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: clamp(0.58rem, 0.92vw, 0.7rem);
}

.site-footer__legal a {
  color: #fff;
  text-decoration: none;
}

.site-footer__legal a:hover {
  text-decoration: underline;
  color: color-mix(in srgb, var(--brand-gold) 75%, #fff);
}

.site-footer__legal a:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
  border-radius: 0.15rem;
}

.site-footer__legal-sep {
  opacity: 0.65;
  user-select: none;
}

/* =============================================================================
   Responsive — desktop-first, chỉ max-width
   Menu ngang: > 1199px
   Menu drawer: ≤ 1199px (gồm laptop 1024px)
   Tablet:  max-width: 992px
   Mobile:  max-width: 640px
   ============================================================================= */

/* —— Nav drawer (≤1199px) —— */
@media (max-width: 1199px) {
  html.is-nav-open,
  body.is-nav-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.is-nav-open {
    touch-action: none;
  }

  .main-nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: var(--z-nav-overlay);
    border: 0;
    padding: 0;
    margin: 0;
    background: color-mix(in srgb, #000 52%, transparent);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .main-nav__backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav__inner.container {
    position: relative;
    z-index: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.45rem, 2vw, 1rem);
  }

  .main-nav__group--brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .main-nav__group--actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0;
  }

  .main-nav__toggle {
    display: inline-flex;
  }

  .main-nav__panel {
    position: fixed;
    inset: 0 0 0 auto;
    top: 0;
    right: 0;
    width: var(--nav-drawer-width);
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    flex: none;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    align-content: flex-start;
    justify-content: flex-start;
    gap: 0;
    z-index: var(--z-nav-drawer);
    padding:
      max(1rem, env(safe-area-inset-top, 0px))
      var(--container-gutter)
      max(1.25rem, env(safe-area-inset-bottom, 0px));
    background: var(--brand-red-dark);
    border-left: 1px solid color-mix(in srgb, var(--brand-gold) 22%, transparent);
    box-shadow: -0.35rem 0 1.75rem color-mix(in srgb, #000 38%, transparent);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .main-nav__panel.is-open {
    pointer-events: auto;
    transform: translateX(0);
  }

  .main-nav--drawer-left .main-nav__panel {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid color-mix(in srgb, var(--brand-gold) 22%, transparent);
    box-shadow: 0.35rem 0 1.75rem color-mix(in srgb, #000 38%, transparent);
    transform: translateX(-100%);
  }

  .main-nav--drawer-left .main-nav__panel.is-open {
    transform: translateX(0);
  }

  .main-nav__drawer-head {
    position: relative;
    flex-shrink: 0;
    margin-bottom: clamp(0.75rem, 2.2vw, 1rem);
    padding-bottom: clamp(0.85rem, 2.4vw, 1.1rem);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-gold) 22%, transparent);
  }

  .main-nav__drawer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.4rem, 1.4vw, 0.6rem);
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: inherit;
  }

  .main-nav__drawer-brand .brand__logo {
    display: block;
    margin-inline: auto;
  }

  .main-nav__drawer-brand .brand__line1,
  .main-nav__drawer-brand .brand__line2 {
    display: block;
    width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
  }

  .main-nav__drawer-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0.5rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-white);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
    transition: color 0.2s, opacity 0.2s;
  }

  .main-nav__drawer-close:hover {
    color: var(--brand-gold);
    opacity: 1;
  }

  .main-nav__drawer-close:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 0.15em;
    border-radius: 0.15em;
  }

  .main-nav__panel nav {
    width: 100%;
    flex: 0 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.1rem;
  }

  .main-nav__list > li {
    border-bottom: 1px solid color-mix(in srgb, var(--text-white) 10%, transparent);
  }

  .main-nav__list > li > a {
    padding-block: 0.8em;
    width: 100%;
    justify-content: space-between;
  }

  .main-nav__list > li.main-nav__item--active > a,
  .main-nav__list > li.main-nav__item--active > a:hover {
    color: var(--brand-gold);
  }

  .main-nav__list > li.main-nav__item--active > a::after {
    left: 0;
    right: auto;
    width: 3.75rem;
    max-width: 45%;
  }

  .main-nav__list li:not(.main-nav__item--active) > a::after {
    left: 0;
    transform: scaleX(0);
  }

  .main-nav__list li:not(.main-nav__item--active) > a:hover::after {
    transform: scaleX(1);
  }

  .main-nav__cta {
    width: 100%;
    margin-top: clamp(0.65rem, 2vw, 1rem);
    flex-shrink: 0;
  }

  .main-nav {
    display: block;
    padding-inline: var(--container-gutter);
  }

  .main-nav__inner.container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
  }

  .main-nav__group--actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0;
  }

  .main-nav__drawer-head {
    display: block;
  }

  .main-nav__drawer-close {
    display: inline-flex;
  }
}

/* —— Tablet —— */
@media (max-width: 992px) {
  .top-bar {
    display: none !important;
  }

  .section {
    padding-block: var(--section-pad-y);
  }

  .top-bar__inner {
    align-items: flex-start;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__col {
    padding-left: 0;
    margin-left: 0;
    border-left: none;
    padding-top: clamp(1.25rem, 2.5vw, 1.65rem);
    margin-top: clamp(1.25rem, 2.5vw, 1.65rem);
    border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
  }

  .site-footer__col--brand {
    grid-column: 1 / -1;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
  }

  .site-footer__col:nth-child(2),
  .site-footer__col:nth-child(3) {
    padding-top: clamp(1.25rem, 2.5vw, 1.65rem);
    margin-top: clamp(1.25rem, 2.5vw, 1.65rem);
    border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
  }
}

/* Menu ngang desktop lớn (≥1200px) — tránh wrap lệch */
@media (min-width: 1200px) {
  .main-nav__list {
    flex-wrap: nowrap;
    gap: clamp(0.2rem, 0.6vw, 0.35rem) clamp(0.45rem, 1.6vw, 1.2rem);
  }

  .main-nav__list > li > a {
    white-space: nowrap;
  }
}

/* —— Mobile —— */
@media (max-width: 640px) {
  .top-bar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .top-bar__slogan {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .top-bar__meta {
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
  }

  .top-bar__contact {
    justify-content: center;
  }

  .top-bar__contact li:first-child {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__col--brand,
  .site-footer__col:nth-child(4),
  .site-footer__col:nth-child(5) {
    grid-column: 1 / -1;
  }

  .site-footer__col:nth-child(2),
  .site-footer__col:nth-child(3) {
    padding-top: clamp(1.25rem, 2.5vw, 1.65rem);
    margin-top: clamp(1.25rem, 2.5vw, 1.65rem);
    border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
  }

  .site-footer__col:nth-child(4) {
    padding-top: clamp(1.25rem, 2.5vw, 1.65rem);
    margin-top: clamp(1.25rem, 2.5vw, 1.65rem);
    border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
  }

  .site-footer__col:nth-child(5) {
    padding-top: clamp(1.25rem, 2.5vw, 1.65rem);
    margin-top: clamp(1.25rem, 2.5vw, 1.65rem);
    border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
  }

  .site-footer__container--bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— Scroll to top ——— */
.scroll-to-top {
  position: fixed;
  right: clamp(0.85rem, 2.5vw, 1.35rem);
  bottom: clamp(0.85rem, 2.5vw, 1.35rem);
  z-index: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--brand-gold) 55%, #fff);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-white);
  background: linear-gradient(165deg, var(--brand-red-mid), var(--brand-red-dark));
  box-shadow:
    0 0.2em 0.65em rgba(98, 3, 5, 0.35),
    inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.65rem);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.scroll-to-top i {
  font-size: 1rem;
  line-height: 1;
}

.scroll-to-top--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-to-top:hover {
  border-color: var(--brand-gold);
  background: linear-gradient(165deg, var(--brand-red-accent), var(--brand-red-mid));
  box-shadow:
    0 0.35em 0.85em rgba(98, 3, 5, 0.42),
    inset 0 1px 0 color-mix(in srgb, #fff 22%, transparent);
}

.scroll-to-top:focus-visible {
  outline: none;
  box-shadow:
    var(--focus-ring),
    0 0.2em 0.65em rgba(98, 3, 5, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-to-top {
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }
}

/* ——— 404 (full-bleed hero) ——— */
.page-404 {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: max(32rem, calc(100dvh - 12rem));
  margin: 0;
  padding: clamp(2rem, 6vw, 4rem) var(--container-gutter);
  overflow: hidden;
  text-align: center;
  color: var(--brand-red-dark);
}

.page-404__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/club/images/404.png');
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  background-color: var(--surface-cream-news);
}

.page-404__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #fff 18%, transparent) 0%,
    color-mix(in srgb, #fff 8%, transparent) 35%,
    color-mix(in srgb, #fff 22%, transparent) 100%
  );
  pointer-events: none;
}

.page-404__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 42rem;
  width: 100%;
}

.page-404__code {
  margin: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--brand-red-dark);
  text-shadow: 0 2px 28px color-mix(in srgb, #fff 75%, transparent);
}

.page-404__divider {
  width: min(13.75rem, 78%);
  margin: 0.5rem 0 1.15rem;
}

.page-404__divider-svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--brand-red-accent);
}

.page-404__divider-line {
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.92;
}

.page-404__divider-knot {
  fill: currentColor;
}

.page-404__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--brand-red-dark);
  text-shadow: 0 1px 18px color-mix(in srgb, #fff 80%, transparent);
}

.page-404__lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: 500;
  line-height: 1.65;
  color: color-mix(in srgb, var(--text-muted) 88%, var(--brand-red-dark));
  text-shadow: 0 1px 12px color-mix(in srgb, #fff 70%, transparent);
}

.page-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.6rem 1.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-gold) 35%, transparent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(165deg, var(--brand-red-mid), var(--brand-red-dark));
  box-shadow:
    0 0.2em 0.65em color-mix(in srgb, var(--brand-red-dark) 45%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 15%, transparent);
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.page-404__btn i {
  font-size: 0.95rem;
}

.page-404__btn:hover {
  color: #fff;
  background: linear-gradient(165deg, var(--brand-red-accent), var(--brand-red-mid));
  transform: translateY(-1px);
  box-shadow:
    0 0.35em 0.85em color-mix(in srgb, var(--brand-red-dark) 50%, transparent),
    inset 0 1px 0 color-mix(in srgb, #fff 18%, transparent);
}

.page-404__btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 0.2em 0.65em color-mix(in srgb, var(--brand-red-dark) 45%, transparent);
}

@media (max-width: 640px) {
  .page-404 {
    min-height: max(28rem, calc(100dvh - 10rem));
  }

  .page-404__bg {
    background-position: center 38%;
  }
}

/* ——— CTA banner — mobile (dùng chung mọi trang) ——— */
@media (max-width: 640px) {
  .cta-banner__actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    max-width: min(100%, 24rem);
    margin-inline: auto;
  }

  .cta-banner__btn {
    flex: 1 1 0%;
    width: auto;
    min-height: 2.65rem;
    padding: 0.6em 0.5em;
    font-size: clamp(0.68rem, 3vw, 0.78rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-align: center;
  }
}

/* Chuyển trang — loading.tsx */
.page-loading {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 10rem;
  padding: 2rem 1rem;
  background: var(--surface-cream);
}

.page-loading__spinner {
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid color-mix(in srgb, var(--brand-gold) 35%, transparent);
  border-top-color: var(--brand-red-dark);
  border-radius: 50%;
  animation: page-loading-spin 0.7s linear infinite;
}

@keyframes page-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
