/* =========================================================================
   The Matrix Training - minimal front-end theme (2026-09-13, refreshed)
   One hand-written stylesheet replaces Porto theme + Bootstrap + Tailwind build
   + rs-plugin + owl + magnific (~1.1 MB of CSS). No external requests.
   ========================================================================= */

/* ---------- fonts (local, Thai + Latin) ---------- */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/prompt/prompt-regular.woff2) format('woff2'),
       url(../fonts/prompt/prompt-regular.woff) format('woff');
}
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/prompt/prompt-semibold.woff2) format('woff2'),
       url(../fonts/prompt/prompt-semibold.woff) format('woff');
}

/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --soft: #f7f5f1;
  --soft-2: #efece6;
  --ink: #16151a;
  --ink-2: #4b4a52;
  --ink-3: #8a8892;
  --line: #e7e4de;
  --accent: #f08a24;          /* logo orange */
  --accent-2: #ffb14d;
  --accent-soft: #fff1e4;
  --accent-deep: #b4561a;
  --dark: #15141a;
  --dark-2: #23212b;
  --dark-ink: #f3f1ec;
  --font: 'Prompt', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Thai', sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(60px, 8vw, 112px);
  --radius: 14px;
  --radius-lg: 24px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 18, 30, .04), 0 8px 24px -16px rgba(20, 18, 30, .18);
  --shadow: 0 2px 4px rgba(20, 18, 30, .04), 0 24px 48px -24px rgba(20, 18, 30, .28);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
::selection { background: var(--accent-2); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }
.section { padding-block: var(--section); }
.section--soft { background: var(--soft); }
.section--tight { padding-block: calc(var(--section) * .55); }
.section--flush-top { padding-top: 0; }
.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .grid--4.grid--keep-2 { grid-template-columns: repeat(2, 1fr); }
}

.two-col { display: grid; gap: clamp(32px, 6vw, 80px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) {
  .two-col { grid-template-columns: 260px minmax(0, 1fr); }
  .two-col--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- typography ---------- */
.h1, h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); }
.h2, h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem); }
.h3, h3 { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: .8rem;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.rule { width: 48px; height: 3px; background: var(--accent); border: 0; border-radius: 3px; margin: 1rem 0 1.25rem; }
.rule--center { margin-inline: auto; }
.clamp-1, .clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }
.link {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink);
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.link:hover { color: var(--accent-deep); gap: .65rem; }
.link svg { width: 1em; height: 1em; }

/* section heading block */
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.section-head--row > div { max-width: 640px; }
.section-head--center { max-width: 720px; margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: .6rem; font-size: 1.05rem; }
.section-head--center .lead { margin-inline: auto; }
.section-head .lead p { margin: 0; }
.section-head .rule { display: none; }
.section-head--center .rule { display: block; }
.section-head__link { flex: none; margin-bottom: .3rem; }

/* rich text from the CMS editor */
.prose { font-size: 1.02rem; color: var(--ink-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 1.8em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose p { margin: 0; }
.prose img { border-radius: var(--radius); margin-inline: auto; }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose a { color: var(--accent-deep); border-bottom: 1px solid var(--accent-2); }
.prose a:hover { border-bottom-color: var(--accent-deep); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 0; padding: .25rem 0 .25rem 1.25rem; color: var(--ink); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.prose span, .prose p, .prose li { font-family: var(--font) !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .6rem 1.5rem; border-radius: var(--pill);
  font-weight: 600; font-size: .95rem; line-height: 1.2; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: #e07a15; border-color: #e07a15; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { min-height: 40px; padding: .4rem 1.1rem; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- header ---------- */
.site-header {
  /* no backdrop-filter / transform here: they would turn the header into the containing block of the fixed mobile nav */
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(0,0,0,.35); background: #fff; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.5vw, 1.75rem); }
.nav__list { display: flex; align-items: center; gap: clamp(.1rem, .5vw, .35rem); }
.nav__list > li { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .85rem; font-weight: 500; font-size: .95rem;
  color: var(--ink-2); position: relative; white-space: nowrap; border-radius: var(--pill);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover, .has-sub:focus-within > .nav__link { color: var(--ink); background: var(--soft); }
.nav__link.is-active { color: var(--ink); background: var(--accent-soft); }
.nav__link svg { width: .8em; height: .8em; transition: transform .2s var(--ease); }
.has-sub:hover > .nav__link svg, .has-sub:focus-within > .nav__link svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; padding: .5rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  /* never taller than the viewport: an absolutely positioned dropdown still adds to the page's scroll height even when hidden */
  max-height: calc(100vh - var(--header-h) - 1.5rem); overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a { display: block; padding: .5rem .85rem; font-size: .92rem; color: var(--ink-2); border-radius: 8px; }
.sub a:hover { color: var(--ink); background: var(--soft); }
.sub a:first-child { font-weight: 600; color: var(--ink); }
.nav__aside { display: flex; align-items: center; gap: .75rem; }
.nav__phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; white-space: nowrap; color: var(--ink); }
.nav__phone svg { width: 1.1em; height: 1.1em; color: var(--accent-deep); }
.nav__cta { min-height: 42px; }
.lang {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border: 1px solid var(--line);
  border-radius: var(--pill); font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-2);
}
.lang:hover { border-color: var(--ink); color: var(--ink); }
.lang svg { width: 1em; height: 1em; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .i-close { display: none; }
.site-header.is-open .nav-toggle .i-menu { display: none; }
.site-header.is-open .nav-toggle .i-close { display: block; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav__phone--desktop, .lang--desktop { display: none; }
  html, body { overflow-x: clip; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 1rem var(--gutter) 3rem; overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0; transform: translateX(100%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
  }
  .site-header.is-open .nav { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 1rem 0; font-size: 1.1rem; border-radius: 0; background: none !important; }
  .nav__link.is-active { color: var(--accent-deep); }
  .sub { position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 .75rem; transform: none; display: none; opacity: 1; visibility: visible; max-height: none; overflow: visible; }
  .has-sub.is-open > .sub { display: block; }
  .has-sub.is-open > .nav__link svg { transform: rotate(180deg); }
  .sub a { padding: .5rem 0 .5rem 1rem; }
  .nav__aside { margin-top: 1.5rem; flex-wrap: wrap; gap: 1rem; }
  .nav__cta { flex: 1 1 100%; }
  body.nav-lock { overflow: hidden; }
  body.nav-lock .cookie, body.nav-lock .to-top { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero .splide__slide, .hero__single { position: relative; }
.hero img { width: 100%; height: clamp(520px, 78vh, 760px); object-fit: cover; opacity: .82; }
.hero .splide__slide::after, .hero__single::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,13,18,.82) 0%, rgba(14,13,18,.55) 45%, rgba(14,13,18,.15) 100%),
              linear-gradient(0deg, rgba(14,13,18,.7) 0%, rgba(14,13,18,0) 45%);
}
.hero a.full { position: absolute; inset: 0; z-index: 2; }
.hero__content {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; pointer-events: none;
}
.hero__content .wrap { pointer-events: none; }
.hero__content .btn, .hero__content a { pointer-events: auto; }
.hero__box { max-width: 640px; padding-bottom: 2.5rem; }
.hero__box .eyebrow { color: var(--accent-2); }
.hero__box .eyebrow::before { background: var(--accent-2); }
.hero__box h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); color: #fff; line-height: 1.12; }
.hero__box p { margin: 1.1rem 0 1.75rem; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: rgba(255,255,255,.8); max-width: 52ch; }
.hero .splide__pagination { bottom: 1.4rem; z-index: 4; }
.splide__pagination__page { width: 8px; height: 8px; background: rgba(255,255,255,.45); opacity: 1; margin: 4px; transition: width .25s var(--ease), background .25s; border-radius: 4px; }
.splide__pagination__page.is-active { background: var(--accent-2); width: 26px; transform: none; }
@media (max-width: 599px) {
  .hero img { height: clamp(520px, 88vh, 680px); }
  .hero__content { align-items: flex-end; }
  .hero__box { padding-bottom: 3.5rem; }
}

/* quick category chips + stats under the hero */
.hero-foot { position: relative; z-index: 5; margin-top: clamp(-40px, -4vw, -28px); }
.hero-foot__card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.8vw, 36px); display: grid; gap: 1.25rem 2.5rem; align-items: center;
}
.hero-foot__card > * { min-width: 0; } /* let the nowrap chip strip shrink and scroll instead of widening the card */
@media (min-width: 900px) { .hero-foot__card { grid-template-columns: minmax(0, 1.4fr) auto; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips__label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: var(--pill); font-size: .9rem; font-weight: 500;
  background: var(--soft); color: var(--ink-2); border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { background: var(--accent-soft); color: var(--accent-deep); border-color: #ffd9b3; }
.chip--all { background: var(--ink); color: #fff; }
.chip--all:hover { background: #000; color: #fff; border-color: transparent; }
.stats { display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); }
.stat { min-width: 84px; }
.stat b { display: block; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.stat b small { font-size: .55em; color: var(--accent); margin-left: .1em; }
.stat span { display: block; font-size: .82rem; color: var(--ink-3); margin-top: .35rem; }
@media (max-width: 599px) {
  .chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin-inline: -6px; padding-inline: 6px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .stats { justify-content: space-between; }
}

/* ---------- page title (inner pages) ---------- */
.page-title { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3.5vw, 44px); border-bottom: 1px solid var(--line); }
.page-title--soft {
  background: radial-gradient(60% 120% at 100% 0%, var(--accent-soft) 0%, rgba(255,241,228,0) 60%), var(--soft);
  border-bottom: 0;
}
.page-title h1 { margin-top: .6rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem .5rem; font-size: .85rem; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: '/'; margin-right: .5rem; color: var(--ink-3); opacity: .5; }
.crumbs li:last-child { color: var(--ink-2); }
.page-title--hero { position: relative; border: 0; padding: 0; background: var(--dark); color: #fff; }
.page-title--hero img { width: 100%; aspect-ratio: 21 / 9; min-height: 260px; max-height: 500px; object-fit: cover; opacity: .5; }
.page-title--hero .page-title__inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(24px, 4vw, 56px); background: linear-gradient(0deg, rgba(14,13,18,.75), rgba(14,13,18,0) 60%); }
.page-title--hero .crumbs, .page-title--hero .crumbs li:last-child { color: rgba(255,255,255,.75); }
.page-title--hero .crumbs li + li::before { color: rgba(255,255,255,.5); }
.page-title--hero h1 { color: #fff; }
.page-title--hero h1 * { color: inherit !important; font-size: inherit !important; font-family: inherit !important; margin: 0 !important; }

/* ---------- cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { position: relative; overflow: hidden; background: var(--soft); }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge {
  position: absolute; left: 12px; top: 12px; z-index: 1; padding: .3rem .7rem; border-radius: var(--pill);
  background: rgba(255,255,255,.92); color: var(--ink); font-size: .75rem; font-weight: 600; letter-spacing: .04em;
}
.card__body { display: flex; flex-direction: column; gap: .7rem; padding: 1.1rem 1.25rem 1.3rem; flex: 1; }
.card__title { font-size: 1.08rem; line-height: 1.4; }
.card__title a::after { content: ''; position: absolute; inset: 0; }
.card:hover .card__title a { color: var(--accent-deep); }
.card__meta { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-3); }
.card__meta a { position: relative; z-index: 1; color: var(--ink-2); font-weight: 500; }
.card__meta a:hover { color: var(--accent-deep); }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); }
.card__text { font-size: .92rem; color: var(--ink-2); }
.card__text * { margin: 0; font-size: inherit !important; font-family: inherit !important; color: inherit !important; }
.card__more { margin-top: auto; padding-top: .35rem; font-size: .875rem; }
.card__more svg { width: 1em; height: 1em; }
.date { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* trainer tile */
.person { text-align: center; position: relative; padding: 1.5rem 1rem; border-radius: var(--radius); transition: background .3s var(--ease); }
.person:hover { background: var(--soft); }
.person__photo { width: min(180px, 70%); aspect-ratio: 1; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; background: var(--soft); box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.person:hover .person__photo img { transform: scale(1.05); }
.person h3 a::after { content: ''; position: absolute; inset: 0; }
.person p { color: var(--ink-3); font-size: .9rem; margin: .15rem 0 0; }

/* feature (why us) */
.feature {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; align-items: start;
  padding: clamp(18px, 2.4vw, 28px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.feature__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--accent-soft); }
.feature__icon img { width: 30px; height: 30px; object-fit: contain; }
.feature h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.feature .card__text { color: var(--ink-2); }

/* partner logos */
.logos .splide__slide { display: grid; place-items: center; padding: .5rem; }
.logos img { max-height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s; }
.logos img:hover { filter: none; opacity: 1; }

/* about band on home */
.band { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .band { grid-template-columns: 1.05fr 1fr; } }
.band__media { position: relative; }
.band__media::before {
  content: ''; position: absolute; inset: 8% -6% -8% 8%; border-radius: var(--radius-lg); background: var(--accent-soft); z-index: -1;
}
.band__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.band .prose { color: var(--ink-2); }
.band .prose h1, .band .prose h2, .band .prose h3 { margin-top: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem); }

/* call to action band (above footer) */
.cta { padding-block: 0 var(--section); }
.cta__box {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px);
  background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 60%, #3a2a1f 100%); color: #fff;
  display: grid; gap: 1.5rem 3rem; align-items: center;
}
@media (min-width: 900px) { .cta__box { grid-template-columns: minmax(0, 1fr) auto; } }
.cta__box::before {
  content: ''; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,138,36,.55), rgba(240,138,36,0) 70%); pointer-events: none;
}
.cta__box h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); }
.cta__box p { margin: .6rem 0 0; color: rgba(255,255,255,.72); max-width: 56ch; }
.cta__box .btn-row { position: relative; }

/* ---------- category navigation (courses) ---------- */
.catnav { font-size: .95rem; }
.catnav__title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .75rem; }
.catnav a { display: block; padding: .5rem .9rem; border-radius: 10px; color: var(--ink-2); transition: color .2s, background .2s; }
.catnav a:hover { color: var(--ink); background: var(--soft); }
.catnav a.is-active { color: var(--accent-deep); font-weight: 600; background: var(--accent-soft); }
.catnav ul ul a { padding-left: 1.8rem; font-size: .9rem; }
.catnav details summary { list-style: none; cursor: pointer; }
.catnav details summary::-webkit-details-marker { display: none; }
@media (min-width: 1024px) {
  .catnav details summary { display: none; }
  .catnav details > * { display: block; }
  .catnav--sticky { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (max-width: 1023px) {
  .catnav details { border: 1px solid var(--line); border-radius: var(--radius); }
  .catnav details summary { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; font-weight: 600; }
  .catnav details summary svg { width: 1em; height: 1em; transition: transform .2s; }
  .catnav details[open] summary svg { transform: rotate(180deg); }
  .catnav details > ul { padding: 0 .75rem 1rem; }
  .catnav__title { display: none; }
}

/* ---------- tabs (news categories) ---------- */
.tabs { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; margin-bottom: clamp(24px, 4vw, 40px); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: .5rem 1.1rem; color: var(--ink-2); font-weight: 500; border-radius: var(--pill); background: var(--soft); white-space: nowrap; transition: background .2s, color .2s; }
.tabs a:hover { background: var(--soft-2); color: var(--ink); }
.tabs a.is-active { background: var(--ink); color: #fff; }

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; gap: .35rem; margin-top: clamp(32px, 5vw, 56px); }
.pager a, .pager span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .6rem;
  border-radius: var(--pill); border: 1px solid var(--line); font-size: .9rem; color: var(--ink-2);
}
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .is-disabled { opacity: .35; }
.pager svg { width: 1em; height: 1em; }

/* ---------- article / detail ---------- */
.article__hero img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-lg); }
.article__head { margin-bottom: clamp(20px, 3vw, 32px); }
.article__head .date { margin-bottom: .5rem; }
.article__actions { margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(20px, 3vw, 28px); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.trainer-row { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink-2); font-size: .95rem; }
.trainer-row .avatar { width: 36px; height: 36px; }
.trainer-row a { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent-2); }

/* trainer profile */
.profile { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 900px) { .profile { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .profile__media { position: sticky; top: calc(var(--header-h) + 24px); } }
.profile__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); background: var(--soft); box-shadow: var(--shadow); }
.profile__media .placeholder { width: 100%; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); background: var(--soft); }
.profile__role { color: var(--ink-3); margin: .35rem 0 1.25rem; }

/* gallery */
.masonry { columns: 3 240px; column-gap: 14px; }
.masonry a { display: block; margin-bottom: 14px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.masonry img { width: 100%; transition: transform .5s var(--ease), opacity .3s; }
.masonry a:hover img { transform: scale(1.03); opacity: .9; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
dialog.lightbox::backdrop { background: rgba(10,10,10,.92); }
.lightbox__inner { position: fixed; inset: 0; display: grid; place-items: center; padding: 56px 16px; }
.lightbox__inner img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox__btn { position: fixed; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); border-radius: 50%; }
.lightbox__btn:hover { background: rgba(255,255,255,.2); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .85rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: .75rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(240,138,36,.18); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__msg { display: none; padding: .75rem 1rem; border-radius: 12px; background: #fff3f2; color: #9b1c1c; font-size: .9rem; }
.form__msg.is-visible { display: block; }
dialog.modal { border: 0; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); max-width: 440px; width: calc(100vw - 32px); text-align: center; box-shadow: 0 40px 80px -30px rgba(0,0,0,.4); }
dialog.modal::backdrop { background: rgba(20,20,20,.55); }
dialog.modal svg { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 1rem; }
dialog.modal h3 { margin-bottom: .5rem; }
dialog.modal p { color: var(--ink-2); }

/* contact info */
.info dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); margin-top: 1.25rem; }
.info dt:first-child { margin-top: 0; }
.info dd { margin: .25rem 0 0; font-size: 1.05rem; }
.info dd a:hover { color: var(--accent-deep); }
.socials { display: flex; gap: .75rem; align-items: center; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; transition: border-color .2s, transform .2s, background .2s; }
.socials a:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.socials img { width: 18px; height: 18px; object-fit: contain; }
.map iframe { width: 100%; aspect-ratio: 16 / 6; min-height: 320px; border: 0; display: block; border-radius: var(--radius-lg); filter: grayscale(.3); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-ink); margin-top: var(--section); }
.cta + .site-footer, .section--soft + .site-footer, .no-gap + .site-footer { margin-top: 0; }
.site-footer a:hover { color: var(--accent-2); }
.site-footer__grid { display: grid; gap: 2rem; padding-block: clamp(44px, 6vw, 80px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer__brand img { height: 48px; width: auto; margin-bottom: 1rem; }
.site-footer__brand p { color: rgba(243,241,236,.65); font-size: .95rem; max-width: 34ch; }
.site-footer h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(243,241,236,.5); margin-bottom: 1rem; }
.site-footer li + li { margin-top: .55rem; }
.site-footer li a { color: rgba(243,241,236,.85); }
.site-footer .socials a { border-color: rgba(255,255,255,.16); background: transparent; }
.site-footer .socials a:hover { border-color: var(--accent); background: rgba(240,138,36,.15); }
.site-footer .socials img { filter: brightness(0) invert(1); }
.site-footer__qr { width: 96px; margin-top: 1rem; border-radius: 10px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.25rem; font-size: .85rem; color: rgba(243,241,236,.5); text-align: center; }
.site-footer__bottom p { margin: 0; }

/* ---------- cookie / pdpa ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; margin-inline: auto; max-width: 960px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1rem 1.25rem;
  background: var(--dark); color: var(--dark-ink); border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.cookie.is-hidden { display: none; }
.cookie__text { flex: 1 1 320px; font-size: .9rem; color: rgba(243,241,236,.85); }
.cookie__text * { margin: 0; color: inherit !important; font-size: inherit !important; font-family: inherit !important; }
.cookie__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 599px) {
  .cookie { left: 8px; right: 8px; bottom: 8px; padding: .8rem 1rem; gap: .75rem; }
  .cookie__text { font-size: .8rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 55; width: 46px; height: 46px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s, border-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }
.to-top:hover { border-color: var(--accent); color: var(--accent-deep); }
body:has(.cookie:not(.is-hidden)) .to-top { bottom: 110px; }

/* ---------- reveal on scroll (only when JS runs: html.js) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: .08s; }
html.js .reveal[data-delay="2"] { transition-delay: .16s; }
html.js .reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- misc ---------- */
.empty { padding: 3rem 0; text-align: center; color: var(--ink-3); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .cookie, .to-top, .article__actions, .cta { display: none !important; }
}
