:root {
  --red: #c90000;
  --red-dark: #8f0000;
  --red-deep: #5c0000;
  --yellow: #ffd23f;
  --ink: #222;
  --muted: #555;
  --soft: #fff5f3;
  --card: #fff;
  --radius: 14px;
  --header-h: 68px;
  --bar-h: 0px;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Kanit", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.3; font-weight: 600; margin: 0 0 .5em; }
p { margin: 0 0 .8em; }
b, strong { font-weight: 500; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(28px, 5vw, 64px); }
.center { text-align: center; }
.bg-soft { background: var(--soft); }
.bg-red { background: linear-gradient(135deg, var(--red-dark), var(--red)); }
.full { width: 100%; border-radius: var(--radius); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(90deg, var(--red-deep), var(--red-dark) 40%, var(--red));
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo img { width: 56px; height: 56px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.main-nav > a, .dd-toggle {
  color: #fff; text-decoration: none; font: 500 15px/1 "Kanit", sans-serif;
  padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.main-nav > a:hover, .dd-toggle:hover, .main-nav > a.active { background: rgba(255,255,255,.15); }
.dd-toggle::after { content: "▾"; font-size: 11px; margin-left: 4px; opacity: .8; }
.dropdown { position: relative; }
.dd-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 6px; display: none;
}
.dd-menu a { display: block; padding: 9px 12px; color: var(--ink); text-decoration: none; border-radius: 6px; font-size: 14px; font-weight: 400; }
.dd-menu a:hover { background: var(--soft); color: var(--red); }
@media (hover: hover) and (min-width: 1025px) { .dropdown:hover .dd-menu { display: block; } }
.dropdown.open .dd-menu { display: block; }

.social { display: flex; gap: 6px; }
.social a, .social a:visited {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7);
  display: grid; place-items: center;
}
.social a:hover { background: rgba(255,255,255,.2); }
.social svg { width: 16px; height: 16px; fill: #fff; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2.5px; background: #fff; border-radius: 2px; margin: 5px 0; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-backdrop { display: none; }

/* ===== Hero ===== */
.hero-banner img { width: 100%; }
.hero-text { text-align: center; padding-top: 24px; }
.hero-text h1 { font-size: clamp(22px, 3.6vw, 40px); color: var(--ink); }
.hero-text p { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); }

/* ===== Slider ===== */
.slider { position: relative; border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; scroll-snap-align: start; aspect-ratio: 1024/389; object-fit: cover; }
.sl-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.4); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.sl-btn.prev { left: 10px; } .sl-btn.next { right: 10px; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); padding: 0; cursor: pointer; }
.dots button.on { background: #fff; width: 22px; border-radius: 6px; }

/* ===== Grids ===== */
.poster-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.poster-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.trio img { width: 100%; border-radius: var(--radius); box-shadow: 0 3px 12px rgba(0,0,0,.12); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.split-img { width: 100%; border-radius: var(--radius); box-shadow: 0 6px 20px rgba(0,0,0,.12); margin-bottom: 12px; }
.title { font-size: clamp(22px, 3vw, 34px); color: var(--red); }
.lead { font-weight: 500; font-size: 18px; }
.lead-lg { font-size: clamp(16px, 1.8vw, 20px); font-weight: 400; }
.sub { font-size: 20px; color: var(--red-dark); margin-top: 1em; }
.kicker { font-weight: 500; color: var(--muted); margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before { content: "✔"; position: absolute; left: 0; color: var(--red); font-weight: 600; }

.btn {
  display: inline-block; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff;
  text-decoration: none; font-weight: 500; padding: 12px 26px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(201,0,0,.35); transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn.small { padding: 8px 18px; font-size: 14px; }
.btn.light { background: #fff; color: var(--red); box-shadow: none; }

.intro { max-width: 900px; margin: 0 auto .6em; font-size: clamp(16px, 1.8vw, 20px); }
.big-red { color: var(--red); font-weight: 600; font-size: clamp(30px, 5vw, 56px); margin: .2em 0; }
.huge-red { color: var(--red); font-weight: 700; font-size: clamp(40px, 7vw, 80px); margin: 0; line-height: 1.2; }

.welcome { background: var(--card); border-radius: 20px; padding: clamp(20px, 4vw, 44px); box-shadow: 0 8px 30px rgba(143,0,0,.1); border-top: 6px solid var(--red); }
.welcome h2 { font-size: clamp(20px, 2.6vw, 30px); }
.welcome h3 { font-size: 20px; margin-top: 1.2em; }
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 1.2em; }
.why div { background: var(--soft); border-radius: 12px; padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; }
.why span { font-size: 24px; line-height: 1; }
.cta-line { font-size: 18px; text-align: center; margin: 0; }

/* ===== Stats ===== */
.stats { background: linear-gradient(135deg, var(--red-deep), var(--red)); color: #fff; padding: clamp(28px, 4vw, 48px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats b { display: block; font-size: clamp(34px, 5vw, 56px); font-weight: 700; line-height: 1.1; color: var(--yellow); }
.stats span { font-size: 15px; }

/* ===== Three column ===== */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.card, .camp-card { background: var(--card); border-radius: var(--radius); box-shadow: 0 6px 22px rgba(0,0,0,.1); overflow: hidden; }
.card-body { padding: 18px; }
.card-body h3 { font-size: 18px; color: var(--red); }
.fb-box { border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,.1); background: #fff; height: 700px; }
.fb-box iframe { width: 100%; height: 100%; border: 0; }

.camp-badge { background: #111; color: #fff; text-align: center; padding: 22px 18px; }
.camp-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; margin: 0 0 .3em; }
.camp-title .y { color: var(--yellow); }
.camp-title .w { color: #fff; }
.camp-list { padding: 18px; }
.chips { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--soft); border: 1px solid #ffd6d0; border-radius: 999px; padding: 4px 12px; font-size: 14px; }

/* ===== Courses ===== */
.section-title { text-align: center; font-size: clamp(22px, 3.4vw, 38px); margin-bottom: 1em; }
.section-title span { color: var(--red); }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.course { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.1); display: flex; flex-direction: column; }
.course img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.course-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 18px; color: var(--red-dark); }
.course-body .btn { margin-top: auto; align-self: flex-start; }
.price { color: var(--red); font-size: 26px; font-weight: 600; margin: 0 0 .3em; }

.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.media { display: block; text-decoration: none; color: inherit; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.media div { padding: 14px 16px; }
.media h3 { font-size: 18px; color: var(--red-dark); }
.media p { font-size: 14px; color: var(--muted); }

/* ===== Student wall ===== */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: scroll 50s linear infinite; }
.marquee-track img { width: clamp(140px, 18vw, 220px); aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
@keyframes scroll { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }
.tiles { display: grid; gap: 6px; margin-top: 18px; }
.tiles img { width: 100%; border-radius: 6px; }

/* ===== Modes ===== */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.modes img { width: 110px; margin: 0 auto 8px; }
.modes h3 { color: #1e73be; font-size: 24px; margin-bottom: .2em; }

.success-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.success-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: 0 3px 10px rgba(0,0,0,.12); }

.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== Camp hero ===== */
.camp-hero {
  background: url("img/Gemini_Generated_Image_keiifokeiifokeii-1024x683.webp") center/cover no-repeat;
  padding: clamp(40px, 8vw, 100px) 0; position: relative;
}
.camp-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.camp-hero-inner { position: relative; display: flex; justify-content: flex-end; }
.camp-badge.big { max-width: 560px; border-radius: 24px; background: rgba(10,10,10,.88); padding: clamp(20px, 4vw, 40px); }

/* ===== Footer ===== */
.site-footer { background: linear-gradient(180deg, var(--red-dark), var(--red-deep)); color: #fff; padding: 40px 0 16px; }
.site-footer a { color: var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 28px; align-items: start; }
.footer-grid h3 { font-size: 17px; margin: .8em 0 .2em; }
.kruso-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 20px; }
.kruso-card img { width: min(160px, 60%); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid var(--yellow); }
.kruso-card h3 { font-size: 22px; margin: 0 0 .3em; }
.contact img { width: 90px; border-radius: 50%; background: #fff; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 320px; height: 100%; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.copy { text-align: center; font-size: 13px; opacity: .8; margin: 24px 0 0; }

/* ===== Bottom bar (mobile) ===== */
.bottom-bar { display: none; }

/* ============ Tablet ============ */
@media (max-width: 1024px) {
  .burger { display: block; }
  .social { display: none; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
    flex-direction: column; align-items: stretch; gap: 2px; background: #fff;
    padding: calc(var(--header-h) + 8px) 12px calc(16px + env(safe-area-inset-bottom)) 12px;
    padding-right: max(12px, env(safe-area-inset-right));
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; z-index: -1;
    box-shadow: -8px 0 30px rgba(0,0,0,.2);
  }
  .main-nav.open { transform: none; }
  .main-nav > a, .dd-toggle { color: var(--ink); text-align: left; width: 100%; padding: 14px 12px; font-size: 16px; }
  .main-nav > a.active { background: var(--soft); color: var(--red); }
  .dd-menu { position: static; box-shadow: none; padding: 0 0 0 12px; min-width: 0; }
  .nav-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; }
  body.nav-open { overflow: hidden; }

  .poster-grid { grid-template-columns: repeat(4, 1fr); }
  .three-col { grid-template-columns: 1fr 1fr; }
  .fb-box { grid-column: 1 / -1; order: 3; height: 560px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .success-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map { grid-column: 1 / -1; }
}

/* ============ Phone portrait ============ */
@media (max-width: 680px) {
  :root { --header-h: 60px; --bar-h: 60px; }
  .logo img { width: 48px; height: 48px; }
  .poster-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .trio { grid-template-columns: 1fr; }
  .split, .three-col, .media-grid, .footer-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .course-grid { grid-template-columns: 1fr; }
  .modes { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .modes img { width: 80px; }
  .modes h3 { font-size: 20px; }
  .modes p { font-size: 14px; }
  .success-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .fb-box { height: 520px; }
  .camp-hero-inner { justify-content: center; }
  .sl-btn { display: none; }

  .bottom-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(90deg, var(--red-deep), var(--red)); box-shadow: 0 -2px 12px rgba(0,0,0,.25);
  }
  .bottom-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; text-decoration: none; font-size: 11px; }
  .bottom-bar svg { width: 22px; height: 22px; fill: #fff; }
}

/* ============ Phone landscape (short screens) ============ */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --header-h: 50px; --bar-h: 0px; }
  .logo img { width: 40px; height: 40px; }
  .bottom-bar { display: none; }
  .main-nav { padding-top: calc(var(--header-h) + 4px); }
  .main-nav > a, .dd-toggle { padding: 9px 12px; }

  /* use the wide screen: two columns instead of one */
  .split { grid-template-columns: 1fr 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr 1fr; }
  .trio { grid-template-columns: repeat(3, 1fr); }
  .poster-grid { grid-template-columns: repeat(6, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .modes { grid-template-columns: repeat(4, 1fr); }
  .modes img { width: 70px; }
  .success-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fb-box { height: 80vh; }
  .hero-text { padding-top: 14px; }
  .section { padding-top: 24px; padding-bottom: 24px; }

  /* floating call button replaces the bottom bar so content keeps full height */
  .social { display: flex; margin-left: auto; }
  .social a:nth-child(-n+3) { display: none; }
  .burger { margin-left: 4px; }
}

/* ===== Articles ===== */
.a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.a-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.08); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.a-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(143,0,0,.15); }
.a-card[hidden] { display: none; }
.a-thumb { aspect-ratio: 16/9; background: var(--soft); overflow: hidden; }
.a-thumb img { width: 100%; height: 100%; object-fit: cover; }
.a-thumb .ph { height: 100%; display: grid; place-items: center; font-weight: 700; font-size: 28px; color: #fff; background: linear-gradient(135deg, var(--red-dark), var(--red)); }
.a-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.a-body h3 { font-size: 17px; margin: 6px 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-body p { font-size: 14px; color: var(--muted); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.a-body time { margin-top: auto; font-size: 13px; color: #888; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 500; color: var(--red); background: var(--soft); border: 1px solid #ffd6d0; border-radius: 999px; padding: 1px 10px; }

.chips-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.chip { font: 400 14px "Kanit", sans-serif; border: 1.5px solid var(--red); color: var(--red); background: #fff; border-radius: 999px; padding: 6px 16px; cursor: pointer; scroll-margin-top: calc(var(--header-h) + 16px); }
.chip.on { background: var(--red); color: #fff; }

.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }

.article { max-width: 820px; padding-top: clamp(20px, 4vw, 40px); padding-bottom: 20px; }
.article h1 { font-size: clamp(24px, 4vw, 38px); color: var(--ink); }
.a-meta { color: #888; font-size: 14px; }
.a-cover { width: 100%; border-radius: var(--radius); margin: 8px 0 24px; box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.prose { font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { color: var(--red-dark); margin-top: 1.5em; }
.prose h2 { font-size: 24px; } .prose h3 { font-size: 21px; } .prose h4, .prose h5, .prose h6 { font-size: 18px; }
.prose img { border-radius: 10px; margin: 12px auto; height: auto; }
.prose figure { margin: 16px 0; }
.prose figcaption { font-size: 14px; color: #888; text-align: center; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 4px solid var(--red); background: var(--soft); border-radius: 0 10px 10px 0; }
.prose a { word-break: break-word; }
.prose hr { border: 0; border-top: 1px solid #eee; margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 1em 0; -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; min-width: 100%; font-size: 15px; }
.table-wrap td, .table-wrap th { border: 1px solid #eee; padding: 8px 10px; text-align: left; vertical-align: top; }
.table-wrap th { background: var(--soft); }
.embed { position: relative; aspect-ratio: 16/9; margin: 16px 0; border-radius: 10px; overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.source-box { margin-top: 24px; padding: 16px 20px; border: 1.5px dashed #e3a49b; border-radius: var(--radius); background: #fffaf9; font-size: 15px; }
.source-box ul { margin: 0; }
.a-cta { margin-top: 32px; padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, var(--red-deep), var(--red)); color: #fff; text-align: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.a-cta p { width: 100%; margin: 0 0 4px; }
.btn.light-outline { background: transparent; border: 1.5px solid #fff; box-shadow: none; }

.footer-mini { display: flex; gap: 16px; align-items: center; justify-content: center; text-align: left; }
.footer-mini img { border-radius: 50%; background: #fff; }

@media (max-width: 1024px) { .a-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .a-grid { grid-template-columns: 1fr; gap: 14px; }
  .a-card { flex-direction: row; }
  .a-thumb { flex: 0 0 38%; aspect-ratio: auto; min-height: 110px; }
  .a-body { padding: 10px 12px; }
  .a-body h3 { font-size: 15px; }
  .a-body p { -webkit-line-clamp: 2; font-size: 13px; }
  .prose { font-size: 16px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .a-grid { grid-template-columns: repeat(3, 1fr); }
  .a-card { flex-direction: column; }
  .a-thumb { flex: none; aspect-ratio: 16/9; min-height: 0; }
}

/* ===== Site pages ===== */
.article.wide { max-width: 1100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch; }
.contact-card { background: var(--soft); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.contact-card h2 { font-size: 20px; color: var(--red); }
.contact-card h3 { font-size: 17px; margin: 1em 0 .3em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.map.tall, .map.tall iframe { min-height: 420px; }
[hidden] { display: none !important; }
@media (max-width: 680px) { .contact-grid { grid-template-columns: 1fr; } .map.tall, .map.tall iframe { min-height: 300px; } }
@media (orientation: landscape) and (max-height: 500px) { .contact-grid { grid-template-columns: 1fr 1fr; } .map.tall, .map.tall iframe { min-height: 80vh; } }

/* ===== Blocks added from the admin ===== */
.blk-text { text-align: center; }
.embed-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.embed-cols.one { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
.embed-slot { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.embed-slot iframe { display: block; width: 100%; height: var(--h, 600px); border: 0; }
@media (max-width: 900px) { .embed-cols { grid-template-columns: 1fr; } }
@media (orientation: landscape) and (max-height: 500px) { .embed-slot iframe { height: min(var(--h, 600px), 85vh); } }

/* ===== Course sales pages ===== */
.sale-hero { background: linear-gradient(180deg, #fff5f3, #fff); padding: clamp(16px, 3vw, 32px) 0 clamp(28px, 4vw, 48px); }
.sale-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.sale-cover { width: 100%; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(143,0,0,.18); }
.sale-video { margin-top: 14px; }
.sale-tag { display: inline-block; background: var(--red); color: #fff; font-weight: 500; font-size: 14px; padding: 4px 14px; border-radius: 999px; margin: 0 0 10px; }
.sale-info h1 { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.25; margin-bottom: .4em; }
.sale-lead { font-size: clamp(16px, 1.7vw, 19px); color: #333; }
.price-box { position: relative; background: #fff; border: 2px solid var(--red); border-radius: 16px; padding: 14px 18px; margin: 16px 0 14px; }
.badge-sale { position: absolute; top: -12px; right: 14px; background: var(--yellow); color: #3b2a00; font-weight: 600; font-size: 13px; padding: 3px 12px; border-radius: 999px; }
.price-now { margin: 0; font-size: clamp(34px, 4.5vw, 48px); font-weight: 700; color: var(--red); line-height: 1.1; }
.price-now small { font-size: 16px; font-weight: 500; color: var(--ink); }
.price-now.consult { font-size: 32px; }
.price-was { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.big { padding: 14px 28px; font-size: 17px; }
.btn.ghost { background: #fff; color: var(--red); border: 2px solid var(--red); box-shadow: none; }
.cta-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.who-card { background: #fff; border: 1px solid #f0dcd8; border-radius: var(--radius); padding: 18px; text-align: center; }
.who-card span { font-size: 36px; display: block; }
.who-card h3 { font-size: 17px; margin: 8px 0 4px; color: var(--red-dark); }
.who-card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.benefit { display: flex; gap: 14px; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.benefit > span { font-size: 32px; line-height: 1; }
.benefit h3 { font-size: 17px; margin: 0 0 4px; color: var(--red-dark); }
.benefit p { margin: 0; font-size: 15px; color: #444; }

.modules { max-width: 860px; margin: 0 auto; }
.module, .faq { background: #fff; border: 1px solid #eee; border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.module summary, .faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-weight: 500; }
.module summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.module summary::after, .faq summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--red); transition: transform .2s; }
.module[open] summary::after, .faq[open] summary::after { transform: rotate(45deg); }
.module summary span { background: var(--red); color: #fff; border-radius: 8px; padding: 2px 8px; font-size: 13px; }
.module p, .faq p { margin: 0; padding: 0 18px 16px; color: #444; }
.module-note { margin-top: 16px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; margin-bottom: 20px; }
.stat-row b { display: block; font-size: clamp(26px, 3.4vw, 38px); color: var(--red); font-weight: 700; }
.stat-row span { font-size: 14px; color: var(--muted); }
.teacher-card { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: 0 6px 22px rgba(0,0,0,.08); }
.teacher-card img { width: 100%; border-radius: 12px; }
.teacher-card h3 { font-size: 20px; color: var(--red-dark); }
.teacher-card.big { grid-template-columns: 1.2fr 1fr; }

.enroll-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.enroll-price { background: #fff; border: 2px solid #f3c9c2; border-radius: 18px; padding: 20px; box-shadow: 0 10px 30px rgba(143,0,0,.1); }
.enroll-price h3 { font-size: 19px; }
.bank-box { background: var(--soft); border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.bank-box p { margin: 0 0 6px; }
.bank-title { font-weight: 600; color: var(--red-dark); }
.acct { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.acct span { font-size: 24px; font-weight: 600; letter-spacing: 1px; }
.copy-btn { font: 500 13px "Kanit", sans-serif; border: 1.5px solid var(--red); color: var(--red); background: #fff; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.copy-btn.done { background: #1a9b4b; border-color: #1a9b4b; color: #fff; }
.bank-box .small { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.steps { list-style: none; padding: 0; margin: 0 0 18px; }
.steps li { display: flex; gap: 14px; margin-bottom: 14px; }
.steps li > b { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 18px; }
.steps h3 { font-size: 17px; margin: 2px 0 2px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.faq-wrap { max-width: 860px; }
.final-cta { background: linear-gradient(135deg, var(--red-deep), var(--red)); color: #fff; text-align: center; padding: clamp(32px, 5vw, 56px) 0; }
.final-cta h2 { font-size: clamp(22px, 3vw, 32px); }
.final-cta .cta-row { justify-content: center; }
.final-cta .btn { background: #fff; color: var(--red-dark); }
.final-cta .btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.final-cta .cta-note, .final-cta .cta-note a { color: #ffe9a8; }

.buy-bar { display: none; }
@media (max-width: 1024px) {
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-card, .teacher-card.big { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sale-grid, .enroll-grid, .benefit-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .btn.big { width: 100%; text-align: center; }
  body.has-buybar { padding-bottom: calc(var(--bar-h) + 64px + env(safe-area-inset-bottom)); }
  .buy-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); z-index: 44;
    background: #fff; padding: 8px var(--gutter); box-shadow: 0 -4px 16px rgba(0,0,0,.12); border-top: 1px solid #f1d4cf;
  }
  .buy-price b { font-size: 20px; color: var(--red); font-weight: 700; }
  .buy-price s { margin-left: 6px; color: #999; font-size: 14px; }
  .buy-bar .btn { padding: 10px 22px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .sale-grid, .enroll-grid { grid-template-columns: 1fr 1fr; }
  .who-grid { grid-template-columns: repeat(4, 1fr); }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .btn.big { width: auto; }
  body.has-buybar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .buy-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: fixed; left: 0; right: 0; z-index: 44;
    bottom: env(safe-area-inset-bottom); background: #fff; padding: 6px var(--gutter); box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
  .buy-price b { font-size: 18px; color: var(--red); font-weight: 700; }
  .buy-price s { margin-left: 6px; color: #999; font-size: 13px; }
}
