:root {
  --navy: #0b2e6f;
  --blue: #1648a8;
  --sky: #e9f0fc;
  --gold: #f5b914;
  --gold-soft: #fff4d1;
  --red: #c8322b;
  --ink: #16213a;
  --muted: #5a6479;
  --line: #dfe5f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 46, 111, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; color: var(--navy); text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { border-radius: 50%; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand b { font-size: 1.05rem; }
.brand small { font-size: .74rem; color: var(--muted); }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
}
.site-nav a:hover { background: var(--sky); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--sky); font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background .15s; font-size: 1rem;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #ffc933; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }

/* hero */
.hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(245, 185, 20, .25), transparent 40%),
    linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff; padding: 64px 0 40px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-size: .88rem; font-weight: 600; letter-spacing: .02em; color: var(--blue); margin-bottom: .5em; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
.hero h1 span { display: block; color: var(--gold); }
.lead { font-size: 1.15rem; }
.hero .lead { color: #dbe6ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.yt {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  aspect-ratio: 16 / 9; background: #000;
}
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.yt:hover img { transform: scale(1.03); }
.yt-play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  background: rgba(200, 50, 43, .92); box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.yt-play::after {
  content: ""; position: absolute; left: 30px; top: 22px;
  border-left: 24px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.programmes {
  list-style: none; padding: 0; margin-top: 48px; display: grid;
  grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.programmes li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  font-size: .9rem; color: #dbe6ff;
}
.programmes img { width: 96px; height: 96px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.section-head p:last-child { color: var(--muted); }
.sub { font-size: 1.2rem; margin: 40px 0 16px; padding-left: 14px; border-left: 4px solid var(--gold); }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.facts li {
  background: var(--sky); border-radius: var(--radius); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.facts b { font-size: 2.1rem; color: var(--navy); line-height: 1.1; }
.facts span { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* activity cards */
.filters { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.chip {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card[hidden] { display: none; }
.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card-media { aspect-ratio: 424 / 600; background: var(--sky); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; }
.card-body h3 { font-size: 1.02rem; margin-bottom: .4em; color: var(--ink); }
.card-meta { font-size: .85rem; color: var(--muted); margin-bottom: .5em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-summary { font-size: .92rem; color: var(--muted); margin: 0; line-height: 1.6; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: .78rem; }
.tag-en { background: var(--sky); color: var(--blue); }
.tag-zh { background: #fde8e6; color: var(--red); }

/* galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-2 { grid-template-columns: 1fr 1fr; }
.gallery-photos { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.zoom { display: block; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); cursor: zoom-in; }
.zoom img { width: 100%; transition: transform .3s; }
.gallery-photos .zoom img { aspect-ratio: 4 / 3; object-fit: cover; }
.zoom:hover img { transform: scale(1.03); }
.cert-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; }

/* inner pages */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 48px 0 40px; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 900px; }
.page-hero .lead { color: #dbe6ff; }
.page-hero .card-meta { color: #dbe6ff; }
.crumbs { font-size: .9rem; color: #bcd0f5; margin-bottom: 12px; }
.crumbs a { color: #fff; }
.post-grid { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 48px; align-items: start; }
.poster { position: sticky; top: 90px; }
.prose { max-width: 720px; }
.prose p { font-size: 1.05rem; }
.note { background: var(--gold-soft); border-radius: 12px; padding: 14px 18px; font-size: .98rem !important; }
.history-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.history-photo { position: sticky; top: 90px; }

/* footer */
.site-footer { background: var(--navy); color: #fff; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.site-footer h2 { color: #fff; font-size: 1.2rem; }
.brand-light { color: #fff; margin-bottom: 16px; }
.brand-light small { color: #bcd0f5; }
.muted { color: #bcd0f5; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 20px; font-size: .88rem; color: #bcd0f5; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(6, 17, 43, .88); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; }
.lightbox-close {
  position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer;
}

/* responsive */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .cert-grid, .post-grid, .history-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .programmes { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .poster, .history-photo { position: static; max-width: 460px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand small { display: none; }
  .programmes { grid-template-columns: repeat(2, 1fr); }
  .programmes img { width: 80px; height: 80px; }
  .gallery-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px; }
  .card-summary { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
