/* ============================================================
   ZenityX — Design System
   Apple-calm · Cinnabar Red · IBM Plex Sans Thai + Sarabun
   ============================================================ */

:root {
  /* Brand colors */
  --red: #FF0000;
  --red-mid: #CC0000;
  --red-deep: #990000;
  --black: #0a0a0a;
  --ink: #1d1d1f;
  --white: #ffffff;
  --gray-bg: #f5f5f7;
  --gray-card: #f5f5f5;
  --gray-med: #9e9e9e;
  --gray-text: #666666;
  --hairline: #e8e8ed;
  --dark-card: #1a1a1a;

  /* Type */
  --font-display: 'IBM Plex Sans Thai', 'Sarabun', -apple-system, sans-serif;
  --font-body: 'Sarabun', -apple-system, sans-serif;
  /* JetBrains Mono has no Thai glyphs — Thai text in mono contexts (kicker,
     trust-label, chips) must fall back to IBM Plex Sans Thai, NOT the OS font
     (Thonburi/Tahoma), so it renders identically on every device. */
  --font-mono: 'JetBrains Mono', 'Menlo', 'IBM Plex Sans Thai', monospace;

  /* Layout */
  --container: 1140px;
  --container-wide: 1320px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-card: 0 4px 24px rgba(0,0,0,.06);
  --shadow-lift: 0 18px 44px rgba(0,0,0,.12);
  --nav-h: 64px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-wrap: break-word;
}

/* กัน grid/flex cell กว้างเกิน viewport จากข้อความไทยยาว */
.grid-2 > *, .grid-3 > *, .grid-4 > *, .stats > *,
.team-grid > *, .split > *, .course-hero-grid > * { min-width: 0; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* Thai script ต้องการ line-height สูงกว่า Latin — กันสระบน/ล่างชนกันระหว่างบรรทัด
   และไม่ใช้ negative letter-spacing เพราะทำให้วรรณยุกต์/สระซ้อนเบียดกัน */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  letter-spacing: normal;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red-mid);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px 30px;
  border-radius: 980px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,0,0,.28); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(0,0,0,.22);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(0,0,0,.03); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-white { background: var(--white); color: var(--red-mid); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.btn .arr { transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(3px); }

.link-arrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--red-mid);
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow .arr { transition: transform .25s ease; }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav {
  max-width: var(--container-wide);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(0,0,0,.75);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-cta {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  padding: 9px 20px;
  border-radius: 980px;
  transition: all .25s ease;
}
.nav-cta:hover { box-shadow: 0 6px 18px rgba(255,0,0,.3); transform: translateY(-1px); }

.nav-burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span {
  width: 20px; height: 2px; background: var(--ink);
  transition: all .3s ease; border-radius: 2px;
}
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  /* NOTE: .site-header has backdrop-filter, so it is the containing block for
     this fixed child. Anchor with top + explicit height (NOT bottom:0, which
     would resolve to the 64px header's bottom and collapse the menu). */
  top: var(--nav-h); left: 0; right: 0;
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  z-index: 99;
  background: var(--white);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 32px 28px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
body.menu-open .mobile-menu { display: flex; }
body.menu-open { overflow: hidden; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu .nav-cta {
  margin-top: 24px;
  text-align: center;
  font-size: 17px;
  padding: 16px;
  border-bottom: none;
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-tight { padding: 80px 0; }
.section-gray { background: var(--gray-bg); }
.section-dark { background: var(--black); color: var(--white); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-title {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 700;
}
.section-sub {
  font-size: 19px;
  color: var(--gray-text);
  margin: 18px 0 0;
}
.section-dark .section-sub { color: rgba(255,255,255,.65); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + 90px) 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -300px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(255,0,0,.07), transparent 65%);
  pointer-events: none;
}
.hero .kicker { justify-content: center; }
.hero .kicker::before { display: none; }
.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.32;
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 .accent { color: var(--red); }
.hero-sub {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--gray-text);
  max-width: 640px;
  margin: 26px auto 0;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding-top: 56px;
  border-top: 1px solid var(--hairline);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  color: var(--red);
  line-height: 1.1;
}
.stat-label {
  font-size: 15px;
  color: var(--gray-text);
  margin-top: 6px;
}

/* ---------- Trust / logos ---------- */
.trust-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray-med);
  text-align: center;
  margin-bottom: 36px;
}
.uni-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
}
.uni-row img {
  height: 64px; width: auto;
  transition: transform .3s ease;
}
.uni-row img:hover { transform: translateY(-4px); }
.uni-row-sub img { height: 56px; }
.chula-hero { display: flex; justify-content: center; }
.chula-hero img { height: 76px; width: auto; transition: transform .3s ease; }
.chula-hero img:hover { transform: translateY(-4px); }
.logo-wall {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 3vw, 40px);
}

/* ---------- Cards grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Course card */
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.course-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-card);
}
.course-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s ease;
}
.course-card:hover .course-card-img img { transform: scale(1.04); }
.course-card-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-card-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.course-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}
.course-card p {
  font-size: 15px;
  color: var(--gray-text);
  margin: 10px 0 18px;
  flex: 1;
}
.course-card .link-arrow { font-size: 15px; }

/* Feature card */
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
}
.feature-card .icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,0,0,.09), rgba(153,0,0,.09));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--red);
}
.feature-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 15px; color: var(--gray-text); margin: 0; }

.section-dark .feature-card { background: var(--dark-card); }
.section-dark .feature-card h3 { color: var(--white); }
.section-dark .feature-card p { color: rgba(255,255,255,.6); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: linear-gradient(180deg, #161616, #0e0e0e);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform .35s ease, border-color .35s ease;
}
.team-card:hover { transform: translateY(-6px); border-color: rgba(255,0,0,.35); }
.team-card-img {
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255,0,0,.16), transparent 70%);
  overflow: hidden;
}
.team-card-img img {
  height: 270px; width: auto;
  object-fit: contain;
  transition: transform .4s ease;
}
.team-card:hover .team-card-img img { transform: scale(1.03); }
.team-card-body { padding: 24px 22px 30px; }
.team-nick {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--red);
  margin-bottom: 8px;
}
.team-card h3 { color: var(--white); font-size: 19px; font-weight: 600; }
.team-card .en { font-size: 13px; color: rgba(255,255,255,.45); margin: 4px 0 14px; font-family: var(--font-mono); }
.team-quote {
  font-size: 14.5px;
  color: rgba(255,255,255,.6);
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: radial-gradient(circle at 50% 120%, var(--red) 0%, var(--red-deep) 75%);
  color: var(--white);
  text-align: center;
  padding: 100px 24px;
}
.cta-band h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  max-width: 760px;
  margin: 0 auto;
}
.cta-band p {
  font-size: 19px;
  opacity: .85;
  max-width: 600px;
  margin: 20px auto 0;
}
.cta-band .hero-actions { margin-top: 38px; }

/* ---------- Showcase scroller ---------- */
.scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 24px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scroller::-webkit-scrollbar { height: 6px; }
.scroller::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
.scroller-item {
  flex: 0 0 auto;
  width: clamp(250px, 28vw, 360px);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: var(--shadow-card);
  background: var(--gray-card);
}
.scroller-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.split h2 { font-size: clamp(28px, 3.6vw, 40px); }
.split .body { font-size: 17px; color: var(--gray-text); margin-top: 18px; }

/* Checklist */
.checklist li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
  font-size: 16.5px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="11" fill="white" stroke="none"/><path d="M7 12.5l3.2 3.2L17 9" stroke="black"/></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" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="11" fill="white" stroke="none"/><path d="M7 12.5l3.2 3.2L17 9" stroke="black"/></svg>') center/contain no-repeat;
}

/* ---------- Course detail ---------- */
.course-hero {
  padding: calc(var(--nav-h) + 70px) 0 80px;
  background: linear-gradient(180deg, var(--gray-bg), var(--white));
}
.course-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.course-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.35;
}
.course-hero .tagline {
  font-size: 20px;
  color: var(--gray-text);
  margin: 20px 0 0;
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.meta-chip {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 980px;
  background: var(--white);
  border: 1px solid var(--hairline);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.course-hero-poster {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transform: rotate(1.2deg);
}
.course-hero .hero-actions { justify-content: flex-start; margin-top: 36px; }

/* Timeline */
.timeline { position: relative; max-width: 800px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--hairline);
}
.timeline-item {
  position: relative;
  padding: 0 0 36px 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--red);
}
.timeline-time {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--red-mid);
  letter-spacing: .04em;
}
.timeline-item h3 { font-size: 19px; font-weight: 600; margin: 6px 0 8px; }
.timeline-item p { font-size: 15.5px; color: var(--gray-text); margin: 0; }
.timeline-item.break-item::before { border-color: var(--gray-med); }
.timeline-item.break-item h3 { color: var(--gray-med); font-weight: 500; }

/* Tool chips */
.tool-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-chip {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 980px;
  background: var(--gray-bg);
  border: 1px solid var(--hairline);
}

/* Audience cards */
.audience-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  padding: 24px 26px;
  font-size: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.audience-card::before {
  content: "";
  flex: 0 0 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 9px;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-item summary {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  padding: 24px 40px 24px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  color: var(--red);
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-body { padding: 0 0 26px; color: var(--gray-text); font-size: 16px; max-width: 720px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 4vw, 48px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--hairline);
  background: var(--gray-bg);
  outline: none;
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink);
}
.form-field select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2.5"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--red);
  background: var(--white);
}

/* Contact cards */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.contact-card .icon {
  flex: 0 0 46px;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255,0,0,.09), rgba(153,0,0,.09));
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
}
.contact-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.contact-card p { font-size: 15px; color: var(--gray-text); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,.65);
  padding: 80px 0 40px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img { height: 34px; width: auto; margin-bottom: 20px; }
.footer-brand p { margin: 0 0 8px; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 12px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 36px;
  font-size: 13.5px;
  color: rgba(255,255,255,.4);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Filter pills ---------- */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-pill {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 980px;
  border: 1.5px solid var(--hairline);
  background: var(--white);
  cursor: pointer;
  transition: all .25s ease;
  color: var(--gray-text);
}
.filter-pill:hover { border-color: var(--red); color: var(--red); }
.filter-pill.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  /* บรรทัดที่จัดด้วย <br> บนจอใหญ่ ปล่อยให้ห่อปกติบนมือถือ (คง br ใน h1 hero ไว้) */
  .hero-sub br, .section-title br, .section-head br,
  .split h2 br, .cta-band h2 br { display: none; }
  .hero h1 { font-size: clamp(34px, 10vw, 76px); }
  .section { padding: 72px 0; }
  .section-tight { padding: 56px 0; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split, .course-hero-grid { grid-template-columns: 1fr; }
  .course-hero-grid { gap: 40px; }
  .course-hero-poster { max-width: 380px; margin: 0 auto; transform: none; }
  .form-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .hero { padding: calc(var(--nav-h) + 56px) 0 64px; }
  .hero-actions .btn { width: 100%; max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .uni-row img { height: 48px; }
  .uni-row-sub img { height: 42px; }
  .chula-hero img { height: 58px; }
  .section-head { margin-bottom: 40px; }
}
