/* Alongkorn Language School — brand palette carried over from the original site */
:root {
  --navy: #0f4c82;
  --navy-dark: #0a3a64;
  --footer: #19578d;
  --sky: #88c5e4;
  --sky-soft: #96c7e0;
  --sky-wash: #eaf4fa;
  --ink: #12222e;
  --ink-soft: #4a5f6f;
  --line: #d8e4ec;
  --white: #fff;
  --gold: #e0a30b;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(15, 76, 130, .08);
  --shadow-lg: 0 8px 28px rgba(15, 76, 130, .14);
  --wrap: 1180px;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 68px 0; }
.section--tint { background: var(--sky-wash); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section__head { max-width: 760px; margin-bottom: 36px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .6em;
}
.section--navy .eyebrow { color: var(--sky); }
.lede { font-size: 1.1rem; color: var(--ink-soft); }
.section--navy .lede { color: #d6e8f4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .18s, color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--gold); color: #2b1e00; border-color: var(--gold); }
.btn--primary:hover { background: #f2b41c; }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--sky-wash); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .65); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: var(--navy-dark); }
.btn--sm { padding: 8px 18px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
/* White masthead with the ALS logo, per the school's 2026 mockup. */
.masthead {
  background: var(--white);
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(15, 76, 130, .07);
}
.masthead .wrap {
  max-width: 1340px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 50px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: 8px 10px;
  border-radius: 7px;
  white-space: nowrap;
}
.nav a:hover { background: var(--sky-wash); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .lang-switch {
  border: 1.5px solid var(--line);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  margin-left: 6px;
}
.nav .btn { padding: 10px 18px; margin-left: 6px; color: var(--white); }
.nav .btn:hover { background: var(--navy-dark); color: var(--white); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 2px solid var(--line);
  color: var(--navy);
  border-radius: 7px;
  padding: 8px 13px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .40; }
.hero .wrap { position: relative; padding-top: 84px; padding-bottom: 84px; max-width: 900px; }
.hero h1 { margin-bottom: .4em; }
.hero p { font-size: 1.15rem; color: #e2f0f8; max-width: 46em; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.hero__badges li {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: .84rem;
  font-weight: 600;
}

.pagehead { background: var(--navy); color: var(--white); padding: 52px 0; }
.pagehead h1 { margin-bottom: .3em; }
.pagehead p { color: #d6e8f4; max-width: 62ch; margin: 0; font-size: 1.05rem; }

/* ---------- Stat strip ---------- */
.stats { background: var(--sky); }
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px 20px;
  padding-top: 30px;
  padding-bottom: 30px;
  text-align: center;
}
.stat__num { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; color: var(--navy-dark); line-height: 1.1; }
.stat__label { font-size: .84rem; font-weight: 600; color: #17435f; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
/* People cards carry long bios — hold them at two across so four never orphan one. */
.grid--people { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--navy); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--sky-wash);
  color: var(--navy);
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 14px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split--narrow { gap: 34px; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: #1a8a4a;
  font-weight: 800;
}
.section--navy .ticks li::before { color: var(--sky); }

/* ---------- Course / price cards ---------- */
.course-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.course-card > img { aspect-ratio: 16 / 10; object-fit: cover; }
.course-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.course-card__body > :last-child { margin-top: auto; }
.price-from { font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }
.price-from strong { font-size: 1.5rem; color: var(--navy); display: block; font-weight: 800; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 340px; background: var(--white); }
caption { text-align: left; padding: 16px 18px; font-weight: 700; color: var(--navy); background: var(--sky-wash); }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy); color: var(--white); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f7fbfd; }
td.price { font-weight: 800; color: var(--navy); white-space: nowrap; }
.table-note { font-size: .88rem; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 62px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
}
.section--navy .steps li::before { background: var(--sky); color: var(--navy-dark); }
.steps h3 { margin-bottom: .2em; }
.steps p { margin-bottom: 0; color: var(--ink-soft); }
.section--navy .steps p { color: #d6e8f4; }

/* ---------- People ---------- */
.person { text-align: center; }
.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.person__name { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.person__role { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: .6em; }
.person__bio { text-align: left; font-size: .94rem; }
.person__bio p:last-child { margin-bottom: 0; }
.qual { font-size: .9rem; background: var(--sky-wash); border-left: 3px solid var(--sky); padding: 10px 14px; border-radius: 0 6px 6px 0; text-align: left; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 16px; font-size: .96rem; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); }
.quote figcaption img { width: 42px; height: 42px; border-radius: 50%; flex: none; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 24, 38, .93);
  display: grid; place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 6px; object-fit: contain; }
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .15);
  color: var(--white);
  border: 0; cursor: pointer;
  font-size: 1.8rem; line-height: 1;
  width: 50px; height: 50px;
  border-radius: 50%;
}
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list dt, .contact-list .label {
  flex: none; width: 130px;
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-soft);
  padding-top: 3px;
}
.contact-list a { font-weight: 600; }
.map-embed { border: 0; width: 100%; height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); }

.cta-band { background: var(--sky-wash); border-top: 4px solid var(--sky); }
.cta-band .wrap { padding: 48px 20px; text-align: center; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer (section 11 of the mockup: contact, location, follow) ---------- */
.footer { background: linear-gradient(135deg, #0f4c82, #1a62b0); color: #d9e9f5; padding: 48px 0 24px; font-size: .93rem; }
.footer a { color: var(--white); }
.footer h2 { color: var(--white); font-size: 1.05rem; margin-bottom: 1em; }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1.2fr .9fr; gap: 36px; }
.footer__dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.footer__dl dt { font-weight: 700; color: #a9cde6; }
.footer__dl dd { margin: 0; }
.footer__map { border: 0; width: 100%; height: 170px; border-radius: var(--radius); background: #0a3a64; }
.footer__addr { margin: 10px 0 0; font-size: .88rem; }
.social { display: flex; gap: 12px; flex-wrap: wrap; }
.social__link {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--white); text-decoration: none;
  transition: transform .18s;
}
.social__link:hover { transform: translateY(-2px); }
.social__link--tiktok { background: #111; }
.social__link--facebook { background: #1877f2; }
.social__link--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.footer__bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .82rem; color: #a9cde6; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--white); color: var(--navy);
  padding: 12px 20px; z-index: 200; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Responsive ---------- */
/* Nine menu items plus the language switch need a wide screen; collapse earlier. */
@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    gap: 2px;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav .lang-switch { margin: 6px 0 0; text-align: center; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .masthead .wrap { position: relative; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  #follow { grid-column: span 2; }
}

@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .contact-list li { flex-direction: column; gap: 2px; }
  .contact-list .label { width: auto; }
  /* Prices are the point of these tables — fit them on a phone rather than scroll. */
  th, td { padding: 11px 10px; }
  caption { padding: 14px 10px; }
  thead th { font-size: .7rem; letter-spacing: .03em; }
}

/* ---------- Home: hero (mockup section 1) ---------- */
.home-hero {
  background:
    radial-gradient(ellipse at 85% 10%, rgba(136, 197, 228, .35), transparent 55%),
    linear-gradient(180deg, #f3f9fe 0%, #e3f0fa 100%);
  overflow: hidden;
}
.home-hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 92px;
}
.home-hero h1 { color: var(--navy); font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: .2em; }
.home-hero h1 span { display: block; font-size: .62em; color: var(--navy-dark); margin-top: .3em; }
.home-hero__lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 36em; }
.home-hero__img { border-radius: 22px; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 10.5; object-fit: cover; width: 100%; height: auto; }
.check-list { list-style: none; padding: 0; margin: 0 0 26px; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 9px; font-weight: 600; }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 800;
}
.btn-icon { display: inline-flex; align-items: center; gap: 8px; }
.btn-icon svg { flex: none; }

/* Feature strip that overlaps the bottom of the hero */
.features { margin-top: -56px; position: relative; z-index: 2; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 22px 10px;
}
.feature { text-align: center; padding: 6px 12px; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature svg { color: var(--navy); margin: 0 auto 10px; display: block; }
.feature strong { display: block; color: var(--navy); font-size: .92rem; line-height: 1.3; }
.feature span { display: block; font-size: .8rem; color: var(--ink-soft); line-height: 1.35; margin-top: 3px; }

/* Ornamental section title, as in the mockup */
.fancy-title { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: center; color: var(--navy); }
.fancy-title::before, .fancy-title::after { content: ""; height: 2px; width: min(110px, 14vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.fancy-title::after { transform: scaleX(-1); }

/* ---------- Course cards (mockup sections 2–6) ---------- */
.courses-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.c-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.c-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.c-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.c-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.c-card h3 { color: var(--navy); font-size: 1.04rem; display: flex; gap: 8px; align-items: center; margin-bottom: .45em; }
.c-card h3 svg { flex: none; color: var(--navy); }
.c-card p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 16px; }
.c-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Why ALS (mockup section 7) ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.why img { border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.why .check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.why .check-list li { font-weight: 500; }

/* ---------- Reviews (mockup section 8) ---------- */
.carousel { position: relative; }
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 18px) / 4);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
}
.carousel__track > * { scroll-snap-align: start; }
.carousel__btn {
  position: absolute; top: 42%;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--navy); color: var(--white);
  font-size: 1.3rem; line-height: 1;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.carousel__btn:hover { background: var(--navy-dark); }
.carousel__btn--prev { left: -22px; }
.carousel__btn--next { right: -22px; }
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin: 0;
  display: flex; flex-direction: column;
}
.review__who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 800; color: var(--navy); }
.review__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: grid; place-items: center;
  font-weight: 800; flex: none;
}
.review blockquote { margin: 0; font-size: .93rem; color: var(--ink); }
.carousel .review blockquote { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.reviews-grid { columns: 2 340px; column-gap: 22px; }
.reviews-grid .review { break-inside: avoid; margin-bottom: 22px; }

/* ---------- Videos (mockup section 9) ---------- */
.videos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.videos video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #0a3a64; box-shadow: var(--shadow); }

/* ---------- ALS in Krabi (mockup section 10) ---------- */
.krabi {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #1a62b0, #0f4c82);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.krabi__photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; min-height: 300px; }
.krabi__photos img { width: 100%; height: 100%; object-fit: cover; }
.krabi__photos img:first-child { grid-row: span 2; }
.krabi__text { padding: 32px; }
.krabi__text h2 { color: var(--white); }
.krabi__text p { color: #d6e8f4; }
.uses { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.uses li { font-size: .86rem; font-weight: 600; }
.uses svg { display: block; margin: 0 auto 8px; width: 46px; height: 46px; padding: 10px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%; }

/* ---------- Photo grid (about page) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
.photo-grid figcaption { font-size: .84rem; color: var(--ink-soft); margin-top: 6px; }

/* Posters and documents shown whole, never cropped */
.poster { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: auto; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none; font-weight: 700;
}
.doc-list a:hover { border-color: var(--navy); }
.doc-list small { display: block; font-weight: 400; color: var(--ink-soft); }
.doc-badge { flex: none; background: #c62828; color: var(--white); font-size: .7rem; font-weight: 800; padding: 6px 7px; border-radius: 5px; }

/* Long-form text pages (about, executive summary) */
.prose { max-width: 760px; }
.prose p { font-size: 1.04rem; }
.prose .lead { font-size: 1.2rem; color: var(--navy); font-weight: 600; }
.cv h3 { color: var(--navy); margin-top: 1.4em; }
.cv ul { padding-left: 20px; }

.pagehead--image { position: relative; overflow: hidden; }

/* Thai pages: a Thai-designed typeface and a little more line height for stacked vowels */
html[lang="th"] body { font-family: "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif; line-height: 1.75; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3 { line-height: 1.35; }
html[lang="th"] .eyebrow { letter-spacing: .04em; }

@media (max-width: 1100px) {
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
  .features__grid { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .feature:nth-child(3) { border-right: 0; }
  .carousel__track { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .videos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .home-hero .wrap { grid-template-columns: 1fr; padding-top: 36px; }
  .why, .krabi { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel__track { grid-auto-columns: calc((100% - 18px) / 2); }
  .carousel__btn--prev { left: -8px; }
  .carousel__btn--next { right: -8px; }
}
@media (max-width: 600px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature { border-right: 0; }
  .courses-grid { grid-template-columns: 1fr; }
  .why .check-list { grid-template-columns: 1fr; }
  .carousel__track { grid-auto-columns: 86%; }
  .carousel__btn { display: none; }
  .videos { grid-template-columns: repeat(2, 1fr); }
  .uses { grid-template-columns: repeat(2, 1fr); }
  .krabi__text { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  #follow { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
