/*
 * SAT Teacher Istanbul
 *
 * Brand palette unchanged from the 2012 site — orange #f66425, blue #0eaaf6 /
 * #2c9dd4. What is modern here is the execution: a generous type scale, gradient
 * accents rather than flat fills, translucent layering, soft large radii, and
 * motion that responds to interaction instead of sitting still.
 */

:root {
  /* Brand — unchanged. */
  --orange:      #f66425;
  --orange-dark: #d94e13;
  --orange-lift: #ff8348;
  --orange-tint: #fff3ed;
  --blue:        #0eaaf6;
  --blue-deep:   #2c9dd4;
  --blue-tint:   #eaf7fe;

  --grad-warm: linear-gradient(135deg, #ff8348 0%, #f66425 55%, #e05416 100%);
  --grad-cool: linear-gradient(135deg, #35c0ff 0%, #0eaaf6 55%, #2c9dd4 100%);

  --ink:    #0f1922;
  --ink-2:  #3a4753;
  --ink-3:  #63707c;
  --ink-4:  #949fab;
  --line:   #e5eaef;
  --line-2: #f1f4f7;
  --surface:#ffffff;
  --ground: #f5f7fa;

  --wrap: 1200px;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --sh-1: 0 1px 2px rgba(15,25,34,.04), 0 2px 10px rgba(15,25,34,.04);
  --sh-2: 0 2px 8px rgba(15,25,34,.05), 0 14px 34px rgba(15,25,34,.07);
  --sh-3: 0 10px 24px rgba(15,25,34,.08), 0 30px 70px rgba(15,25,34,.12);
  --sh-warm: 0 8px 26px rgba(246,100,37,.30);

  --head: "Outfit", "Segoe UI", Arial, sans-serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;

  --ease:   cubic-bezier(.4, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font: 400 16.5px/1.72 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.025em;
}

a { color: var(--blue-deep); text-decoration: none; transition: color .16s var(--ease); }
a:hover { color: var(--orange); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--orange); color: #fff;
  padding: 13px 22px; border-radius: 0 0 var(--r-sm) 0;
  z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 0; top: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* Scroll reveal. Elements start shifted and fade in as they enter the viewport;
   without JS or with reduced motion they are simply visible. */
[data-reveal] { opacity: 0; transform: translateY(18px); }
.reveal-ready [data-reveal] { transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════ header ══ */

.topbar { background: var(--ink); color: #b6c2ce; font-size: 13.5px; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; min-height: 44px;
}
.topbar-claim { margin: 0; color: #8a97a4; }
.topbar-contact { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar-contact a { color: #e2e8ee; font-weight: 500; }
.topbar-contact a:hover { color: var(--orange-lift); }
.topbar-contact span { color: var(--orange); margin-right: 4px; }

.header { background: var(--surface); border-bottom: 1px solid var(--line-2); }
.header-inner {
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 20px;
}
.logo { flex: 0 0 auto; }
.logo img { max-width: 240px; max-height: 64px; width: auto; object-fit: contain; }
.logo-text {
  font-family: var(--head); font-size: 27px; font-weight: 700;
  color: var(--orange); letter-spacing: -.03em;
}

.header-claim {
  margin: 0; padding-left: 30px;
  border-left: 1px solid var(--line);
  color: var(--ink-3); font-size: 14.5px; line-height: 1.45;
  max-width: 430px;
}

.header-cta {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  background: var(--grad-warm); color: #fff;
  border-radius: 100px;
  font-weight: 600; font-size: 14.5px;
  box-shadow: var(--sh-warm);
  transition: transform .22s var(--spring), box-shadow .22s var(--ease), filter .22s var(--ease);
}
.header-cta::after { content: "→"; transition: transform .22s var(--spring); }
.header-cta:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(246,100,37,.40);
  filter: saturate(1.08);
}
.header-cta:hover::after { transform: translateX(4px); }

/* ══════════════════════════════════════════════════════ nav ══ */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 100, 37, .93);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, var(--sh-1);
}

.nav-toggle {
  display: none; align-items: center; gap: 12px;
  width: 100%; padding: 16px 26px;
  background: none; border: 0; color: #fff;
  font: 600 15px var(--body); text-align: left; cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block; width: 20px; height: 2px;
  background: #fff; border-radius: 2px; content: "";
  transition: transform .22s var(--ease);
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after  { position: absolute; top: 6px; }

.nav-list {
  display: flex; flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto; padding: 0 14px;
  list-style: none;
}
.nav-list > li { position: relative; }

.nav-list > li > a,
.has-sub-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 17px 18px;
  color: rgba(255,255,255,.94);
  font: 600 13.5px/1.2 var(--body);
  letter-spacing: .015em;
  background: none; border: 0; cursor: pointer;
  position: relative;
  transition: color .16s var(--ease);
}
.nav-list > li > a::after,
.has-sub-toggle::after {
  content: ""; position: absolute;
  left: 18px; right: 18px; bottom: 10px; height: 2px;
  background: #fff; border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .26s var(--spring);
}
.nav-list > li > a:hover, .has-sub-toggle:hover { color: #fff; }
.nav-list > li > a:hover::after,
.has-sub-toggle:hover::after,
.nav-list > li.is-current > a::after,
.nav-list > li.is-current .has-sub-toggle::after { transform: scaleX(1); }
.nav-list > li.is-current > a,
.nav-list > li.is-current .has-sub-toggle { color: #fff; }

.sub {
  position: absolute; top: 100%; left: 8px; z-index: 70;
  min-width: 280px;
  margin: 0; padding: 10px;
  list-style: none;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(8px);
  border-radius: var(--r);
  box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.98); transform-origin: top left;
  transition: opacity .18s var(--ease), transform .22s var(--spring), visibility .22s;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub,
.has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }

.sub a {
  display: block; padding: 11px 14px;
  border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; line-height: 1.35;
  transition: background .16s var(--ease), color .16s var(--ease), padding-left .16s var(--ease);
}
.sub a:hover { background: var(--orange-tint); color: var(--orange-dark); padding-left: 18px; }
.sub li.is-current a { background: var(--orange-tint); color: var(--orange-dark); font-weight: 600; }

/* ══════════════════════════════════════════════════ layout ══ */

.main { padding-bottom: 90px; }

.main > .page-title,
.main > .rich-text,
.main > .crumbs,
.main > .teacher-grid,
.main > .program-list,
.main > .empty,
.main > .contact,
.main > .map,
.main > p,
.main > .teacher-detail {
  max-width: var(--wrap);
  margin-left: auto; margin-right: auto;
  padding-left: 26px; padding-right: 26px;
}

.page-title {
  margin: 52px auto 10px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
}
.page-title::after {
  content: ""; display: block;
  width: 62px; height: 5px; margin-top: 18px;
  background: var(--grad-warm); border-radius: 4px;
}
.page-title + .rich-text,
.page-title + .teacher-grid,
.page-title + .program-list { margin-top: 30px; }

.section-heading { font-size: 23px; font-weight: 600; }

.crumbs { margin-top: 32px; margin-bottom: -16px; font-size: 13.5px; color: var(--ink-4); }
.crumbs a { color: var(--ink-3); }
.crumbs span { margin: 0 9px; color: var(--line); }

.empty { color: var(--ink-3); padding: 50px 0; text-align: center; }

/* ═════════════════════════════════════════════ rich content ══ */

.rich-text { font-size: 17px; line-height: 1.82; color: var(--ink-2); }
.rich-text > * { max-width: 76ch; }
.rich-text p { margin: 0 0 1.2em; }
.rich-text h2 { margin: 1.8em 0 .5em; font-size: 26px; }
.rich-text h3 { margin: 1.6em 0 .4em; font-size: 21px; }
.rich-text ul, .rich-text ol { padding-left: 1.35em; margin: 0 0 1.2em; }
.rich-text li { margin-bottom: .5em; }
.rich-text li::marker { color: var(--orange); }
.rich-text a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.rich-text strong { color: var(--ink); font-weight: 600; }

.rich-text img { border-radius: var(--r); box-shadow: var(--sh-2); margin: 1.5em 0; }
.content-image {
  float: left; max-width: 340px;
  margin: 4px 32px 22px 0;
  border-radius: var(--r); box-shadow: var(--sh-2);
}

.rich-text table {
  width: 100%; max-width: 100%; border-collapse: collapse;
  margin: 1.5em 0; font-size: 15.5px;
  background: var(--surface);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1);
}
.rich-text th, .rich-text td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line-2); }
.rich-text th { background: var(--ground); font-weight: 600; color: var(--ink); }
.rich-text tr:last-child td { border-bottom: 0; }

.rich-text blockquote {
  margin: 1.6em 0; padding: 6px 0 6px 24px;
  border-left: 4px solid var(--orange); border-radius: 2px;
  color: var(--ink-3); font-style: italic;
}

/* ══════════════════════════════════════════════════ slider ══ */

.slider { position: relative; background: var(--ink); overflow: hidden; }
.slides { margin: 0; padding: 0; list-style: none; }
.slide { display: none; position: relative; }
.slide.is-active { display: block; }
.slide.is-active img { animation: kenburns 14s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.06) } to { transform: scale(1) } }

.slide img { width: 100%; height: clamp(340px, 54vh, 540px); object-fit: cover; }

/* Two layers: a directional wash for text contrast, and a warm brand glow. */
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 8% 50%, rgba(246,100,37,.30) 0%, transparent 58%),
    linear-gradient(100deg, rgba(9,18,26,.86) 0%, rgba(9,18,26,.55) 44%, rgba(9,18,26,.06) 76%);
}

.slide-caption {
  position: absolute; z-index: 2; inset: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--wrap); padding: 0 26px;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  font-family: var(--head);
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 700; line-height: 1.08; letter-spacing: -.03em;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.slide-caption > * {
  max-width: 16ch;
  animation: rise .8s var(--ease) both .1s;
}
@keyframes rise { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: none } }

.slider-nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--spring);
}
.slider-nav:hover { background: rgba(255,255,255,.26); transform: translateY(-50%) scale(1.08); }
.slider-nav.prev { left: 24px; }
.slider-nav.next { right: 24px; }

.slider-dots { position: absolute; z-index: 3; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; }
.dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: background .2s var(--ease), width .28s var(--spring);
}
.dot.is-active { background: var(--orange-lift); width: 30px; border-radius: 5px; }

/* ══════════════════════════════════════════════ highlights ══ */

.highlights {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: var(--wrap); margin: -60px auto 0; padding: 0 26px;
  position: relative; z-index: 5;
}

.highlight {
  position: relative;
  display: flex; gap: 18px; align-items: flex-start;
  padding: 28px 26px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  overflow: hidden;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease);
}
/* Gradient rule along the top edge, rather than a flat border. */
.highlight::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-warm);
}
.highlight.tone-1::before, .highlight.tone-2::before { background: var(--grad-cool); }
.highlight:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }

.highlight-letter {
  flex: 0 0 auto; width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--orange-tint); color: var(--orange);
  border-radius: 14px;
  font: 700 20px var(--head);
  transition: transform .3s var(--spring);
}
.highlight.tone-1 .highlight-letter,
.highlight.tone-2 .highlight-letter { background: var(--blue-tint); color: var(--blue-deep); }
.highlight:hover .highlight-letter { transform: rotate(-6deg) scale(1.06); }

.highlight-title { margin: 3px 0 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.highlight-text  { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--ink-3); }
.highlight-text a { color: var(--ink-3); }
.highlight:hover .highlight-text a { color: var(--orange-dark); }

/* ════════════════════════════════════════════ home content ══ */

.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; max-width: var(--wrap); margin: 76px auto 0; padding: 0 26px;
}
.card {
  position: relative;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  transition: border-color .26s var(--ease), box-shadow .26s var(--ease), transform .26s var(--spring);
}
.card:hover { border-color: transparent; box-shadow: var(--sh-2); transform: translateY(-4px); }
.card-title { font-size: 19px; margin-bottom: 9px; }
.card:hover .card-title { color: var(--orange); }
.card-text  { font-size: 15px; color: var(--ink-3); margin: 0 0 16px; line-height: 1.68; }
.card-more  { font-size: 14.5px; font-weight: 600; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; }
.card-more::after { content: "→"; transition: transform .22s var(--spring); }
.card:hover .card-more::after { transform: translateX(5px); }

.strip { max-width: var(--wrap); margin: 88px auto 0; padding: 0 26px; }
.strip-title {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 700;
  margin-bottom: 32px; text-align: center;
}
.strip-title::after {
  content: ""; display: block; width: 56px; height: 5px;
  margin: 18px auto 0; background: var(--grad-warm); border-radius: 4px;
}

/* ════════════════════════════════════════════════ teachers ══ */

.teacher-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px; margin: 0; padding: 0; list-style: none;
}
.teacher-card { display: flex; }
.teacher-card a {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 32px 20px 26px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  color: inherit;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease), border-color .26s var(--ease);
}
.teacher-card a:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: transparent; color: inherit; }

.teacher-photo {
  width: 116px; height: 116px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--orange-tint);
  transition: box-shadow .3s var(--ease), transform .3s var(--spring);
}
.teacher-card a:hover .teacher-photo {
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--orange);
  transform: scale(1.04);
}

.teacher-name { font-size: 18.5px; font-weight: 600; color: var(--ink); margin: 0 0 7px; }
.teacher-card a:hover .teacher-name { color: var(--orange); }
.teacher-summary { font-size: 13.5px; line-height: 1.58; color: var(--ink-4); margin: 0; }

/* ══════════════════════════════════════════ teacher detail ══ */

.teacher-detail {
  display: grid; grid-template-columns: 320px 1fr;
  grid-template-areas: "aside body" "enquiry enquiry";
  gap: 44px; margin-top: 38px; align-items: start;
}
.teacher-aside {
  grid-area: aside; position: sticky; top: 90px;
  padding: 30px 26px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  text-align: center;
}
.teacher-body { grid-area: body; min-width: 0; }
.enquiry { grid-area: enquiry; }

.teacher-portrait {
  width: 168px; height: 168px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 7px var(--orange-tint);
}
.teacher-name-lg { font-size: 25px; font-weight: 700; margin-bottom: 18px; }

.teacher-facts {
  margin: 0 0 18px; padding: 18px 0 0;
  border-top: 1px solid var(--line-2);
  font-size: 14.5px; text-align: left;
}
.teacher-facts dt {
  color: var(--ink-4); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  margin-top: 13px;
}
.teacher-facts dt::after { content: none; }
.teacher-facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; }

.teacher-summary-block {
  padding-top: 18px; border-top: 1px solid var(--line-2);
  font-size: 14.5px; line-height: 1.68; color: var(--ink-3); text-align: left;
}

/* ════════════════════════════════════════════════ programs ══ */

.program-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.program-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .28s var(--ease), border-color .26s var(--ease), transform .28s var(--spring);
}
.program-card:hover { box-shadow: var(--sh-2); border-color: transparent; transform: translateY(-4px); }
.program-card a { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: center; padding: 22px; color: inherit; }
.program-card a:hover { color: inherit; }
.program-image { width: 100%; height: 180px; object-fit: cover; border-radius: var(--r); }
.program-title { font-size: 22px; margin-bottom: 9px; }
.program-card:hover .program-title { color: var(--orange); }
.program-excerpt { font-size: 15px; color: var(--ink-3); margin: 0 0 14px; line-height: 1.68; }
.program-more { font-size: 14.5px; font-weight: 600; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; }
.program-more::after { content: "→"; transition: transform .22s var(--spring); }
.program-card:hover .program-more::after { transform: translateX(5px); }

.program-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px; margin: 0; padding: 0; list-style: none;
}
.program-tile { display: flex; }
.program-tile a {
  flex: 1; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); overflow: hidden; color: inherit;
  transition: transform .3s var(--spring), box-shadow .3s var(--ease), border-color .26s var(--ease);
}
.program-tile a:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: transparent; color: inherit; }
.program-tile figure, .program-tile > a > img { margin: 0; overflow: hidden; }
.program-tile img { width: 100%; height: 184px; object-fit: cover; transition: transform .5s var(--ease); }
.program-tile a:hover img { transform: scale(1.05); }
.program-tile-title { font-size: 18px; margin: 20px 22px 8px; }
.program-tile a:hover .program-tile-title { color: var(--orange); }
.program-tile-text { font-size: 14px; color: var(--ink-4); margin: 0 22px 22px; line-height: 1.62; }

/* ═════════════════════════════════════════════════ contact ══ */

.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; margin-top: 38px; align-items: start; }
.contact-details, .contact-form {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 32px 30px; box-shadow: var(--sh-1);
}
.contact-list { margin: 0; font-size: 15.5px; }
.contact-list dt {
  color: var(--ink-4); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-top: 20px;
}
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: 4px 0 0; color: var(--ink); }

.map { margin-top: 38px; }
.map iframe {
  width: 100%; min-height: 400px; border: 0;
  border-radius: var(--r-lg); box-shadow: var(--sh-1); display: block;
}

/* ═══════════════════════════════════════════════════ forms ══ */

.enquiry {
  margin-top: 10px; padding: 34px 30px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.form { max-width: 640px; }
.form label { display: block; margin-bottom: 18px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.form input, .form textarea {
  display: block; width: 100%;
  margin-top: 7px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font: 15.5px var(--body); color: var(--ink); background: var(--surface);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.form input:focus, .form textarea:focus {
  border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(14,170,246,.14);
}
.form input::placeholder, .form textarea::placeholder { color: var(--ink-4); }
.form textarea { resize: vertical; min-height: 120px; }

.req { color: var(--orange); }
.form-note { font-size: 12.5px; color: var(--ink-4); margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 34px;
  background: var(--grad-warm); color: #fff;
  border: 0; border-radius: 100px;
  font: 600 15.5px var(--body); cursor: pointer;
  box-shadow: var(--sh-warm);
  transition: transform .22s var(--spring), box-shadow .22s var(--ease), filter .22s var(--ease);
}
.btn:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(246,100,37,.4); filter: saturate(1.08);
}

.alert { padding: 14px 18px; border-radius: var(--r-sm); font-size: 15px; margin: 0 0 20px; }
.alert-ok  { background: #e9f8ef; color: #17683a; border: 1px solid #b7e5c8; }
.alert-err { background: #fdeeec; color: #93281e; border: 1px solid #f5c5bf; }

/* ══════════════════════════════════════════════════ footer ══ */

.footer {
  margin-top: 90px;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(246,100,37,.14) 0%, transparent 55%),
    var(--ink);
  color: #97a5b1;
}
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; padding-top: 62px; padding-bottom: 50px; }
.footer-brand { font-family: var(--head); font-size: 21px; font-weight: 600; color: #fff; margin: 0 0 14px; letter-spacing: -.02em; }
.footer-text { font-size: 14.5px; line-height: 1.72; margin: 0; color: #8492a0; }

.footer-h {
  font-size: 11.5px; font-weight: 600; color: #fff;
  text-transform: uppercase; letter-spacing: .1em; margin: 0 0 18px;
}
.footer-list { list-style: none; margin: 0; padding: 0; font-size: 14.5px; line-height: 1.55; }
.footer-list li { margin-bottom: 11px; }
.footer-list a { color: #97a5b1; transition: color .16s var(--ease), padding-left .16s var(--ease); }
.footer-list a:hover { color: var(--orange-lift); padding-left: 4px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 20px; font-size: 13px; color: #71808d;
}
.footer-bottom-inner a { color: #71808d; }
.footer-bottom-inner a:hover { color: var(--orange-lift); }

/* ══════════════════════════════════════════════ responsive ══ */

@media (max-width: 1060px) {
  .teacher-detail { grid-template-columns: 270px 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 920px) {
  .header-claim { display: none; }
  .program-card a { grid-template-columns: 1fr; gap: 18px; }
  .program-image { height: 210px; }
  .contact { grid-template-columns: 1fr; gap: 26px; }
  .teacher-detail { grid-template-columns: 1fr; grid-template-areas: "aside" "body" "enquiry"; }
  .teacher-aside { position: static; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .topbar-inner { justify-content: center; text-align: center; padding-top: 9px; padding-bottom: 9px; }
  .topbar-claim { display: none; }
  .topbar-contact { gap: 18px; justify-content: center; font-size: 13px; }

  .header-inner { justify-content: space-between; gap: 14px; padding-top: 15px; padding-bottom: 15px; }
  .logo img { max-width: 172px; max-height: 48px; }
  .header-cta { padding: 11px 20px; font-size: 13.5px; }

  .nav { position: static; backdrop-filter: none; background: var(--orange); }
  .nav-toggle { display: flex; }
  .nav-list { display: none; flex-direction: column; padding: 0 0 8px; }
  .nav-list.is-open { display: flex; }
  .nav-list > li { width: 100%; border-top: 1px solid rgba(255,255,255,.16); }
  .nav-list > li > a, .has-sub-toggle { width: 100%; padding: 15px 26px; justify-content: space-between; }
  .nav-list > li > a::after, .has-sub-toggle::after { content: none; }
  .nav-list > li.is-current > a,
  .nav-list > li.is-current .has-sub-toggle { background: rgba(0,0,0,.12); }

  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none; border-radius: 0;
    background: rgba(0,0,0,.12); padding: 4px 0; backdrop-filter: none;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.is-open .sub { display: block; }
  .sub a { color: rgba(255,255,255,.9); padding: 12px 26px 12px 40px; border-radius: 0; }
  .sub a:hover, .sub li.is-current a { background: rgba(0,0,0,.16); color: #fff; padding-left: 40px; }

  .slide img { height: clamp(260px, 46vh, 340px); }
  .slide-caption { font-size: clamp(22px, 6.4vw, 30px); }
  .slide-caption > * { max-width: 100%; }
  .slider-nav { width: 38px; height: 38px; font-size: 19px; }
  .slider-nav.prev { left: 10px; }
  .slider-nav.next { right: 10px; }

  .highlights { margin-top: 26px; gap: 16px; }
  .cards { margin-top: 56px; }
  .strip { margin-top: 62px; }

  .content-image { float: none; max-width: 100%; margin: 0 0 22px; }
  .rich-text { font-size: 16.5px; }
  .rich-text > * { max-width: 100%; }

  .teacher-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 16px; }
  .teacher-photo { width: 94px; height: 94px; }
  .teacher-card a { padding: 22px 14px 20px; }

  .enquiry, .contact-details, .contact-form { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .slide.is-active img { animation: none; }
}
