:root {
  color-scheme: light;
  --navy: #102840;
  --deep: #0c2136;
  --blue: #163a5f;
  --gold: #f5cc77;
  --ink: #12263a;
  --muted: #495f74;
  --line: #dbe4ec;
  --paper: #f7f9fb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.75 Tahoma, "Leelawadee UI", system-ui, sans-serif;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #986407;
  outline-offset: 5px;
}
h1, h2, h3, p { margin-block: 0; }
h1, h2, h3 { line-height: 1.35; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.14rem, 2vw, 1.38rem); }
[id] { scroll-margin-top: 1.2rem; }

.wrap { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.skip {
  position: fixed;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: .5rem .9rem;
  background: white;
  transform: translateY(-180%);
}
.skip:focus { transform: none; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.nav {
  min-height: 4.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1.5rem;
}
.nav a { text-decoration: none; }
.brand {
  display: inline-flex;
  gap: .75rem;
  align-items: center;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.12rem;
}
.brand img { border-radius: .7rem; flex-shrink: 0; }
.nav nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.nav nav a:hover, .nav-link:hover { text-decoration: underline; }
.nav-link { font-weight: 700; }

.hero {
  background: radial-gradient(ellipse at 83% 4%, #22517a, var(--navy) 65%);
  color: white;
  padding-block: clamp(2.6rem, 6vw, 5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.6rem, 4vw, 3.6rem);
  align-items: center;
}
.eyebrow { margin-bottom: .9rem; font-weight: 700; color: var(--gold); }
.hero h1 {
  font-size: clamp(2rem, 4.25vw, 3.35rem);
  letter-spacing: -.025em;
}
.hero h1 span { display: block; }
.lead { margin-top: 1.15rem; max-width: 34rem; color: #e2edf8; }
.hero-free {
  display: flex;
  flex-wrap: wrap;
  column-gap: .85rem;
  margin-block: 1.3rem;
  align-items: baseline;
}
.hero-free strong { color: var(--gold); font-size: 1.22rem; }
.hero-free span { color: #f6f8fa; }
.hero-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #456584;
  box-shadow: 0 1.1rem 3.1rem #091b2b80;
}
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.15rem;
  border-radius: .6rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.button-gold { background: var(--gold); color: #1b2c3a; }
.button-gold:hover { background: #ffe1a0; }
.button-light { background: white; color: var(--navy); }
.button-light:hover { background: #edf4fa; }
.hero .button:focus-visible, .availability .button:focus-visible {
  outline-color: #fff;
}

.section { padding-block: clamp(2.8rem, 6vw, 5rem); }
.section h2 { margin-bottom: 1.5rem; }
.course-grid, .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.course {
  padding: 1.25rem 1.4rem;
  background: white;
  border: 1px solid var(--line);
  border-top: .22rem solid var(--blue);
  border-radius: .75rem;
}
.course-count {
  color: #805709;
  font-weight: 700;
  margin-bottom: .25rem;
}
.course h3 { margin-bottom: .4rem; }
.course-note { margin-top: 1rem; color: var(--muted); }
.preview { background: #eef3f8; }
.gallery figure {
  margin: 0;
  border-radius: .85rem;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
}
.gallery img { width: 100%; aspect-ratio: 16 / 9; }
.gallery figcaption { padding: 1.15rem 1.35rem 1.35rem; }
.gallery p { color: var(--muted); margin-top: .45rem; }

.faq { display: grid; grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr); gap: 1.5rem 3rem; }
.faq > div:first-child p { color: var(--muted); max-width: 27rem; }
details { border-bottom: 1px solid var(--line); padding: .8rem 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; color: var(--blue); font-weight: 700; padding-block: .3rem; }
details p { padding: .45rem 0 .3rem; color: var(--muted); }

.availability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: clamp(1.3rem, 4vw, 3rem);
  background: var(--deep);
  border-radius: .95rem;
  margin-bottom: 3.25rem;
  color: white;
}
.availability p { color: #e1ecf6; margin-top: .55rem; }
.site-footer { background: white; border-top: 1px solid var(--line); }
.footer, .footer > div { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.4rem; }
.footer { justify-content: space-between; padding-block: 1.35rem; }
.footer > a { color: var(--ink); font-weight: 700; text-decoration: none; }

.policy { max-width: 50rem; padding-block: clamp(2.35rem, 6vw, 4.75rem); }
.policy-heading { margin-bottom: 1.4rem; }
.policy-heading h1 { font-size: clamp(1.9rem, 4.3vw, 2.8rem); }
.policy-heading p { color: var(--muted); margin-top: .45rem; }
.policy-body {
  padding: clamp(1rem, 4vw, 2.4rem);
  border-radius: .85rem;
  border: 1px solid var(--line);
  background: white;
}
.policy-body section + section { margin-top: 1.55rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.policy-body h2 { font-size: clamp(1.12rem, 2.5vw, 1.42rem); }
.policy-body p { margin-top: .55rem; }

@media (max-width: 780px) {
  .nav nav { display: none; }
  .hero-grid, .faq { grid-template-columns: 1fr; }
  .hero-image { max-width: 38rem; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 1.75rem); }
  .nav { min-height: 4rem; flex-wrap: wrap; padding-block: .55rem; }
  .brand img { width: 2.4rem; height: 2.4rem; }
  .nav-link { font-size: .9rem; }
  .course-grid, .gallery { grid-template-columns: 1fr; }
  .availability { margin-bottom: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
