/* ==========================================================================
   S.V Private ITI — Muzaffarnagar
   Palette taken from the ITI / Skill India emblem: orange, green, navy blue
   ========================================================================== */

:root {
  --orange: #ee7623;
  --orange-dark: #cf5f12;
  --orange-soft: #fff1e6;
  --green: #2e9b4f;
  --green-dark: #23773d;
  --green-soft: #eaf7ee;
  --blue: #1b2a6b;
  --blue-dark: #131e4d;
  --blue-soft: #eef1fb;

  --ink: #1a1d29;
  --body: #4a5060;
  --muted: #767d8f;
  --line: #e3e6ee;
  --white: #ffffff;
  --bg-alt: #f7f8fc;

  /* glass system */
  --glass-bg: rgba(255, 255, 255, .62);
  --glass-blur: blur(0.875rem) saturate(140%);
  --glass-edge: rgba(27, 42, 107, .13);
  --glass-edge-hover: rgba(238, 118, 35, .55);
  --glass-shadow: 0 0.625rem 1.875rem rgba(27, 42, 107, .09), inset 0 1px 0 rgba(255, 255, 255, .85);
  --glass-shadow-lift: 0 1.125rem 2.5rem rgba(27, 42, 107, .16), inset 0 1px 0 rgba(255, 255, 255, .9);

  --wrap: 73.75rem;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 3px rgba(27, 42, 107, .07);
  --shadow: 0 0.375rem 1.5rem rgba(27, 42, 107, .09);
  --shadow-lg: 0 1rem 2.75rem rgba(27, 42, 107, .14);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Devanagari", sans-serif;
}

* { box-sizing: border-box; }

/* The whole design is sized in rem, so this one number scales the site.
   80% matches what the browser's 80% zoom used to give, which is the size
   the institute asked for — visitors get it at their default 100%. */
html {
  font-size: 80%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.65rem, 3.2vw, 2.25rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
/* for blocks that should run wider than the text column */
.wrap-wide { width: min(100% - 2.5rem, 82.5rem); margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: .78rem 1.6rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: .97rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }

/* --- Top strip: govt logos + affiliation -------------------------------- */
.topstrip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: .55rem 0;
}
.topstrip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.topstrip img { height: 2.875rem; width: auto; }
.affiliation {
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .01em;
}
.affiliation .dot { color: var(--orange); margin: 0 .45rem; }

/* --- Identity bar: logo + name + contact -------------------------------- */
.identity {
  background: var(--white);
  padding: 1.05rem 0;
}
.identity .wrap {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .95rem; flex: 1 1 auto; }
.brand-mark {
  width: 3.875rem; height: 3.875rem;
  flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .02em;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text h1 {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  margin: 0;
  color: var(--blue);
  letter-spacing: -.01em;
}
.brand-text .hi { font-size: .9rem; color: var(--green-dark); font-weight: 600; }
.brand-text .sub { font-size: .8rem; color: var(--muted); }

.identity-meta { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.identity-meta div { font-size: .84rem; line-height: 1.4; }
.identity-meta .k { color: var(--muted); display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.identity-meta .v { color: var(--ink); font-weight: 700; }

/* --- Nav bar ------------------------------------------------------------ */
.navbar { background: var(--blue); position: sticky; top: 0; z-index: 60; }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a {
  display: block;
  padding: .95rem 1.05rem;
  color: #dfe4f5;
  font-size: .92rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav-links a.active { color: #fff; border-bottom-color: var(--orange); background: rgba(255,255,255,.06); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: .8rem .2rem;
  color: #fff;
}
.nav-toggle span {
  display: block; width: 1.5625rem; height: 2.5px; background: #fff;
  border-radius: 2px; margin: 5px 0; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.4688rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.4688rem) rotate(-45deg); }

/* --- Slider ------------------------------------------------------------- */
.slider {
  position: relative;
  background: var(--blue-dark);
  overflow: hidden;
}
.slides { position: relative; height: clamp(16.25rem, 38vw, 26.875rem); }
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(19,30,77,.88) 0%, rgba(19,30,77,.62) 45%, rgba(19,30,77,.2) 100%);
}
.slide-caption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  z-index: 2;
  color: #fff;
}
.slide-caption .wrap { max-width: min(100% - 2.5rem, var(--wrap)); }
.slide-caption .eyebrow {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  padding: .35rem .8rem; border-radius: 4px; margin-bottom: .9rem;
}
.slide-caption h2 { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.7rem); max-width: 17ch; margin-bottom: .5rem; }
.slide-caption p { color: #dfe4f5; max-width: 46ch; font-size: 1.02rem; }
.slide-caption .btn { margin-top: .6rem; margin-right: .6rem; }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--blue);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease;
}
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

.slider-dots {
  position: absolute; bottom: 1.125rem; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: .5rem;
}
.slider-dots button {
  width: 0.6875rem; height: 0.6875rem; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.slider-dots button.is-active { background: var(--orange); width: 1.625rem; border-radius: 0.375rem; }

/* --- Quick facts ribbon ------------------------------------------------- */
.facts { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.facts .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.875rem, 1fr));
  gap: 1px;
  background: var(--line);
}
.fact { background: var(--bg-alt); padding: 1.35rem 1.2rem; text-align: center; }
.fact .n { font-size: 1.7rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.fact .n span { color: var(--orange); }
.fact .l { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* --- Sections ----------------------------------------------------------- */
.section { padding: clamp(2.4rem, 4.5vw, 3.6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 45rem; margin-bottom: 1.9rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .55rem;
}
.section-head p { font-size: 1.03rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(17.1875rem, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(13.75rem, 1fr)); }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .94rem; margin-bottom: 0; }

.card-icon {
  width: 3.125rem; height: 3.125rem;
  border-radius: 0.625rem;
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.ic-orange { background: var(--orange-soft); }
.ic-green { background: var(--green-soft); }
.ic-blue { background: var(--blue-soft); }

/* Trade / course card */
.trade-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.trade-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.trade-card .top {
  padding: 1.3rem 1.5rem;
  color: #fff;
  display: flex; align-items: center; gap: .8rem;
}
.trade-card .top .ico { font-size: 1.7rem; }
.trade-card .top h3 { color: #fff; margin: 0; font-size: 1.08rem; }
.trade-card .top .code { font-size: .76rem; opacity: .85; letter-spacing: .05em; text-transform: uppercase; }
.bg-orange { background: var(--orange); }
.bg-green  { background: var(--green); }
.bg-blue   { background: var(--blue); }
.trade-card .body { padding: 1.3rem 1.5rem 1.5rem; flex: 1; }
.trade-card .body p { font-size: .93rem; }
.trade-meta { list-style: none; padding: 0; margin: 0 0 1rem; }
.trade-meta li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .87rem; padding: .45rem 0;
  border-bottom: 1px dashed var(--line);
}
.trade-meta li:last-child { border-bottom: 0; }
.trade-meta .k { color: var(--muted); }
.trade-meta .v { color: var(--ink); font-weight: 600; text-align: right; }

/* --- Tick list ---------------------------------------------------------- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li {
  position: relative;
  padding: .45rem 0 .45rem 2rem;
  font-size: .96rem;
}
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: .45rem;
  width: 1.3125rem; height: 1.3125rem;
  background: var(--green-soft); color: var(--green-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .74rem; font-weight: 700;
}
.ticks strong { color: var(--ink); }

/* --- Trades: box cards running in one line (home) ----------------------- */
/* Soft tinted backdrop so the frosted panel over it reads as glass. */
.section-glass {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.section-glass::before {
  content: "";
  position: absolute; inset: -20% -10%;
  background:
    radial-gradient(38rem 22rem at 12% 18%, rgba(238, 118, 35, .18), transparent 62%),
    radial-gradient(34rem 20rem at 85% 22%, rgba(27, 42, 107, .18), transparent 62%),
    radial-gradient(30rem 20rem at 55% 96%, rgba(46, 155, 79, .16), transparent 62%);
  pointer-events: none;
}
.section-glass > * { position: relative; z-index: 1; }

/* the glass panel the line runs across */
.deck-panel {
  border-radius: 1.25rem;
  padding: 2rem 0 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(1rem) saturate(140%);
          backdrop-filter: blur(1rem) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 0.875rem 2.75rem rgba(27, 42, 107, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
  overflow: hidden;
}
.deck-line {
  margin: 0 auto 1rem;
  padding: 0 1.5rem 1.3rem;
  max-width: 45rem;
  font-size: 1.05rem; color: var(--blue); font-weight: 600;
  border-bottom: 1px solid rgba(27, 42, 107, .12);
}
.deck-cta {
  display: inline-block;
  margin-top: 1.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(27, 42, 107, .12);
  min-width: min(26.25rem, 80%);
  color: var(--blue); font-weight: 700; font-size: .95rem;
}
.deck-cta:hover { color: var(--orange); }

/* the moving line */
.deck-marquee {
  overflow: hidden;
  padding: 2rem 0 2.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.deck-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
  padding-inline: .75rem;   /* both sides together = one gap: see note below */
  animation: deck-scroll 48s linear infinite;
  will-change: transform;
  text-align: left;
}
/* -50% lands exactly on the start of the duplicate set, because the track's
   left+right padding (2 x .75rem) adds up to exactly one gap (1.5rem).
   Keep those two values in step or the loop will visibly jump. */
@keyframes deck-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.deck-marquee:hover .deck-track,
.deck-track:focus-within { animation-play-state: paused; }

/* a card in the line: the same box card as elsewhere, in glass */
.trade-card.glass {
  flex: 0 0 21.25rem;
  width: 21.25rem;
  color: inherit;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(0.875rem) saturate(140%);
          backdrop-filter: blur(0.875rem) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 0.625rem 1.875rem rgba(27, 42, 107, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.trade-card.glass:hover,
.trade-card.glass:focus-visible {
  transform: translateY(-0.375rem);
  box-shadow: 0 1.25rem 2.5rem rgba(27, 42, 107, .20);
}
.trade-card.glass .top {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
  padding: 1.25rem 1.4rem;
  gap: .85rem;
}
.trade-card.glass .top .ico { font-size: 1.8rem; }
.trade-card.glass .top h3 { font-size: 1.12rem; }
.trade-card.glass .top .code { font-size: .82rem; }
.trade-card.glass .body { padding: 1.25rem 1.4rem 1.5rem; }
.trade-card.glass .body p { font-size: .94rem; }
.trade-card.glass .trade-meta li { font-size: .95rem; padding: .6rem 0; }
.trade-card.glass .top.bg-blue   { background: linear-gradient(135deg, rgba(27, 42, 107, .96), rgba(27, 42, 107, .74)); }
.trade-card.glass .top.bg-orange { background: linear-gradient(135deg, rgba(238, 118, 35, .96), rgba(238, 118, 35, .74)); }
.trade-card.glass .top.bg-green  { background: linear-gradient(135deg, rgba(46, 155, 79, .96), rgba(46, 155, 79, .74)); }
.trade-card.glass .trade-meta li { border-bottom-color: rgba(27, 42, 107, .16); }
.trade-card.glass .body p { color: var(--body); }

/* counsellor strip under the line */
.trade-help {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(0.875rem) saturate(140%);
          backdrop-filter: blur(0.875rem) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 0.5rem 1.875rem rgba(27, 42, 107, .08), inset 0 1px 0 rgba(255, 255, 255, .85);
}
.trade-help h3 { color: var(--blue); margin-bottom: .3rem; }
.trade-help p { margin-bottom: 0; font-size: .94rem; }
.trade-help-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

@media (max-width: 560px) {
  .trade-card.glass { flex-basis: 16.875rem; width: 16.875rem; }
  .deck-line { font-size: .96rem; }
  .trade-help { flex-direction: column; align-items: flex-start; }
  /* live backdrop blur behind a moving line is too costly for cheap phones —
     fake the glass with a flat translucent white instead */
  .deck-panel, .trade-card.glass, .trade-help {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgba(255, 255, 255, .88);
  }
}

/* no animation available -> let the line be swiped instead */
@media (prefers-reduced-motion: reduce) {
  .deck-marquee { overflow-x: auto; scroll-snap-type: x mandatory; }
  .trade-card.glass { scroll-snap-align: center; }
}

/* --- MD message --------------------------------------------------------- */
.md-message { background: var(--bg-alt); border-top: 1px solid var(--line); }
.md-grid {
  display: grid;
  grid-template-columns: 16.5rem 1fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
.md-photo {
  background: #fff;
  border-radius: var(--radius);
  padding: .75rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--orange);
}
/* the photo lives in a fixed 4:5 frame and is cropped to fill it, so a
   portrait, a landscape or the placeholder all sit in the same box */
.md-shot {
  position: relative;
  overflow: hidden;
  border-radius: 0.625rem;
  aspect-ratio: 4/5;
  background: var(--blue-soft);
  border: 1px solid var(--glass-edge);
}
.md-shot img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
.md-photo .name { text-align: center; padding: .85rem .5rem .4rem; }
.md-photo .name strong { display: block; color: var(--blue); font-size: 1.05rem; }
.md-photo .name span { font-size: .82rem; color: var(--muted); }
.md-body blockquote {
  margin: 0;
  font-size: 1.05rem;
  color: var(--body);
  position: relative;
  padding-left: 1.6rem;
  border-left: 4px solid var(--green);
}
.md-body blockquote p:first-child::first-letter {
  font-size: 2.6rem; float: left; line-height: .95;
  color: var(--orange); font-weight: 800; margin: .1rem .5rem 0 0;
}
.md-sign { margin-top: 1.2rem; font-weight: 700; color: var(--blue); }
.md-sign span { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 60%, #0f1740 100%);
  color: #fff;
  padding: clamp(2.6rem, 5vw, 3.6rem) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; right: -5rem; top: -5rem;
  width: 20rem; height: 20rem; border-radius: 50%;
  background: rgba(238,118,35,.16);
}
.cta-band::after {
  content: "";
  position: absolute; left: -3.75rem; bottom: -6.875rem;
  width: 16.25rem; height: 16.25rem; border-radius: 50%;
  background: rgba(46,155,79,.18);
}
.cta-band .wrap {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.75rem; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { color: #d6dcf1; margin: 0; max-width: 52ch; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* --- Page banner (inner pages) ------------------------------------------ */
.page-banner {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: clamp(2rem, 4vw, 3rem) 0;
  position: relative; overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute; right: -4.375rem; top: -5.625rem;
  width: 18.75rem; height: 18.75rem; border-radius: 50%;
  background: rgba(238,118,35,.15);
}
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; margin-bottom: .3rem; }
.page-banner p { color: #d6dcf1; margin: 0; max-width: 60ch; }
.crumb { font-size: .82rem; color: #aeb8dd; margin-bottom: .7rem; }
.crumb a { color: #aeb8dd; }
.crumb a:hover { color: var(--orange); }

/* --- Tables ------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 35rem; font-size: .93rem; }
table.data th, table.data td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--blue); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) { background: var(--bg-alt); }
table.data td strong { color: var(--ink); }

/* --- Staff -------------------------------------------------------------
   Same box language as the rest of the site: glass panel, coloured edge,
   a real photo frame that opens full screen. ------------------------- */
.staff-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
}
.staff-card {
  border-radius: 1.125rem;
  overflow: hidden;
  text-align: center;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-top: 4px solid var(--blue);
  box-shadow: var(--glass-shadow);
  transition: transform .25s cubic-bezier(.22,.61,.36,1),
              box-shadow .25s ease, border-color .25s ease;
}
.staff-card:hover {
  transform: translateY(-0.4375rem);
  border-color: var(--orange);
  box-shadow: 0 1.375rem 2.875rem rgba(27, 42, 107, .20);
}
.staff-card .ph {
  position: relative;
  aspect-ratio: 1/1;
  display: grid; place-items: center; align-content: center; gap: .35rem;
  background:
    repeating-linear-gradient(45deg, rgba(27,42,107,.035) 0 0.75rem, transparent 0.75rem 1.5rem),
    var(--blue-soft);
  border-bottom: 3px solid var(--orange);
  overflow: hidden;
}
.staff-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the SVG stand-ins carry a label, so fit them whole inside the frame;
   real photographs (.jpg/.png) still crop to fill it */
.staff-card .ph img[src$=".svg"],
.md-shot img[src$=".svg"] { object-fit: contain; padding: 6%; }
.ph-mark { font-size: 3rem; line-height: 1; opacity: .55; }
.ph-hint {
  font-size: .68rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
/* anything that opens full screen says so */
.is-zoomable { cursor: zoom-in; }
/* ::before, not ::after: the course banners already use ::after for their
   readability gradient, and one element gets only one of each */
.is-zoomable::before {
  content: "\2922";
  position: absolute; top: .6rem; right: .6rem; z-index: 4;
  width: 2rem; height: 2rem; border-radius: 0.5625rem;
  display: grid; place-items: center;
  background: rgba(10, 16, 45, .6); color: #fff;
  font-size: .95rem;
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.staff-card:hover .is-zoomable::before,
.course-card:hover .is-zoomable::before,
.is-zoomable:hover::before,
.is-zoomable:focus-visible::before { opacity: 1; }
.is-zoomable:focus-visible { outline: 3px solid rgba(238,118,35,.6); outline-offset: -3px; }

.staff-card .info { padding: 1.15rem 1rem 1.35rem; }
.staff-card .info strong { display: block; color: var(--ink); font-size: 1.05rem; }
.staff-card .info .role { display: block; font-size: .87rem; color: var(--orange); font-weight: 700; margin-top: .15rem; }
.staff-card .info .qual { display: block; font-size: .8rem; color: var(--muted); }

/* the MD portrait on the home page opens the same way */

/* leadership sits in its own row, at a larger size, above the divider */
.staff-grid.lead-row {
  grid-template-columns: repeat(2, 1fr);
  max-width: 51.25rem;
  margin-inline: auto;
  margin-bottom: 2.2rem;
}
.staff-card.is-lead { border-top-width: 5px; --accent: var(--orange); }
.staff-card.is-lead .ph { aspect-ratio: 4/3; }
.staff-card.is-lead .ph .ph-mark { font-size: 4.2rem; }
.staff-card.is-lead .info { padding: 1.5rem 1.2rem 1.7rem; }
.staff-card.is-lead .info strong { font-size: 1.35rem; }
.staff-card.is-lead .info .role { font-size: 1rem; margin-top: .25rem; }
.staff-card.is-lead .info .qual { font-size: .88rem; }

/* the line that separates the leadership from everyone else */
.team-split {
  display: flex; align-items: center; gap: 1.1rem;
  margin: 0 0 1.9rem;
  color: var(--muted);
  font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.team-split::before, .team-split::after {
  content: ""; flex: 1; height: 1px;
  background: var(--line);
}

@media (max-width: 1000px) { .staff-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .staff-grid.lead-row { grid-template-columns: 1fr; } }
@media (max-width: 420px)  { .staff-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .staff-card {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgba(255, 255, 255, .88);
  }
}

/* --- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem; align-items: start; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item .ic {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: 0.625rem;
  display: grid; place-items: center; font-size: 1.15rem;
}
.contact-item .k { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.contact-item .v { display: block; color: var(--ink); font-weight: 600; }
.contact-item .v a { color: var(--ink); }
.contact-item .v a:hover { color: var(--orange); }

.form-note { font-size: .82rem; color: var(--muted); margin-top: .9rem; }
.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.map-embed { overflow: hidden; }
.map-embed iframe { width: 100%; height: 23.75rem; border: 0; display: block; }
.map-actions {
  display: flex; flex-wrap: wrap; gap: .7rem;
  justify-content: center;
  margin-top: 1.1rem;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--blue-dark); color: #b9c2e2; padding: 3rem 0 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.25rem; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 1rem; }
.site-footer a { color: #b9c2e2; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: .28rem 0; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand .brand-mark { width: 3rem; height: 3rem; font-size: 1rem; background: var(--orange); }
.footer-brand strong { color: #fff; font-size: 1.05rem; display: block; }
.footer-brand span { font-size: .78rem; }
.footer-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  padding: .3rem .6rem; border-radius: 4px;
  background: rgba(255,255,255,.08); color: #dbe2f7;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.15rem 0; font-size: .84rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* --- Courses page: cards, comparison, spec sheets ----------------------- */
/* each trade carries its own accent colour; only edges and numbers use it,
   never the prose */
.t-blue   { --accent: var(--blue); }
.t-orange { --accent: var(--orange); }
.t-green  { --accent: var(--green); }

.compare-head { font-size: 1.05rem; margin-bottom: .9rem; }
.compare-note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.cell-sub { font-size: .8rem; color: var(--muted); }

/* one spec sheet per trade */
.course-panel {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  margin-bottom: 2rem;
  scroll-margin-top: 5.625rem;   /* clears the sticky nav when jumped to */
}
.course-panel:last-child { margin-bottom: 0; }

.course-head {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.6rem;
  color: #fff;
}
.course-head .num {
  font-size: 1.5rem; font-weight: 800; line-height: 1;
  opacity: .45; letter-spacing: .02em;
}
.course-head .ico { font-size: 1.6rem; line-height: 1; }
.course-head h3 { color: #fff; margin: 0; font-size: 1.12rem; }
.course-head .sub {
  font-size: .78rem; letter-spacing: .06em;
  text-transform: uppercase; opacity: .88;
}
.course-body { padding: 1.25rem 1.4rem 1.5rem; }
.course-body .lede { font-size: .98rem; color: var(--ink); margin-bottom: 1.3rem; }

/* the four headline facts, as their own small panes */
.spec-tiles {
  list-style: none; padding: 0; margin: 0 0 1.6rem;
  display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(10.625rem, 1fr));
}
.spec-tiles li {
  padding: .75rem .9rem;
  border: 1px solid var(--glass-edge);
  border-left: 3px solid var(--accent);
  border-radius: 0.5625rem;
  background: rgba(255, 255, 255, .5);
}
.spec-tiles .k {
  display: block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
}
.spec-tiles .v { display: block; color: var(--ink); font-weight: 700; font-size: .92rem; }

.course-cols {
  display: grid; gap: 1.75rem;
  grid-template-columns: 1fr 1fr;
}
.col-head {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: .8rem;
  padding-bottom: .5rem; border-bottom: 1px solid var(--glass-edge);
}

/* syllabus reads as a numbered course outline */
.learn-list { list-style: none; counter-reset: mod; padding: 0; margin: 0; }
.learn-list li {
  counter-increment: mod;
  position: relative;
  padding: .35rem 0 .35rem 2.3rem;
  font-size: .93rem;
  color: var(--body);
}
.learn-list li::before {
  content: counter(mod, decimal-leading-zero);
  position: absolute; left: 0; top: .45rem;
  font-size: .68rem; font-weight: 800; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 5px;
  padding: .1rem .28rem; line-height: 1;
  opacity: .85;
}

/* careers read as destinations */
.career-list { list-style: none; padding: 0; margin: 0; }
.career-list li {
  position: relative;
  padding: .35rem 0 .35rem 1.5rem;
  font-size: .93rem;
  color: var(--body);
}
.career-list li::before {
  content: "\2192";
  position: absolute; left: 0; top: .35rem;
  color: var(--orange); font-weight: 700;
}

.course-foot {
  display: flex; flex-wrap: wrap; gap: .7rem;
  margin-top: 1.6rem; padding-top: 1.3rem;
  border-top: 1px solid var(--glass-edge);
}
.btn-outline-blue {
  border-color: var(--blue); color: var(--blue); background: transparent;
}
.btn-outline-blue:hover { background: var(--blue); color: #fff; }

@media (max-width: 760px) {
  .course-cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .course-head { gap: .7rem; padding: 1rem 1.15rem; }
  .course-head .ico { font-size: 1.5rem; }
  .course-body { padding: 1.2rem 1.15rem 1.4rem; }
}
@media (max-width: 560px) {
  .spec-tiles li, .course-panel {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgba(255, 255, 255, .88);
  }
}

/* --- Taller banner with the contact details on it ----------------------- */
.page-banner.is-tall { padding: clamp(2.4rem, 4.5vw, 3.6rem) 0 clamp(2rem, 3.5vw, 2.8rem); }
.page-banner.is-tall h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.page-banner.is-tall > .wrap > p { font-size: 1.08rem; max-width: 64ch; }

.banner-contact {
  list-style: none; padding: 0;
  margin: 2rem 0 .9rem;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 56.25rem;
}
.banner-contact li {
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.2rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(0.625rem) saturate(140%);
          backdrop-filter: blur(0.625rem) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .3);
  transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.banner-contact li:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .2);
  border-color: var(--orange);
}
.bc-ico {
  flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  display: grid; place-items: center; font-size: 1.25rem;
  background: var(--orange);
  box-shadow: 0 0.375rem 1rem rgba(238, 118, 35, .45);
}
.bc-tx { display: block; min-width: 0; }
.bc-tx .k {
  display: block;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #ffd9bd;
}
.bc-tx a {
  display: block;
  color: #fff; font-weight: 800; font-size: 1.05rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bc-tx a:hover { color: #ffd9bd; }
.banner-hours { font-size: .9rem; color: #c9d2ee; margin: 0; }

@media (max-width: 860px) {
  .banner-contact { grid-template-columns: 1fr; max-width: 26.25rem; }
  .bc-tx a { font-size: 1rem; }
}

/* --- The shared content box --------------------------------------------
   One component, used by the admission steps, eligibility, documents and
   the industry-training programme. Everything that used to be four or five
   different card shapes is now this box at the same scale. -------------- */
.adm-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.5rem;
}
.adm-grid.three-up { grid-template-columns: repeat(3, 1fr); }
.adm-grid.two-up   { grid-template-columns: repeat(2, 1fr); }

.adm-box {
  position: relative;
  display: block;
  padding: 1.6rem 1.5rem 1.7rem;
  border-radius: 1.125rem;
  color: inherit;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.22,.61,.36,1),
              box-shadow .25s ease, border-color .25s ease;
}
.adm-box::after {          /* a wash of the accent colour, revealed on hover */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(22rem 12rem at 80% -10%, var(--accent, var(--orange)), transparent 70%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.adm-box:hover, .adm-box:focus-visible {
  transform: translateY(-0.4375rem);
  border-color: var(--accent, var(--orange));
  box-shadow: 0 1.375rem 2.875rem rgba(27, 42, 107, .20);
}
.adm-box:hover::after,  .adm-box:focus-visible::after  { opacity: .07; }

/* the icon tile — same square on every box */
.adm-ico {
  position: relative;
  width: 3.875rem; height: 3.875rem;
  border-radius: 1rem;
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  background: var(--blue-soft);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.adm-ico i { font-style: normal; font-size: 1.75rem; line-height: 1; }
.adm-ico.green  { background: var(--green-soft); }
.adm-ico.orange { background: var(--orange-soft); }
.adm-ico.blue   { background: var(--blue-soft); }
.adm-ico.sm { width: 3.375rem; height: 3.375rem; border-radius: 0.9375rem; margin-bottom: 0; }
.adm-ico.sm i { font-size: 1.3rem; color: var(--green-dark); font-weight: 800; }
.adm-box:hover .adm-ico {
  transform: translateY(-4px) rotate(-5deg) scale(1.06);
  box-shadow: 0 0.625rem 1.375rem rgba(27, 42, 107, .18);
}
/* the step number rides on the tile */
.adm-ico em {
  position: absolute; top: -0.625rem; right: -0.625rem;
  width: 2.125rem; height: 2.125rem; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-style: normal; font-size: .95rem; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 4px 0.75rem rgba(238, 118, 35, .45);
}

.adm-box h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.adm-box p { font-size: .94rem; margin: 0; }

/* per-section tweaks, all on the same skeleton */
.adm-box.is-step { text-align: center; padding-bottom: 2.4rem; }
.adm-box.is-step .adm-ico { margin-inline: auto; }
.adm-box.is-step h3 { margin-bottom: 0; }

.adm-box.is-doc {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.35rem 1.5rem;
}
.adm-box.is-doc p { font-size: 1.02rem; color: var(--ink); font-weight: 500; }

@media (max-width: 1080px) {
  .adm-grid.three-up { grid-template-columns: repeat(2, 1fr); }
  .adm-box { padding: 1.7rem 1.5rem 1.8rem; }
  .adm-ico { width: 4.125rem; height: 4.125rem; }
  .adm-ico i { font-size: 1.9rem; }
}
@media (max-width: 700px) {
  .adm-grid.three-up, .adm-grid.two-up { grid-template-columns: 1fr; }
  .adm-grid { gap: 1.1rem; }
  .adm-box h3 { font-size: 1.12rem; }
}
@media (max-width: 560px) {
  .adm-box {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgba(255, 255, 255, .88);
  }
}

/* the helpdesk gets its own band so it cannot be missed */
.helpdesk-band {
  background: linear-gradient(120deg, var(--orange) 0%, #d9640f 55%, #b8500a 100%);
  color: #fff;
  padding: clamp(2.4rem, 5vw, 3.4rem) 0;
  position: relative; overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, .18);
}
.helpdesk-band::after {
  content: "";
  position: absolute; right: -5.625rem; top: -7.5rem;
  width: 21.25rem; height: 21.25rem; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.helpdesk-band .wrap {
  position: relative; z-index: 2;
  display: grid; gap: 2rem;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
}
.helpdesk-band .eyebrow { color: #ffe3cc; }
.helpdesk-band h2 { color: #fff; margin-bottom: .35rem; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.helpdesk-band p { color: rgba(255, 255, 255, .92); margin: 0; }
.hd-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.hd-lines li {
  display: flex; align-items: baseline; gap: .7rem;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  padding-bottom: .5rem;
}
.hd-lines li:last-child { border-bottom: 0; }
.hd-lines .k {
  font-size: .7rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255, 255, 255, .8);
  min-width: 4.5rem;
}
.hd-lines a { color: #fff; font-weight: 700; }
.hd-lines a:hover { color: #ffe3cc; }
.hd-actions { display: grid; gap: .7rem; }
.helpdesk-band .btn-orange { background: #fff; color: #b8500a; }
.helpdesk-band .btn-orange:hover { background: #fff3e8; color: #8a3c06; }

@media (max-width: 980px) {
  .helpdesk-band .wrap { grid-template-columns: 1fr; }
  .hd-actions { grid-auto-flow: column; justify-content: start; }
}
@media (max-width: 700px) {
  .hd-actions { grid-auto-flow: row; }
}

/* --- Why choose us (home) ----------------------------------------------- */
.why-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
.why-card {
  position: relative;
  padding: 1.6rem 1.6rem 1.7rem;
  border-radius: 1rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-top: 4px solid var(--accent);
  box-shadow: var(--glass-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow-lift);
}
.why-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.1rem;
}
.why-icon {
  width: 3.625rem; height: 3.625rem;
  border-radius: 1rem;
  display: grid; place-items: center;
  font-size: 1.7rem;
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.why-num {
  font-size: 2.1rem; font-weight: 800; line-height: 1;
  color: var(--accent); opacity: .16;
  letter-spacing: -.02em;
}
.why-card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.why-card p { font-size: .95rem; margin-bottom: 1rem; }
.why-tag {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .03em;
  color: var(--accent);
  padding: .38rem .8rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
}

@media (max-width: 820px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 1.5rem 1.4rem 1.6rem; }
  .why-icon { width: 3.625rem; height: 3.625rem; font-size: 1.7rem; }
  .why-card h3 { font-size: 1.18rem; }
}
@media (max-width: 560px) {
  .why-card {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgba(255, 255, 255, .88);
  }
}

/* --- Course cards (courses page listing) --------------------------------
   The five cards run past in one continuous line, using the same marquee as
   the home page. Card design is unchanged; only the layout moves. */
.course-deck { margin-bottom: 0; }
.course-deck .course-card {
  flex: 0 0 23.75rem;
  width: 23.75rem;
}
.course-deck + p, .deck-marquee + .compare-head { margin-top: 0; }
.course-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-edge-hover);
  box-shadow: var(--glass-shadow-lift);
}

/* banner: a photo when there is one, brand colour until then */
.cc-banner {
  position: relative;
  aspect-ratio: 16/7;
  display: flex; align-items: flex-end;
  padding: 1.2rem 1.3rem 1.3rem;
  color: #fff;
  overflow: hidden;
}
.cc-banner::after {          /* keeps text readable over a photo too */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,16,45,.15) 0%, rgba(10,16,45,.72) 100%);
}
.cc-banner img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.cc-watermark {
  position: absolute; right: -.5rem; bottom: -1.4rem;
  font-size: 6.5rem; line-height: 1;
  opacity: .22; transform: rotate(-8deg);
}
.cc-banner-tx { position: relative; z-index: 2; }
.cc-banner-tx .kicker {
  display: block;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: #ffd9bd;
}
.cc-banner-tx strong {
  display: block;
  font-size: 1.3rem; line-height: 1.2; margin-top: .15rem;
  text-shadow: 0 2px 0.625rem rgba(0,0,0,.35);
}
/* the institute seal, floating like a stamp on the corner */
.cc-seal {
  position: absolute; top: .9rem; right: .9rem; z-index: 3;
  background: #fff; color: var(--blue);
  font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  padding: .4rem .6rem; border-radius: 0.5rem;
  box-shadow: 0 4px 0.75rem rgba(10,16,45,.28);
}
.cc-flag {
  position: absolute; top: .95rem; left: .9rem; z-index: 3;
  background: rgba(255, 233, 209, .94); color: #8a4a12;
  font-size: .7rem; font-weight: 700;
  padding: .32rem .7rem; border-radius: 999px;
}

.cc-banner.is-zoomable::before { top: auto; bottom: .7rem; right: .7rem; }
.cc-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.cc-title { font-size: 1.05rem; line-height: 1.3; margin-bottom: .7rem; }
.cc-inst, .cc-meta {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .89rem; margin: 0;
}
.cc-inst { color: var(--ink); font-weight: 600; padding-bottom: .85rem; }
.cc-meta {
  color: var(--accent); font-weight: 600;
  border-top: 1px solid var(--glass-edge);
  padding: .85rem 0 1.1rem;
}
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: auto; }
.cc-actions .btn { width: 100%; text-align: center; padding-inline: .6rem; }

@media (max-width: 560px) {
  .course-deck .course-card { flex-basis: 18.75rem; width: 18.75rem; }
  .cc-banner-tx strong { font-size: 1.25rem; }
  .course-card {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgba(255, 255, 255, .88);
  }
}

/* --- Photo viewer ------------------------------------------------------- */
/* the viewer sits inside a brand-coloured edge */
.photo-viewer {
  border-radius: 1.25rem;
  padding: 1.1rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: 2px solid var(--blue);
  border-top: 5px solid var(--orange);
  box-shadow: 0 1rem 2.5rem rgba(27, 42, 107, .16);
}
.pv-stage { position: relative; }
.pv-frame {
  position: relative;
  aspect-ratio: 21/9;
  border-radius: 0.875rem;
  overflow: hidden;
  background: var(--blue-soft);
  border: 3px solid var(--orange);
}
.pv-stage { cursor: zoom-in; }
.pv-stage:focus-visible { outline: 3px solid rgba(238,118,35,.6); outline-offset: 4px; border-radius: 1rem; }
/* a hint that the photo opens */
.pv-frame::after {
  content: "\2922";
  position: absolute; top: .85rem; right: .85rem; z-index: 3;
  width: 2.375rem; height: 2.375rem; border-radius: 0.625rem;
  display: grid; place-items: center;
  background: rgba(10, 16, 45, .6); color: #fff;
  font-size: 1.1rem;
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.pv-stage:hover .pv-frame::after { opacity: 1; }
.pv-slide {
  position: absolute; inset: 0;
  margin: 0;
  opacity: 0; visibility: hidden;
  transform: scale(1.02);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.pv-slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .45s ease, transform .45s ease;
}
.pv-slide img { width: 100%; height: 100%; object-fit: cover; }
.pv-empty {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(27,42,107,.035) 0 0.75rem, transparent 0.75rem 1.5rem),
    var(--blue-soft);
}
.pv-empty span {
  font-size: .82rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.pv-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3rem 2rem 1.4rem;
  color: #fff; font-weight: 600; font-size: 1.12rem;
  background: linear-gradient(180deg, transparent, rgba(10,16,45,.82));
}

/* the arrows */
.pv-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  border: 1px solid var(--glass-edge);
  background: rgba(255, 255, 255, .9);
  color: var(--blue);
  font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 0.375rem 1.125rem rgba(27, 42, 107, .22);
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.pv-nav.prev { left: 1.5rem; }
.pv-nav.next { right: 1.5rem; }
.pv-nav:hover { background: var(--orange); color: #fff; transform: translateY(-50%) scale(1.08); }


/* the strip of thumbnails */
.pv-thumbs {
  display: flex; gap: .7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-bottom: .25rem;
}
.pv-thumb {
  flex: 0 0 7.75rem;
  height: 4.875rem;
  border-radius: 0.625rem;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background:
    repeating-linear-gradient(45deg, rgba(27,42,107,.04) 0 0.625rem, transparent 0.625rem 1.25rem),
    var(--bg-alt);
  border: 2px solid var(--glass-edge);
  display: grid; place-items: center;
  opacity: .72;
  transition: border-color .2s ease, transform .2s ease, opacity .2s ease;
}
.pv-thumb:hover, .pv-thumb.is-active { opacity: 1; }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv-thumb:hover { transform: translateY(-3px); border-color: rgba(238, 118, 35, .6); }
.pv-thumb.is-active { border-color: var(--orange); opacity: 1; }

@media (max-width: 1000px) { .pv-frame { aspect-ratio: 16/9; } }
@media (max-width: 640px) {
  .pv-frame { aspect-ratio: 4/3; }
  .pv-nav { width: 2.5rem; height: 2.5rem; font-size: 1.4rem; }
  .pv-nav.prev { left: .5rem; }
  .pv-nav.next { right: .5rem; }
  .pv-thumbs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .pv-thumb { flex: 0 0 5.25rem; height: 3.5rem; }
  .pv-slide figcaption { font-size: .88rem; padding: 2rem 1rem .9rem; }
  .photo-viewer {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgba(255, 255, 255, .88);
  }
}

/* --- Lightbox: the photo, full screen ----------------------------------- */
body.pv-locked { overflow: hidden; }
.pv-lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  gap: 1rem;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 12, 32, .93);
  -webkit-backdrop-filter: blur(0.375rem);
          backdrop-filter: blur(0.375rem);
}
.pv-lightbox.is-open { display: flex; animation: pvl-in .25s ease; }
@keyframes pvl-in { from { opacity: 0; } to { opacity: 1; } }

.pvl-stage {
  max-width: min(75rem, 100%);
  max-height: 100%;
  display: flex; flex-direction: column; gap: .9rem;
}
.pvl-media {
  border-radius: 0.875rem;
  overflow: hidden;
  border: 3px solid var(--orange);
  box-shadow: 0 1.875rem 4.375rem rgba(0, 0, 0, .6);
  background: var(--blue-soft);
}
.pvl-media img { display: block; max-width: 100%; max-height: 78vh; object-fit: contain; }
.pvl-empty {
  width: min(62.5rem, 80vw); height: 56vh;
  display: grid; place-items: center;
  font-size: .9rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  background:
    repeating-linear-gradient(45deg, rgba(27,42,107,.05) 0 0.875rem, transparent 0.875rem 1.75rem),
    var(--blue-soft);
}
.pvl-cap { margin: 0; text-align: center; color: #fff; font-size: 1rem; font-weight: 600; }

.pvl-nav, .pvl-close {
  flex: none;
  border: 2px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.pvl-nav { width: 3.5rem; height: 3.5rem; font-size: 2rem; line-height: 1; }
.pvl-close {
  position: absolute; top: 1.1rem; right: 1.2rem;
  width: 2.875rem; height: 2.875rem; font-size: 1.7rem; line-height: 1;
}
.pvl-nav:hover, .pvl-close:hover {
  background: var(--orange); border-color: var(--orange); transform: scale(1.08);
}
.pvl-nav:focus-visible, .pvl-close:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

@media (max-width: 640px) {
  .pv-lightbox { padding: .8rem; gap: .4rem; }
  .pvl-nav { width: 2.625rem; height: 2.625rem; font-size: 1.5rem; }
  .pvl-media img { max-height: 66vh; }
  .pvl-empty { width: 86vw; height: 44vh; }
}

/* --- Placements (industry training) ------------------------------------- */
.place-stats {
  list-style: none; padding: 0; margin: 0 0 2rem;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.place-stats li {
  padding: 1.2rem 1.3rem;
  text-align: center;
  border-radius: var(--radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-top: 3px solid var(--orange);
  box-shadow: var(--glass-shadow);
}
.place-stats .v {
  display: block; font-size: 1.35rem; font-weight: 800;
  color: var(--blue); line-height: 1.2;
}
.place-stats .k {
  display: block; margin-top: .3rem;
  font-size: .82rem; color: var(--muted);
}

.place-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.place-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.place-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-edge-hover);
  box-shadow: var(--glass-shadow-lift);
}
/* the photo slot — same box whether it holds a picture or is still waiting */
.place-card .shot {
  aspect-ratio: 4/3;
  display: grid; place-items: center; align-content: center; gap: .4rem;
  background:
    repeating-linear-gradient(45deg, rgba(27,42,107,.03) 0 0.625rem, transparent 0.625rem 1.25rem),
    var(--blue-soft);
  border-bottom: 1px solid var(--glass-edge);
}
.place-card .shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-ico { font-size: 2.2rem; line-height: 1; opacity: .75; }
.shot-note {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700;
}
.place-card figcaption { padding: .95rem 1.1rem 1.15rem; }
.place-card figcaption strong { display: block; color: var(--ink); font-size: 1rem; }
.place-card .loc { display: block; font-size: .83rem; color: var(--muted); }

.place-note {
  font-size: .88rem; color: var(--muted);
  margin-top: 1.4rem; margin-bottom: 0;
}

@media (max-width: 560px) {
  .place-stats li, .place-card {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgba(255, 255, 255, .88);
  }
}

/* ==========================================================================
   GLASS SYSTEM — every panel on the site is a frosted pane with a real edge
   Three layers make the "glass" read:
     1. a tinted wash behind the whole page (body::before) to blur
     2. a translucent fill + backdrop blur on the panel
     3. a visible hairline border + white inner highlight = the boundary
   ========================================================================== */

/* 1. the wash the panes sit on */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48rem 30rem at 8% 4%,   rgba(238, 118, 35, .16), transparent 60%),
    radial-gradient(44rem 28rem at 94% 14%, rgba(27, 42, 107, .16),  transparent 60%),
    radial-gradient(40rem 26rem at 30% 62%, rgba(46, 155, 79, .13),  transparent 60%),
    radial-gradient(46rem 30rem at 88% 88%, rgba(238, 118, 35, .12), transparent 60%),
    var(--white);
}
body { background: transparent; }
/* let the wash show through the alternating bands */
.section-alt { background: rgba(247, 248, 252, .55); }

/* 2 + 3. every panel on the site */
.card,
.trade-card,
.staff-card,
.step,
.table-wrap,
.contact-card,
.md-photo,
.fact,
.map-embed,
.deck-panel,
.trade-help {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* the boundary stays — and warms up — when you touch a panel */
.card:hover,
.trade-card:hover,
.staff-card:hover,
.step:hover {
  border-color: var(--glass-edge-hover);
  box-shadow: var(--glass-shadow-lift);
}
.card:hover { transform: translateY(-4px); }

/* accent edges the glass system must not flatten */
.md-photo { border-top: 5px solid var(--orange); }

/* the MD's quote reads as a glass pane with a green spine */
.md-body blockquote {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 1.5rem 1.6rem .6rem;
}

/* the facts ribbon: four separate panes instead of one hairline-split block */
.facts { background: transparent; border-bottom: 1px solid var(--line); }
.facts .wrap {
  gap: 1rem;
  background: transparent;
  padding-block: 1.4rem;
}
.fact { padding: 1.15rem 1.2rem; }

/* panels that sit on dark ground get a light edge instead of a dark one */
.cta-band, .page-banner, .slider {
  border-block: 1px solid rgba(255, 255, 255, .14);
}
.contact-item .ic, .card-icon {
  border: 1px solid var(--glass-edge);
}

/* tables keep their own inner rules; just soften the head edge */
.table-wrap { overflow: hidden; }
table.data { background: transparent; }
table.data tbody tr:nth-child(even) { background: rgba(27, 42, 107, .035); }

@media (max-width: 560px) {
  /* blurring a dozen panes at once is too costly for cheap phones —
     flat translucent white gives the same look for none of the work */
  .card, .trade-card, .staff-card, .step, .table-wrap, .contact-card,
  .md-photo, .fact, .map-embed, .deck-panel, .trade-help, .md-body blockquote {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: rgba(255, 255, 255, .88);
  }
}

/* ==========================================================================
   MOTION — reveal on scroll, and feedback under the cursor
   Everything here is opt-in through the `js` class that site.js puts on <html>,
   so with JavaScript off the page renders fully visible and static.
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(1.375rem);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .65s cubic-bezier(.22,.61,.36,1),
              transform .65s cubic-bezier(.22,.61,.36,1);
}

/* buttons: press down, and a light sweeps across on hover */
.btn {
  position: relative;
  overflow: hidden;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              transform .14s ease, box-shadow .2s ease;
}
.btn::after {
  content: "";
  position: absolute; top: 0; left: -140%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0.5rem 1.25rem rgba(27,42,107,.18); }
.btn:hover::after { left: 140%; }
.btn:active { transform: translateY(0); box-shadow: none; }

/* nav: the underline grows out from the middle */
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute; left: 50%; right: 50%; bottom: 0;
  height: 3px; background: var(--orange);
  transition: left .22s ease, right .22s ease;
}
.nav-links a:hover::after { left: 0; right: 0; }
.nav-links a.active::after { left: 0; right: 0; }

/* icons wake up when their card is hovered */
.card:hover .card-icon,
.why-card:hover .why-icon {
  transform: translateY(-3px) rotate(-4deg);
}
.card-icon, .why-icon {
  transition: transform .28s cubic-bezier(.34,1.56,.64,1);
}
.why-card, .place-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* the quick-facts numbers count up on their own strip */
.fact { transition: transform .25s ease; }
.fact:hover { transform: translateY(-3px); }

/* links in body copy get an underline that draws in */
.md-sign a, .cc-inst a { text-decoration: none; }

/* keyboard users get the same affordances, visibly */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid rgba(238, 118, 35, .55);
  outline-offset: 3px;
  border-radius: 0.375rem;
}

/* nobody gets motion they did not ask for */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; }
  .btn::after { display: none; }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .md-grid { grid-template-columns: 1fr; }
  .md-photo { max-width: 16.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .navbar .wrap { flex-wrap: wrap; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-bottom: .6rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .8rem .2rem; border-bottom: 0; }
  .nav-links a.active { border-left: 3px solid var(--orange); padding-left: .8rem; }
  .identity-meta { display: none; }
  .slider-btn { display: none; }
  .slide::after { background: linear-gradient(180deg, rgba(19,30,77,.62) 0%, rgba(19,30,77,.9) 100%); }
}

@media (max-width: 560px) {
  .topstrip .wrap { justify-content: center; text-align: center; }
  .topstrip img { height: 2.125rem; }
  .affiliation { font-size: .74rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}

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

/* ==========================================================================
   DESIGN SYSTEM — one boundary language for every box on the site
   Everything below is deliberately last in the file: it normalises the
   components above so a card on the home page, a step on the admission page
   and a trade panel on the courses page all share the same edge, corner,
   shadow and hover. Change it here and the whole site follows.
   ========================================================================== */
:root {
  --box-radius: 1.125rem;
  --box-radius-sm: 0.75rem;
  --accent: var(--orange);        /* components override this */
}

/* --- 1. the boundary every box shares ---------------------------------- */
.card,
.why-card,
.course-card,
.course-panel,
.place-card,
.place-stats li,
.staff-card,
.contact-card,
.md-photo,
.table-wrap,
.trade-help,
.deck-panel,
.photo-viewer,
.map-embed,
.adm-box,
.trade-card.glass,
.md-body blockquote {
  border-radius: var(--box-radius);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}

/* --- 2. …and the same accent edge along the top ------------------------ */
.card,
.why-card,
.course-card,
.course-panel,
.place-card,
.place-stats li,
.staff-card,
.contact-card,
.md-photo,
.table-wrap,
.trade-help,
.deck-panel,
.photo-viewer,
.map-embed,
.adm-box {
  border-top: 4px solid var(--accent);
}
/* two exceptions, both deliberate: the moving trade cards wear their colour
   as a full header band, and the MD's quote is marked on the left like a
   quotation, not on top */
.trade-card.glass { border-top: 1px solid var(--glass-edge); }
.md-body blockquote { border-left: 4px solid var(--green); }

/* --- 3. small tiles: the same edge at a smaller corner ------------------ */
.fact,
.spec-tiles li,
.pv-thumb,
.doc-tile {
  border-radius: var(--box-radius-sm);
  border: 1px solid var(--glass-edge);
}

/* --- 4. one hover, everywhere ------------------------------------------ */
.card:hover,
.why-card:hover,
.course-card:hover,
.place-card:hover,
.place-stats li:hover,
.staff-card:hover,
.contact-card:hover,
.adm-box:hover,
.fact:hover {
  transform: translateY(-0.375rem);
  border-color: var(--accent);
  box-shadow: var(--glass-shadow-lift);
}
.card, .why-card, .course-card, .place-card, .place-stats li,
.staff-card, .contact-card, .adm-box, .fact {
  transition: transform .25s cubic-bezier(.22,.61,.36,1),
              box-shadow .25s ease, border-color .25s ease;
}

/* --- 5. the brand rhythm: boxes in a row cycle orange → green → blue ---- */
.card:nth-child(3n+1), .place-card:nth-child(3n+1) { --accent: var(--orange); }
.card:nth-child(3n+2), .place-card:nth-child(3n+2) { --accent: var(--green); }
.card:nth-child(3n+3), .place-card:nth-child(3n+3) { --accent: var(--blue); }
.staff-card   { --accent: var(--blue); }
.contact-card { --accent: var(--green); }
.md-photo     { --accent: var(--orange); }
.table-wrap   { --accent: var(--blue); }
.photo-viewer { --accent: var(--orange); }
.map-embed   { --accent: var(--green); }
.deck-panel, .trade-help { --accent: var(--blue); }
.place-stats li { --accent: var(--orange); }

/* --- 6. the accent shows through on the inside too ---------------------- */
.card:hover .card-icon,
.why-card:hover .why-icon,
.staff-card:hover .ph,
.adm-box:hover .adm-ico {
  border-color: var(--accent);
}

/* ==========================================================================
   PHONES — the majority of this site's visitors
   Tap targets, comfortable type, and nothing wider than the screen.
   ========================================================================== */
@media (max-width: 700px) {
  /* a thumb needs ~2.75rem; make every control at least that tall */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .pv-thumb { min-height: 44px; }

  /* buttons that sit in a row get the full width instead of squeezing */
  .cta-actions, .hd-actions, .trade-help-actions,
  .course-foot, .cc-actions, .contact-actions { width: 100%; }
  .cta-actions .btn, .hd-actions .btn, .trade-help-actions .btn,
  .course-foot .btn, .cc-actions .btn, .contact-actions .btn { width: 100%; }
  .cc-actions { grid-template-columns: 1fr; }

  /* headings and body text sized for a small screen, not scaled down from a big one */
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .section-head p, .course-body .lede { font-size: .97rem; }
  .section { padding: 2.2rem 0; }
  .section-head { margin-bottom: 1.4rem; }

  /* wide blocks share the same gutter as the text column */
  .wrap-wide { width: min(100% - 2rem, 100%); }

  /* the spec sheet's two columns stack rather than squeeze */
  .course-cols { grid-template-columns: 1fr; }
  .spec-tiles { grid-template-columns: repeat(2, 1fr); }

  /* tables scroll on their own instead of stretching the page */
  .table-wrap { -webkit-overflow-scrolling: touch; }

  /* the footer reads as a list, not four cramped columns */
  .footer-grid { gap: 1.6rem; }
}

@media (max-width: 420px) {
  .spec-tiles { grid-template-columns: 1fr; }
  .banner-contact li { padding: .85rem 1rem; }
  .bc-ico { width: 2.5rem; height: 2.5rem; }
  .adm-box { padding: 1.35rem 1.2rem 1.45rem; }
  .why-card { padding: 1.35rem 1.2rem 1.45rem; }
}

/* --- FAQ (contact page) -------------------------------------------------- */
.faq-list { display: grid; gap: .9rem; max-width: 52rem; margin-inline: auto; }
.faq-item {
  border-radius: var(--box-radius);
  border: 1px solid var(--glass-edge);
  border-top: 4px solid var(--accent, var(--orange));
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  padding: 1.1rem 1.3rem;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.faq-item:hover { border-color: var(--accent, var(--orange)); box-shadow: var(--glass-shadow-lift); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700; color: var(--ink); font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange);
  font-weight: 800; line-height: 1;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq-item p { margin: .9rem 0 .2rem; font-size: .96rem; }
.faq-item:nth-child(3n+2) { --accent: var(--green); }
.faq-item:nth-child(3n+3) { --accent: var(--blue); }

/* --- Admission window ---------------------------------------------------
   site.js hides one set or the other. [hidden] must win over the display
   values components set on themselves (the card flag is absolutely
   positioned, the CTA heading is a block). */
[hidden] { display: none !important; }
