/* KidAble theme — design system (shared with the new KidAble site) */
:root {
  --cream: #fff8ec;
  --paper: #fffdf8;
  --ink: #062363;
  --ink-2: #3b4d70;
  --ink-soft: #6b7896;
  --sun: #fbc901;
  --sun-deep: #e9b000;
  --cherry: #e8412c;
  --sky: #2ea8f5;
  --mint: #22b07d;
  --lilac: #7b8cf0;
  --line: rgba(19, 40, 79, 0.12);
  --shadow: 0 1px 0 rgba(19,40,79,.06), 0 18px 40px -18px rgba(19,40,79,.35);
  --r-lg: 34px;
  --r-md: 22px;
  --wrap: 1220px;
  --f-display: "Bricolage Grotesque", "Mitr", "Noto Sans SC", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Anuphan", "Noto Sans SC", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
html[data-lang="th"] { --f-display: "Mitr", "Bricolage Grotesque", sans-serif; --f-body: "Anuphan", "Instrument Sans", sans-serif; }
html[data-lang="zh"] { --f-display: "Noto Sans SC", "Bricolage Grotesque", sans-serif; --f-body: "Noto Sans SC", "Instrument Sans", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; /* not "hidden": that would stop the header from staying fixed */
}
body::after { /* grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.15 0 0 0 0 0.3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.02; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
html[data-lang="th"] h1, html[data-lang="th"] h2, html[data-lang="th"] h3 { font-weight: 600; letter-spacing: 0; line-height: 1.25; }
html[data-lang="zh"] h1, html[data-lang="zh"] h2, html[data-lang="zh"] h3 { font-weight: 800; letter-spacing: 0; line-height: 1.2; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-soft); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em; justify-content: center;
  padding: .95em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font: 700 16px/1 var(--f-body); letter-spacing: .01em;
  box-shadow: 0 3px 0 rgba(19,40,79,.9);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), translate .25s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(19,40,79,.9); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(19,40,79,.9); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sun { --bg: var(--sun); --fg: var(--ink); }
.btn-cherry { --bg: var(--cherry); --fg: #fff; }
.btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink), 0 4px 0 var(--ink); }
.btn-light { --bg: #fff; --fg: var(--ink); }
.btn-sm { padding: .7em 1.1em; font-size: 14px; }
.btn-lg { padding: 1.1em 1.8em; font-size: 17px; }
.btn-arrow { transition: transform .35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(255,248,236,.86); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.bar { width: min(1320px, 100% - 32px); margin: 0 auto; display: flex; align-items: center; gap: 24px; height: 78px; }
.brand img { height: 50px; width: auto; filter: drop-shadow(0 2px 0 rgba(6,35,99,.15)); }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav-link { position: relative; padding: 10px 12px; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 999px; transition: background .25s; white-space: nowrap; }
.nav-link:hover { background: rgba(19,40,79,.06); }
.nav-link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--cherry); }
.bar-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.langs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(19,40,79,.07); }
.lang-btn { border: 0; background: none; padding: 6px 10px; border-radius: 999px; font: 700 13px/1 var(--f-body); color: var(--ink-2); cursor: pointer; }
.lang-btn { text-decoration: none; display: inline-block; }
.lang-btn[aria-pressed="true"], .lang-btn[aria-current="true"] { background: var(--ink); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: transform .3s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.drawer { padding: 8px 16px 24px; background: var(--cream); border-bottom: 1px solid var(--line); }
.drawer nav { display: grid; gap: 2px; margin-bottom: 16px; }
.drawer .nav-link { font-family: var(--f-display); font-size: 26px; font-weight: 700; padding: 10px 6px; }
@media (max-width: 1180px) { .nav { display: none; } .burger { display: block; } .bar-end .langs { display: none; } }
@media (min-width: 1181px) { .drawer { display: none !important; } }
@media (max-width: 480px) { .bar-end .btn-sun { display: none; } }

/* ---------- shared section bits ---------- */
section { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--cherry); }
html[data-lang="th"] .kicker, html[data-lang="zh"] .kicker { letter-spacing: .04em; font-size: 15px; }
.kicker::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe07a, var(--sun) 55%, var(--sun-deep)); box-shadow: 14px 0 0 -6px var(--sky); margin-right: 8px; }
.h-xl { font-size: clamp(44px, 7.4vw, 104px); }
.h-lg { font-size: clamp(36px, 5vw, 66px); }
.h-md { font-size: clamp(26px, 3vw, 38px); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 58ch; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(60px, 8vw, 110px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin: 22px 0 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.is-ready .hero h1 .line > span { transform: none; }
.is-ready .hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.hero h1 .hl { position: relative; white-space: nowrap; color: var(--ink); }
.hero h1 .hl svg { position: absolute; left: -2%; bottom: -.08em; width: 104%; height: .32em; z-index: -1; overflow: visible; }
.hero h1 .hl path { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.4s .7s var(--ease); }
.is-ready .hero h1 .hl path { stroke-dashoffset: 0; }
.hero-fade { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-ready .hero-fade { opacity: 1; transform: none; }
.is-ready .hero-fade.d1 { transition-delay: .35s; } .is-ready .hero-fade.d2 { transition-delay: .5s; } .is-ready .hero-fade.d3 { transition-delay: .65s; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.say { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; font-weight: 600; color: var(--ink-2); }
.say-bubble { position: relative; display: inline-grid; min-width: 6.4em; height: 46px; padding: 0 20px; place-items: center; border-radius: 999px; background: #fff; box-shadow: var(--shadow); overflow: hidden; font: 800 22px/1 var(--f-display); }
.say-bubble::after { content: ""; position: absolute; left: 18px; bottom: -7px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); }
.say-word { grid-area: 1/1; transition: transform .6s var(--ease), opacity .6s; }
.say-word.out { transform: translateY(-120%); opacity: 0; }
.say-word.in { transform: translateY(120%); opacity: 0; }

.collage { position: relative; aspect-ratio: 1 / 1.04; }
.collage .ph { position: absolute; overflow: hidden; box-shadow: var(--shadow); background: #eadfcd; }
.collage .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collage .ph:hover img { transform: scale(1.06); }
.ph-a { inset: 4% 14% 30% 6%; border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%; animation: morph 14s ease-in-out infinite; }
.ph-b { width: 44%; aspect-ratio: 4/5; right: 0; bottom: 4%; border-radius: var(--r-lg); rotate: 5deg; border: 8px solid #fff; }
.ph-c { width: 40%; aspect-ratio: 1; left: 0; bottom: 0; border-radius: 50%; border: 8px solid #fff; }
@keyframes morph { 50% { border-radius: 58% 42% 52% 48% / 44% 56% 44% 56%; } }
.collage .pop { opacity: 0; scale: .85; transition: opacity .9s var(--ease), scale 1.1s var(--ease); }
.is-ready .collage .pop { opacity: 1; scale: 1; }
.is-ready .collage .pop:nth-child(2) { transition-delay: .25s; } .is-ready .collage .pop:nth-child(3) { transition-delay: .4s; }
.sticker {
  position: absolute; top: 2%; right: 4%; width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 14px;
  background: var(--cherry); color: #fff; font: 800 15px/1.1 var(--f-display); rotate: -12deg;
  box-shadow: 0 10px 0 -2px rgba(19,40,79,.85); z-index: 3;
}
.sticker svg { position: absolute; inset: 6px; animation: spin 18s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.mol { position: absolute; z-index: 2; pointer-events: none; }
.mol-1 { left: -6%; top: 6%; width: 120px; }
.mol-2 { right: 34%; bottom: -4%; width: 90px; }
.mol circle { animation: bob 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mol circle:nth-child(odd) { animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-6px) scale(1.06); } }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--cream); overflow: hidden; padding: 22px 0; rotate: -1.6deg; margin: -10px -2% 0; width: 104%; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; font: 800 clamp(26px, 3.4vw, 44px)/1 var(--f-display); white-space: nowrap; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track i { width: 18px; height: 18px; border-radius: 50%; background: var(--sun); display: inline-block; }
.marquee-track i:nth-of-type(3n+2) { background: var(--sky); } .marquee-track i:nth-of-type(3n) { background: var(--cherry); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { padding: clamp(70px, 9vw, 120px) 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px 24px 24px; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.stat b { display: block; font: 800 clamp(46px, 5.6vw, 76px)/.9 var(--f-display); letter-spacing: -0.04em; }
.stat b small { font-size: .45em; letter-spacing: 0; margin-left: 2px; }
.stat span { display: block; margin-top: 10px; font-weight: 600; color: var(--ink-soft); }
.stat:nth-child(1) b { color: var(--cherry); } .stat:nth-child(2) b { color: var(--sky); } .stat:nth-child(3) b { color: var(--mint); } .stat:nth-child(4) b { color: var(--lilac); }

/* ---------- programs ---------- */
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prog {
  --c: var(--sun);
  position: relative; display: flex; flex-direction: column; min-height: 440px; padding: 26px; border-radius: var(--r-lg);
  background: var(--c); color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.prog:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 30px 60px -30px rgba(19,40,79,.6); }
.prog:nth-child(2) { --c: var(--sky); color: #fff; } .prog:nth-child(3) { --c: var(--cherry); color: #fff; } .prog:nth-child(4) { --c: var(--lilac); color: #fff; }
.prog-age { align-self: flex-start; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); font-weight: 700; font-size: 14px; }
.prog h3 { font-size: clamp(26px, 2.3vw, 32px); margin: 18px 0 12px; }
.prog p { font-size: 15.5px; line-height: 1.55; opacity: .92; }
.prog-img { margin-top: auto; height: 150px; border-radius: 20px; overflow: hidden; transform: translateY(14px) rotate(2deg); transition: transform .6s var(--ease); box-shadow: 0 0 0 5px rgba(255,255,255,.75); }
.prog-img img { width: 100%; height: 100%; object-fit: cover; }
.prog:hover .prog-img { transform: translateY(0) rotate(0); }
.prog::before { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: rgba(255,255,255,.18); z-index: -1; transition: transform .8s var(--ease); }
.prog:hover::before { transform: scale(1.3); }
.more-row { margin-top: 36px; display: flex; justify-content: center; }

/* ---------- enrichment ---------- */
.enrich { background: var(--paper); border-radius: clamp(28px, 4vw, 56px); margin: 0 clamp(8px, 1.5vw, 20px); }
.enrich-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.chip-card { padding: 26px 22px; border-radius: var(--r-md); background: var(--cream); text-decoration: none; display: grid; gap: 10px; align-content: start; transition: background .3s, transform .5s var(--ease); }
.chip-card:hover { background: #fff; transform: translateY(-4px); }
.chip-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; }
.chip-ico svg { width: 30px; height: 30px; }
.chip-card h3 { font-size: 22px; }
.chip-card p { font-size: 15px; color: var(--ink-2); }

/* ---------- method ---------- */
.method-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.method-photo { position: relative; }
.method-photo .frame { border-radius: 50% 50% var(--r-lg) var(--r-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow); }
.method-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.method-photo .badge { position: absolute; right: -14px; bottom: 36px; padding: 16px 20px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); font: 800 18px/1.15 var(--f-display); rotate: 4deg; max-width: 220px; }
.method-photo .badge em { display: block; font: 600 13px/1.3 var(--f-body); color: var(--ink-soft); font-style: normal; margin-top: 4px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 30px 0 34px; padding: 0; list-style: none; }
.pillars li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; line-height: 1.35; }
.pillars li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255,194,26,.25); }
.pillars li:nth-child(2)::before { background: var(--sky); box-shadow: 0 0 0 4px rgba(46,168,245,.2); }
.pillars li:nth-child(3)::before { background: var(--cherry); box-shadow: 0 0 0 4px rgba(232,65,44,.18); }
.pillars li:nth-child(4)::before { background: var(--mint); box-shadow: 0 0 0 4px rgba(34,176,125,.2); }

/* ---------- trust ---------- */
.trust { padding: 0 0 clamp(70px, 9vw, 120px); }
.trust h2 { font-size: 15px; font-family: var(--f-body); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); text-align: center; margin-bottom: 26px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logos span { width: 150px; height: 96px; padding: 14px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); }
.logos img { max-height: 64px; width: auto; object-fit: contain; filter: saturate(.9); transition: filter .3s, transform .4s var(--ease); }
.logos span:hover img { transform: scale(1.06); filter: none; }

/* ---------- portal ---------- */
.portal { background: var(--ink); color: var(--cream); border-radius: clamp(28px, 4vw, 56px); margin: 0 clamp(8px, 1.5vw, 20px); overflow: hidden; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.portal .kicker { color: var(--sun); }
.portal .lead { color: rgba(255,248,236,.78); margin: 18px 0 30px; }
.portal-img { border-radius: var(--r-lg); overflow: hidden; rotate: -3deg; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transition: rotate .8s var(--ease); }
.portal-img:hover { rotate: 0deg; }
.portal-img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.portal .blob { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none; }

/* ---------- blog ---------- */
.blog-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.post-cover { aspect-ratio: 16/11; border-radius: var(--r-md); overflow: hidden; background: #eadfcd; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.05); }
.post-card time { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.post-card h3 { font-size: 23px; line-height: 1.15; transition: color .3s; }
html[data-lang="th"] .post-card h3 { line-height: 1.4; }
.post-card:hover h3 { color: var(--cherry); }
.post-card p { color: var(--ink-2); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.skel { border-radius: var(--r-md); background: linear-gradient(90deg, #f1e7d6, #f8f0e3, #f1e7d6); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.state-msg { padding: 28px; border-radius: var(--r-md); background: var(--paper); text-align: center; color: var(--ink-2); grid-column: 1 / -1; }

/* ---------- schools ---------- */
.schools-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.school-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.school-list li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .5s var(--ease), background .3s; }
.school-list li:hover { transform: translateX(8px); background: #fff; }
.school-list .dot { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 16px/1 var(--f-display); }
.school-list b { display: block; font: 700 19px/1.2 var(--f-display); }
.school-list span { color: var(--ink-soft); font-size: 15px; }
.school-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); rotate: 2deg; }
.school-photo img { width: 100%; aspect-ratio: 1.42; object-fit: cover; }

/* ---------- franchise band ---------- */
.fr-band { position: relative; overflow: hidden; border-radius: clamp(28px, 4vw, 56px); margin: 0 clamp(8px, 1.5vw, 20px); background: var(--sun); }
.fr-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.fr-band .kicker { color: var(--ink); }
.fr-band .kicker::before { background: var(--ink); box-shadow: 14px 0 0 -6px var(--cherry); }
.fr-band p { font-size: 18px; max-width: 54ch; margin: 18px 0 30px; color: var(--ink-2); }
.fr-art { position: relative; aspect-ratio: 1; }
.fr-art .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(19,40,79,.35); animation: spin 40s linear infinite; }
.fr-art .core { position: absolute; inset: 16%; border-radius: 50%; overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow); }
.fr-art .core img { width: 100%; height: 100%; object-fit: cover; }
.fr-art .node { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 800 15px/1 var(--f-display); color: #fff; box-shadow: 0 6px 0 rgba(19,40,79,.85); }

/* ---------- trial / form ---------- */
.trial-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.trial-aside { position: sticky; top: 110px; display: grid; gap: 20px; }
.trial-aside .call { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; }
.trial-aside .call b { font: 800 24px/1 var(--f-display); display: block; margin-top: 4px; }
.trial-aside .call .ring-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: #fff; flex: none; }
.form-card { padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); position: relative; }
.form-card::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; border-radius: var(--r-lg); background: var(--sky); z-index: -1; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 7px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.label { font-weight: 700; font-size: 14.5px; }
.req { color: var(--cherry); font-weight: 700; }
.wix-form input, .wix-form select, .wix-form textarea {
  width: 100%; font: 500 16px/1.4 var(--f-body); color: var(--ink);
  padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream);
  transition: border-color .2s, background .2s, box-shadow .2s; appearance: none;
}
.wix-form textarea { resize: vertical; min-height: 120px; }
.wix-form input:focus, .wix-form select:focus, .wix-form textarea:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px rgba(46,168,245,.18); }
.wix-form [aria-invalid="true"] { border-color: var(--cherry); background: #fff6f4; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 999px; background: var(--cream); cursor: pointer; font-weight: 600; }
.choice input { width: auto; }
.err { color: var(--cherry); font-size: 13.5px; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.help { font-size: 13.5px; color: var(--ink-soft); }
.form-err { margin: 16px 0 0; }
.wix-form .btn { margin-top: 26px; width: 100%; }
.form-skeleton { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-skeleton span { height: 70px; border-radius: 14px; background: linear-gradient(90deg, #f3ece0, #faf6ee, #f3ece0); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.form-msg { padding: 24px; border-radius: 16px; background: var(--cream); font-weight: 600; }
.form-done { text-align: center; padding: 30px 10px; display: grid; gap: 14px; justify-items: center; font-size: 18px; }
.done-badge { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; font-size: 40px; font-weight: 800; animation: popin .7s var(--ease); }
@keyframes popin { from { scale: .3; opacity: 0; } }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(60px, 8vw, 110px); background: var(--ink); color: rgba(255,248,236,.82); padding: 70px 0 28px; border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.footer-logo { height: 70px; width: auto; margin-bottom: 18px; }
.site-footer h3, .footer-title { color: var(--sun); font: 700 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-contact a { text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--sun); }
.footer-contact { margin-bottom: 12px; }
.site-footer .muted { color: rgba(255,248,236,.55); font-size: 14px; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,248,236,.14); font-size: 14px; }
.hello-row { font: 800 16px/1 var(--f-display); color: var(--sun); }

/* ---------- language-specific display sizes ---------- */
html[data-lang="th"] .h-xl { font-size: clamp(38px, 5.4vw, 78px); }
html[data-lang="th"] .hero h1 .hl, html[data-lang="zh"] .hero h1 .hl { white-space: normal; }
html[data-lang="th"] .h-lg { font-size: clamp(30px, 4vw, 54px); }
html[data-lang="th"] .sticker, html[data-lang="zh"] .sticker { font-size: 14px; line-height: 1.25; }

/* ---------- inner pages ---------- */
.page-hero { padding: clamp(30px, 4vw, 60px) 0 clamp(50px, 7vw, 100px); overflow: clip; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.page-hero h1 { font-size: clamp(42px, 6.2vw, 88px); margin: 18px 0 22px; }
html[data-lang="th"] .page-hero h1 { font-size: clamp(36px, 4.8vw, 68px); }
.page-hero .arch { position: relative; aspect-ratio: 4/4.4; border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #eadfcd; }
.page-hero .arch img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .arch-wrap { position: relative; }
.page-hero .arch-wrap::before { content: ""; position: absolute; inset: 8% -6% -5% 10%; border-radius: 999px 999px var(--r-lg) var(--r-lg); background: var(--accent, var(--sun)); z-index: -1; rotate: 4deg; }
.crumbs { display: flex; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--cherry); }
.prose { display: grid; gap: 16px; color: var(--ink-2); font-size: 17.5px; max-width: 64ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3.2; background: #eadfcd; }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin: 16px 0 20px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ticks li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; font-size: 14px; font-weight: 800; margin-top: 1px; }
.prog-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); scroll-margin-top: 100px; }
.prog-row + .prog-row { margin-top: 26px; }
.prog-row .pr-media { position: relative; background: var(--c, var(--sun)); min-height: 340px; }
.prog-row .pr-media img { position: absolute; inset: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: cover; border-radius: 24px; }
.prog-row .pr-age { position: absolute; left: 36px; top: 36px; z-index: 1; padding: 8px 14px; border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); }
.prog-row .pr-body { padding: clamp(24px, 3.4vw, 46px); display: grid; gap: 14px; align-content: start; }
.prog-row h3 { font-size: clamp(28px, 3vw, 40px); }
.prog-row p { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 8px; }
.fact { padding: 12px 14px; border-radius: 16px; background: var(--cream); }
.fact dt { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
html[data-lang="th"] .fact dt, html[data-lang="zh"] .fact dt { letter-spacing: 0; font-size: 13.5px; }
.fact dd { margin: 4px 0 0; font-weight: 700; }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { padding: 28px; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: 10px; align-content: start; }
.tile .num { font: 800 44px/1 var(--f-display); color: var(--c, var(--cherry)); }
.tile h3 { font-size: 22px; }
.tile p { color: var(--ink-2); font-size: 16px; }
.cta-band { position: relative; overflow: hidden; border-radius: clamp(28px, 4vw, 56px); margin: 0 clamp(8px, 1.5vw, 20px); background: var(--cherry); color: #fff; text-align: center; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 18px; }
.cta-band p { max-width: 54ch; margin: 0 auto 30px; opacity: .92; font-size: 18px; }
.cta-band .btn { box-shadow: 0 4px 0 rgba(6,35,99,.6); }
.cta-band .dots { position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: radial-gradient(#fff 2px, transparent 2.5px); background-size: 28px 28px; }
.school-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.school-card { padding: 28px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; }
.school-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--c); opacity: .9; }
.school-card h3 { font-size: 28px; position: relative; z-index: 1; }
.school-card .city { font-weight: 700; color: var(--ink-soft); position: relative; z-index: 1; }
.school-card dl { margin: 0; display: grid; gap: 10px; }
.school-card dt { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.school-card dd { margin: 2px 0 0; }
.school-card a { text-decoration: none; font-weight: 600; }
.school-card a:hover { color: var(--cherry); }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { border: 0; padding: 9px 16px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font: 700 14px/1 var(--f-body); color: var(--ink); cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.article { max-width: 760px; margin: 0 auto; }
.article-head { text-align: center; display: grid; gap: 16px; justify-items: center; margin-bottom: 36px; }
.article-head h1 { font-size: clamp(34px, 4.6vw, 58px); }
html[data-lang="th"] .article-head h1 { line-height: 1.3; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin: 0 auto 44px; max-width: 1000px; max-height: 520px; box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }
.article-body { font-size: 18.5px; line-height: 1.75; color: var(--ink-2); }
.article-body h2, .article-body h3 { color: var(--ink); font-size: 28px; line-height: 1.2; margin: 1.8em 0 .6em; }
.article-body p { margin: 0 0 1.1em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article-body li { margin: .4em 0; }
.article-body blockquote { margin: 1.4em 0; padding: 18px 24px; border-radius: 18px; background: var(--paper); border-left: 6px solid var(--sun); font-weight: 600; color: var(--ink); }
.article-body img { border-radius: 18px; margin: 1.2em auto; }
.related { margin-top: 70px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .prog-grid { grid-template-columns: 1fr 1fr; }
  .enrich-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .page-hero-grid, .split, .prog-row { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .prog-row .pr-media { min-height: 260px; }
  .tile-grid { grid-template-columns: 1fr; }
  .page-hero .arch-wrap { max-width: 420px; }
  .hero-grid, .method-grid, .portal-grid, .schools-grid, .fr-grid, .trial-grid { grid-template-columns: 1fr; }
  .collage { max-width: 520px; margin: 10px auto 0; width: 100%; }
  .post-grid { grid-template-columns: 1fr; }
  .enrich-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trial-aside { position: static; }
  .fr-art { max-width: 320px; margin: 0 auto; width: 100%; }
  .method-photo { max-width: 460px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .prog-grid, .enrich-grid, .fields, .form-skeleton, .pillars { grid-template-columns: 1fr; }
  .prog { min-height: 0; }
  .sticker { width: 104px; height: 104px; font-size: 13px; }
  .stat { padding: 20px 16px; }
  .method-photo .badge { right: 8px; }
  .form-card::before { inset: 8px -6px -8px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .hero-fade, .collage .pop { opacity: 1 !important; transform: none !important; scale: 1 !important; }
  .hero h1 .line > span { transform: none !important; }
  .hero h1 .hl path { stroke-dashoffset: 0 !important; }
}


/* =================================================================== WordPress */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.skip-link:focus { position: fixed; left: 12px; top: 12px; z-index: 200; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #fff; border-radius: 10px; }

/* main menu (WordPress menus, with dropdowns) */
.nav .menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav .menu > li { position: relative; }
.nav .menu a { display: block; padding: 10px 12px; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 999px; white-space: nowrap; transition: background .25s; }
.nav .menu > li > a:hover, .nav .menu > li:focus-within > a { background: rgba(6,35,99,.06); }
.nav .menu > .current-menu-item > a, .nav .menu > .current-menu-ancestor > a { position: relative; }
.nav .menu > .current-menu-item > a::after, .nav .menu > .current-menu-ancestor > a::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--cherry); }
.nav .menu-item-has-children > a::before { content: ""; float: right; width: 6px; height: 6px; margin: 6px 0 0 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6; }
.nav .sub-menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 240px; list-style: none; margin: 0; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -12px rgba(6,35,99,.28), 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; z-index: 60; pointer-events: none; }
.nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.nav .sub-menu a { border-radius: 12px; font-size: 14.5px; padding: 9px 12px; white-space: normal; }
.nav .sub-menu a:hover { background: var(--cream); color: var(--cherry); }
.nav .sub-menu .sub-menu { position: static; opacity: 1; visibility: inherit; pointer-events: inherit; transform: none; box-shadow: none; padding: 0 0 0 12px; min-width: 0; }
.nav .sub-menu .menu-item-has-children > a::before { display: none; }
.drawer .menu { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.drawer .menu a { display: block; text-decoration: none; font-family: var(--f-display); font-size: 24px; font-weight: 700; padding: 10px 6px; }
.drawer .sub-menu { list-style: none; margin: 0 0 6px; padding: 0 0 0 16px; }
.drawer .sub-menu a { font-family: var(--f-body); font-size: 16px; font-weight: 600; padding: 7px 6px; color: var(--ink-2); }
.drawer-portal { display: inline-block; margin: 0 0 16px; font-weight: 700; text-decoration: none; color: var(--cherry); }
@media (max-width: 1180px) { .nav { display: none; } }
.drawer .langs { display: inline-flex; }

/* page header for inner pages and listings */
.page-head { padding: clamp(28px, 4vw, 56px) 0 clamp(26px, 3vw, 40px); }
.page-head h1 { font-size: clamp(38px, 5.4vw, 74px); margin: 16px 0 14px; max-width: 18ch; }
html[data-lang="th"] .page-head h1 { font-size: clamp(32px, 4.4vw, 58px); }
.page-head .lead { max-width: 64ch; }
.page-head .hero-fade { opacity: 1; transform: none; }

/* content written in the editor (incl. WPBakery rows) */
.page-body { padding-bottom: clamp(50px, 7vw, 100px); }
.entry { font-size: 17.5px; color: var(--ink-2); }
.entry > * + * { margin-top: 1em; }
.entry h2, .entry h3, .entry h4 { color: var(--ink); margin: 1.4em 0 .5em; line-height: 1.2; }
.entry h2 { font-size: clamp(26px, 3vw, 36px); }
.entry h3 { font-size: 24px; }
.entry a { color: var(--cherry); }
.entry img { height: auto; border-radius: 14px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry blockquote { margin: 1.4em 0; padding: 18px 24px; border-radius: 18px; background: var(--paper); border-left: 6px solid var(--sun); color: var(--ink); font-weight: 600; }
.entry table { width: 100%; border-collapse: collapse; }
.entry td, .entry th { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.entry .vc_row { margin-top: 0; }
.entry .vc_column_container > .vc_column-inner { padding-top: 0; }
.entry .wpb_text_column h1, .entry .wpb_text_column h2 { color: var(--ink); }
.entry .hidden { display: none; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.wp-caption-text { font-size: 14px; color: var(--ink-soft); }

/* blog */
.single .article-head .chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip { display: inline-block; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font: 700 13.5px/1 var(--f-body); color: var(--ink); }
.single .article-cover img { width: 100%; height: auto; max-height: 520px; object-fit: cover; display: block; }
.post-card .post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-cover:empty { background: linear-gradient(135deg, var(--sun), #ffe38a); }
.pager { margin-top: 44px; }
.pager .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pager .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; font-weight: 700; }
.pager .page-numbers.current { background: var(--ink); color: #fff; box-shadow: none; }
.state-msg { list-style: none; }

/* Contact Form 7 inside the design */
.form-card .wpcf7 form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card .wpcf7 form > p, .form-card .wpcf7 form > label { margin: 0; }
.form-card .wpcf7 form > p:has(textarea), .form-card .wpcf7 form > p:has(.wpcf7-submit), .form-card .wpcf7 form > label:has(textarea), .form-card .wpcf7 .wpcf7-response-output, .form-card .wpcf7 form > div { grid-column: 1 / -1; }
.form-card .wpcf7 label { display: grid; gap: 7px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.form-card .wpcf7 br { display: none; }
.form-card .wpcf7 input[type=text], .form-card .wpcf7 input[type=email], .form-card .wpcf7 input[type=tel], .form-card .wpcf7 input[type=number], .form-card .wpcf7 input[type=date], .form-card .wpcf7 select, .form-card .wpcf7 textarea {
  width: 100%; font: 500 16px/1.4 var(--f-body); color: var(--ink); padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); transition: border-color .2s, background .2s, box-shadow .2s; }
.form-card .wpcf7 textarea { min-height: 120px; max-height: 260px; resize: vertical; }
.form-card .wpcf7 input:focus, .form-card .wpcf7 select:focus, .form-card .wpcf7 textarea:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px rgba(46,168,245,.18); }
.form-card .wpcf7 .wpcf7-submit { width: 100%; margin-top: 8px; padding: 1.1em 1.8em; border: 0; border-radius: 999px; background: var(--cherry); color: #fff; font: 700 17px/1 var(--f-body); cursor: pointer; box-shadow: 0 3px 0 rgba(6,35,99,.9); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.form-card .wpcf7 .wpcf7-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(6,35,99,.9); }
.form-card .wpcf7-not-valid-tip { color: var(--cherry); font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.form-card .wpcf7 form .wpcf7-response-output { margin: 4px 0 0; padding: 14px 16px; border-radius: 14px; border-width: 2px; }
.form-card .wpcf7-spinner { position: absolute; }
@media (max-width: 560px) { .form-card .wpcf7 form { grid-template-columns: 1fr; } }

/* Thai: never underline (links or text). Links in running text keep colour + weight instead. */
html[data-lang="th"] a, a:lang(th), [lang="th"] a, :lang(th) u, html[data-lang="th"] u { text-decoration: none !important; }
html[data-lang="th"] .entry a { color: var(--cherry); font-weight: 600; }
.footer-more { text-decoration: none; color: var(--sun); font-weight: 600; }

/* Plugin widgets whose files are not loaded on the designed pages. */
.kidable-designed #dpsp-floating-sidebar, .kidable-designed #mv-grow-data, .kidable-designed .dpsp-share-text,
.kidable-designed .sfsi_outr_div, .kidable-designed #sfsi_floater, .kidable-designed .sfsi_wicons { display: none !important; }

/* Total theme elements kept in older page content */
.entry .vcex-heading { margin: 1.2em 0 .5em; }
.entry .vcex-divider { border: 0; border-top: 1.5px solid var(--line); margin: 32px 0; }
.entry .vcex-btn { margin: 18px 0; }
.entry .vcex-btn .btn { text-decoration: none; }
.entry .vcex-image img, .entry .vcex-box img, .entry .vcex-gallery img { border-radius: var(--r-md); height: auto; max-width: 100%; }
.entry .vcex-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 20px 0; }
.entry .vcex-gallery figure, .entry .vcex-image { margin: 0; }
.entry .vcex-box { padding: 22px; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); margin: 12px 0; }
.entry .vcex-box h3 { margin: 12px 0 6px; }
.entry .vcex-milestone { display: grid; gap: 4px; text-align: center; }
.entry .vcex-milestone b { font: 800 clamp(34px, 4vw, 52px)/1 var(--f-display); color: var(--cherry); }
.brand img, .footer-logo { color: transparent; font-size: 0; }

/* WPBakery content drawn by the theme */
.entry .vcr { margin: 0 0 8px; }
.entry .vcr-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; align-items: start; }
.entry .vcc { grid-column: span var(--span, 12); min-width: 0; }
.entry .vcc > :first-child, .entry .vct > :first-child { margin-top: 0; }
.entry .vct { margin-bottom: 18px; }
.entry .vci { margin: 0 0 18px; }
.entry .vci img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.entry .vci-center { text-align: center; } .entry .vci-right { text-align: right; }
.entry .vci figcaption { font-size: 14px; color: var(--muted, #5b6b88); margin-top: 6px; }
.entry .vc-sep { border: 0; border-top: 1.5px solid var(--line); margin: 28px 0; }
.entry .vc-raw iframe { max-width: 100%; border: 0; border-radius: var(--r-md); }
.entry .vc-msg { padding: 16px 20px; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); margin: 16px 0; }
.entry .vc-toggle { border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); margin: 10px 0; }
.entry .vc-toggle summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--ink); }
.entry .vc-toggle > div { padding: 0 20px 16px; }
.entry p:empty { display: none; }
@media (max-width: 760px) {
  .entry .vcr-cols { grid-template-columns: 1fr; gap: 14px; }
  .entry .vcc { grid-column: auto; }
}
.entry .vcr[class*="vc_custom_"], .entry .vcc[class*="vc_custom_"] { padding: clamp(20px, 3vw, 40px); border-radius: var(--r-md); }
.entry .vcr[class*="vc_custom_"] .vcr-cols { gap: clamp(20px, 3vw, 40px); }
.entry .vcr[class*="vc_custom_"] .vcc[class*="vc_custom_"] { padding: clamp(16px, 2vw, 28px); }
.entry [style*="font-family"], .entry font { font-family: inherit !important; }

/* Fixed header: compact frosted bar once the page scrolls, with a reading-progress line. */
.site-header { position: sticky; top: 0; }
.site-header .bar { transition: height .45s var(--ease); }
.site-header .brand img { transition: height .45s var(--ease); }
.site-header::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--sun), var(--cherry)); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.site-header.is-scrolled { background: rgba(255,248,236,.9); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: 0 8px 30px -18px rgba(6,35,99,.45); }
.site-header.is-scrolled::after { opacity: 1; }
.site-header.is-scrolled .bar { height: 64px; }
.site-header.is-scrolled .brand img { height: 40px; }
@media (max-width: 760px) { .site-header.is-scrolled .bar { height: 60px; } .site-header.is-scrolled .brand img { height: 36px; } }
@media (prefers-reduced-motion: reduce) { .site-header .bar, .site-header .brand img { transition: none; } }

/* =====================================================================
   Audit (Nov 2026) — layout, motion and mobile refinements
   ===================================================================== */

/* Motion never hides content before the script is ready (slow server, no JS). */
html:not(.kb-io) [data-reveal] { opacity: 1; transform: none; }
html:not(.js) .hero-fade, html:not(.js) .collage .pop { opacity: 1; transform: none; scale: 1; }
html:not(.js) .hero h1 .line > span { transform: none; }
html:not(.js) .hero h1 .hl path { stroke-dashoffset: 0; }

/* Hero: the Hello / สวัสดี / 你好 bubble now speaks from the photo instead of floating under the buttons. */
.collage .say-float { position: absolute; left: 4%; top: 0; margin: 0; z-index: 4; }
.collage .say-float .say-bubble { height: 48px; box-shadow: 0 14px 30px -14px rgba(6,35,99,.45); }
.collage .say-float .say-bubble::after { left: auto; right: 22px; }
.is-ready .collage .say-float.pop { transition-delay: .9s; }

/* Hero sticker: the label sits inside the ring text instead of overlapping it. */
.sticker > span { max-width: 74px; font-size: 13px; line-height: 1.08; }
html[data-lang="th"] .sticker > span, html[data-lang="zh"] .sticker > span { font-size: 12.5px; line-height: 1.2; }

/* Calmer rhythm: less dead space between the last section and the footer. */
main > .section:last-child { padding-bottom: clamp(56px, 7vw, 100px); }
.site-footer { margin-top: clamp(32px, 4vw, 64px); }

/* Tablet: keep the language switcher in the bar (it was only in the menu drawer). */
@media (min-width: 700px) and (max-width: 1180px) { .bar-end .langs { display: inline-flex; } }

/* Program fact lists: two per row on phones instead of one long column. */
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fact { padding: 10px 12px; }
}

/* Phones */
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .stats { padding-top: 56px; }
  .hero { padding-bottom: 48px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .collage .say-float { top: -6px; }
  .collage .say-float .say-bubble { height: 40px; font-size: 18px; padding: 0 16px; }

  /* Programs become a swipeable row: the next card peeks in to show there is more. */
  .prog-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin: 0 -16px; padding: 6px 16px 22px; scroll-padding-left: 16px; }
  .prog-grid::-webkit-scrollbar { display: none; }
  .prog-grid > .prog { scroll-snap-align: start; }
  .prog-grid > .prog:hover { transform: none; }

  /* Enrichment subjects: compact two-column tiles. */
  .enrich-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .enrich-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .chip-card { padding: 18px 16px; gap: 8px; }
  .chip-card h3 { font-size: 19px; }
  .chip-card p { font-size: 13.5px; line-height: 1.45; }
}
.collage .say-float { left: 18%; top: -3%; }
@media (max-width: 560px) {
  .sticker > span { max-width: 60px; font-size: 11px; }
  html[data-lang="th"] .sticker > span, html[data-lang="zh"] .sticker > span { font-size: 11px; }
  .collage .say-float { left: 16%; top: -5%; }
}

/* Montessori label on the method photo */
.method-photo .mbadge { position: absolute; left: -18px; bottom: 34px; display: flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 12px; border-radius: 999px; background: var(--ink); color: var(--cream);
  box-shadow: 0 18px 40px -18px rgba(6,35,99,.65), 0 0 0 4px rgba(255,248,236,.9); rotate: -4deg; z-index: 2;
  animation: mbadge-float 6s ease-in-out infinite; }
.method-photo .mbadge-ico { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--sun); display: grid; place-items: center; }
.method-photo .mbadge-ico svg { width: 34px; height: 34px; }
.method-photo .mbadge-txt { display: grid; line-height: 1; }
.method-photo .mbadge-txt small { font: 700 12px/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin-bottom: 6px; }
.method-photo .mbadge-txt b { font: 800 26px/1 var(--f-display); letter-spacing: -0.01em; }
html[data-lang="th"] .method-photo .mbadge-txt small, html[data-lang="zh"] .method-photo .mbadge-txt small { letter-spacing: .02em; font-size: 13px; }
@keyframes mbadge-float { 50% { translate: 0 -6px; } }
@media (max-width: 880px) { .method-photo .mbadge { left: 10px; bottom: 22px; } }
@media (max-width: 560px) { .method-photo .mbadge { padding: 9px 16px 9px 9px; gap: 10px; } .method-photo .mbadge-ico { width: 44px; height: 44px; } .method-photo .mbadge-ico svg { width: 28px; height: 28px; } .method-photo .mbadge-txt b { font-size: 21px; } .method-photo .mbadge-txt small { font-size: 10.5px; } }

/* =====================================================================
   Franchise presentation content (2026)
   ===================================================================== */
.deck-tint { background: linear-gradient(180deg, rgba(251,201,1,.07), rgba(46,168,245,.05)); }
.section-head.is-center { margin-inline: auto; text-align: center; justify-items: center; }

/* Key figures band */
.deck-stats { padding: clamp(36px, 5vw, 64px) 0 0; }
.deck-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.deck-stat { padding: 24px 22px; border-radius: var(--r-md); background: var(--ink); color: var(--cream); }
.deck-stat b { display: block; font: 800 clamp(28px, 3vw, 40px)/1 var(--f-display); color: var(--sun); letter-spacing: -0.02em; }
.deck-stat span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; color: rgba(255,248,236,.82); }

/* Three pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { position: relative; padding: 30px 28px 32px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.pillar::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--c); }
.pillar-tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, white); font: 700 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.pillar h3 { font-size: clamp(24px, 2.2vw, 30px); margin: 16px 0 10px; }
.pillar p { color: var(--ink-2); }

/* Generic card grids */
.deck-grid { display: grid; gap: 16px; }
.deck-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.deck-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.deck-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.deck-card { padding: 24px 22px; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: 10px; align-content: start; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.deck-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); }
.deck-card h3 { font-size: 20px; line-height: 1.25; }
.deck-card p { font-size: 15.5px; color: var(--ink-2); }
.deck-num { font: 800 15px/1 var(--f-display); color: var(--cherry); letter-spacing: .04em; }

/* Our commitment / your commitment */
.commit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.commit { padding: clamp(26px, 3vw, 40px); border-radius: var(--r-lg); }
.commit-us { background: var(--ink); color: var(--cream); }
.commit-us h2 { color: #fff; } .commit-us .kicker { color: var(--sun); }
.commit-you { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.commit h2 { margin: 14px 0 22px; }
.commit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.commit li { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
.commit li::before { content: "✓"; grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--sun); color: var(--ink); }
.commit-you li::before { background: var(--mint); color: #fff; }
.commit li b { font-weight: 700; }
.commit li span { font-size: 15px; opacity: .85; }

/* Accreditations */
.acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.acc-card { padding: 26px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; display: grid; justify-items: center; gap: 10px; }
.acc-logo { height: 96px; display: grid; place-items: center; }
.acc-logo img { max-height: 96px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.acc-card h3 { font-size: 19px; }
.acc-card p { font-size: 15px; color: var(--ink-2); }

/* Steps to launch */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; }
.steps::before { content: ""; position: absolute; left: 4%; right: 4%; top: 27px; height: 3px; background: repeating-linear-gradient(90deg, var(--sun) 0 10px, transparent 10px 18px); }
.steps li { position: relative; display: grid; gap: 10px; align-content: start; }
.step-n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--sun); font: 800 22px/1 var(--f-display); box-shadow: 0 0 0 6px var(--cream); }
.steps h3 { font-size: 19px; margin-top: 6px; }
.steps p { font-size: 15px; color: var(--ink-2); }
.join-ticks { margin-top: 6px; }

/* Vision, mission, values */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vm-card { padding: clamp(26px, 3vw, 40px); border-radius: var(--r-lg); }
.vm-vision { background: var(--ink); color: var(--cream); } .vm-vision h3 { color: #fff; }
.vm-mission { background: var(--sun); color: var(--ink); }
.vm-label { font: 700 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.vm-vision .vm-label { color: var(--sun); opacity: 1; }
.vm-card h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 14px 0 12px; }
.values-title { text-align: center; margin: clamp(40px, 5vw, 64px) 0 20px; font-size: clamp(22px, 2.2vw, 28px); }
.values { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.value { padding: 20px 16px; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: 8px; align-content: start; text-align: center; justify-items: center; }
.value-l { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font: 800 28px/1 var(--f-display); color: #fff; background: var(--sky); }
.value:nth-child(7n+1) .value-l { background: var(--cherry); } .value:nth-child(7n+2) .value-l { background: var(--sun); color: var(--ink); }
.value:nth-child(7n+3) .value-l { background: var(--sky); } .value:nth-child(7n+4) .value-l { background: var(--mint); }
.value:nth-child(7n+5) .value-l { background: var(--lilac); } .value:nth-child(7n+6) .value-l { background: var(--cherry); }
.value:nth-child(7n+7) .value-l { background: var(--ink); color: var(--sun); }
.value b { font-size: 15px; line-height: 1.3; }
.value span:last-child { font-size: 14px; color: var(--ink-2); line-height: 1.45; }

/* Montessori quote */
.mquote { margin: clamp(30px, 4vw, 52px) auto 0; max-width: 820px; text-align: center; }
.mquote blockquote { margin: 0; font: 700 clamp(22px, 2.4vw, 30px)/1.35 var(--f-display); color: var(--ink); }
.mquote figcaption { margin-top: 14px; font-weight: 700; color: var(--cherry); }

/* CEFR / HSK levels */
.ladder-block + .ladder-block { margin-top: clamp(56px, 7vw, 96px); }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; }
.ladder li { --tone: var(--sky); padding: 18px 16px 20px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; gap: 6px; align-content: start; min-height: calc(150px + var(--i) * 22px); position: relative; overflow: hidden; }
.ladder li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(6px + var(--i) * 3px); background: var(--tone); opacity: .9; }
.ladder-zh .ladder li { --tone: var(--cherry); }
.lv-code { font: 800 24px/1 var(--f-display); color: var(--tone); }
.ladder li b { font-size: 15px; }
.ladder li p { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.ladder-why { margin-top: 18px; padding: 14px 18px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }

@media (max-width: 1080px) {
  .deck-grid.cols-4, .deck-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .steps::before { display: none; }
  .ladder { grid-template-columns: repeat(3, 1fr); }
  .ladder li { min-height: 0; }
}
@media (max-width: 880px) {
  .deck-stats-grid { grid-template-columns: 1fr 1fr; }
  .pillar-grid, .deck-grid.cols-3, .commit-grid, .acc-grid, .vm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .deck-grid.cols-4, .deck-grid.cols-5 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .values > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 56px 1fr; column-gap: 14px; }
  .steps li .step-n { grid-row: span 2; }
  .steps h3 { margin-top: 0; }
  .ladder { grid-template-columns: 1fr 1fr; }
  .deck-stat { padding: 18px 16px; }
}

/* Branch opening soon */
.school-card.is-soon { position: relative; }
.soon-tag { justify-self: start; display: inline-block; padding: 6px 12px; border-radius: 999px; background: #e2608e; color: #fff; font: 700 12.5px/1.2 var(--f-body); letter-spacing: .02em; margin-bottom: 4px; }

/* width/height attributes only reserve space; the CSS decides the rendered height. */
img[height] { height: auto; }
.site-header .brand img { height: 50px; width: auto; }
.site-footer img.footer-logo { height: 70px; width: auto; }

/* Image focal points (v1.4.6) */
img[src*="kidable-online-class-girl"] { object-position: 72% 30%; }
img[src*="kidable-online-learning-at-home"] { object-position: 50% 45%; }
img[src*="kidable-sciences-young-scientist"] { object-position: 45% 18%; }
img[src*="kidable-preschool-montessori-puzzles"] { object-position: 50% 78%; }
img[src*="kidable-kid-group-phonics-reading"] { object-position: 50% 35%; }
img[src*="kidable-classroom-group-all-ages"] { object-position: 45% 72%; }
img[src*="kidable-junior-group-english-textbooks"] { object-position: 50% 45%; }
img[src*="kidable-play-group-toddler-puppet"] { object-position: 35% 40%; }
/* Cropped photo frames keep filling their box even when the img carries width/height attributes */
.prog-img img[height], .arch img[height], .split-img img[height], .frame img[height], .core img[height], .ph img[height] { height: 100%; }
.pr-media img[height] { height: calc(100% - 44px); }
/* Post tiles: titles limited to two lines (full title stays in the page for Google and on hover) */
.post-card h3 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2em * 1.15); }
html[data-lang="th"] .post-card h3 { min-height: calc(2em * 1.4); }

/* ---------- Programs: course logos, conversation levels, more ways (v1.5.0) ---------- */
.prog-row .pr-logo { display: block; height: 64px; width: auto; max-width: 220px; object-fit: contain; margin-bottom: -2px; }
.conv-levels { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.conv-levels li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--cream); }
.conv-levels img { width: 112px; height: 58px; object-fit: contain; }
.conv-levels b { font-family: var(--f-display); font-size: 19px; display: inline-block; margin-right: 8px; }
.conv-levels .lv-meta { font-size: 13.5px; font-weight: 700; color: #2b8fd8; white-space: nowrap; }
.conv-levels p { margin: 2px 0 0; font-size: 15px; }
.conv-levels p strong { color: var(--ink); white-space: nowrap; }
.conv-note { font-size: 14px; font-weight: 600; color: var(--ink-soft) !important; }
.more-ways { margin-top: 26px; border-radius: var(--r-lg); background: #11294f; color: #fff; padding: clamp(10px, 2vw, 22px) clamp(18px, 3vw, 40px); }
.mw-row { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; padding: 20px 0; }
.mw-row + .mw-row { border-top: 1px solid rgba(255,255,255,.14); }
.mw-logo { display: grid; gap: 8px; justify-items: start; }
.mw-logo img { height: 54px; width: auto; max-width: 220px; object-fit: contain; }
.mw-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
html[data-lang="th"] .mw-tag, html[data-lang="zh"] .mw-tag { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.mw-row p { margin: 0; color: rgba(255,255,255,.88); font-size: 16.5px; }
.mw-link { display: inline-block; margin-top: 8px; color: var(--sun); font-weight: 700; text-decoration: none; }
.mw-link:hover { text-decoration: underline; }
html[data-lang="th"] .mw-link:hover { text-decoration: none; }
.school-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
  .mw-row { grid-template-columns: 1fr; gap: 12px; }
  .conv-levels li { grid-template-columns: 84px 1fr; }
  .conv-levels img { width: 84px; height: 46px; }
  .prog-row .pr-logo { height: 52px; }
}

/* ---------- Franchise: formats, interior standard, opening journey ---------- */
.fr-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.fr-format { border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; }
.fr-format-photo { aspect-ratio: 16 / 9; background: #eadfcd; }
.fr-format-photo img { width: 100%; height: 100%; object-fit: cover; }
.fr-format-body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.fr-format-body h3 { font-size: clamp(26px, 2.6vw, 34px); margin: -4px 0 0; }
.fr-format-body p { color: var(--ink-2); margin: 0; }
.fr-perks { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.fr-perks li { counter-increment: p; display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; }
.fr-perks li::before { content: counter(p); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); font-weight: 800; font-size: 14px; }
.fr-perks b { font-size: 15.5px; }
.fr-perks span { font-size: 14px; color: var(--ink-2); }
.fr-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fr-chips li { padding: 7px 14px; border-radius: 999px; background: var(--cream); font-weight: 700; font-size: 14.5px; }
.fr-chips li::before { content: "● "; color: var(--sun); }
.fr-plan { display: grid; grid-template-columns: 44% 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 20px; background: var(--cream); }
.fr-plan-img { border-radius: 14px; overflow: hidden; background: #fff; aspect-ratio: 1; display: grid; place-items: center; }
.fr-plan-img img { width: 100%; height: 100%; object-fit: contain; }
.fr-plan-k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--cherry); }
html[data-lang="th"] .fr-plan-k, html[data-lang="zh"] .fr-plan-k { letter-spacing: 0; font-size: 13px; }
.fr-plan-t { display: block; font-family: var(--f-display); font-size: 20px; margin-top: 2px; }
.fr-plan-n { display: block; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.fr-legend { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: 14.5px; font-weight: 600; }
.fr-legend li::marker { color: #2b8fd8; font-weight: 800; }
.fr-survey { font-size: 14.5px; }
.fr-free { display: inline-block; margin-right: 8px; padding: 3px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; }
.fr-interior { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fr-interior figure { margin: 0; }
.fr-int-img { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: #eadfcd; box-shadow: var(--shadow); }
.fr-int-img img { width: 100%; height: 100%; object-fit: cover; }
.fr-int-n { position: absolute; left: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); font: 800 14px/1 var(--f-display); }
.fr-interior figcaption { padding: 12px 4px 0; display: grid; gap: 2px; }
.fr-interior figcaption b { font-size: 17px; }
.fr-interior figcaption span { font-size: 14.5px; color: var(--ink-2); }
.fr-journey-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.fr-months { padding: 18px 22px; border-radius: 22px; background: var(--ink); color: #fff; max-width: 300px; margin-bottom: 28px; }
.fr-months b { display: block; font-family: var(--f-display); font-size: 36px; color: var(--sun); line-height: 1.1; }
.fr-months span { font-size: 14px; color: rgba(255,255,255,.82); }
.fr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fr-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.fr-steps h3 { font-size: 18px; margin: 4px 0 4px; }
.fr-steps p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.fr-journey-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 22px; margin-top: 30px; align-items: start; }
.fr-3d { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.fr-3d img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.fr-3d figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 13px; font-weight: 700; }
.fr-box { padding: 24px; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); }
.fr-box h3 { font-size: 20px; margin: 0; }
.fr-box-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.fr-box .ticks { margin-top: 16px; }
.fr-box .ticks li { font-size: 15px; font-weight: 600; }
.fr-box-dark { background: #11294f; color: #fff; box-shadow: none; }
.fr-box-dark .ticks li::before { background: var(--sun); color: var(--ink); }
@media (max-width: 980px) {
  .fr-formats, .fr-journey-grid { grid-template-columns: 1fr; }
  .fr-steps, .fr-interior { grid-template-columns: 1fr 1fr; }
  .fr-journey-head { grid-template-columns: 1fr; }
  .fr-months { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .fr-steps, .fr-interior, .fr-perks { grid-template-columns: 1fr; }
  .fr-plan { grid-template-columns: 1fr; }
}
.fr-format-photo img[height], .fr-int-img img[height], .fr-plan-img img[height], .fr-3d img[height] { height: 100%; }
.fr-3d img[height] { height: auto; aspect-ratio: 4 / 3; }
.fr-format-photo img { object-position: 50% 40%; }
.fr-format-photo { overflow: hidden; position: relative; } .fr-format-photo img { position: absolute; inset: 0; }

/* 1.5.9 — school cards: aligned rows across cards, 3-line addresses, soon tag out of flow */
.school-card dd.addr { line-height: 1.55; }
.school-card .soon-tag { position: absolute; top: 0; left: 28px; z-index: 2; margin: 0; border-radius: 0 0 10px 10px; padding: 5px 12px 6px; font-size: 12px; }
.school-card .school-actions { padding-top: 4px; }
@supports (grid-template-rows: subgrid) {
  .school-cards { row-gap: 20px; }
  .school-card { grid-row: span 7; grid-template-rows: subgrid; row-gap: 14px; }
  .school-card dl { display: contents; }
  .school-card .school-actions { align-self: start; }
}
/* 1.6.0 — addresses always exactly 3 lines: each line kept whole, size scales with card width */
@supports (width: 1cqi) {
  .school-card { container-type: inline-size; }
  .school-card dd.addr { white-space: nowrap; font-size: min(16.5px, calc(100cqi / 20.6)); }
}


/* 1.6.6 — format photos: wide frame so the full townhouse façade is visible */
.fr-format-photo { aspect-ratio: 1280 / 581; }
.fr-format-photo img[src*="townhouse-final"] { object-position: 50% 50%; }

/* 1.7.0 — opening hours: two aligned columns (days | times) */
.school-card dd.hours { display: grid; grid-template-columns: 7.2em auto; column-gap: 12px; row-gap: 2px; font-variant-numeric: tabular-nums; }
.school-card dd.hours .hd { color: var(--ink-soft); font-weight: 600; }
.school-card dd.hours .ht { white-space: nowrap; }
/* 1.7.1 — equal-height cards: buttons pinned to the bottom so they line up whatever the number of hour rows */
.school-cards .school-card { display: flex; flex-direction: column; gap: 14px; grid-row: auto; }
.school-cards .school-card dl { display: grid; gap: 10px; }
.school-cards .school-card .school-actions { margin-top: auto; padding-top: 4px; }
