/* ==========================================================================
   KITIYA ACADEMY — Design System
   Premium · Luxury · Professional · Trustworthy · International
   สีและฟอนต์ถูกฉีดเป็น CSS variable จาก data/site.json ใน <head> (แก้ได้จากหลังบ้าน)
   ========================================================================== */

:root {
  --navy: #011d80;
  --red: #b10000;
  --gold: #c9a227;
  --gold-light: #e3c766;
  --white: #ffffff;

  --ink: #101223;
  --ink-soft: #4a4f68;
  --ink-faint: #8a8fa6;
  --line: #e6e3dc;
  --paper: #ffffff;
  --paper-warm: #faf8f4;
  --paper-warmer: #f4f1ea;
  --navy-deep: #010f47;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans Thai", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --wrap-narrow: 860px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 140px);
  --radius: 2px;

  --shadow-sm: 0 1px 2px rgba(1, 29, 128, 0.06), 0 8px 24px -16px rgba(1, 29, 128, 0.24);
  --shadow-md: 0 2px 4px rgba(1, 29, 128, 0.05), 0 24px 60px -32px rgba(1, 29, 128, 0.35);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1.1em; }

/* ข้อความไทยยาว ๆ ไม่มีช่องว่าง ต้องบังคับให้ตัดคำได้ ไม่งั้นดันความกว้างจนเกินจอบนมือถือ */
h1, h2, h3, h4, p, li, td, th, blockquote, figcaption, span, a { overflow-wrap: break-word; }

/* ฟอนต์ serif ใช้ตัวเลขแบบ oldstyle ซึ่งอ่านยากเมื่อปนกับข้อความไทย — บังคับเป็นตัวเลขปกติ */
h1, h2, h3, h4, .hero__statement, .hero__title, .section-head__title,
.feature-card__title, .course-card__title, .about__name, .cta__title,
.step-group__title, .teacher-card__name { font-variant-numeric: lining-nums; }

/* ลูกของ grid/flex ต้องยุบได้ ไม่งั้น min-content ของข้อความยาวจะดันคอลัมน์ให้กว้างเกิน */
.hero__grid > *,
.about-grid > *,
.course-card > *,
.set-block > *,
.img-grid > *,
.feature-grid > *,
.review-gallery > *,
.teacher-grid > * { min-width: 0; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: var(--navy-deep); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--warm { background: var(--paper-warm); }
.section--warmer { background: var(--paper-warmer); }
.section--navy {
  background: var(--navy);
  color: #fff;
}
.section--navy .section-head__title,
.section--navy h2,
.section--navy h3 { color: #fff; }
.section--navy .section-head__eyebrow { color: var(--gold-light); }
.section--navy .section-head__lead,
.section--navy p { color: rgba(255, 255, 255, 0.86); }

/* ---------- section heading (ต้องเด่นกว่าเนื้อหาชัดเจน) ---------- */
.section-head {
  max-width: 780px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-head__eyebrow::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  background: var(--gold);
  margin-top: 14px;
}
.section-head--center .section-head__eyebrow::after { margin-inline: auto; }

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
  white-space: pre-line;
}
:lang(th) .section-head__title { line-height: 1.35; }

.section-head__lead {
  margin-top: 22px;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.9;
  color: var(--ink-soft);
}

/* หัวข้อไทยยาว ๆ ให้เล็กลงนิดเพื่อไม่ล้น */
.section-head__title--long { font-size: clamp(1.6rem, 3vw, 2.5rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deep);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { box-shadow: var(--shadow-md); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(1, 29, 128, 0.28);
}
.btn--ghost:hover { border-color: var(--navy); background: rgba(1, 29, 128, 0.04); }

.section--navy .btn--ghost,
.hero--elite .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.section--navy .btn--ghost:hover,
.hero--elite .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.btn-row--center { justify-content: center; }

/* ---------- media / images ---------- */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper-warmer);
  border-radius: var(--radius);
}
.media[style*="--ratio"] { aspect-ratio: var(--ratio); }

.media img { width: 100%; height: 100%; }
.media.is-cover img { object-fit: cover; }

/* ภาพรีวิว — ห้ามครอป ต้องอ่านข้อความในภาพได้ครบ */
.media.is-contain {
  overflow: visible;
  background: transparent;
  aspect-ratio: auto;
}
.media.is-contain img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background:
    repeating-linear-gradient(
      -45deg,
      var(--paper-warmer),
      var(--paper-warmer) 12px,
      #efece4 12px,
      #efece4 24px
    );
  border: 1px dashed rgba(1, 29, 128, 0.22);
  color: var(--ink-faint);
}
.img-placeholder.is-contain { aspect-ratio: var(--ratio, 16 / 9); }
.img-placeholder__mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  position: relative;
  flex: none;
}
.img-placeholder__mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.img-placeholder__label {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--navy);
  line-height: 1.3;
}
.img-placeholder__note {
  font-size: 11px;
  letter-spacing: 0.04em;
  word-break: break-all;
  opacity: 0.72;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.brand img { height: 42px; width: auto; }
.brand__text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--navy);
  line-height: 1;
}
.brand__text span { color: var(--gold); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a.is-active { color: var(--navy); font-weight: 600; }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
}

.site-header__cta { flex: none; }
.site-header__cta .btn { padding: 12px 22px; font-size: 13px; }

/* ปุ่ม CTA ในเมนูมีไว้สำหรับ mobile drawer เท่านั้น — desktop ใช้ปุ่มด้านขวาแทน */
.site-nav__cta { display: none; }

@media (max-width: 1120px) { .site-nav { display: none; } }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  position: relative;
  flex: none;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1.5px;
  background: var(--navy);
  transform: translateX(-50%);
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 50%; margin-top: -0.75px; }
.nav-toggle span::before { content: ""; top: -7px; left: 0; transform: none; }
.nav-toggle span::after { content: ""; top: 7px; left: 0; transform: none; }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- mobile drawer ---------- */
@media (max-width: 1120px) {
  .site-header__cta { display: none; }
  .nav-toggle { display: block; }

  /* หมายเหตุ: ห้ามเลื่อน drawer ออกไปนอกจอด้วย translateX(100%)
     เพราะ element ที่ position:fixed ไม่ถูก overflow-x:hidden ของ body ตัด
     → จะเกิดแถบเลื่อนแนวนอนบนมือถือ ใช้ fade + เลื่อนแนวตั้งแทน */
  .site-nav {
    position: fixed;
    inset: 78px 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 28px var(--gutter) 48px;
    background: var(--paper);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .site-nav a {
    padding: 20px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a.is-active::after { display: none; }
  .site-nav__cta {
    display: flex;
    margin-top: 28px;
    width: 100%;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; }

.hero--home {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
}
.hero__statement {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.28;
  color: var(--navy);
  max-width: 26ch;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
.hero__statement em { font-style: normal; color: var(--gold); }

.hero__eyebrow {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}

.hero__figure { margin-top: clamp(36px, 5vw, 60px); }
.hero__sublines {
  margin-top: clamp(32px, 4vw, 52px);
  text-align: center;
}
.hero__subline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  color: var(--navy);
  line-height: 1.35;
}
.hero__subline + .hero__subline {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.4vw, 1.12rem);
  font-weight: 400;
  color: var(--ink-soft);
}

/* hero หน้า Elite — พื้นเข้ม พรีเมียม */
.hero--elite {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(201, 162, 39, 0.2) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding-block: clamp(64px, 9vw, 130px);
}
.hero--elite .hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.hero--elite .hero__eyebrow {
  text-align: left;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.hero--elite .hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
  white-space: pre-line;
  text-wrap: balance;
}
:lang(th) .hero--elite .hero__title { line-height: 1.4; }
.hero--elite .hero__lead {
  margin-top: 26px;
  font-size: 1.02rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.84);
  max-width: 56ch;
}
.hero--elite .hero__note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.hero--elite .media { background: rgba(255, 255, 255, 0.06); }
.hero--elite .img-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(227, 199, 102, 0.4);
  color: rgba(255, 255, 255, 0.6);
}
.hero--elite .img-placeholder__label { color: var(--gold-light); }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.hero__badge {
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid rgba(227, 199, 102, 0.45);
  border-radius: 100px;
  color: var(--gold-light);
}
.hero--compact .hero__badge { border-color: rgba(1, 29, 128, 0.2); color: var(--navy); }

/* hero แบบสั้น (Courses / Resources / Teachers) */
.hero--compact {
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
  padding-block: clamp(56px, 7vw, 110px);
  text-align: center;
}
.hero--compact .hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--navy);
  line-height: 1.15;
  white-space: pre-line;
}
:lang(th) .hero--compact .hero__title { line-height: 1.3; }
.hero--compact .hero__lead {
  margin-top: 24px;
  max-width: 62ch;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}
.hero--compact .hero__note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.hero--compact .hero__badges { justify-content: center; }

@media (max-width: 900px) {
  .hero--elite .hero__grid { grid-template-columns: 1fr; }
  .hero--elite .hero__media { order: -1; }
}

/* ==========================================================================
   Blocks
   ========================================================================== */

/* --- richtext --- */
.richtext__body {
  font-size: clamp(1rem, 1.3vw, 1.13rem);
  line-height: 1.95;
  color: var(--ink-soft);
  max-width: 68ch;
}
.richtext--center .richtext__body { margin-inline: auto; text-align: center; }

.callout {
  margin-top: 34px;
  padding: 24px 30px;
  border-left: 2px solid var(--gold);
  background: var(--paper-warm);
  font-size: 1.02rem;
  color: var(--navy);
  max-width: 68ch;
}
.richtext--center .callout { margin-inline: auto; text-align: left; }
.section--navy .callout {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* --- image grid --- */
.img-grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 30px);
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}
.img-grid__item figcaption,
.img-grid__caption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: 0.02em;
}
@media (max-width: 900px) { .img-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .img-grid { grid-template-columns: 1fr; } }

/* --- review gallery (ห้ามครอป) --- */
.review-gallery {
  display: grid;
  gap: clamp(24px, 3vw, 44px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
}
.review-gallery--single { grid-template-columns: minmax(0, 900px); justify-content: center; }

.review-figure {
  margin: 0;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.review-figure .media,
.review-figure .img-placeholder { width: 100%; }
.review-figure img { width: 100%; height: auto; object-fit: contain; }
.review-figure figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-faint);
  text-align: center;
}

/* --- banner link (4:1 — ย่อทั้งภาพ ห้ามครอป) --- */
.banner-link { display: block; text-decoration: none; }
.banner-link__media {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.banner-link:hover .banner-link__media {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.banner-link__media img { width: 100%; height: auto; object-fit: contain; }
.banner-link__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}
.banner-link__label::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.banner-link:hover .banner-link__label::after { width: 52px; }
.banner-link__wrap { text-align: center; }

/* --- feature list --- */
.feature-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.feature-card {
  padding: clamp(24px, 3vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.section--navy .feature-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  border-top-color: var(--gold);
}
.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
}
.section--navy .feature-card__title { color: var(--gold-light); }
.feature-card__body { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.85; }
.section--navy .feature-card__body { color: rgba(255, 255, 255, 0.84); }

/* list variant */
.feature-list { display: grid; gap: 2px; max-width: 78ch; }
.feature-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.section--navy .feature-list li {
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
}
.feature-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 12px;
  background: var(--gold);
  transform: rotate(45deg);
}
.feature-list--numbered { counter-reset: fl; }
.feature-list--numbered li::before {
  counter-increment: fl;
  content: counter(fl, decimal-leading-zero);
  width: auto;
  height: auto;
  margin-top: 0;
  background: none;
  transform: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  min-width: 32px;
}
.feature-list strong { color: var(--navy); font-weight: 600; }
.section--navy .feature-list strong { color: var(--gold-light); }

/* --- cards (courses / resources) --- */
.course-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.course-card:first-child { border-top: 0; padding-top: 0; }
.course-card__media { position: sticky; top: 110px; }

.course-card__index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.course-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  color: var(--navy);
  line-height: 1.2;
}
.course-card__tagline {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--gold);
  font-weight: 500;
  line-height: 1.7;
}
.course-card__intro {
  margin-top: 20px;
  color: var(--ink-soft);
  line-height: 1.95;
}

.detail-section { margin-top: 34px; }
.detail-section__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.step-group { margin-bottom: 22px; }
.step-group__title {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.4;
}
.step-group__num {
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  flex: none;
}
.step-group ul { padding-left: 26px; }
.step-group li,
.bullet-list li {
  position: relative;
  padding: 5px 0;
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.step-group li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 15px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}
.bullet-list { padding-left: 26px; }

.check-list { display: grid; gap: 10px; }
.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 9px;
  margin-top: 9px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

.highlight-list { display: grid; gap: 12px; }
.highlight-list li {
  padding: 16px 20px;
  background: var(--paper-warm);
  border-left: 2px solid var(--gold);
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.highlight-list strong { color: var(--navy); }

.card-list--compact .course-card {
  grid-template-columns: 1fr;
  padding-block: clamp(26px, 3vw, 40px);
}
.card-list--compact .course-card__media { display: none; }

@media (max-width: 880px) {
  .course-card { grid-template-columns: 1fr; }
  .course-card__media { position: static; max-width: 400px; }
}

/* --- price --- */
.price-tag {
  margin-top: 30px;
  padding: 24px 28px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}
.price-tag__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  width: 100%;
}
.price-tag__amount {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.price-tag__was {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: line-through;
}
.price-note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--ink-faint);
  line-height: 1.8;
}

/* --- set table (CEFR) --- */
.set-block {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.set-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.set-table th,
.set-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}
.set-table th {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--paper-warm);
  white-space: nowrap;
}
.set-table td:first-child {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  width: 56px;
  font-variant-numeric: lining-nums;
}
.set-table td:nth-child(2) { color: var(--navy); font-weight: 500; white-space: nowrap; }
.set-table td:last-child { color: var(--ink-soft); min-width: 260px; }

@media (max-width: 880px) { .set-block { grid-template-columns: 1fr; } }

/* --- pricing table --- */
.pricing-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.pricing-table th,
.pricing-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.pricing-table th {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--paper-warm);
}
.pricing-table td:first-child {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
}
.pricing-table td:last-child {
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

.bundle-card {
  margin-top: 34px;
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  text-align: center;
}
.bundle-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: #fff;
}
.bundle-card__price {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 12px;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.bundle-card__was {
  margin-top: 10px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
}
.bundle-card__note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
  color: var(--gold-light);
}

/* --- FAQ --- */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.6;
}
.faq__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 6px;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 1.5px; }
.faq__icon::after { top: 0; left: 8px; width: 1.5px; height: 18px; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s ease;
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding-bottom: 28px;
  padding-right: 42px;
  color: var(--ink-soft);
  line-height: 1.95;
}
.faq__a strong { color: var(--navy); font-weight: 600; }

/* --- about --- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.about__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  color: var(--navy);
  line-height: 1.15;
}
.about__role {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.about__quote {
  margin: 30px 0;
  padding: 26px 0 26px 28px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--navy);
}
.about__quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.about__highlights { display: grid; gap: 10px; margin-bottom: 28px; }
.about__highlights li {
  display: flex;
  gap: 12px;
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.8;
}
.about__highlights li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 12px;
  background: var(--gold);
  transform: rotate(45deg);
}
.about__body { color: var(--ink-soft); line-height: 1.95; }
.about__mission {
  margin-top: 26px;
  padding: 20px 24px;
  background: var(--paper-warm);
  border-left: 2px solid var(--navy);
  font-size: 0.97rem;
  color: var(--navy);
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

/* --- teacher grid --- */
.teacher-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}
.teacher-card {
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}
.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.teacher-card .media { border-radius: 0; }
.teacher-card__body { padding: 18px 20px 22px; text-align: center; }
.teacher-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1.3;
}
.teacher-card__note {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--ink-faint);
  line-height: 1.6;
}
.teacher-card__link {
  margin-top: 10px;
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.teacher-count {
  margin-bottom: 30px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- CTA --- */
.cta { text-align: center; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.25;
  white-space: pre-line;
  color: #fff;
  text-wrap: balance;
}
:lang(th) .cta__title { line-height: 1.4; }
.cta__lead {
  margin-top: 22px;
  max-width: 62ch;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.9;
}
.cta--light { background: var(--paper-warm); }
.cta--light .cta__title { color: var(--navy); }
.cta--light .cta__lead { color: var(--ink-soft); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(48px, 6vw, 80px) 34px;
  font-size: 0.93rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer .brand__text { color: #fff; }
.site-footer .brand__text span { color: var(--gold-light); }
.site-footer__about { margin-top: 18px; line-height: 1.9; max-width: 46ch; }
.site-footer__title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.site-footer__links { display: grid; gap: 11px; }
.site-footer__links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}
.site-footer__links a:hover { color: var(--gold-light); }
.site-footer__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
/* ซ่อนไว้ก่อนเฉพาะเมื่อ JS ทำงาน — ถ้า JS ไม่ทำงาน เนื้อหาต้องเห็นครบตามปกติ */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
