/* ==========================================================================
   Master Chef Training Institute, Cumilla
   Design system — gold + charcoal, single typeface, 8px spacing grid
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* Brand — taken from the logo: gold on black */
  --gold: #ddb748;
  --gold-deep: #846200;   /* 4.5:1+ on white, cream and gold-soft */
  --gold-soft: #f6ecd0;
  --gold-hover: #c9a63a;

  --ink: #121212;
  --ink-800: #1f1f1f;
  --ink-600: #3d3d3d;
  --body: #4a4a4a;
  --muted: #6b6b6b;       /* 4.5:1+ on white, cream and gold-soft */

  --cream: #faf7f0;
  --line: #e7e2d6;
  --white: #ffffff;

  /* Type scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.1875rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;
  --fs-2xl: 2.25rem;
  --fs-3xl: 2.875rem;

  /* Spacing — 8px grid */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 3.5rem;
  --s-7: 4.5rem;

  /* One radius. Pills for buttons only. */
  --radius: 12px;
  --radius-lg: 20px;
  --pill: 999px;

  /* Motion. Entering eases out, exiting eases in and runs shorter — nobody
     wants to wait to dismiss something. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --dur-fast: 120ms;   /* hover, focus, colour */
  --dur: 200ms;        /* small elements entering or leaving */
  --dur-slow: 320ms;   /* larger surfaces */

  --shadow-sm: 0 1px 2px rgba(18, 18, 18, 0.06), 0 4px 12px rgba(18, 18, 18, 0.05);
  --shadow-md: 0 2px 4px rgba(18, 18, 18, 0.06), 0 12px 32px rgba(18, 18, 18, 0.09);

  /* Inner frames — every narrow block picks one of these three, so blocks in
     different sections line up with each other instead of each choosing its
     own max-width. */
  --frame-text: 42rem;   /* one column of prose, comfortable measure */
  --frame-mid:  54rem;   /* lists, forms, stacked pairs */
  --frame-wide: 60rem;   /* two-up grids inside a section */

  --wrap: 1160px;
  --header-h: 88px;   /* 64px pill + 12px padding top and bottom */
}

/* --- Reset -------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

/* Display face for the home hero headline. Latin only (OFL, licence in
   assets/fonts/), so Bangla text never triggers the download and falls
   through to Hind Siliguri. */
@font-face {
  font-family: "Staatliches";
  src: url("../fonts/staatliches-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+2013-2014, U+2018-2019, U+201C-201D;
}

/* Body face, self-hosted (OFL, licence in assets/fonts/) so pages make no
   request to Google. Bengali and Latin subsets, three weights. */
@font-face {
  font-family: "Hind Siliguri";
  src: url("../fonts/hind-siliguri-bengali-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Hind Siliguri";
  src: url("../fonts/hind-siliguri-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hind Siliguri";
  src: url("../fonts/hind-siliguri-bengali-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Hind Siliguri";
  src: url("../fonts/hind-siliguri-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hind Siliguri";
  src: url("../fonts/hind-siliguri-bengali-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: "Hind Siliguri";
  src: url("../fonts/hind-siliguri-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
  margin: 0;
  font-family: "Hind Siliguri", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--s-2);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--s-2); }

ul, ol { margin: 0 0 var(--s-2); padding-inline-start: 1.4em; }
li { margin-bottom: 0.35em; }

/* Deep gold reads on light surfaces (gold is under 2:1 on white); the dark
   bands keep the bright gold. */
:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

.topbar :focus-visible,
.hero :focus-visible,
.page-head :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold); }

/* Brand selection colour, not Chrome blue. */
::selection {
  background: var(--gold);
  color: var(--ink);
}

/* --- Layout ------------------------------------------------------------- */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: var(--s-7);
}

.section--tight { padding-block: var(--s-6); }
.section--cream { background: var(--cream); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: var(--s-1) var(--s-2);
  z-index: 200;
}

.skip-link:focus {
  left: var(--s-2);
  top: var(--s-1);
}

/* --- Section heading ---------------------------------------------------- */

.eyebrow {
  display: inline-block;
  margin-bottom: var(--s-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section-head {
  max-width: var(--frame-mid);
  margin-bottom: var(--s-4);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  max-width: var(--frame-text);
  margin-bottom: 0;
  font-size: var(--fs-md);
  color: var(--muted);
}

.section-head--center p { margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  white-space: nowrap;
  padding: 0.75em 1.75em;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.btn--primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--ghost:hover { background: var(--ink); color: var(--white); }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn--ghost-light:hover { background: var(--white); color: var(--ink); }

.btn--block { width: 100%; }

@media (max-width: 1150px) {
  .btn--quiet { padding: 0.6em; }
  .btn--quiet .btn__label { display: none; }
  .nav__list { gap: var(--s-2); }
}

/* Secondary header action — present but quieter than Enrol. */
.btn--quiet {
  padding: 0.6em 1.1em;
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
}

.btn--quiet:hover {
  border-color: var(--gold);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn--quiet svg { color: var(--gold); flex: none; }

/* --- Header ------------------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-xs);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 40px;
}

.topbar a { color: rgba(255, 255, 255, 0.72); }
.topbar a:hover { color: var(--gold); text-decoration: none; }

.topbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar__list li { display: flex; align-items: center; gap: 0.4em; margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 0.75rem;
  background: transparent;
  margin-bottom: calc(-1 * var(--header-h));
}

/* The bar itself is the pill, not the full-width strip — so the hero runs
   unbroken behind it instead of being cut by a white band. */
.site-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 64px;
  padding-inline: var(--s-3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--pill);
  background: rgba(14, 14, 15, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
}

.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; }

.brand__name {
  display: block;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}

.brand__sub {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}

.nav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--s-1);   /* links carry their own padding; leaves room for the student icon */
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list li { margin: 0; }

.nav__list a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--pill);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

.nav__list a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav__list a[aria-current="page"] {
  color: var(--gold);
  background: rgba(221, 183, 72, 0.12);
}

.header__cta { display: flex; flex: none; align-items: center; gap: var(--s-2); }

/* The brand is the only thing allowed to shrink. */
.brand { min-width: 0; }
.brand span { min-width: 0; }
.brand__name, .brand__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--pill);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle svg { margin-inline: auto; }

/* The header overlaps the first block, so that block pads itself clear. */
main > .hero .hero__inner { padding-top: calc(var(--s-7) + var(--header-h)); }
main > .page-head { padding-top: calc(var(--s-6) + var(--header-h)); }
main > .section:first-child { padding-top: calc(var(--s-7) + var(--header-h)); }

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

/* The header overlaps the first block, so that block pads itself clear. */
main > .hero .hero__inner { padding-top: calc(var(--s-7) + var(--header-h)); }
main > .page-head { padding-top: calc(var(--s-6) + var(--header-h)); }
main > .section:first-child { padding-top: calc(var(--s-7) + var(--header-h)); }

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 80% 20%, rgba(221, 183, 72, 0.16), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-6);
  /* Both columns start on the same line — centring the panel left its top and
     bottom edges lining up with nothing. */
  align-items: start;
  padding-block: var(--s-7) calc(var(--s-7) + 5rem);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  margin-bottom: var(--s-3);
}

/* Condensed caps face: set larger and tighter to carry the same weight. */
html[lang="en"] .hero h1 {
  font-family: "Staatliches", "Hind Siliguri", sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.hero__lead {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.72);
  max-width: var(--frame-text);
  margin-bottom: var(--s-4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.66);
}

.hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 0;
}

.hero__badges svg { color: var(--gold); flex: none; }

/* Hero side panel — replaces the photo that used to sit here. */
.hero__panel {
  padding: var(--s-4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06),
                              rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(6px);
}

.hero__panel-eyebrow {
  margin-bottom: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__panel-text {
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.68);
}

.hero__facts {
  display: grid;
  gap: 0;
  margin: 0 0 var(--s-3);
}

.hero__facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  padding-block: 0.7em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__facts dt {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
}

.hero__facts dd {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--white);
  text-align: end;
}

/* --- Page header (inner pages) ------------------------------------------ */

.page-head {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding-block: var(--s-6);
}

.page-head h1 { color: var(--white); margin-bottom: var(--s-1); }

.page-head p {
  max-width: var(--frame-text);
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-md);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0 0 var(--s-2);
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb li { margin: 0; }
.breadcrumb a { color: rgba(255, 255, 255, 0.68); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 0.5em; opacity: 0.5; }

/* --- Grids -------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--s-3);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* --- Feature cards ------------------------------------------------------ */

.feature {
  padding: var(--s-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.feature:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s-2);
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.feature h3 { font-size: var(--fs-md); margin-bottom: 0.35rem; }
.feature p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* Course rows that don't divide evenly by three: a flex row so the last
   card centres under the others instead of hanging off to one side. */
.course-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}

/* Same card width as the catalogue's three-column grid, so a course looks
   identical on the homepage and on /courses. flex-grow is 0 so the odd card
   out keeps that width instead of stretching to fill its row. */
.course-row > .course-card {
  flex: 0 1 calc((100% - 2 * var(--s-3)) / 3);
  min-width: 0;
}

@media (max-width: 1080px) {
  /* Two across on tablets — four would be too narrow to read. */
  .course-row > .course-card { flex-basis: calc((100% - var(--s-3)) / 2); }
}

@media (max-width: 700px) {
  .course-row > .course-card { flex-basis: 100%; }
}

/* --- Course cards ------------------------------------------------------- */

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.course-card:active { transform: translateY(-6px) scale(0.995); }

.course-card:hover {
  transform: translateY(-10px);
  border-color: rgba(221, 183, 72, 0.55);
  box-shadow: var(--shadow-md);
}

/* Fixed media height — every card in a row lines up regardless of how the
   source photo is cropped. */
.course-card__media {
  position: relative;
  display: block;
  height: 260px;
  background: var(--ink-800);
  overflow: hidden;
}

.course-card__media:hover { text-decoration: none; }

/* The still sits underneath; a slow push-in on hover while the video loads. */
.course-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.course-card:hover .course-card__img { transform: scale(1.04); }

/* Preview video fades in over the still on hover (desktop) or when the card
   scrolls into view (mobile). */
.course-card__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  pointer-events: none;
}

.course-card__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}

.course-card__media.is-playing .course-card__video { opacity: 1; }

.course-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.35) 0%,
                              rgba(18, 18, 18, 0.05) 45%, rgba(18, 18, 18, 0.55) 100%);
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}

.course-card:hover .course-card__scrim { opacity: 0.7; }

/* Tags moved into the card body now that there is no image to sit on. */
/* One line of chips. A long category truncates rather than wrapping and
   pushing the whole card down. */
.course-card__tags {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.35rem;
  margin-bottom: var(--s-2);
  min-height: calc(2 * 1.7em + 0.35rem);
}

.course-card__pill,
.course-card__flag {
  padding: 0.25em 0.85em;
  border-radius: var(--pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.course-card__pill { background: var(--gold-soft); color: var(--gold-deep); }
.course-card__flag { background: var(--ink); color: var(--gold); }

/* A fixed row track, so tags / title / facts / link sit at the same height in
   every card no matter how long the title or summary runs. The summary row is
   the only flexible one. */
.course-card__body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  flex: 1;
  padding: var(--s-3);
}

.course-card__head { margin-bottom: var(--s-2); }

.course-card__head .price { display: block; margin-top: 0.35rem; }

/* Short modules use a meta row instead of a head row — same treatment. */

.tutor-card__body { min-width: 0; }

/* Two lines of title in every card, so the price and the rule below line up
   whether the name is short or long. */
.course-card__body h3 {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.35;
  min-height: calc(2 * 1.35em);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card__body h3 a { color: var(--ink); }

.course-card:hover .course-card__body h3 a { color: var(--gold-deep); }

.course-card__body h3 a:hover { text-decoration: none; }

/* Summaries clamp to four lines so cards can't grow to wildly different
   heights on the strength of one long description. */
.course-card__body > p {
  margin-bottom: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  flex: none;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1.2;
  white-space: nowrap;
}

.price small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--muted);
}

.course-card__link {
  align-self: end;
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gold-deep);
}

/* --- Split (image + text) ----------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: center;
}

/* A split whose media half was removed becomes one readable column. */
.split > div:only-child {
  grid-column: 1 / -1;
  max-width: var(--frame-mid);
}

.checklist {
  margin: 0 0 var(--s-3);
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-inline-start: 2rem;
  margin-bottom: var(--s-1);
}

.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 18px;
  height: 18px;
  border-radius: var(--pill);
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23846200' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* --- Moving image strip -------------------------------------------------
   The track holds the photo set twice and slides to -50%, so the reset is
   invisible. Full-bleed, with the edges faded out so it reads as a strip
   passing through rather than a row that stops.                          */

.marquee-section { overflow: hidden; }

.marquee {
  --marquee-gap: var(--s-2);
  --marquee-speed: 52s;
  --card-w: 240px;
  --card-h: 300px;
  position: relative;
  display: grid;
  gap: var(--marquee-gap);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee__track {
  display: flex;
  gap: var(--marquee-gap);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee-slide var(--marquee-speed) linear infinite;
}

/* The second row runs the other way. */
.marquee__track--reverse { animation-direction: reverse; }

.m-card {
  position: relative;
  flex: none;
  width: var(--card-w);
  height: var(--card-h);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-800);
}

.m-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.m-card:hover img { transform: scale(1.05); }

.m-card__caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--s-4) var(--s-2) var(--s-2);
  background: linear-gradient(180deg, transparent, rgba(18, 18, 18, 0.88));
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
}

.m-card__caption:empty { display: none; }

/* Pausing on hover lets someone actually look at a photo. */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@keyframes marquee-slide {
  from { transform: translate3d(0, 0, 0); }
  /* Half the track is exactly one copy of the set, plus the gap that follows it. */
  to   { transform: translate3d(calc(-50% - (var(--marquee-gap) / 2)), 0, 0); }
}

/* Less motion: the rows stop and become normal scrollable strips. */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .marquee__track {
    animation: none;
    width: 100%;
    overflow-x: auto;
  }
  .marquee__track li[aria-hidden="true"] { display: none; }
}

@media (max-width: 700px) {
  .marquee { --card-w: 165px; --card-h: 215px; --marquee-speed: 38s; }
}

/* Staff groups on the instructors page. */
.staff-group + .staff-group { margin-top: var(--s-5); }

.staff-group__title {
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-1);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-md);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* --- Blog cards --------------------------------------------------------- */

.post-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.post-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* Cover picture, edge to edge across the top of the card. */
.post-card__media {
  display: block;
  margin: calc(-1 * var(--s-3)) calc(-1 * var(--s-3)) var(--s-2);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--cream);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur) var(--ease-out);
}

.post-card:hover .post-card__media img { transform: scale(1.03); }

.post-card__date {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: var(--s-1);
}

.post-card h3 { font-size: var(--fs-md); margin-bottom: var(--s-1); }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--gold-deep); text-decoration: none; }

.post-card p {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--s-2);
}

.post-card__more {
  margin-top: auto;
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* --- Article ------------------------------------------------------------ */

.article {
  max-width: var(--frame-text);
  margin-inline: auto;
}

.article h2 { font-size: var(--fs-xl); margin-top: var(--s-4); }
.article h3 { font-size: var(--fs-lg); margin-top: var(--s-3); }
.article ul { padding-inline-start: 1.2em; }
.article figure { margin: var(--s-4) 0; }
.article figure img { border-radius: var(--radius); }
.article__cover { margin-top: 0; }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article figcaption {
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  color: var(--muted);
  text-align: center;
}

.pull {
  margin: var(--s-4) 0;
  padding: var(--s-3);
  border-inline-start: 4px solid var(--gold);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-md);
  color: var(--ink-600);
}

.pull p:last-child { margin-bottom: 0; }

/* --- Syllabus ----------------------------------------------------------- */

.syllabus {
  counter-reset: lesson;
  margin: 0;
  padding: 0;
  list-style: none;
}

.syllabus li {
  counter-increment: lesson;
  position: relative;
  padding: var(--s-2) var(--s-2) var(--s-2) 3.5rem;
  margin-bottom: var(--s-1);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 400;
  color: var(--ink-600);
}

.syllabus li::before {
  content: counter(lesson, decimal);
  position: absolute;
  inset-inline-start: var(--s-2);
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* --- Enrol sidebar ------------------------------------------------------ */

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--s-5);
  align-items: start;
}

.enrol-card {
  position: sticky;
  top: calc(var(--header-h) + var(--s-2));
  padding: var(--s-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.enrol-card__price {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.enrol-card__price small {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--muted);
}

.spec-list {
  margin: var(--s-3) 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding-block: 0.6em;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.spec-list li:last-child { border-bottom: 0; }
.spec-list dt, .spec-list span:first-child { color: var(--muted); }
.spec-list strong { color: var(--ink); font-weight: 600; text-align: end; }

/* --- Form --------------------------------------------------------------- */

.form { display: grid; gap: var(--s-2); }

.field { display: grid; gap: 0.35rem; }

.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(221, 183, 72, 0.35);
  outline-offset: 0;
}

.field textarea { min-height: 120px; resize: vertical; }

.form__note {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin: 0;
}

/* --- Contact tiles ------------------------------------------------------ */

.info-tile {
  padding: var(--s-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-tile h3 { font-size: var(--fs-md); }
.info-tile p { margin-bottom: 0; font-size: var(--fs-sm); }

.map-embed {
  border: 0;
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  display: block;
}

/* --- CTA band ----------------------------------------------------------- */

.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, #241f10 100%);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  padding-block: var(--s-6);
}

.cta-band h2 { color: var(--white); }

.cta-band p {
  max-width: var(--frame-text);
  margin-inline: auto;
  margin-bottom: var(--s-3);
  color: rgba(255, 255, 255, 0.72);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: center;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.66);
  padding-block: var(--s-6) var(--s-3);
  font-size: var(--fs-sm);
}

.site-footer h4 {
  color: var(--white);
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}

.site-footer a { color: rgba(255, 255, 255, 0.66); }
.site-footer a:hover { color: var(--gold); text-decoration: none; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-4);
}

.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin-bottom: 0.5em; }

.footer__more { color: var(--gold); font-weight: 600; }

.footer__brand img { width: 56px; height: 56px; margin-bottom: var(--s-2); }

.social {
  display: flex;
  gap: var(--s-1);
  margin-top: var(--s-2);
}

.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--pill);
  color: rgba(255, 255, 255, 0.7);
}

.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* --- Floating WhatsApp -------------------------------------------------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--pill);
  background: #25d366;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.wa-float:hover { text-decoration: none; transform: scale(1.05); }
.wa-float:active { transform: scale(0.97); }

/* A single inner frame width, so every narrow block on the site lines up
   with every other one instead of each picking its own max-width. */
.frame {
  max-width: var(--frame-mid);
  margin-inline: auto;
}

/* --- Utilities ---------------------------------------------------------- */

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: var(--s-3); }
.mb-5 { margin-bottom: var(--s-5); }
.lead { font-size: var(--fs-md); color: var(--ink-600); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Hero search -------------------------------------------------------- */

.hero__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: var(--frame-text);
  margin-bottom: var(--s-3);
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--pill);
  color: rgba(255, 255, 255, 0.6);
}

.hero__search:focus-within {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}

.hero__search input {
  flex: 1;
  min-width: 0;
  padding: 0.5em 0;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--white);
  background: none;
  border: 0;
}

.hero__search input::placeholder { color: rgba(255, 255, 255, 0.45); }
.hero__search input:focus { outline: none; }
.hero__search .btn { flex: none; }

/* --- Catalogue toolbar -------------------------------------------------- */

.catalogue-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}

.catalogue-bar--simple { border-bottom: 0; padding-bottom: 0; }

.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 15rem;
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--muted);
}

.search-box:focus-within { border-color: var(--gold); }

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 0.25em 0;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: none;
  border: 0;
}

.search-box input:focus { outline: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  padding: 0.45em 1.1em;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-600);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.chip:hover { border-color: var(--gold); }
.chip:active { transform: scale(0.97); }

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.sort-box select {
  padding: 0.6em 1em;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  cursor: pointer;
}

.result-count {
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-bottom: var(--s-2);
}

.empty-state {
  padding: var(--s-5) var(--s-3);
  text-align: center;
  color: var(--muted);
  background: var(--cream);
  border-radius: var(--radius);
}

.link-btn {
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--gold-deep);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}

/* --- Course card additions ---------------------------------------------- */

.course-card__facts {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.35rem 1rem;
  margin: 0 0 var(--s-2);
  padding: 0;
  list-style: none;
  min-height: calc(3 * 1.6em);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.course-card__facts li {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin: 0;
}

.course-card__facts svg { color: var(--gold-deep); flex: none; }

/* Length picker for a course offered in several durations — sits where the
   duration fact would, so the card keeps its row alignment. */
.duration-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--pill);
}

.duration-switch button {
  padding: 0.2em 0.8em;
  font: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--pill);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.duration-switch button:hover { color: var(--ink); }
.duration-switch button:active { transform: scale(0.97); }

.duration-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

/* --- Language switch ---------------------------------------------------- */

.topbar__group {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--pill);
}

.lang-switch a {
  padding: 0.2em 0.8em;
  border-radius: var(--pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.lang-switch a:hover { color: var(--gold); text-decoration: none; }

.lang-switch a.is-active {
  background: var(--gold);
  color: var(--ink);
}

/* --- Instructor cards --------------------------------------------------- */

.tutor-card {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.tutor-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* Initials instead of a portrait. */
/* Staff photo. Same box as the monogram, so cards with and without a
   photo line up in the same row. Anchored to the top so faces aren't cut. */
.tutor-card__photo {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center top;
  background: var(--cream);
}

.monogram {
  flex: none;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--gold);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.tutor-card h3 { font-size: var(--fs-md); margin-bottom: 0.15rem; }
.tutor-card h3 a { color: var(--ink); }
.tutor-card h3 a:hover { color: var(--gold-deep); text-decoration: none; }

.tutor-card__role {
  margin-bottom: var(--s-1);
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* --- Join band ---------------------------------------------------------- */

.join-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.join-band h2 { font-size: var(--fs-xl); }
.join-band p { color: var(--muted); }

.join-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-1);
}

.join-form .btn { grid-column: 1 / -1; }

.join-form input {
  width: 100%;
  padding: 0.7em 0.9em;
  font: inherit;
  font-size: var(--fs-sm);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* --- Certificate verification ------------------------------------------- */

.verify {
  max-width: var(--frame-text);
  margin-inline: auto;
  padding: var(--s-5) var(--s-4);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.verify__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s-2);
  border-radius: var(--pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.verify code {
  padding: 0.1em 0.45em;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 0.95em;
}

.verify__form {
  display: flex;
  gap: var(--s-1);
  margin-top: var(--s-3);
}

.verify__form input {
  flex: 1;
  min-width: 0;
  padding: 0.75em 1em;
  font: inherit;
  font-size: var(--fs-base);
  letter-spacing: 0.04em;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--pill);
}

.verify__form input:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(221, 183, 72, 0.3);
}

.verify__result {
  margin-top: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--radius);
  text-align: start;
}

.verify__result.is-valid {
  background: #f1f8f2;
  border: 1px solid #bcdcc2;
}

.verify__result.is-invalid {
  background: #fdf3f2;
  border: 1px solid #f0c8c4;
}

.verify__result h3 { font-size: var(--fs-md); margin-bottom: var(--s-1); }
.verify__photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 var(--s-2);
  border-radius: var(--radius);
}

.verify__download { margin-bottom: var(--s-2); }

.verify__result dl { display: grid; gap: 0.4rem; margin: 0; }

.verify__result dl > div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  font-size: var(--fs-sm);
}

.verify__result dt { color: var(--muted); }
.verify__result dd { margin: 0; font-weight: 600; color: var(--ink); text-align: end; }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1024px) {
  :root { --s-7: 4.5rem; }

  .hero__inner { grid-template-columns: 1fr; gap: var(--s-4); }
  .course-layout { grid-template-columns: 1fr; }
  /* Single column: fee and Apply come before the syllabus, not after it. */
  .enrol-card { position: static; order: -1; }
  .split { gap: var(--s-4); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  /* Anchored to the pill itself (its backdrop-filter makes it the containing
     block, so `fixed` would measure from the pill, not the viewport). */
  .site-header__inner { position: relative; }

  .nav {
    position: absolute;
    inset: calc(100% + var(--s-1)) 0 auto;
    display: none;
    padding: var(--s-2) var(--s-2) var(--s-3);
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }

  .nav[data-open="true"] { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav__list a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
  }

  .nav-toggle { display: grid; place-items: center; }
  .header__cta .btn--primary { display: none; }
  .btn--quiet { padding: 0.6em; }
  .btn--quiet .btn__label { display: none; }
  .topbar__inner { justify-content: center; }
  .hide-sm { display: none; }
}

@media (max-width: 700px) {
  :root { --s-6: 3rem; --s-7: 3.5rem; }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

  .split { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }

  .join-band { grid-template-columns: 1fr; padding: var(--s-3); }
  /* Photo stays beside the name on phones — stacking it left most of each
     card empty and doubled the scroll. */
  .tutor-card { gap: var(--s-2); }
  .tutor-card__photo, .monogram { width: 76px; height: 76px; }
  .monogram { font-size: var(--fs-lg); }

  /* Cards stack one per row here, so there's no neighbour to line up with —
     drop the space reserved for equal heights on desktop. */
  .course-card__tags,
  .course-card__body h3,
  .course-card__facts { min-height: 0; }
  .course-card__body { grid-template-rows: auto; }
  .course-card__link { margin-top: var(--s-1); }
  .verify { padding: var(--s-4) var(--s-2); }
  .verify__form { flex-direction: column; }
  .verify__form input { text-align: start; }
  /* Icon and input share the first row; the button takes the second.
     Forcing the input to full width had left the icon stranded alone. */
  .hero__search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem 0.5rem;
    border-radius: var(--radius);
    padding: 0.75rem 0.75rem 0.75rem 1rem;
  }
  .hero__search .btn { grid-column: 1 / -1; width: 100%; }
  .catalogue-bar { flex-direction: column; align-items: stretch; }
  .sort-box select { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .topbar, .wa-float, .cta-band, .site-footer { display: none; }
}

/* Long button labels wrap on narrow phones instead of overflowing. */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
}

/* --- Student area ------------------------------------------------------- */
/* A record, not a dashboard: the student's name leads, then ruled rows. */

.account { padding-block: var(--s-5); }

.account-login { max-width: 26rem; margin-inline: auto; }
.account-login h1 { font-size: var(--fs-2xl); margin-bottom: var(--s-1); }
.account-login .lead { color: var(--muted); margin-bottom: var(--s-3); }
.account-help { margin-top: var(--s-3); }

.account-notice {
  padding: 0.75rem var(--s-2);
  border-inline-start: 3px solid var(--gold);
  background: var(--cream);
  color: var(--ink);
  font-size: var(--fs-sm);
  margin-bottom: var(--s-3);
}
.account-notice--bad { border-inline-start-color: #9b1c1c; background: #fbeaea; color: #9b1c1c; }

.account-or {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-3) 0 var(--s-2);
  color: var(--muted);
  font-size: var(--fs-xs);
}
.account-or::before, .account-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75em 1em;
  border: 1px solid #dadce0;
  border-radius: var(--radius);
  background: var(--white);
  color: #1f1f1f;
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: var(--s-1);
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.google-btn:hover { background: #f8f9fa; border-color: #c4c7c5; text-decoration: none; color: #1f1f1f; }
.google-btn:active { transform: translateY(1px); }

.account-head { padding-bottom: var(--s-3); border-bottom: 2px solid var(--ink); }
.account-head__code { font-size: var(--fs-sm); color: var(--gold-deep); font-weight: 600; margin-bottom: var(--s-1); }
.account-head h1 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: var(--s-1); }
.account-head__meta { color: var(--muted); margin: 0; }

.account-part { margin-top: var(--s-5); max-width: 48rem; }
.account-part h2 { font-size: var(--fs-lg); margin-bottom: var(--s-1); }
.account-part--quiet .form__note { margin-top: var(--s-2); }

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding-block: var(--s-2);
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.ledger__row h3 { font-size: var(--fs-md); margin: 0 0 0.25rem; }
.ledger__row h3 a { color: var(--ink); }
.ledger__row h3 a:hover { color: var(--gold-deep); text-decoration: none; }
.ledger__row p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.ledger__row .btn { flex: none; }
.ledger__state { flex: none; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.ledger__state--completed { color: var(--gold-deep); }
.ledger__state--dropped { color: var(--muted); font-weight: 400; }
.ledger__empty { color: var(--muted); padding-block: var(--s-2); border-bottom: 1px solid var(--line); }

.account-google { max-width: 22rem; }
.account-actions { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-2); }
.account-actions form { margin: 0; }

@media (max-width: 560px) {
  .ledger__row { flex-direction: column; align-items: flex-start; }
}

/* --- Student icon in the header ------------------------------------------
   A quiet circle beside "Enroll"; once signed in it becomes the student's
   photo or initial. Its menu drops from the icon, in the header's charcoal. */

.me { position: relative; flex: none; }
.me__trigger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--pill);
  color: var(--white);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.me__trigger:hover { border-color: var(--gold); background: rgba(255, 255, 255, 0.06); text-decoration: none; color: var(--white); }
.me__trigger:active { transform: scale(0.96); }
.me__trigger svg { display: block; }
.me--in .me__trigger { border-color: transparent; padding: 0; }
.me--in .me__trigger:hover { box-shadow: 0 0 0 2px var(--gold); }

.me__face {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: var(--pill);
  object-fit: cover;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-md);
  line-height: 1;
}

.me__menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 40;
  width: 15.5rem;
  padding: var(--s-1);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transform-origin: top right;
  animation: me-in var(--dur) var(--ease-out);
}
@keyframes me-in { from { opacity: 0; transform: translateY(-4px) scale(0.97); } }
.me__menu a, .me__menu button {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-radius: 8px;
  background: none;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: var(--fs-sm);
  text-align: start;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.me__menu a:hover, .me__menu button:hover, .me__menu a:focus-visible, .me__menu button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  text-decoration: none;
}
.me__menu .me__primary { background: var(--gold); color: var(--ink); font-weight: 600; text-align: center; margin-bottom: 0.25rem; }
.me__menu .me__primary:hover { background: var(--gold-hover); color: var(--ink); }
.me__menu form { margin: 0.25rem 0 0; padding-top: 0.25rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.me__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.25rem;
  padding: 0.5rem 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 600;
  line-height: 1.3;
}
.me__who .me__face { flex: none; width: 2.25rem; height: 2.25rem; font-size: var(--fs-sm); }
.me__who span { min-width: 0; overflow-wrap: anywhere; }
.me__who small { display: block; font-weight: 400; font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.55); }

/* --- Sign-up and profile --------------------------------------------------- */

.account-switch { margin: var(--s-3) 0 0; text-align: center; color: var(--muted); }
.account-switch a { font-weight: 600; }
.account-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: var(--pill);
  object-fit: cover;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.avatar--lg { width: 5.5rem; height: 5.5rem; font-size: var(--fs-2xl); }

.account-head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.account-head > div { flex: 1; min-width: 12rem; }
.account-head__edit { flex: none; }

.account-back { margin-bottom: var(--s-2); font-size: var(--fs-sm); }
.account-title { font-size: var(--fs-2xl); padding-bottom: var(--s-3); margin-bottom: 0; border-bottom: 2px solid var(--ink); }
.account-setting {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
  max-width: var(--frame-mid);
}
.account-setting h2 { font-size: var(--fs-md); margin-bottom: 0.25rem; }
.account-setting > div:first-child p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.account-setting .form { max-width: 26rem; }
.account-setting input:disabled { background: var(--cream); color: var(--muted); }
.account-photo { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.account-photo form { margin: 0; }
.account-file { position: relative; cursor: pointer; }
.account-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.account-file:focus-within { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.account-linkbtn { border: 0; background: none; padding: 0; font: inherit; font-size: var(--fs-sm); color: var(--muted); text-decoration: underline; cursor: pointer; }
.account-linkbtn:hover { color: #9b1c1c; }

@media (max-width: 700px) {
  .account-setting { grid-template-columns: 1fr; gap: var(--s-2); }
}

.account-setting .form .btn { justify-self: start; }

.verify__locked { margin: 0 0 var(--s-2); font-size: var(--fs-sm); color: var(--muted); }
.ledger__actions { display: flex; flex: none; gap: var(--s-1); flex-wrap: wrap; }

/* Phones: one size for the three round header buttons, and room for the name. */
@media (max-width: 560px) {
  .site-header__inner { gap: var(--s-1); padding-inline: 0.75rem 0.5rem; min-height: 60px; }
  .brand { gap: 0.5rem; }
  .brand img { width: 40px; height: 40px; }
  .header__cta { gap: 0.375rem; }
  .header__cta .btn--quiet,
  .me__trigger,
  .nav-toggle { width: 40px; height: 40px; padding: 0; border-radius: var(--pill); }
  .header__cta .btn--quiet svg { width: 16px; height: 16px; }
}
@media (max-width: 420px) {
  .brand__sub { display: none; }
}
