/* EduSpark prototype — aligned with Figma Trang chủ structure */

:root {
  --color-bg: #faf9f8;
  --color-bg-warm: #faf5eb;
  --color-brown: #492a13;
  --color-orange: #f98c11;
  /*
   * BUG-006 — cam dùng làm MÀU CHỮ trên nền sáng chỉ đạt 2,2–2,4:1.
   * #f98c11 GIỮ NGUYÊN cho mảng nền, nút, huy hiệu (màu nhận diện, khách chốt
   * 21/09/2026 là không đổi). Chữ màu cam dùng bản -ink: 5,45:1 trên trắng,
   * 5,02:1 trên kem.
   *
   * Biến này vốn CHỈ khai trong solutions.css (nạp riêng cho trang giải pháp),
   * còn main.css thì gõ tay giá trị dự phòng. Khai ở đây để cả site dùng chung
   * MỘT nguồn.
   */
  --color-orange-ink: #a75200;
  /* 4,38:1 trên nền kem — thiếu 0,12. Đậm lên vừa đủ, không liên quan màu cam. */
  --color-muted: #6e6058;
  --color-white: #ffffff;
  --shadow-card: 0 4px 4px rgba(0, 0, 0, 0.05);
  --shadow-card-strong: 0 4px 4px rgba(0, 0, 0, 0.25);
  --radius-lg: 30px;
  --radius-md: 20px;
  --max-w: 1600px;
  --font-serif: "Merriweather", "Times New Roman", serif;
  --font-body: "Open Sans", "Myriad Pro", system-ui, sans-serif;
  /* Large serif section headings (About, contact blocks, homepage serif sections) */
  --section-display-title-size: clamp(30px, 2.85vw, 46px);
  --header-top-h: 76px;
  --header-glass-h: 76px;
  /* Hero photos: source assets 1062×1080 — frame matches ratio so cover rarely crops */
  --hero-visual-max-w: 1062px;
  --hero-slide-aspect: 1062 / 1080;
  /* Global viewport scale from mobile -> desktop (1920 baseline). */
  --vp-fluid: clamp(0.82, (100vw - 360px) / 1560, 1);
  --space-section-y: clamp(52px, 7.5vw, 72px);
  --radius-fluid-md: clamp(14px, 1.4vw, 20px);
  --radius-fluid-lg: clamp(20px, 2vw, 30px);
  --eduspark-size-top-logo-w: 176px;
  --eduspark-size-top-logo-h: 67px;
  --eduspark-size-navbar-logo-w: 132px;
  --eduspark-size-about-hero-logo-w: 200px;
  --eduspark-size-team-photo-basis: 32%;
  --eduspark-size-team-photo-max-w: 360px;
  --eduspark-size-partner-logo-w-min: 180px;
  --eduspark-size-partner-logo-w-max: 260px;
  --eduspark-size-partner-logo-h-min: 84px;
  --eduspark-size-partner-logo-h-max: 128px;
  --eduspark-size-contact-logo-max-w: 280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-brown);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img.img-fallback {
  object-fit: cover;
}

/* Scroll reveal animation (enabled by JS intersection observer). */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.56s ease, transform 0.56s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

a {
  color: var(--color-orange);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.container {
  width: min(100% - 48px, var(--max-w));
  margin-inline: auto;
}

/* --- Site header: 2 tiers like Figma (90px strip + nav row) --- */
.site-header {
  position: relative;
  z-index: 40;
}

/* Tier 1: email left | horizontal logo + tagline center | social right */
.top-bar {
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 15px;
}

.top-bar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 20px;
  min-height: var(--header-top-h);
  padding: 6px 0;
}

/* Tier 1 mobile: hamburger (shown ≤960px); desktop uses tier-2 navbar for links */
.top-bar__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  color: var(--color-brown);
  flex-shrink: 0;
}

.top-bar__menu-btn:hover {
  background: rgba(249, 140, 17, 0.1);
}

.top-bar__menu-btn:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

.top-bar__menu-btn-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
}

.top-bar__menu-btn-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.top-bar__menu-btn.is-open .top-bar__menu-btn-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.top-bar__menu-btn.is-open .top-bar__menu-btn-bars span:nth-child(2) {
  opacity: 0;
}

.top-bar__menu-btn.is-open .top-bar__menu-btn-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer markup is in DOM; only active layout on small screens */
.mobile-nav-drawer {
  display: none;
}

.top-bar__contact {
  justify-self: start;
}

.top-bar__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 600;
}

.top-bar__mail:hover {
  color: var(--color-orange);
  text-decoration: none;
}

.top-bar__mail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(249, 140, 17, 0.12);
  color: var(--color-orange);
}

.top-bar__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  max-width: min(440px, 92vw);
}

.top-bar__logo {
  display: block;
  line-height: 0;
}

.top-bar__logo-img {
  width: var(--eduspark-size-top-logo-w);
  height: var(--eduspark-size-top-logo-h);
  max-width: min(var(--eduspark-size-top-logo-w), 58vw);
  object-fit: contain;
}

.top-bar__tagline {
  margin: 0;
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: var(--color-brown);
  text-transform: uppercase;
}

.top-bar__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar__social {
  display: flex;
  gap: 11px;
  align-items: center;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #dddbd9;
  flex-shrink: 0;
  text-decoration: none;
}

.social-btn:hover {
  filter: brightness(0.97);
  text-decoration: none;
}

.social-btn--primary {
  background: var(--color-orange);
}

/* Tier 2: horizontal logo + main nav (compact row) */
.navbar-white {
  position: sticky;
  top: 0;
  z-index: 45;
  background: var(--color-white);
  border-top: 1px solid rgba(73, 42, 19, 0.06);
  border-bottom: 1px solid rgba(73, 42, 19, 0.1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  padding: 2px 0;
  margin-bottom: 0;
}

.navbar-white.is-stuck {
  position: sticky;
  top: 0;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(73, 42, 19, 0.08);
}

.navbar-white__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  min-height: calc(var(--header-glass-h) - 4px);
}

.navbar-white__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Horizontal brand lockup (assets/logo-02.png) — height-driven so tier-2 stays short */
.navbar-white__logo-bar {
  display: block;
  width: auto;
  height: 44px;
  max-height: min(44px, 10vw);
  max-width: min(248px, 48vw);
  object-fit: contain;
  object-position: left center;
}

.navbar-white__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  flex: 1;
  min-width: min(100%, 520px);
}

.navbar-white__nav a {
  color: var(--color-brown);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: none;
  text-decoration: none;
}

.navbar-white__nav .nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.navbar-white__nav a.has-caret {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.navbar-white__nav a.has-caret .nav-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid currentColor; /* default: points up */
  transform: translateY(-1px);
  transition: transform 0.2s ease;
  transform-origin: 50% 62%;
}

/* Open submenu: caret flips to point down */
.navbar-white__nav .nav-item--has-submenu:hover .has-caret .nav-caret,
.navbar-white__nav .nav-item--has-submenu:focus-within .has-caret .nav-caret {
  transform: translateY(2px) rotate(180deg);
}

/* Menu item with no destination yet (S3 STEM KIT) */
.navbar-white__nav a.nav-link--placeholder {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.mobile-nav-drawer__links a.nav-link--placeholder {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

a.btn--placeholder {
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
}

.navbar-white__nav a:hover {
  color: var(--color-orange);
}

/*
 * BUG-009 — chữ mục đang xem dùng --color-orange-ink (#a75200), KHÔNG dùng
 * --color-orange (#f98c11).
 *
 * T14.1 đã đổi chữ cam sang -ink để đạt WCAG AA (BUG-006), nhưng các quy tắc
 * .is-active thì sót lại — phép quét không thể thấy chúng vì class chưa bao giờ
 * được render, không có phần tử nào để đo. Bật active lên mà giữ nguyên là lập tức
 * sinh ra chỗ trượt mới.
 *
 * Bài học: quét tương phản chỉ thấy thứ đang render. CSS của trạng thái chưa bao
 * giờ bật là điểm mù — phải rà bằng mắt, không chờ máy báo.
 */
.navbar-white__nav a.is-active {
  color: var(--color-orange-ink);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  min-width: 280px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(73, 42, 19, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-submenu li {
  margin: 0;
}

.nav-submenu a {
  display: block;
  padding: 9px 14px;
  color: var(--color-brown);
  text-shadow: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.nav-submenu a:hover {
  color: var(--color-orange);
  background: rgba(249, 140, 17, 0.08);
  text-decoration: none;
}

/* BUG-009 — mục con đang xem trong submenu (trước đây không có quy tắc nào). */
.nav-submenu a.is-active {
  color: var(--color-orange-ink);
  background: rgba(249, 140, 17, 0.10);
}

.navbar-white__nav .nav-item--has-submenu:hover .nav-submenu,
.navbar-white__nav .nav-item--has-submenu:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-white.is-stuck .navbar-white__nav a {
  color: var(--color-brown) !important;
  text-shadow: none !important;
}

.navbar-white.is-stuck .navbar-white__nav a.is-active {
  color: var(--color-orange-ink) !important;
}

@media (max-width: 720px) {
  .navbar-white {
    margin-bottom: 0;
  }

  .navbar-white__nav {
    justify-content: flex-start;
  }

  .nav-submenu {
    position: static;
    min-width: 100%;
    margin-top: 6px;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-radius: 10px;
    box-shadow: none;
    border-color: rgba(73, 42, 19, 0.08);
    display: none;
  }

  .navbar-white__nav .nav-item--has-submenu:hover .nav-submenu,
  .navbar-white__nav .nav-item--has-submenu:focus-within .nav-submenu {
    display: block;
  }
}

/* --- Hero: mobile/tablet = ảnh + strip + copy xếp dọc; desktop = một hàng (ảnh | copy) --- */
.hero-carousel-wrap {
  position: relative;
}

.hero {
  position: relative;
  z-index: 0;
  margin-top: 0;
  padding-top: clamp(8px, 1.2vw, 16px);
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
  background: #1a1a1a;
  overflow: hidden;
  box-sizing: border-box;
}

/* Mobile/tablet: bỏ dải đen dưới header — padding + nền #1a1a1a trên .hero tạo vạch; nền sáng + chỉ cột ảnh tối */
@media (max-width: 1023px) {
  .hero {
    background: var(--color-bg);
    padding-top: 0;
  }

  .hero__visual {
    background: #1a1a1a;
  }

  .hero .hero__gradient {
    background: transparent;
  }
}

.hero__split {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

/* Cột ảnh: chiều cao theo tỉ lệ ảnh nguồn (1062×1080), width vẫn fluid tới max */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: min(100%, var(--hero-visual-max-w));
  aspect-ratio: var(--hero-slide-aspect);
  height: auto;
  flex: 0 0 auto;
}

.hero__slides-layer {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  overflow: hidden;
}

.hero__viewport {
  height: 100%;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hero__viewport::-webkit-scrollbar {
  display: none;
}

.hero__slides {
  display: flex;
  height: 100%;
  min-height: 100%;
}

.hero__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  position: relative;
}

/* Photo slides: backdrop while image loads */
.hero__slide:not(.hero__slide--cream) {
  background: #1a1a1a;
}

/* Cover + same aspect box as source → usually no crop; center fallback if subpixel mismatch */
.hero__slide > img {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Slide 1: kem nhạt + logo căn giữa (assets/hero không có slide-1.jpg) */
.hero__slide--cream {
  background: linear-gradient(165deg, #faf6f0 0%, #f3eadc 48%, #efe4d6 100%);
}

.hero__slide-cream {
  display: flex;
  /*
   * T14.4 — CỘT, không phải hàng: audit ô D2 ghi rõ "Slogan phía DƯỚI Logo".
   * Để mặc định (hàng ngang) thì slogan đứng cạnh logo, không phải dưới.
   */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: clamp(40px, 8vw, 88px);
  box-sizing: border-box;
}

/* Kích thước chỉ từ CSS — không dùng inline Customizer (tránh max-width nhỏ trên production) */
.hero__slide--cream .hero__slide-cream-logo {
  width: auto;
  height: auto;
  max-width: min(1600px, 92vw);
  max-height: min(72vh, 820px);
  min-height: 0;
  object-fit: contain;
}

.hero__gradient {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  bottom: auto;
  pointer-events: none;
  /* Light vignette — main copy is no longer on the image */
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 55%, transparent 100%);
}

.hero.hero--slide-brand .hero__gradient {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.03) 60%, transparent 100%);
}

/* Slide 1: logo still prominent; nav sits in hero__bottom-ui */
.hero.hero--slide-brand .hero__slide-cream {
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  transform: none;
}

/* Bottom stack: carousel controls over image (FAROS mobile pattern) */
.hero__bottom-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 clamp(12px, 3vw, 24px) clamp(10px, 2vw, 16px);
  pointer-events: none;
}

.hero__bottom-ui .hero__nav {
  pointer-events: auto;
}

/* Desktop: FAROS — content trái (nền kem nhạt + thẻ), ảnh phải (DOM: visual trước copy → row-reverse) */
@media (min-width: 1024px) {
  /*
   * Không dùng gradient full-width trên .hero: nó tạo dải #1a1a1a ngang phía trên cột phải + vệt tối lệch
   * khi .hero__split max-width căn giữa. Màu nền từng cột tự quản lý.
   */
  .hero {
    background: var(--color-bg);
    padding-top: 0;
  }

  .hero__visual {
    background: #1a1a1a;
  }

  /* Bỏ lớp vignette tối mé trái cột ảnh (tránh vạch đen/nâu sát cột copy) */
  .hero .hero__gradient {
    background: transparent;
  }

  .hero__split {
    flex-direction: row-reverse;
    align-items: stretch;
    /* Height from content + 1062×1080 visual — avoids extra gap under image vs fixed 72vh */
    max-width: min(100%, 1680px);
    margin-left: auto;
  margin-right: auto;
  }

  /* Do not stretch visual vertically — keeps 1062×1080 frame; row height follows max(visual, copy) */
  .hero__split .hero__visual {
    flex: 1 1 58%;
    min-width: 0;
    align-self: flex-start;
  }

  .hero__copy.hero-content-below {
    flex: 1 1 42%;
    max-width: none;
    min-width: min(360px, 42%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(28px, 3vw, 52px) clamp(18px, 2.5vw, 36px);
    border-top: none;
    border-left: none;
    border-right: none;
    box-shadow: 1px 0 0 rgba(73, 42, 19, 0.06);
    /* Warm paper: nhạt, hòa với brand — không vàng gắt */
    background: linear-gradient(
      168deg,
      #fffdf9 0%,
      #faf6ec 38%,
      #f3ead9 72%,
      #efe4cf 100%
    );
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero__copy .container.hero-content-below__inner {
    width: 100%;
    max-width: min(520px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .hero__slide--cream .hero__slide-cream-logo {
    max-width: min(96%, 680px);
    max-height: min(58vh, 520px);
  }

  /* Card: thanh tiêu đề brand + thân trắng (tương tự FAROS blue bar + white body) */
  .hero-card.hero-card--below {
    padding: 0;
    overflow: hidden;
    border-radius: clamp(14px, 1.2vw, 20px);
    box-shadow: 0 14px 48px rgba(73, 42, 19, 0.18);
    border: 1px solid rgba(73, 42, 19, 0.1);
  }

  .hero-card--below .hero-card__panel {
    padding-bottom: clamp(18px, 2vw, 26px);
  }

  /* One title scale for every slide (long titles use same size; only line-height tweaks below) */
  .hero-card--below .hero-card__panel .hero-card__heading,
  .hero-card--below .hero-card__panel .hero-card__heading.hero-card__title--long {
    margin: 0;
    /* Base: 20px 0 20px 10px — fluid for small/large viewports */
    padding: clamp(14px, 2.2vw, 20px) 0 clamp(14px, 2.2vw, 20px) clamp(8px, 1.2vw, 10px);
    background: transparent;
    color: var(--color-brown);
    /* Slightly smaller to avoid 1–2 word orphan lines on narrow panels */
    font-size: clamp(18px, 1.92vw, 26px);
    line-height: 1.2;
    letter-spacing: 0.03em;
    border-radius: 0;
    text-transform: uppercase;
    font-family: var(--font-serif);
    font-weight: 900;
    border-bottom: 1px solid rgba(249, 140, 17, 0.35);
    box-shadow: none;
  }

  .hero-card--below .hero-card__panel .hero-card__heading.hero-card__title--long {
    line-height: 1.22;
  }

  .hero-card--below .hero-card__panel > p,
  .hero-card--below .hero-card__panel > .hero-card__strong,
  .hero-card--below .hero-card__panel > ul {
    padding-left: clamp(18px, 2vw, 24px);
    padding-right: clamp(18px, 2vw, 24px);
  }

  .hero-card--below .hero-card__panel > p:first-of-type {
    margin-top: clamp(16px, 1.8vw, 22px);
  }

}

.hero__nav {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  pointer-events: auto;
  margin-top: 4px;
}

.hero__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: min(340px, 92vw);
  row-gap: 6px;
}

/* Copy block: dưới ảnh (<1024); desktop ≥1024 trong media hero__split (cột trái FAROS) */
@media (max-width: 1023px) {
  .hero__copy.hero-content-below {
    background: var(--color-white);
    padding: clamp(28px, 4vw, 52px) clamp(16px, 3vw, 32px) clamp(36px, 5vw, 64px);
    border-top: 1px solid rgba(73, 42, 19, 0.08);
    flex: 0 0 auto;
  width: 100%;
    box-sizing: border-box;
  }
}

.hero-content-below__inner {
  max-width: min(960px, 100%);
  margin: 0 auto;
}

.hero-card--below {
  max-width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-fluid-md);
  padding: clamp(20px, 2.2vw, 32px) clamp(20px, 2.5vw, 40px) clamp(22px, 2.5vw, 36px);
  box-shadow: 0 8px 32px rgba(73, 42, 19, 0.1);
  border: 1px solid rgba(73, 42, 19, 0.06);
  color: var(--color-brown);
}

.hero-card {
  background: var(--color-white);
  border-radius: var(--radius-fluid-md);
  padding: clamp(16px, 1.8vw, 26px) clamp(18px, 2.2vw, 32px) clamp(18px, 2vw, 28px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  color: var(--color-brown);
}

.hero-card__panels {
  position: relative;
}

.hero-card__panel[hidden] {
  display: none !important;
}

/*
 * ENH-013 #4 — kiểu chữ bám vào CLASS, không bám vào tên thẻ.
 *
 * Trước đây băng chuyền hero in SÁU thẻ H1, mỗi slide một cái, vì kiểu chữ gắn thẳng
 * vào tên thẻ. Một trang chỉ nên có một H1; sáu cái làm loãng tín hiệu chủ đề chính.
 * Nay slide 1 giữ H1, slide 2-6 thành H2, mọi slide cùng mang .hero-card__heading nên
 * nhìn không đổi một pixel.
 *
 * Cấp độ heading là NGỮ NGHĨA, cỡ chữ là TRÌNH BÀY — đừng buộc hai thứ vào nhau.
 */
.hero-card__heading {
  margin: 0;
  box-sizing: border-box;
  padding: clamp(14px, 2.2vw, 20px) 0 clamp(14px, 2.2vw, 20px) clamp(8px, 1.2vw, 10px);
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.35vw, 30px);
  font-weight: 900;
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  /* Default wrap: fill each line before breaking. Avoid text-wrap: balance/pretty — they shorten lines to "balance" width and leave empty space on the right. */
}

.hero-card p {
  margin: 0 0 16px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--color-muted);
  line-height: 1.58;
}

.hero-card__strong {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--color-brown);
}

.hero-card__list {
  margin: 0 0 16px 1.1em;
  padding: 0;
  font-size: clamp(15px, 1.15vw, 17px);
  color: var(--color-muted);
  line-height: 1.5;
}

.hero-card__list li {
  margin-bottom: 0.4em;
}

.hero-card__list li:last-child {
  margin-bottom: 0;
}

/* Cùng cỡ chữ với .hero-card__heading — class này chỉ nới dòng cho tiêu đề dài */
.hero-card__heading.hero-card__title--long {
  line-height: 1.22;
  letter-spacing: 0.028em;
}

.hero-card__panel {
  overflow: visible;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 1.2vw, 14px) clamp(22px, 2.2vw, 32px);
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-orange);
  color: var(--color-white);
}

.btn--primary:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.btn--wide {
  min-width: 220px;
}

/* --- Sections --- */
.section {
  padding: var(--space-section-y) 24px;
}

.section--warm {
  background: var(--color-bg-warm);
}

.section__title {
  text-align: center;
  margin: 0 0 clamp(26px, 3.2vw, 40px);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.25;
}

.section__title.section__title--serif {
  font-family: var(--font-serif);
  font-size: var(--section-display-title-size);
  font-weight: 900;
  letter-spacing: 0.012em;
  line-height: 1.2;
}

.section__title .accent {
  color: var(--color-orange-ink);
}

.section__title .base {
  color: var(--color-brown);
}

/* --- Ecosystem: image top + title band (Faros-style); placeholder until assets exist --- */
.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;
}

.eco-grid {
  display: grid;
  gap: clamp(14px, 2.2vw, 24px);
}

.eco-grid--visual {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.eco-card--visual {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: clamp(14px, 1.4vw, 20px);
  overflow: hidden;
  border: 2px solid var(--color-brown);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.eco-card--visual:has(.eco-card__surface:hover),
.eco-card--visual:has(.eco-card__surface:focus-visible) {
  border-color: var(--color-orange);
  box-shadow: var(--shadow-card-strong);
}

.eco-card__surface {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.eco-card__surface:hover,
.eco-card__surface:focus-visible {
  text-decoration: none;
}

.eco-card__surface:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}

.eco-card__media {
  position: relative;
  flex: 0 0 auto;
  min-height: clamp(168px, 24vw, 240px);
  aspect-ratio: 16 / 10;
  background: rgba(73, 42, 19, 0.06);
  overflow: hidden;
}

.eco-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eco-card__caption {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(16px, 2.2vw, 24px) clamp(16px, 2vw, 22px);
  min-height: clamp(100px, 12vw, 132px);
  background: var(--color-white);
  border-top: 1px solid rgba(73, 42, 19, 0.14);
  transition: background-color 0.28s ease, border-color 0.28s ease;
}

.eco-card__surface:hover .eco-card__caption,
.eco-card__surface:focus-visible .eco-card__caption {
  background: var(--color-orange);
  border-top-color: transparent;
}

.eco-card__title {
  margin: 0;
  /*
   * BUG-008 — bỏ `max-width: 22ch`.
   * 22ch ép tiêu đề còn ~22 ký tự mỗi dòng trong khi thẻ rộng 432px ở 1440.
   * Tiêu đề dài nhất ("GIẢI PHÁP GIÁO DỤC STEM TOÀN DIỆN CHO NHÀ TRƯỜNG VÀ ĐỊA
   * PHƯƠNG", 61 ký tự) vì thế vỡ 4 dòng. Đã có sẵn từ trước T14.2.
   * Để chữ dùng hết bề ngang ô; padding của .eco-card__caption lo phần lề.
   */
  font-family: var(--font-body);
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-brown);
  transition: color 0.28s ease;
}

.eco-card__surface:hover .eco-card__title,
.eco-card__surface:focus-visible .eco-card__title {
  color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
  .eco-card--visual,
  .eco-card__caption,
  .eco-card__title {
    transition: none;
  }
}

@media (max-width: 960px) {
  .eco-grid--visual {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

/* --- Carousel: multiple items visible per view (like Figma row slider) --- */
.carousel {
  position: relative;
  padding: 0 0 16px;
}

.carousel__viewport {
  container-type: inline-size;
  container-name: carousel-vp;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.carousel__viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Infinite-loop step: mandatory snap fights programmatic scroll targets — disable briefly in JS */
.carousel__viewport.carousel__viewport--no-snap {
  scroll-snap-type: none;
}

/* News + projects carousels: JS drives position via translate3d — no native horizontal scroll */
.carousel--news .carousel__viewport.carousel__viewport--transform-mode,
.carousel--projects .carousel__viewport.carousel__viewport--transform-mode {
  overflow: hidden;
  scroll-snap-type: none;
  scroll-behavior: auto;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

.carousel__slides {
  display: flex;
  gap: 1.25rem;
}

/* ~3 cards visible on desktop, 2 on tablet, 1 on phone */
.carousel__slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: calc((100cqi - 2.5rem) / 3);
}

@container carousel-vp (max-width: 900px) {
  .carousel__slide {
    width: calc((100cqi - 1.25rem) / 2);
  }
}

@container carousel-vp (max-width: 520px) {
  .carousel__slide {
    width: 100%;
    max-width: 100cqi;
  }
}

/* Fallback when container query units are not available */
@supports not (width: 1cqi) {
  .carousel__slide {
    width: clamp(260px, 31vw, 400px);
  }

  @media (max-width: 900px) {
    .carousel__slide {
      width: clamp(240px, 45vw, 380px);
    }
  }

  @media (max-width: 520px) {
    .carousel__slide {
      width: min(100%, 420px);
    }
  }
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(14px, 2vw, 22px);
  flex-wrap: wrap;
}

/* Orange circle, white border, white chevron (Figma) */
.carousel__arrow {
  flex-shrink: 0;
  width: clamp(34px, 2.6vw, 42px);
  height: clamp(34px, 2.6vw, 42px);
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: var(--color-orange);
  color: var(--color-brown);
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.carousel__arrow:hover {
  filter: brightness(1.08);
}

.carousel__arrow:active {
  transform: scale(0.96);
}

.carousel__arrow:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}

/* Slider pagination: inactive = light orange dot; active slide = bold orange horizontal bar */
.carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.carousel__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(249, 140, 17, 0.38);
  cursor: pointer;
  padding: 0;
  transition:
    width 0.28s ease,
    border-radius 0.28s ease,
    background 0.22s ease;
}

.carousel__dot.is-active {
  width: clamp(24px, 2.2vw, 34px);
  height: 8px;
  border-radius: 8px;
  background: var(--color-orange);
}

/* --- Homepage: Solutions grid (image left, copy right; Faros-style, EduSpark colors) --- */
.section--solutions {
  padding-bottom: clamp(40px, 6vw, 72px);
}

.solutions-section__header {
  text-align: center;
}

.solutions-section__empty {
  margin: 0;
  text-align: center;
  color: var(--color-muted);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}

.solution-tile {
  min-width: 0;
}

.solution-tile__link {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: clamp(200px, 22vw, 280px);
  border: 2px solid var(--color-brown);
  border-radius: clamp(14px, 1.4vw, 20px);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.solution-tile__link:hover,
.solution-tile__link:focus-visible {
  background: var(--color-orange);
  border-color: var(--color-orange);
  box-shadow: var(--shadow-card-strong);
}

.solution-tile__media {
  position: relative;
  flex: 0 0 46%;
  max-width: 50%;
  min-height: 180px;
  background: rgba(73, 42, 19, 0.08);
}

.solution-tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.solution-tile__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 12px);
  padding: clamp(16px, 2.2vw, 24px) clamp(16px, 2vw, 22px);
  min-width: 0;
}

.solution-tile__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-brown);
  transition: color 0.28s ease;
}

.solution-tile__excerpt {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.5;
  color: var(--color-muted);
  transition: color 0.28s ease;
}

.solution-tile__link:hover .solution-tile__title,
.solution-tile__link:focus-visible .solution-tile__title {
  color: var(--color-white);
}

.solution-tile__link:hover .solution-tile__excerpt,
.solution-tile__link:focus-visible .solution-tile__excerpt {
  color: var(--color-white);
}

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

  .solution-tile__link {
    flex-direction: column;
    min-height: 0;
  }

  .solution-tile__media {
    flex: none;
    max-width: none;
    width: 100%;
    min-height: clamp(200px, 48vw, 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .solution-tile__link,
  .solution-tile__title,
  .solution-tile__excerpt {
    transition: none;
  }
}

/* --- Partners: Figma = 4 logos row 1 + 3 logos row 2, logos on cream (no heavy cards) --- */
.section--partners {
  padding-bottom: 80px;
}

.partner-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vw, 48px);
  max-width: 1040px;
  margin: 0 auto;
}

.partner-logos__row {
  width: 100%;
  display: grid;
  align-items: center;
  justify-items: center;
}

.partner-logos__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  justify-items: center;
}

.partner-logos__row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
}

.partner-logos__row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 840px;
  gap: clamp(20px, 4vw, 56px);
}

.partner-logos__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-height: 144px;
  gap: 10px;
}

.partner-logos__cell img {
  width: clamp(var(--eduspark-size-partner-logo-w-min), 16vw, var(--eduspark-size-partner-logo-w-max));
  height: clamp(var(--eduspark-size-partner-logo-h-min), 7.2vw, var(--eduspark-size-partner-logo-h-max));
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.partner-logos__cell .partner-logo--nobel {
  width: clamp(168px, 14.8vw, 232px);
  height: clamp(94px, 8.2vw, 136px);
}

.partner-logo-fallback {
  width: 100%;
  min-height: 88px;
  border-radius: 12px;
  border: 1px solid rgba(73, 42, 19, 0.16);
  background: linear-gradient(180deg, #f7f7f8 0%, #f0f0f2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.partner-logo-fallback--nobel span:first-child {
  font-size: clamp(22px, 2.2vw, 34px);
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #173f87;
}

.partner-logo-fallback--nobel span:last-child {
  margin-top: 4px;
  font-size: clamp(12px, 1.1vw, 16px);
  letter-spacing: 0.24em;
  font-weight: 700;
  color: #f98c11;
}

@media (max-width: 768px) {
  .partner-logos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-logos__row--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-logos__row--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 420px) {
  .partner-logos__grid,
  .partner-logos__row--4,
  .partner-logos__row--3 {
    grid-template-columns: 1fr;
  }
}

/* --- Project cards in carousel (image top + text panel; center slide focus) --- */
/* Orange palette. Focus panel = solid --color-orange (same as hovers on tiles, buttons, links). */
.carousel--projects,
.carousel--news {
  --edu-orange-title: #c2410c;
  --edu-body-text: #5c4030;
  overflow: visible;
}

.carousel--projects .carousel__viewport,
.carousel--news .carousel__viewport {
  overflow-x: auto;
  overflow-y: visible;
  /* Rounded scrollport clips transformed slides on top/bottom; cards keep their own radius. */
  border-radius: 0;
  padding-block: clamp(10px, 1.8vw, 20px);
}

.carousel--projects .carousel__slide,
.carousel--news .carousel__slide {
  display: flex;
  align-items: stretch;
  transition:
    opacity 0.38s ease,
    transform 0.38s ease;
  opacity: 0.58;
  transform: scale(0.97);
  transform-origin: center center;
}

.carousel--projects .carousel__slide.is-carousel-slide-focus,
.carousel--news .carousel__slide.is-carousel-slide-focus {
  opacity: 1;
  transform: scale(1.035);
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .carousel--projects .carousel__slide,
  .carousel--news .carousel__slide {
    transition: opacity 0.2s ease;
    transform: none;
  }

  .carousel--projects .carousel__slide.is-carousel-slide-focus,
  .carousel--news .carousel__slide.is-carousel-slide-focus {
    transform: none;
  }
}

.carousel--projects .project-card {
  position: relative;
  border-radius: var(--radius-fluid-md);
  overflow: hidden;
  height: 100%;
  min-height: 100%;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.carousel--projects .project-card--linked {
  display: flex;
  flex-direction: column;
}

.carousel--projects .project-card__media {
  flex-shrink: 0;
  overflow: hidden;
}

.carousel--projects .project-card__media img {
  width: 100%;
  height: clamp(200px, 20vw, 280px);
  object-fit: cover;
}

@supports (height: 1cqi) {
  .carousel--projects .project-card__media img {
    height: min(320px, 42cqi);
  }
}

.carousel--projects .project-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(14px, 1.6vw, 20px);
  border-top: 1px solid rgba(249, 140, 17, 0.28);
  background: var(--color-white);
  min-height: 0;
}

.carousel--projects .project-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--edu-orange-title);
}

.carousel--projects .project-card__excerpt {
  margin: 0;
  flex: 1;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.5;
  color: var(--edu-body-text);
}

.carousel--projects .project-card__more {
  align-self: flex-end;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--color-orange-ink);
}

.carousel--projects .project-card--linked:hover .project-card__more {
  text-decoration: none;
}

/* Focused slide: solid brand orange (matches .solution-tile__link:hover, .eco-card__surface:hover, etc.) */
.carousel--projects .carousel__slide.is-carousel-slide-focus .project-card__body {
  background: var(--color-orange);
  border-top-color: rgba(255, 255, 255, 0.25);
}

.carousel--projects .carousel__slide.is-carousel-slide-focus .project-card__title {
  color: var(--color-brown);
}

.carousel--projects .carousel__slide.is-carousel-slide-focus .project-card__excerpt {
  color: var(--color-brown);
}

.carousel--projects .carousel__slide.is-carousel-slide-focus .project-card__more {
  color: var(--color-brown);
}

/* --- News carousel (same Edu orange focus pattern; equal card heights via flex + line-clamp) --- */
.carousel--news .news-card {
  position: relative;
  width: 100%;
  min-height: 100%;
  border-radius: var(--radius-fluid-md);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.carousel--news .news-card--linked {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.carousel--news .news-card__media {
  flex-shrink: 0;
  overflow: hidden;
}

.carousel--news .news-card__media img {
  width: 100%;
  height: clamp(200px, 20vw, 280px);
  object-fit: cover;
}

@supports (height: 1cqi) {
  .carousel--news .news-card__media img {
    height: min(320px, 42cqi);
  }
}

.carousel--news .news-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(14px, 1.6vw, 20px);
  border-top: 1px solid rgba(249, 140, 17, 0.28);
  background: var(--color-white);
  min-height: 0;
}

.carousel--news .news-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--edu-orange-title);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.7em;
}

.carousel--news .news-card__excerpt {
  margin: 0;
  flex: 1;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.5;
  color: var(--edu-body-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 4.5em;
}

.carousel--news .news-card__meta {
  margin: 0;
  font-size: 12px;
  color: var(--color-muted);
}

.carousel--news .news-card__more {
  align-self: flex-end;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--color-orange-ink);
}

.carousel--news .news-card--linked:hover .news-card__more {
  text-decoration: none;
}

.carousel--news .carousel__slide.is-carousel-slide-focus .news-card__body {
  background: var(--color-orange);
  border-top-color: rgba(255, 255, 255, 0.25);
}

.carousel--news .carousel__slide.is-carousel-slide-focus .news-card__title {
  color: var(--color-brown);
}

.carousel--news .carousel__slide.is-carousel-slide-focus .news-card__excerpt {
  color: var(--color-brown);
}

.carousel--news .carousel__slide.is-carousel-slide-focus .news-card__meta {
  color: var(--color-brown);
}

.carousel--news .carousel__slide.is-carousel-slide-focus .news-card__more {
  color: var(--color-brown);
}

.tag {
  background: rgba(217, 217, 217, 0.9);
  color: var(--color-brown);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.tag--dark {
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-white);
}

.badge {
  display: inline-block;
  background: var(--color-orange);
  color: var(--color-white);
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
}

/* --- Contact 2 columns --- */
.contact-section {
  background: linear-gradient(180deg, var(--color-bg-warm) 0%, var(--color-bg) 100%);
}

/* About page: single warm body (2 page tones only: hero = --color-bg, rest = --color-bg-warm) */
.contact-section.contact-section--about {
  background: var(--color-bg-warm);
}

/* Match About page section titles: serif display, not all-caps (differs from generic .section__title) */
.contact-section .section__title {
  font-family: var(--font-serif);
  font-size: var(--section-display-title-size);
  font-weight: 900;
  letter-spacing: 0.012em;
  line-height: 1.2;
  text-transform: none;
}

.contact-section .section__title .base {
  color: var(--color-brown);
}

.contact-section .section__title .accent {
  color: var(--color-orange-ink);
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  /* Grid items default min-width: auto uses min-content; nowrap slogan would blow track width and overflow right on mobile */
  min-width: 0;
}

.contact-split > * {
  min-width: 0;
}

.contact-split__brand {
  text-align: center;
  padding: 24px 0;
}

.contact-split__logo {
  max-width: clamp(180px, 20vw, var(--eduspark-size-contact-logo-max-w));
  margin: 0 auto 20px;
}

.contact-split__slogan {
  /* Baloo draws Vietnamese ế/ế clearly; Merriweather heavy weight often reads as "ê" (wrong word) */
  font-family: "Baloo Chettan 2", var(--font-serif);
  font-weight: 700;
  font-size: clamp(15px, 2.25vw, 30px);
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--color-brown);
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

@media (min-width: 1024px) {
  .contact-split__slogan {
    /* Wide screens: single line + horizontal pan (avoid awkward wrap next to form) */
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    overflow-wrap: normal;
    word-break: normal;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(73, 42, 19, 0.35) transparent;
  }

  .contact-split__slogan::-webkit-scrollbar {
    height: 4px;
  }

  .contact-split__slogan::-webkit-scrollbar-thumb {
    background: rgba(73, 42, 19, 0.25);
    border-radius: 4px;
  }
}

@media (max-width: 767px) {
  .contact-split__slogan {
    /* ~20px cap on mobile; pan-x if line still overflows */
    font-size: clamp(14px, 4.6vw, 20px);
    letter-spacing: 0.035em;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(73, 42, 19, 0.35) transparent;
  }

  .contact-split__slogan::-webkit-scrollbar {
    height: 3px;
  }

  .contact-split__slogan::-webkit-scrollbar-thumb {
    background: rgba(73, 42, 19, 0.25);
    border-radius: 4px;
  }
}

.contact-form {
  background: var(--color-white);
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--radius-fluid-md);
  box-shadow: var(--shadow-card-strong);
}

.contact-form h3 {
  margin: 0 0 20px;
  font-size: 22px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-brown);
}

.contact-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 16px;
}

.contact-form .wpcf7 {
  width: 100%;
}

.contact-form .wpcf7-form {
  margin: 0;
}

.contact-form .wpcf7-form p {
  margin: 0 0 18px;
}

.contact-form .wpcf7-form p:last-of-type {
  margin-bottom: 0;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}

.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form textarea,
.contact-form .wpcf7-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  font-size: 16px;
}

.contact-form .wpcf7-form input.wpcf7-submit {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ff912f, #f66b1f);
  box-shadow: 0 12px 24px rgba(246, 107, 31, 0.35);
  cursor: pointer;
}

.contact-form .wpcf7-form input.wpcf7-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(246, 107, 31, 0.4);
}

.contact-form .wpcf7-form input.wpcf7-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}

.contact-form .wpcf7-response-output {
  margin: 14px 0 0 !important;
  border-radius: 10px;
  font-size: 14px;
}

@media (max-width: 800px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
}

/* --- Floating social buttons --- */
.floating-social {
  position: fixed;
  right: clamp(10px, 2vw, 22px);
  bottom: clamp(16px, 4vh, 34px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.floating-social__toggle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  order: 2;
  background: linear-gradient(135deg, #ff902e, #f56a1f);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 26px rgba(18, 24, 39, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  cursor: pointer;
  padding: 0;
}

.floating-social__toggle:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 30px rgba(18, 24, 39, 0.32);
  filter: brightness(1.04);
}

.floating-social__toggle-icon {
  display: inline-flex;
  transform-origin: center;
  transition: transform 0.22s ease;
}

.floating-social.is-collapsed .floating-social__toggle-icon {
  transform: rotate(180deg);
}

.floating-social__items {
  display: flex;
  flex-direction: column;
  order: 0;
  gap: 10px;
  overflow: visible;
  padding: 4px 0;
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.28s ease;
}

.floating-social.is-collapsed .floating-social__items {
  max-height: 0px;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.floating-social__btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff902e, #f56a1f);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.floating-social__btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: none;
  filter: brightness(1.04);
}

@keyframes floatingSocialBlinkHop {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  22% {
    transform: translateY(-3px) scale(1.06);
    filter: brightness(1.06);
  }
  50% {
    transform: translateY(0) scale(1);
    filter: brightness(1.02);
  }
  78% {
    transform: translateY(-1.5px) scale(1.03);
    filter: brightness(1.04);
  }
}

.floating-social:not(.is-collapsed) .floating-social__btn {
  animation: floatingSocialBlinkHop 2.6s ease-in-out infinite;
}

.floating-social:not(.is-collapsed) .floating-social__btn:nth-child(1) {
  animation-delay: 0ms;
}

.floating-social:not(.is-collapsed) .floating-social__btn:nth-child(2) {
  animation-delay: 180ms;
}

.floating-social:not(.is-collapsed) .floating-social__btn:nth-child(3) {
  animation-delay: 360ms;
}

.floating-social:not(.is-collapsed) .floating-social__btn:nth-child(4) {
  animation-delay: 540ms;
}

.floating-social:not(.is-collapsed) .floating-social__btn:nth-child(5) {
  animation-delay: 720ms;
}

.floating-social__btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .floating-social__toggle {
    width: 44px;
    height: 44px;
  }

  .floating-social__items {
    gap: 9px;
  }

  .floating-social__btn {
    width: 44px;
    height: 44px;
  }

  .floating-social__btn img {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-social__items {
    transition: none;
  }
  .floating-social:not(.is-collapsed) .floating-social__btn {
    animation: none;
  }
}

/* --- Footer --- */
.site-footer {
  background: #1e1e24;
  color: #e4e4e4;
  padding: 0;
  font-size: 14px;
}

.footer-top {
  padding: clamp(32px, 4vw, 48px) 24px clamp(24px, 2.8vw, 32px);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  margin-bottom: clamp(20px, 2.4vw, 32px);
}

.footer-brand img {
  display: block;
  height: auto;
}

.footer-slogan {
  font-weight: 700;
  color: var(--color-orange);
  margin: 12px 0 16px;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin: 0;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-contact-list__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.footer-contact-list__icon {
  color: #fff;
  display: inline-flex;
  width: 16px;
  min-width: 16px;
  margin-top: 2px;
}

.footer-contact-list__item a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-contact-list__item a:hover {
  color: #fff;
}

/*
 * ENH-013 #4 — tiêu đề cột chân trang: kiểu chữ bám CLASS, không bám tên thẻ.
 *
 * Ba cột chân trang trước đây là <h4> — cấp chọn theo cỡ chữ, không theo ngữ nghĩa.
 * Chân trang hiện trên MỌI trang, nên ở trang nào mà nội dung chỉ sâu tới H2 thì
 * H2 → H4 là một bước nhảy bậc (đo được ở /contact/, /tin-tuc-su-kien/,
 * /s3-stem-kit/mam-non/). Ba cột này là mục cấp cao nhất của chân trang nên đúng ra
 * là H2. Đổi thẻ, giữ nguyên cỡ chữ nhờ class.
 */
.site-footer .site-footer__col-title,
.site-footer h4 {
  margin: 0 0 14px;
  color: var(--color-orange);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

/* Ecosystem column: force uppercase for English labels (STEM / Academy / Edutalk) */
.site-footer .footer-ecosystem-list li {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer a {
  color: #e8e8e8;
  transition: color 0.18s ease;
}

.site-footer a:hover {
  color: var(--color-orange);
}

.footer-map {
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
}

.footer-map__iframe {
  display: block;
  width: 100%;
  height: clamp(240px, 34vw, 400px);
  border: 0;
  border-radius: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

/* --- About page (unchanged structure) --- */
.about-hero {
  margin-top: 0;
  padding: clamp(42px, 5vw, 64px) 24px clamp(24px, 2.6vw, 34px);
  text-align: center;
  /* Same canvas as homepage hero shell + body (--color-bg) */
  background: var(--color-bg);
}

.about-hero__logo {
  width: min(var(--eduspark-size-about-hero-logo-w), 52vw);
  margin: 0 auto 24px;
}

.about-hero h1 {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(36px, 4.2vw, 52px);
  margin: 0;
  color: var(--color-brown);
  letter-spacing: 0.012em;
  line-height: 1.18;
  text-transform: none;
}

.section--values {
  position: relative;
  padding-top: 76px;
  padding-bottom: 90px;
  /* Same warm band as homepage .section--warm (--color-bg-warm) */
  background-color: var(--color-bg-warm);
  overflow: visible;
}

.section--values .section__title {
  margin-bottom: clamp(40px, 5vw, 56px);
}

.section--values .section__title .base {
  font-family: var(--font-serif);
  font-size: var(--section-display-title-size);
  font-weight: 900;
  letter-spacing: 0.012em;
  line-height: 1.2;
  text-transform: none;
  color: var(--color-brown);
}

.values-stage {
  /* Fallback first so invalid clamp does not wipe the whole section. */
  --values-scale: 1;
  --values-scale: clamp(0.62, (100vw - 48px) / 1766, 1);
  /* Ensure descendants always resolve scale (some engines drop inherited vars in deep calc). */
  --vs: var(--values-scale);
  position: relative;
  width: min(1766px, 92vw);
  margin: 0 auto;
  min-height: unset;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 32px) clamp(20px, 2.4vw, 36px);
  align-items: start;
  grid-template-areas:
    "note1 center note2"
    "note3 center note5"
    ". note4 .";
}

/* Outer white shell + inner warm panel — aligned with Figma (node 1:371 / 1:372). */
/* Plain-px fallbacks FIRST so if calc(var) fails, spacing/shadow still apply. */
.value-note {
  position: relative;
  grid-area: auto;
  /* Stagger index for entrance (0–4) */
  --vn-i: 0;
  /* Figma ref: white card */
  background: #fff;
  border-radius: 20px;
  border-radius: calc(20px * var(--vs, 1));
  /* Even white ring; hole sits in outer shell (not inside beige frame). */
  padding: 18px;
  padding: calc(18px * var(--vs, 1));
  border: none;
  box-shadow: 0 15px 20px 0 rgba(0, 0, 0, 0.3);
  box-shadow: 0 calc(15px * var(--vs, 1)) calc(20px * var(--vs, 1)) 0 rgba(0, 0, 0, 0.3);
  max-width: 100%;
  /* Base Z rotation from Figma; mouse tilt adds --tilt-rx / --tilt-ry; parallax --parallax-x/y (see main.js). */
  --tilt-base: -1.74deg;
  --tilt-rx: 0deg;
  --tilt-ry: 0deg;
  --parallax-x: 0px;
  --parallax-y: 0px;
  /* Entrance: whole white card + hole + inner panel move together */
  --vn-enter-y: 36px;
  --vn-enter-scale: 0.93;
  transform: perspective(920px) translateY(var(--vn-enter-y)) scale(var(--vn-enter-scale))
    translate3d(var(--parallax-x), var(--parallax-y), 0) rotateX(var(--tilt-rx)) rotateY(var(--tilt-ry))
    rotateZ(var(--tilt-base));
  transform-style: preserve-3d;
  transition:
    transform 0.65s cubic-bezier(0.22, 0.85, 0.28, 1),
    opacity 0.58s cubic-bezier(0.22, 0.85, 0.28, 1);
  overflow: visible;
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  opacity: 0;
}

.section--values.is-values-ready .value-note {
  --vn-enter-y: 0px;
  --vn-enter-scale: 1;
  opacity: 1;
  transition-delay: calc(var(--vn-i) * 0.08s);
}

.value-note.value-note--tilt-active {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .section--values .value-note {
    opacity: 1 !important;
    transition-delay: 0s !important;
    --vn-enter-y: 0px !important;
    --vn-enter-scale: 1 !important;
  }

  .value-note {
    transform: rotate(var(--tilt-base));
    transition: none;
  }
}

.value-note__frame {
  position: relative;
  z-index: 1;
  /* Figma ref: skin-tone inner card — padding is for content only (hole is on white shell). */
  border-radius: 20px;
  border-radius: calc(20px * var(--vs, 1));
  border: 1px solid #fff;
  padding: 22px 26px 36px;
  padding-top: calc(22px * var(--vs, 1));
  padding-left: calc(26px * var(--vs, 1));
  padding-right: calc(26px * var(--vs, 1));
  padding-bottom: calc(36px * var(--vs, 1));
  background: rgba(249, 140, 17, 0.1);
  overflow: hidden;
  transition: background-color 0.22s ease;
}

/* Punch hole sits on the white outer card (centered), above the inner panel */
.value-note__hole {
  position: absolute;
  top: 0px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  transform-origin: center center;
  width: 44px;
  width: calc(44px * var(--vs, 1));
  height: 44px;
  height: calc(44px * var(--vs, 1));
  line-height: 0;
  pointer-events: none;
}

.value-note__hole img {
  display: block;
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* Cards 3–5: punch hole ~40% smaller than default (≈60% side length) */
.section.section--values .value-note--3 .value-note__hole,
.section.section--values .value-note--4 .value-note__hole,
.section.section--values .value-note--5 .value-note__hole {
  width: calc(44px * var(--vs, 1) * 0.6) !important;
  height: calc(44px * var(--vs, 1) * 0.6) !important;
  min-width: 22px !important;
  min-height: 22px !important;
}

/* Force shell + inner spacing to match Figma (fixes “only beige / no shadow / cramped” when cascade fails). */
.section.section--values .value-note {
  background: #fff !important;
  border-radius: 20px !important;
  box-shadow: 0 15px 20px 0 rgba(0, 0, 0, 0.3) !important;
  padding: 18px !important;
}

.section.section--values .value-note__frame {
  border-radius: 20px !important;
  border: 1px solid #fff !important;
  background: rgba(249, 140, 17, 0.1) !important;
  padding: 22px 26px 36px !important;
}

.section.section--values .value-note--2 .value-note__frame {
  padding: 22px 28px 34px !important;
}

.section.section--values .value-note--3 .value-note__frame,
.section.section--values .value-note--4 .value-note__frame,
.section.section--values .value-note--5 .value-note__frame {
  padding: 12px 18px 14px !important;
  min-height: 90px;
}

.value-note--1 {
  --vn-i: 0;
  grid-area: note1;
  justify-self: start;
  width: min(100%, 354px);
  width: min(100%, calc(354px * var(--vs, 1)));
}

.value-note--2 {
  --vn-i: 1;
  grid-area: note2;
  justify-self: end;
  width: min(100%, 374px);
  width: min(100%, calc(374px * var(--vs, 1)));
  --tilt-base: 3.94deg;
}

.value-note--2 .value-note__frame {
  padding: 22px 28px 34px;
  padding-top: calc(22px * var(--vs, 1));
  padding-left: calc(28px * var(--vs, 1));
  padding-right: calc(28px * var(--vs, 1));
  padding-bottom: calc(34px * var(--vs, 1));
}

.value-note--3 {
  --vn-i: 2;
  grid-area: note3;
  justify-self: center;
  width: min(100%, 240px);
  width: min(100%, calc(240px * var(--vs, 1)));
  --tilt-base: 4.55deg;
}

.value-note--3 .value-note__frame {
  padding: 12px 18px 14px;
  padding-top: calc(12px * var(--vs, 1));
  padding-left: calc(18px * var(--vs, 1));
  padding-right: calc(18px * var(--vs, 1));
  padding-bottom: calc(14px * var(--vs, 1));
  min-height: 90px;
  min-height: calc(90px * var(--vs, 1));
}

.value-note--4 {
  --vn-i: 3;
  grid-area: note4;
  justify-self: center;
  width: min(100%, 240px);
  width: min(100%, calc(240px * var(--vs, 1)));
  --tilt-base: -4.41deg;
}

.value-note--4 .value-note__frame {
  padding: 12px 18px 14px;
  padding-top: calc(12px * var(--vs, 1));
  padding-left: calc(18px * var(--vs, 1));
  padding-right: calc(18px * var(--vs, 1));
  padding-bottom: calc(14px * var(--vs, 1));
  min-height: 90px;
  min-height: calc(90px * var(--vs, 1));
}

.value-note--5 {
  --vn-i: 4;
  grid-area: note5;
  justify-self: center;
  width: min(100%, 240px);
  width: min(100%, calc(240px * var(--vs, 1)));
  --tilt-base: 1.4deg;
}

.value-note--5 .value-note__frame {
  padding: 12px 18px 14px;
  padding-top: calc(12px * var(--vs, 1));
  padding-left: calc(18px * var(--vs, 1));
  padding-right: calc(18px * var(--vs, 1));
  padding-bottom: calc(14px * var(--vs, 1));
  min-height: 90px;
  min-height: calc(90px * var(--vs, 1));
}

.value-note .num {
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 14px;
  margin-bottom: calc(14px * var(--vs, 1));
  font-family: "Inter", var(--font-body);
  color: #111;
  letter-spacing: -0.02em;
}

.value-note .num-leading {
  font-weight: 300;
  font-size: 30px;
  font-size: calc(30px * var(--vs, 1));
}

.value-note .num-rest {
  font-weight: 400;
  font-size: 40px;
}

.value-note h3 {
  margin: 0 0 16px;
  margin: 0 0 calc(16px * var(--vs, 1));
  font-size: 34px;
  font-size: calc(34px * var(--vs, 1));
  font-family: "Baloo Chettan 2", var(--font-serif);
  color: #492a13;
  line-height: 1.22;
}

.value-note p {
  margin: 0;
  font-size: 24px;
  font-size: calc(24px * var(--vs, 1));
  font-family: "Baloo Chettan 2", var(--font-body);
  color: #492a13;
  line-height: 1.52;
}

/* Compact typography on shorter cards (3–5) */
.value-note--3 h3,
.value-note--4 h3,
.value-note--5 h3 {
  margin-bottom: 8px;
  margin-bottom: calc(8px * var(--vs, 1));
  font-size: calc(26px * var(--vs, 1));
  line-height: 1.2;
}

.value-note--3 p,
.value-note--4 p,
.value-note--5 p {
  font-size: calc(17px * var(--vs, 1));
  line-height: 1.45;
}

.value-note--3 .num,
.value-note--4 .num,
.value-note--5 .num {
  margin-bottom: 8px;
  margin-bottom: calc(8px * var(--vs, 1));
}

.value-note--3 .num-leading,
.value-note--4 .num-leading,
.value-note--5 .num-leading {
  font-size: calc(22px * var(--vs, 1));
}

.value-note--3 .num-rest,
.value-note--4 .num-rest,
.value-note--5 .num-rest {
  font-size: 40px;
  font-weight: 400;
}

.values-center-brand {
  grid-area: center;
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  justify-self: center;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(calc(855px * var(--values-scale)), 84vw);
  z-index: 1;
}

.values-center-brand img {
  display: block;
  margin: 0 auto calc(20px * var(--values-scale));
  width: min(calc(260px * var(--values-scale)), 28vw);
}

.values-center-brand p {
  margin: 0 auto;
  /* 22rem = bề rộng cột giữa của lưới. Rộng hơn là chữ thò sang cột thẻ. */
  max-width: min(22rem, 92%);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-muted);
  text-align: center;
}

/*
 * Khối @media 1024px cũ ĐÃ GỠ. Nó đặt `white-space: nowrap` để câu ở tâm nằm
 * gọn một dòng trên màn rộng — không sai lúc viết, vì năm thẻ giá trị khi đó
 * còn thấp và câu một dòng chạy qua khoảng trống giữa chúng.
 *
 * T12.3 bổ sung mô tả cho ba giá trị vốn rỗng ruột → thẻ cao lên, và dòng chữ
 * dài 666px đó bắt đầu ĐÈ LÊN thẻ số 5. Câu dài 88 ký tự thì không có bề rộng
 * cột nào chứa nổi một dòng; để nó xuống dòng trong cột của mình là đúng.
 *
 * Bẫy ở đây: `max-width` thêm ở T12.3 CÓ áp dụng (hộp đo được đúng 352px),
 * nhưng `nowrap` khiến chữ tràn khỏi hộp chứ không bị hộp chặn lại.
 */

/* Subtle mouse interaction for core value cards */
.section.section--values .value-note {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    opacity 0.58s cubic-bezier(0.22, 0.85, 0.28, 1);
}

.section.section--values .value-note:hover {
  transform: translateY(-4px) rotate(var(--tilt-base));
  box-shadow: 0 20px 26px 0 rgba(0, 0, 0, 0.36) !important;
}

.section.section--values .value-note:hover .value-note__frame {
  background: rgba(249, 140, 17, 0.16) !important;
}

@media (max-width: 1200px) {
  .values-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "center center"
      "note1 note2"
      "note3 note5"
      "note4 note4";
    gap: clamp(18px, 2.5vw, 24px);
  }

  .values-center-brand {
    margin-bottom: 12px;
  }

  .value-note--1 {
    justify-self: start;
  }

  .value-note--2 {
    justify-self: end;
  }

  .value-note--3 {
    justify-self: start;
  }

  .value-note--5 {
    justify-self: end;
  }

  .value-note--4 {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .values-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"
      "note1"
      "note2"
      "note3"
      "note4"
      "note5";
  }

  .values-center-brand,
  .value-note--1,
  .value-note--2,
  .value-note--3,
  .value-note--4,
  .value-note--5 {
    justify-self: stretch;
    width: 100% !important;
  }

  /* Full-width cards on small screens: extra breathing room (was reading “cramped”) */
  .section--values .value-note {
    padding: 22px 20px !important;
  }

  .section--values .value-note--1 .value-note__frame,
  .section--values .value-note--2 .value-note__frame {
    padding: 22px 24px 36px !important;
  }

  .section--values .value-note--3 .value-note__frame,
  .section--values .value-note--4 .value-note__frame,
  .section--values .value-note--5 .value-note__frame {
    padding: 14px 18px 16px !important;
    min-height: 100px;
  }
}

/* ----- Advisory board: 2×2 rows; each card = flex row (portrait | copy), fluid width, fixed aspect-ratio ----- */
.team-board-section {
  padding-top: clamp(64px, 8vw, 92px);
}

.team-board-section .section__title {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 56px);
}

.team-board-section .section__title .base,
.team-board-section .section__title .accent {
  font-family: var(--font-serif);
  font-size: var(--section-display-title-size);
  font-weight: 900;
  letter-spacing: 0.012em;
  line-height: 1.2;
  text-transform: none;
}

.team-board-section .section__title .base {
  color: var(--color-brown);
}

.team-board-section .section__title .accent {
  color: var(--color-brown);
}

.team-grid {
  --team-scale: clamp(0.82, (100vw - 48px) / 1200, 1);
  --team-col-gap: clamp(16px, 2.2vw, 26px);
  width: 100%;
  max-width: min(1766px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5.5vw, 88px);
}

.team-grid__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5.5vw, 88px) clamp(24px, 3vw, 40px);
  align-items: start;
}

/* Side-by-side: image | copy (flex keeps one row; no fixed px width — ratio via aspect-ratio) */
.team-member {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: var(--team-col-gap);
  min-width: 0;
}

.team-member__media {
  margin: 0;
  flex: 0 1 var(--eduspark-size-team-photo-basis);
  width: auto;
  min-width: 0;
  max-width: min(var(--eduspark-size-team-photo-max-w), 40%);
  border-radius: calc(20px * var(--team-scale));
  overflow: hidden;
  box-shadow: 0 calc(8px * var(--team-scale)) calc(20px * var(--team-scale)) rgba(0, 0, 0, 0.12);
  aspect-ratio: 333 / 590;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-member--son .team-member__media,
.team-member--trang .team-member__media {
  aspect-ratio: 333 / 561;
}

.team-member__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member--son .team-member__img {
  object-position: center 18%;
}

.team-member__text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  gap: 30px;
}

.team-member__name {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 0 0.12em;
  font-family: "Baloo Chettan 2", var(--font-body);
  font-weight: 600;
  font-size: clamp(22px, 1.85vw, 40px);
  line-height: 1.15;
  color: #1a1a1a;
}

.team-member__card {
  position: relative;
  z-index: 1;
  /* Kéo nền kem lên để tên "nửa trên nửa dưới" nằm trên 2 background (không đè nội dung ul) */
  margin-top: -1.1rem;
  margin-top: max(-0.65lh, -1.45rem);
  padding: calc(1.15lh + 14px * var(--team-scale)) calc(24px * var(--team-scale)) calc(20px * var(--team-scale));
  background: #fef3e7;
  border-radius: 0 calc(20px * var(--team-scale)) 0 calc(20px * var(--team-scale));
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-member__card ul {
  margin: 0;
  padding-left: 22px;
  list-style: disc;
}

.team-member__card li {
  font-family: "Baloo Chettan 2", var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 1.15vw, 22px);
  line-height: 1.4;
  color: #492a13;
}

/* Hover effects: nâng nhẹ ảnh + thẻ kem, tăng độ nổi */
.team-member:hover .team-member__media {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 calc(10px * var(--team-scale)) calc(26px * var(--team-scale)) rgba(0, 0, 0, 0.18);
}

.team-member:hover .team-member__card {
  transform: translateY(-4px);
  box-shadow: 0 calc(10px * var(--team-scale)) calc(26px * var(--team-scale)) rgba(0, 0, 0, 0.10);
}

/* Reveal-on-scroll (JS đang gắn `.reveal-on-scroll` + `.is-visible` lên `.team-member`) */
.team-member.reveal-on-scroll .team-member__media {
  transform: translateY(14px) scale(0.99);
}

.team-member.is-visible .team-member__media {
  transform: translateY(0) scale(1);
}

@media (max-width: 960px) {
  .team-grid__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .team-member {
    flex-direction: column;
    align-items: stretch;
  }

  .team-member__media {
    flex: 0 0 auto;
    align-self: center;
    width: min(100%, 280px);
    max-width: 100%;
    max-height: 420px;
    aspect-ratio: 3 / 4;
  }

  .team-member__text {
    flex: 1 1 auto;
  }

  .team-member--son .team-member__media,
  .team-member--trang .team-member__media {
    aspect-ratio: 3 / 4;
  }

  .team-member__card {
    margin-top: 0.35rem;
    padding: 16px 18px;
  }
}

/* --- Breakpoint tuning pass (entire prototype) --- */
@media (max-width: 1440px) {
  .navbar-white__nav {
    gap: 8px 14px;
  }

  .navbar-white__nav a {
    font-size: 12px;
  }
}

@media (max-width: 1280px) {
  .top-bar__logo-img {
    width: min(calc(var(--eduspark-size-top-logo-w) * 0.9), 58vw);
    height: auto;
  }

  .hero-card__heading {
    line-height: 1.16;
  }

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

@media (max-width: 1024px) {
  :root {
    --header-top-h: 71px;
    --header-glass-h: 72px;
  }

  .navbar-white__inner {
    gap: 8px 12px;
  }

  .navbar-white__logo-bar {
    height: 40px;
    max-height: min(40px, 10vw);
    max-width: min(220px, 50vw);
  }
}

/* ≤960px: tier-2 navbar hidden; top bar = hamburger | logo | social; drawer for links */
@media (max-width: 960px) {
  :root {
    --header-glass-h: 0px;
    --header-top-h: 64px;
  }

  body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .top-bar__menu-btn {
    display: inline-flex;
  }

  .top-bar__contact,
  .top-bar__tagline {
    display: none !important;
  }

  .top-bar__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: unset;
    padding: 10px 0 12px;
    gap: 8px 12px;
  }

  .top-bar__center {
    justify-self: center;
    max-width: min(280px, 56vw);
  }

  /* Override Customizer inline width/max-width/height on the <img> only (not the wrapper) */
  .top-bar__logo .top-bar__logo-img {
    width: min(200px, calc(100vw - 130px)) !important;
    height: 80px !important;
    max-width: min(200px, calc(100vw - 130px)) !important;
    object-fit: contain;
  }

  .top-bar__social {
    gap: 8px;
  }

  .social-btn {
    width: 36px;
    height: 36px;
  }

  .navbar-white {
    display: none !important;
  }

  .hero {
    margin-top: 0;
    padding-top: 0;
  }

  .hero__slides-layer {
    top: 0;
    height: 100%;
  }

  .hero__gradient {
    top: 0;
    height: 100%;
  }

  .hero.hero--slide-brand .hero__slide-cream {
    transform: none;
    justify-content: center;
    align-items: center;
    padding: clamp(16px, 5vw, 40px);
  }

  .hero.hero--slide-brand .hero__slide--cream .hero__slide-cream-logo {
    max-width: min(96vw, 720px);
    max-height: min(52svh, 480px);
  }

  /* Slide-in menu overlay */
  .mobile-nav-drawer {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-nav-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
  }

  .mobile-nav-drawer.is-open .mobile-nav-drawer__backdrop {
    opacity: 1;
  }

  .mobile-nav-drawer__panel {
    position: relative;
    z-index: 1;
    width: min(320px, 88vw);
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .mobile-nav-drawer.is-open .mobile-nav-drawer__panel {
    transform: translateX(0);
  }

  .mobile-nav-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(73, 42, 19, 0.1);
  }

  .mobile-nav-drawer__title {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--color-brown);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .mobile-nav-drawer__close {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 28px;
    line-height: 1;
    color: var(--color-brown);
    cursor: pointer;
  }

  .mobile-nav-drawer__close:hover {
    background: rgba(249, 140, 17, 0.1);
  }

  .mobile-nav-drawer__close:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
  }

  .mobile-nav-drawer__links {
    display: flex;
    flex-direction: column;
    padding: 12px 16px 28px;
    gap: 4px;
  }

  .mobile-nav-drawer__links > a {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--color-brown);
    text-decoration: none;
  }

  .mobile-nav-drawer__links > a:hover {
    color: var(--color-orange);
    background: rgba(249, 140, 17, 0.08);
  }

  /* BUG-009 — xem chú thích --color-orange-ink ở quy tắc .navbar-white__nav a.is-active. */
  .mobile-nav-drawer__links > a.is-active {
    color: var(--color-orange-ink);
    background: rgba(249, 140, 17, 0.10);
  }

  .mobile-nav-drawer__group {
    margin: 8px 0 12px;
    padding: 12px 10px 14px;
    border-radius: 12px;
    background: rgba(73, 42, 19, 0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-nav-drawer__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    margin-bottom: 4px;
  }

  .mobile-nav-drawer__group a {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-brown);
    text-decoration: none;
    padding: 8px 0;
  }

  .mobile-nav-drawer__group a:hover {
    color: var(--color-orange);
  }

  /*
   * BUG-009 — mục con đang xem trong ngăn kéo mobile.
   * Quy tắc .mobile-nav-drawer__links > a.is-active chỉ bắt con TRỰC TIẾP, mà mục
   * con của submenu nằm lồng trong .mobile-nav-drawer__group nên không khớp.
   */
  .mobile-nav-drawer__group a.is-active {
    color: var(--color-orange-ink);
  }

  /* Nhóm chứa trang đang xem: nhãn nhóm đậm lên để định vị nhanh. */
  .mobile-nav-drawer__group.is-active-group .mobile-nav-drawer__label {
    color: var(--color-orange-ink);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 48px 16px;
  }

  .hero-card--below {
    padding-left: 16px;
    padding-right: 16px;
  }

  .carousel__controls {
    gap: 8px;
  }

  .footer-top {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Larger than default Customizer max-width (~88px); override inline slot style */
  .footer-brand img {
    max-width: min(168px, 52vw) !important;
    width: auto;
    margin-inline: auto;
  }

  .footer-brand .footer-slogan {
    text-align: center;
    max-width: min(100%, 22rem);
    text-wrap: balance;
  }

  .footer-brand .footer-contact-list {
    width: 100%;
    justify-items: center;
  }

  .footer-brand .footer-contact-list__item {
    justify-content: center;
    text-align: left;
    max-width: 100%;
  }

  .footer-brand .footer-contact-list__item a,
  .footer-brand .footer-contact-list__item span {
    word-break: break-word;
  }
}

@media (max-width: 390px) {
  .top-bar__mail {
    font-size: 13px;
  }

  .hero-card__heading,
  .hero-card__heading.hero-card__title--long {
    font-size: clamp(18px, 5.4vw, 26px);
  }

  .hero-card p {
    font-size: 15px;
    line-height: 1.55;
  }

  .btn {
    width: 100%;
  }

  .carousel__arrow {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .carousel__dot.is-active {
    width: 20px;
  }
}

.contact-section__lead {
  text-align: center;
  max-width: 700px;
  margin: -24px auto 28px;
  color: var(--color-muted);
}

/* Contact lead: one line on large screens (avoid awkward wrap) */
@media (min-width: 1024px) {
  .contact-section__lead {
    max-width: none;
    white-space: nowrap;
  }
}

.contact-section--about .contact-split {
  align-items: center;
}

.contact-split--about .contact-split__logo {
  max-width: 220px;
}

/* --- Ecosystem detail pages (managed by WP page editor) --- */
.ecosystem-page .post-stub__article {
  max-width: 920px;
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(24px, 3.5vw, 44px);
}

.ecosystem-page .post-stub__article h1 {
  margin: 0 0 18px;
  color: var(--color-brown);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
}

.ecosystem-page__hero {
  position: relative;
  margin: 0 0 clamp(20px, 3vw, 28px);
  border-radius: var(--radius-fluid-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 10;
  background: rgba(73, 42, 19, 0.06);
}

.ecosystem-page__hero-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecosystem-page .post-stub__content {
  color: var(--color-text);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.75;
}

.ecosystem-page .post-stub__content p {
  margin: 0 0 14px;
}

.ecosystem-page .post-stub__content ul {
  margin: 0 0 16px 18px;
}

.ecosystem-page .post-stub__back {
  margin: 22px 0 0;
}

.ecosystem-page .post-stub__back a {
  color: var(--color-orange);
  font-weight: 700;
}

.ecosystem-page__contact {
  padding-top: clamp(26px, 4vw, 46px);
}

/* --- Blog: archive + single post --- */
.blog-index {
  padding-top: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

.blog-index__header {
  max-width: 920px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.blog-index__title {
  margin: 0 0 12px;
  color: var(--color-brown);
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.blog-index__description {
  max-width: 720px;
  color: var(--color-muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
}

.blog-index__description p {
  margin: 0 0 10px;
}

.blog-index__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(22px, 3vw, 32px);
  align-items: stretch;
}

.blog-index__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 32px 20px;
  text-align: center;
  color: var(--color-muted);
  font-size: 16px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-fluid-md);
  border: 1px solid rgba(73, 42, 19, 0.08);
  box-shadow: 0 8px 28px rgba(73, 42, 19, 0.07);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 14px 40px rgba(73, 42, 19, 0.11);
  transform: translateY(-2px);
}

.blog-card__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #faf6f0 0%, #efe8dc 100%);
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 2vw, 20px) clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 24px);
  flex: 1;
}

.blog-card__date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.blog-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 800;
  line-height: 1.28;
  /* Reserve space for two lines so cards align; full title via native tooltip on <a title> */
  min-height: calc(1.28em * 2);
}

.blog-card__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--color-brown);
  text-decoration: none;
  word-break: break-word;
}

.blog-card__title a:hover {
  color: var(--color-orange);
}

.blog-card__excerpt {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__more {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-orange-ink);
  text-decoration: none;
  margin-top: 4px;
}

.blog-card__more:hover {
  text-decoration: none;
}

.blog-index__pagination,
.blog-index__pagination .nav-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  margin-top: clamp(20px, 3vw, 36px);
}

.blog-index__pagination a.page-numbers,
.blog-index__pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(73, 42, 19, 0.12);
  color: var(--color-brown);
  background: var(--color-white);
}

.blog-index__pagination a.page-numbers:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.blog-index__pagination span.page-numbers.current {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-brown);
}

.blog-index__pagination span.page-numbers.dots {
  border: none;
  background: transparent;
  min-width: auto;
}

.post-single {
  padding-top: clamp(20px, 2.5vw, 40px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.post-single__article {
  max-width: 920px;
}

.post-single__back {
  margin: 0 0 16px;
}

.post-single__back a {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-orange);
  text-decoration: none;
}

.post-single__back a:hover {
  text-decoration: none;
}

.post-single__title {
  margin: 0 0 12px;
  color: var(--color-brown);
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

.post-single__meta {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
}

.post-single__meta a {
  color: var(--color-orange);
  font-weight: 600;
  text-decoration: none;
}

.post-single__meta a:hover {
  text-decoration: none;
}

.post-single__figure {
  margin: 0 0 clamp(24px, 3vw, 36px);
  border-radius: var(--radius-fluid-md);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.post-single__image {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.post-single__content {
  color: var(--color-text);
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.75;
}

.post-single__content > *:first-child {
  margin-top: 0;
}

.post-single__content p {
  margin: 0 0 14px;
}

.post-single__content ul,
.post-single__content ol {
  margin: 0 0 16px 1.25em;
}

.post-single__content h2,
.post-single__content h3 {
  margin: 1.4em 0 0.5em;
  color: var(--color-brown);
  font-family: var(--font-serif);
}

.post-single__content h2 {
  font-size: clamp(22px, 2.2vw, 28px);
}

.post-single__content h3 {
  font-size: clamp(18px, 1.8vw, 22px);
}

.post-single__content a {
  color: var(--color-orange);
  font-weight: 600;
}

.post-single__content img {
  max-width: 100%;
  height: auto;
}

.post-single__pages {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--color-muted);
}

.post-single__pages-label {
  font-weight: 700;
  margin-right: 8px;
}

.post-single__nav {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid rgba(73, 42, 19, 0.1);
}

.post-single__nav .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .post-single__nav .nav-links {
    grid-template-columns: 1fr;
  }
}

.post-single__nav .nav-previous a,
.post-single__nav .nav-next a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-fluid-md);
  border: 1px solid rgba(73, 42, 19, 0.1);
  background: #fffdf9;
  text-decoration: none;
  color: var(--color-brown);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.post-single__nav .nav-next a {
  text-align: right;
}

.post-single__nav .nav-previous a:hover,
.post-single__nav .nav-next a:hover {
  border-color: var(--color-orange);
  background: #fff;
}

.post-single__nav-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
}

.post-single__nav-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

/* --- Header social: real icons instead of empty blocks --- */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-btn::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  opacity: 0.95;
}

.social-btn--primary {
  color: #fff;
}

.social-btn:not(.social-btn--primary) {
  color: #5f5f5f;
}

/* Header social uses configurable <img> icons */
.top-bar__social .social-btn::before {
  display: none;
}

.top-bar__social .social-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.top-bar__social .social-btn:nth-child(1)::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M13.5 8H16V5h-2.5C10.5 5 9 6.9 9 9.4V12H6v3h3v6h3v-6h3l.5-3H12V9.7c0-1 .3-1.7 1.5-1.7Z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M13.5 8H16V5h-2.5C10.5 5 9 6.9 9 9.4V12H6v3h3v6h3v-6h3l.5-3H12V9.7c0-1 .3-1.7 1.5-1.7Z'/></svg>") center / contain no-repeat;
}

.top-bar__social .social-btn:nth-child(2)::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 .001 20.001A10 10 0 0 0 12 2Zm6.9 9h-3.05a15.7 15.7 0 0 0-1.2-5.1A8.04 8.04 0 0 1 18.9 11ZM12 4.05c.84 1.22 1.53 3.23 1.8 5.95h-3.6c.27-2.72.96-4.73 1.8-5.95ZM4.95 13h3.05c.12 1.81.52 3.53 1.2 5.1A8.04 8.04 0 0 1 4.95 13Zm3.05-2H4.95a8.04 8.04 0 0 1 4.25-5.1A15.7 15.7 0 0 0 8 11Zm2.1 2h3.8c-.3 2.72-.99 4.73-1.9 5.95-.91-1.22-1.6-3.23-1.9-5.95Zm0-2c.3-2.72.99-4.73 1.9-5.95.91 1.22 1.6 3.23 1.9 5.95h-3.8Zm4.7 7.1c.68-1.57 1.08-3.29 1.2-5.1h3.05a8.04 8.04 0 0 1-4.25 5.1Z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2a10 10 0 1 0 .001 20.001A10 10 0 0 0 12 2Zm6.9 9h-3.05a15.7 15.7 0 0 0-1.2-5.1A8.04 8.04 0 0 1 18.9 11ZM12 4.05c.84 1.22 1.53 3.23 1.8 5.95h-3.6c.27-2.72.96-4.73 1.8-5.95ZM4.95 13h3.05c.12 1.81.52 3.53 1.2 5.1A8.04 8.04 0 0 1 4.95 13Zm3.05-2H4.95a8.04 8.04 0 0 1 4.25-5.1A15.7 15.7 0 0 0 8 11Zm2.1 2h3.8c-.3 2.72-.99 4.73-1.9 5.95-.91-1.22-1.6-3.23-1.9-5.95Zm0-2c.3-2.72.99-4.73 1.9-5.95.91 1.22 1.6 3.23 1.9 5.95h-3.8Zm4.7 7.1c.68-1.57 1.08-3.29 1.2-5.1h3.05a8.04 8.04 0 0 1-4.25 5.1Z'/></svg>") center / contain no-repeat;
}

.top-bar__social .social-btn:nth-child(3)::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12s4.48 10 10 10 10-4.48 10-10Zm-11.5 3.5v-7l6 3.5-6 3.5Z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12s4.48 10 10 10 10-4.48 10-10Zm-11.5 3.5v-7l6 3.5-6 3.5Z'/></svg>") center / contain no-repeat;
}

/*
 * T12.3 — ba khối thêm vào trang Giới thiệu theo audit.
 *
 * Audit yêu cầu từ đầu nhưng nằm im qua 12 phase, vì audit chưa bao giờ được đối
 * chiếu toàn bộ với site (xem .viepilot/phases/phase-12/T12.2.md).
 */

/* ── Sứ mệnh / Tầm nhìn ─────────────────────────────────────────────── */
.about-purpose__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 760px) {
  .about-purpose__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

.about-purpose__item {
  padding: 26px 28px;
  border-radius: 20px;
  background: var(--color-white);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05);
  /* Vạch màu đầu khối — phân biệt Sứ mệnh với Tầm nhìn mà không cần thêm icon. */
  border-top: 4px solid var(--color-orange);
}

.about-purpose__item--vision {
  border-top-color: var(--color-brown);
}

.about-purpose__label {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--color-brown);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-purpose__text {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--color-brown);
}

/* ── Icon giá trị cốt lõi ───────────────────────────────────────────── */
.value-note__icon {
  display: block;
  margin: 0 0 10px;
  /* NÉT MẢNH theo ảnh mẫu image1.png của audit, không tô đặc.
     currentColor: đổi màu chữ của thẻ là icon đổi theo. */
  color: var(--color-orange-ink, #a75200);
}

.value-note__icon svg {
  display: block;
}

/*
 * Hotfix 21/09/2026 — mục Hội đồng dựng lại theo bản mẫu audit (image7.png).
 *
 * Bản cũ: ảnh DỌC lớn bên trái + tiểu sử gạch đầu dòng bên phải, hai hàng.
 * Bản mẫu: lưới 2×2, ảnh gần vuông bo góc, TÊN DƯỚI ẢNH, KHÔNG có tiểu sử.
 *
 * Khung vuông cũng hợp ảnh thật hơn: hai trong bốn ảnh khách gửi là ảnh NGANG
 * (1147×765 và 1209×806) — ép vào khung dọc 333×590 thì mất 60% bề ngang.
 */
.team-board__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.team-board__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.team-board__media {
  /*
   * 21/09/2026 — ảnh trước đây bị kẹt ở 190px, nhỏ hơn hẳn bản cũ (333px).
   * Nay ô ảnh ăn trọn cột của lưới nên to theo khung, không bị trần cứng.
   * Khung 4/5: hai ảnh khách gửi là ảnh NGANG (1147×765, 1209×806) — khung
   * dọc cũ 333×590 (tỉ lệ 0,56) cắt mất 62% bề ngang, 4/5 chỉ mất 47%.
   */
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(73, 42, 19, 0.16);
}

.team-board__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bốn ảnh đã cắt sẵn đúng khung 4/5 (bản gốc ở assets/team/original/),
     nên không cần dịch khung nữa — dịch thêm là lệch mặt người. */
  object-position: center;
}

.team-board__name {
  margin: 0;
  text-align: center;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 700;
  color: var(--color-brown);
}

/* ── Điểm vàng từ đội ngũ chuyên gia ───────────────────────────────── */
.team-board__highlight {
  max-width: 900px;
  margin: clamp(32px, 5vw, 56px) auto 0;
}

.team-board__highlight-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-brown);
}

.team-board__highlight-list {
  margin: 0;
}

.team-board__highlight-row {
  margin: 0 0 12px;
  font-size: clamp(14px, 1.45vw, 16px);
  line-height: 1.65;
  color: var(--color-brown);
}

.team-board__highlight-row dt {
  display: inline;
  font-weight: 700;
}

.team-board__highlight-row dd {
  display: inline;
  margin: 0;
}

/*
 * Bố cục: 2×2 cho tới tablet (ảnh to, đúng bản mẫu audit), một hàng bốn người
 * từ 1080px trở lên — đủ rộng để mỗi ảnh vẫn ~260px, KHÔNG bị bóp như bản 900px.
 */
@media (min-width: 640px) {
  .team-board__grid {
    max-width: 680px;
  }
}

@media (min-width: 1080px) {
  .team-board__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1140px;
  }
}

/* ── T14.3 — khối "VÌ SAO NÊN CHỌN EDUSPARK?" (audit ô C4) ─────────────────
 *
 * Dựng theo bản thiết kế image10.png: ba thẻ trắng bo góc, số thứ tự lớn mờ ở
 * góc trên-trái, hình minh hoạ tròn nền vàng nhạt, tiêu đề cam đậm, mô tả canh
 * giữa.
 */
.why-lead {
  margin: 0 auto 28px;
  max-width: 44rem;
  text-align: center;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--color-brown);
}

.why-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 1.8vw, 26px);
}

@media (min-width: 720px) {
  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.why-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(26px, 2.6vw, 36px) clamp(18px, 2vw, 28px) clamp(22px, 2.2vw, 30px);
  border-radius: var(--radius-fluid-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

/*
 * Số thứ tự: TRANG TRÍ nên để rất nhạt. Chữ của thẻ nằm ĐÈ LÊN nó, nên phép đo
 * tương phản phải đo chữ trên nền TRẮNG (số quá nhạt để đổi kết quả) — chứ
 * không đo chính con số.
 */
.why-card__num {
  position: absolute;
  top: -6px;
  left: 10px;
  font-family: var(--font-rounded);
  font-size: clamp(56px, 6vw, 84px);
  font-weight: 700;
  line-height: 1;
  color: var(--color-orange);
  opacity: 0.12;
  pointer-events: none;
}

.why-card__media {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(76px, 7vw, 96px);
  height: clamp(76px, 7vw, 96px);
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fdf1dc;
  color: var(--color-orange-ink);
}

.why-card__icon {
  width: 52%;
  height: 52%;
  display: block;
}

.why-card__title {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--font-rounded);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--color-orange-ink);
}

.why-card__body {
  position: relative;
  margin: 0;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.65;
  color: var(--color-brown);
}

/* ── T14.4 — khối NHÀ SÁNG LẬP trang Về chúng tôi (audit ô C8) ─────────────
 *
 * Đứng RIÊNG, trước lưới Hội đồng. Phải KHÁC dáng lưới Hội đồng để không đọc
 * thành "thành viên thứ năm": ảnh lớn bên trái, chữ bên phải, thay vì ô vuông
 * xếp lưới.
 */
.founder {
  display: grid;
  gap: clamp(18px, 2.4vw, 34px);
  align-items: center;
  max-width: 900px;
  margin-inline: auto;
}

@media (min-width: 760px) {
  .founder {
    grid-template-columns: minmax(200px, 300px) 1fr;
  }
  /* Chưa có ảnh: một cột, chữ canh giữa — không để một cột trống toang hoác. */
  .founder--chua-co-anh {
    grid-template-columns: 1fr;
    max-width: 640px;
    text-align: center;
    justify-items: center;
  }
}

.founder__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(73, 42, 19, 0.16);
}

.founder__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.founder__name {
  margin: 0 0 14px;
  font-family: var(--font-rounded);
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 700;
  color: var(--color-brown);
}

.founder__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.founder__list li {
  position: relative;
  padding-left: 20px;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
  color: var(--color-brown);
  text-align: left;
}

.founder__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
}

/*
 * T14.4 — ở khổ hẹp, nút điều khiển băng chuyền (mũi tên + chấm) nằm đè lên
 * đáy slide. Trước khi thêm slogan thì không ai thấy vì đáy slide là khoảng
 * trống; thêm chữ vào là chữ bị 9 nút che. Chừa đáy đủ cho cụm điều khiển.
 *
 * Đo ở 390px: nút đầu tiên bắt đầu ở y=458, slogan cũ ở y=460 → đè.
 */
@media (max-width: 760px) {
  /*
   * Độ đặc hiệu phải KHỚP quy tắc ở trên (.hero.hero--slide-brand
   * .hero__slide-cream = 0,3,0). Viết .hero__slide-cream trần (0,1,0) thì thua
   * bất kể đặt sau — đã thử một lần, padding không đổi và nút vẫn đè lên chữ.
   */
  .hero.hero--slide-brand .hero__slide-cream {
    padding-bottom: clamp(72px, 18vw, 104px);
  }
}

/* T14.4 — slogan dưới logo ở slide đầu của hero (audit ô D2). */
.hero__slide-cream-slogan {
  margin: clamp(10px, 1.4vw, 18px) 0 0;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(15px, 1.7vw, 22px);
  line-height: 1.35;
  /*
   * NÂU, không phải cam-ink. Nền slide này KHÔNG phải nền kem như tưởng: lấy
   * mẫu pixel ra chỗ sáng nhất là rgb(225,216,203) — be đậm hơn kem. Ở nền đó
   * cam-ink #a75200 chỉ được 3,87 (cần 4,5), còn nâu được 9,17. Không thêm một
   * sắc cam thứ ba vào bảng màu chỉ để vá một chỗ.
   */
  color: var(--color-brown);
}
