/* ============================================================
   SST — Skopje School of Theology
   Stylesheet for the home page.
   ------------------------------------------------------------
   ARCHITECTURE PRINCIPLE
   Each section's rules live in ONE place. Desktop rules first,
   followed immediately by that section's mobile rules. To change
   a section, you only need to look at one block of CSS.

   FILE ORDER
     1. Tokens (CSS variables on :root)
     2. Reset and base typography
     3. Layout helpers (.container, .section, .eyebrow)
     4. Buttons (.btn and variants, including mobile)
     5. Language visibility (data-lang)
     6. Site header (brand, nav, hamburger, lang switch)
     7. Site footer
     8. Home: announcement strip
     9. Home: hero
    10. Home: three pillars
    11. Home: teaser sections (program + lecturers)
    12. Home: contact strip
    13. About page   14. Program page   15. Lecturers page
    16. Students page   17. Class page
    18. 404 page   19. Privacy / text pages

   BREAKPOINTS
     960px — layout collapses from two-column to single-column.
              Hero stacks. Teasers stack. Pillars stack.
     760px — header switches to hamburger; mobile nav appears.
     480px — phone-only typographic tweaks.

   Each section's @media block sits IMMEDIATELY below that
   section's desktop rules. There is no global @media block.
   ============================================================ */


/* ============================================================
   1. TOKENS
   ============================================================ */
:root {
  /* Palette — drawn from the school crest: navy, gold, cream */
  --navy:           #0E2A4A;
  --navy-deep:      #08182D;
  --navy-soft:      #24406A;
  --gold:           #C7A24B;
  --gold-warm:      #B38B34;
  --cream:          #FAF7F2;
  --cream-warm:     #F0EBE1;
  --ink:            #1A1D21;
  --ink-soft:       #404650;
  --scripture:     #A22B2B;
  --border:         rgba(14, 42, 74, 0.12);
  --border-strong:  rgba(14, 42, 74, 0.22);
  --shadow-sm:      0 1px 2px rgba(14, 42, 74, 0.06), 0 2px 6px rgba(14, 42, 74, 0.04);
  --shadow-md:      0 4px 10px rgba(14, 42, 74, 0.08), 0 10px 24px rgba(14, 42, 74, 0.06);

  /* Type */
  --font-serif:  "Cormorant Garamond", "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans:   "Source Sans 3", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* Layout */
  --page-max:    1140px;
  --prose-max:   70ch;
  --radius:      6px;
  --header-h:    76px;
}


/* ============================================================
   2. RESET & BASE TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg   { max-width: 100%; display: block; }
ul, ol     { list-style: none; margin: 0; padding: 0; }
a          { color: inherit; text-decoration: none; }

html {
  scroll-behavior: smooth;
  font-size: 17px;
}
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.2rem, 3.8vw, 3.2rem); font-weight: 500; line-height: 1.1; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

p { margin: 0 0 1em; }

a.inline {
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  transition: color 0.15s, border-color 0.15s;
}
a.inline:hover { color: var(--gold-warm); border-color: var(--gold-warm); }


/* ============================================================
   3. LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: clamp(56px, 9vw, 112px) 0;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-warm);
  line-height: 1;
  margin-bottom: 1em;
}


/* ============================================================
   4. BUTTONS
   ------------------------------------------------------------
   Base styles, then color variants, then mobile behavior.
   On mobile (≤960px) buttons inside .hero-ctas or .teaser-text
   stretch to fill the prose column.
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-warm);
  border-color: var(--gold-warm);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--cream);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline-light:hover {
  background: var(--cream);
  color: var(--navy);
}

@media (max-width: 960px) {
  /* When the hero or a teaser stacks, the button inside its
     prose column fills the width of that column. */
  .hero-ctas .btn,
  .teaser-text .btn {
    display: block;
    width: 100%;
    max-width: var(--prose-max);
    text-align: center;
  }
}


/* ============================================================
   5. LANGUAGE
   ------------------------------------------------------------
   Each language is its own page/URL (Macedonian at /, English
   at /en/…), rendered from _data/strings/*.json by Eleventy —
   see .eleventy.js and _data/languages.js. There is no runtime
   language toggle, so no per-language visibility rules are
   needed here. The language SWITCH is styled in section 6.
   ============================================================ */


/* ============================================================
   6. SITE HEADER
   ------------------------------------------------------------
   Brand on the left, nav in the middle, language switch on
   the right. On mobile (≤760px) the nav collapses behind a
   hamburger; the hamburger and language switch group at the
   right edge.
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.header-wrap {
  height: var(--header-h);
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  flex-shrink: 0;            /* never let the menu squeeze the brand */
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-line-1,
.brand-line-2 {
  white-space: nowrap;       /* keep each brand line on one line */
}
.brand-line-1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  /* Uppercase so the English "Skopje" matches the Macedonian "СКОПСКА".
     Set here rather than in common.json for the same reason .brand-line-2
     does it: the JSON keeps properly-cased words and the CSS decides how
     they're shown. It also fixes a real typographic problem — the
     descenders in "Skopje" (p, j) dropped into the line beneath. Cyrillic
     caps have no descenders, so Macedonian never showed the issue. */
  text-transform: uppercase;
}
.brand-line-2 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s, background 0.15s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--navy);
  background: var(--cream-warm);
}
.main-nav a.nav-cta {
  background: var(--navy);
  color: var(--cream);
}
.main-nav a.nav-cta:hover { background: var(--navy-soft); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
/* .lang-btn is used both as an <a> (the other language, a real
   link) and as a <span> (the current language, not clickable). */
.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 6px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
a.lang-btn:hover          { color: var(--navy); }
.lang-btn.active          { color: var(--navy); border-bottom-color: var(--gold); cursor: default; }
.lang-sep                 { color: var(--border-strong); font-weight: 300; }

.nav-toggle {
  display: none; /* hidden on desktop, shown on mobile */
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
}

@media (max-width: 960px) {
  /* Below 960px the desktop nav becomes a dropdown behind the
     hamburger. Triggering at 960px (not lower) prevents the
     menu and lang switch from crowding each other at the
     awkward 760–960px range. Visual order across the header:
       brand   ...   MK | EN   hamburger
     (CSS `order` rearranges the DOM siblings; the hamburger
     ends up at the far right.) */
  .nav-toggle  { display: flex; order: 3; margin-left: 12px; }
  .lang-switch { order: 2; margin-left: auto; padding-left: 0; border-left: none; }
  .main-nav    { order: 1; margin-left: 0; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }
  .main-nav.open  { display: block; }
  .main-nav ul    { flex-direction: column; gap: 2px; align-items: stretch; padding: 0 16px; }
  .main-nav a     { display: block; padding: 12px 14px; }
}

@media (max-width: 600px) {
  /* PHONES: the header ran out of room — brand + "МК | EN" + hamburger
     needed ~420px inside a 375px screen, which pushed the hamburger off
     the edge entirely in English (longer brand text) and made the mobile
     nav unreachable.

     Fix: show ONLY the language you'd switch TO. The current language is
     already obvious from the page you're reading, so the "МК | EN" pair
     is redundant here — hiding the active one and the separator frees
     roughly 55px, which is more than the shortfall.

     The language switch deliberately stays OUT of the hamburger: it's the
     one control a visitor who landed in the wrong language needs, and it
     shouldn't cost them a tap and a hunt to find it. It's styled as a
     bordered pill so a lone "EN" still reads as a button rather than a
     label, and it keeps a 42px tap target to match the hamburger. */
  .header-wrap { gap: 14px; padding: 0 16px; }

  .lang-switch .lang-btn.active,
  .lang-switch .lang-sep { display: none; }

  .lang-switch a.lang-btn {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    border-bottom-width: 1px;   /* cancel the desktop underline treatment */
    color: var(--navy);
  }

  /* The brand's second line is the widest thing in the header; on the
     narrowest phones let it shrink a step rather than force a wrap. */
  .brand-line-2 { font-size: 0.62rem; letter-spacing: 0.14em; }
}


/* ============================================================
   7. SITE FOOTER
   ------------------------------------------------------------
   Three columns on desktop: address, menu, social/scripture.
   On mobile they stack into a single column.
   ============================================================ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 247, 242, 0.78);
}
.footer-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 80px 24px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 56px;
}
.site-footer h4 {
  color: var(--cream);
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  margin-bottom: 1em;
}
.footer-col p   { margin: 0 0 0.6em; line-height: 1.55; }
.footer-sub     { font-style: italic; color: var(--gold); font-family: var(--font-serif); font-size: 1rem; margin-bottom: 1.2em; }
.footer-col a   { color: rgba(250, 247, 242, 0.86); transition: color 0.15s; }
.footer-col a:hover    { color: var(--gold); }
.footer-col ul li      { margin-bottom: 0.4em; }
.social li      { margin-bottom: 0.5em; }

.footer-scripture {
  margin: 1em 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
}
.footer-scripture cite {
  display: block;
  margin-top: 0.4em;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  font-style: normal;
  color: rgba(250, 247, 242, 0.5);
}

.footer-base {
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  margin-top: 56px;
  padding: 20px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.5);
}
.footer-base p { margin: 0; }

@media (max-width: 960px) {
  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
  }
}


/* ============================================================
   8. HOME: ANNOUNCEMENT STRIP
   ============================================================ */
.announcement {
  background: var(--gold);
  color: var(--navy-deep);
  text-align: center;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
}
.announcement a {
  color: var(--navy-deep);
  border-bottom: 1.5px solid var(--navy-deep);
  padding-bottom: 1px;
  margin-left: 6px;
}
.announcement a:hover { opacity: 0.75; }


/* ============================================================
   9. HOME: HERO
   ------------------------------------------------------------
   Three siblings in DOM order: .hero-top, .hero-visual, .hero-bottom.
     - Desktop: 2-column grid via grid-template-areas. Top and
       bottom occupy the left column (stacked vertically). The
       visual fills the right column, spanning both rows.
     - Mobile: .hero-wrap becomes a flex column. Source order
       (top → visual → bottom) is the visual order, no tricks.
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  /* subtle gold arch motif behind the content */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(199, 162, 75, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 0%, rgba(199, 162, 75, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-wrap {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(80px, 14vw, 150px) 24px clamp(72px, 12vw, 130px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "top    visual"
    "bottom visual";
  column-gap: 56px;
  row-gap: 0;
  align-items: center;
}

.hero-top    { grid-area: top;    align-self: end;   }
.hero-bottom { grid-area: bottom; align-self: start; }
.hero-visual { grid-area: visual; align-self: center; }

.hero-top .eyebrow {
  color: var(--gold);
  margin-bottom: 8px;
}
.hero h1 {
  color: var(--cream);
  margin: 0 0 0.4em;
  font-weight: 400;
}
.hero h1 .dot {
  color: var(--gold);
  font-weight: 300;
  padding: 0 0.05em;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: rgba(250, 247, 242, 0.82);
  max-width: 52ch;
  margin: 16px 0 28px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-soft), var(--navy-deep));
  border: 1px solid rgba(199, 162, 75, 0.35);
  box-shadow: var(--shadow-md);
}
/* When a real <img> is dropped into .hero-visual, fill the
   panel and crop intelligently. object-position keeps the
   subject visible when the box crops to a different aspect
   ratio (e.g. switching between desktop portrait and mobile
   landscape). */
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(250, 247, 242, 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background-image: repeating-linear-gradient(135deg, rgba(199, 162, 75, 0.05) 0 10px, transparent 10px 22px);
}
.hero-visual-inner svg { color: rgba(199, 162, 75, 0.55); }

@media (max-width: 960px) {
  /* Hero collapses to a single column. Source order top →
     visual → bottom IS the visual order on mobile.
     All content is centered horizontally. */
  .hero-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  /* Reset desktop grid alignment — in flex column, `align-self`
     controls the cross axis (horizontal). Without this, top/
     bottom/visual would align to the right/left/center of the
     column instead of stretching across it. */
  .hero-top,
  .hero-bottom,
  .hero-visual {
    align-self: stretch;
  }
  .hero-visual {
    width: 100%;
    /* Keep the 4:5 portrait frame on every screen so hero graphics
       are never cropped — they display exactly as designed. */
    aspect-ratio: 4 / 5;
  }
  /* Center the constrained-width lede and CTAs as blocks. */
  .hero-lede {
    max-width: var(--prose-max);
    margin: 0 auto 16px;
  }
  .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: var(--prose-max);
    margin: 0 auto;
    gap: 12px;
  }
}


/* ============================================================
   10. HOME: THREE PILLARS
   ============================================================ */
.pillars       { background: var(--cream); }
.pillars-grid  {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.pillar        { text-align: center; padding: 16px 8px; }
.pillar-mark   { color: var(--gold); display: inline-flex; margin-bottom: 20px; }
.pillar h3     { font-size: 1.6rem; margin-bottom: 0.4em; }
.pillar p      { color: var(--ink-soft); max-width: 32ch; margin: 0 auto; }

@media (max-width: 960px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 40px; }
}


/* ============================================================
   11. HOME: TEASER SECTIONS
   ------------------------------------------------------------
   Used by both "Program" and "Lecturers" sections. A 2-column
   grid of text + visual. Add .reverse on the inner grid to put
   the text on the right and the visual on the left. Add
   .teaser-alt to the section for the warmer background tone.
   ============================================================ */
.teaser            { border-top: 1px solid var(--border); }
.teaser-alt        { background: var(--cream-warm); }

.teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.teaser-grid.reverse .teaser-text { order: 2; }

.teaser-text h2 { margin-bottom: 0.4em; }
.teaser-text p {
  color: var(--ink-soft);
  max-width: var(--prose-max);
  margin-bottom: 1.5em;
}

.teaser-visual {
  aspect-ratio: 4 / 3;
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.teaser-visual img { width: 100%; height: 100%; object-fit: cover; }
.teaser-visual-caption {
  color: var(--ink-soft);
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* Lecturer tile row (inside the "Lecturers" teaser) */
.lecturer-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.lecturer-tile {
  text-align: center;
  padding: 14px;
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lecturer-tile .portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  border: 2px solid var(--cream);
}
.lecturer-tile .name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}
.lecturer-tile .role {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

@media (max-width: 960px) {
  .teaser-grid                       { grid-template-columns: 1fr; gap: 32px; }
  .teaser-grid.reverse .teaser-text  { order: 0; } /* return to source order when stacked */
  .lecturer-row                      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .lecturer-row { gap: 10px; }
}


/* ============================================================
   12. HOME: CONTACT STRIP
   ============================================================ */
.contact            { background: var(--navy); color: var(--cream); text-align: center; }
.contact h2         { color: var(--cream); }
.contact .eyebrow   { color: var(--gold); }
.contact p {
  color: rgba(250, 247, 242, 0.82);
  max-width: 60ch;
  margin: 0 auto 2em;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;   /* labels line up at the top edge */
  gap: 56px;
}
.contact-info > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.contact-info strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
}
.contact-info a {
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.contact-info a:hover { border-color: var(--gold); }

@media (max-width: 480px) {
  .contact-info { gap: 24px; }
}


/* ============================================================
   13. ABOUT PAGE
   ------------------------------------------------------------
   Reuses the shared .hero / .hero-visual, .section, .container,
   .eyebrow and .btn. Only the pieces unique to About live here:
     .values-grid  — Vision / Mission / Format / Outcomes
     .leaders-row / .leader-card — the two directors
     .cta-center   — centered buttons in the closing navy band
   The hero crest (images/about/crest.webp) needs no special CSS —
   it's a 4:5 composition that fills the shared .hero-visual frame.
   ============================================================ */

/* The About hero uses the shared .hero-visual as-is: the crest
   (images/about/crest.webp) is a 4:5 composition with its own cream
   background, so it fills the frame like the home bridge photo. No
   About-specific hero styling is needed. */

/* Vision / Mission / Format / Outcomes cards. */
.values { background: var(--cream); }
.values-heading {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.1em;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.value {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.value .eyebrow {
  display: block;
  color: var(--gold-warm);
  margin-bottom: 10px;
}
.value p {
  color: var(--ink-soft);
  line-height: 1.7;
}

/* c) Leadership — two "substantial cards": avatar left, role + name right. */
.leadership { background: var(--cream-warm); }
.leadership-head { text-align: center; margin-bottom: 2em; }
.leadership-head .eyebrow { display: block; color: var(--gold-warm); margin-bottom: 8px; }
.leaders-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}
.leader-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
}
.leader-avatar {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  border: 3px solid var(--cream-warm);
  box-shadow: var(--shadow-sm);
}
.leader-role {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-warm);
  font-weight: 700;
}
.leader-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-top: 5px;
  line-height: 1.15;
}

/* d) Center the buttons inside the closing navy CTA band. */
.cta-center { justify-content: center; }

@media (max-width: 960px) {
  .values-grid  { grid-template-columns: 1fr; gap: 18px; }
  .leaders-row  { grid-template-columns: 1fr; gap: 18px; max-width: 460px; }
}


/* ============================================================
   14. PROGRAM PAGE
   ------------------------------------------------------------
   Reuses the shared .hero / .section / .container / .btn. Unique
   parts: .facts-card (stats in the hero visual), .fmt-badge +
   .formats-grid (course-format legend), .course-list (Year 1/2
   course rows), .elective-chips, and .workload-steps.
   Also defines two small shared helpers used here (and reusable
   on future pages): .section-heading and .section-intro.
   ============================================================ */

/* Shared section title + intro (centered). */
.section-heading {
  text-align: center;
  /* Gentle scaling: stays near 2.4rem on desktop, eases down to a
     2rem floor on phones instead of shrinking with every vw. */
  font-size: clamp(2rem, 1.2vw + 1.5rem, 2.4rem);
  color: var(--navy);
  margin-bottom: 0.5em;
}
.section-intro {
  text-align: center;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto 2.2em;
}

/* Facts card in the hero visual (replaces the hero image here). */
.hero-visual.facts-card {
  display: flex;
  align-items: center;
  justify-content: center;
}
.facts-card ul {
  list-style: none;
  width: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 5vh, 46px);
  text-align: center;
}
.facts-card li { display: flex; flex-direction: column; gap: 6px; }
.facts-card .fig {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: var(--gold);
  line-height: 1.05;
}
.facts-card .lbl {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.7);
}

/* Format badge — a small round letter, colour-coded per format.
   Used both in the legend cards and beside each course. */
.fmt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
}
.fmt-badge[data-fmt="two"]  { background: var(--navy);  color: var(--gold); }
.fmt-badge[data-fmt="one"]  { background: var(--gold);  color: var(--navy); }
.fmt-badge[data-fmt="conf"] { background: transparent;  color: var(--gold-warm); border: 1.5px solid var(--gold-warm); }
.fmt-badge--none            { background: transparent;  color: var(--border-strong); }

/* Course formats legend. */
.formats { background: var(--cream); }
.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.format-card {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-align: center;
}
.format-card .fmt-badge {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.format-card h3 { font-size: 1.25rem; color: var(--navy); margin-bottom: 0.4em; }
.format-card p  { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }

/* Course lists (Year 1 / Year 2). */
.courses { background: var(--cream-warm); }
.course-year { max-width: 860px; margin: 0 auto; }
.course-year + .course-year { margin-top: 44px; }
.year-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
  margin-bottom: 4px;
}
.year-head h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy); }
.year-total {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-warm);
  font-weight: 700;
  white-space: nowrap;
}
.course-list { list-style: none; }
.course {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--border);
}
.course-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.course-name { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); line-height: 1.25; }
.course-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
}
/* middot separator between meta items (not before the first one) */
.course-meta > * + *::before { content: "·"; margin: 0 7px 0 1px; color: var(--border-strong); }
.course-syllabus { color: var(--gold-warm); font-weight: 600; border-bottom: 1px solid transparent; }
.course-syllabus:hover { border-color: var(--gold-warm); }
.course-ects {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}
.course-ects-unit {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-warm);
  font-weight: 700;
}

/* Conference-modular electives — chips. */
.electives { background: var(--cream); }
.elective-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.elective-chips li {
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: var(--navy);
}

/* What each course involves — four numbered steps. */
.workload { background: var(--cream-warm); }
.workload-steps {
  list-style: none;
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 34px;
}
.workload-steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.step-body { display: flex; flex-direction: column; gap: 3px; }
.step-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); }
.step-text  { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.5; }

@media (max-width: 760px) {
  .formats-grid   { grid-template-columns: 1fr; gap: 16px; }
  .workload-steps { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 480px) {
  .course       { gap: 12px; }
  .course-name  { font-size: 1.05rem; }
  .course-ects  { font-size: 1.05rem; }
}


/* ============================================================
   15. LECTURERS PAGE
   ------------------------------------------------------------
   A navy intro band (.lecturers-hero) over a list of profile
   rows: photo (or initials placeholder) left, text right, each
   with a native <details> "Read more" that reveals the full bio.
   ============================================================ */
.lecturers-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  text-align: center;
  padding: clamp(60px, 10vw, 110px) 0;
}
.lecturers-hero .eyebrow { color: var(--gold); }
.lecturers-hero h1 { color: var(--cream); margin: 8px 0 0.5em; font-weight: 400; }
.lecturers-hero p {
  color: rgba(250, 247, 242, 0.82);
  max-width: 62ch;
  margin: 0 auto;
  line-height: 1.65;
}

.lecturers { background: var(--cream); }
.lecturers-list { max-width: 900px; margin: 0 auto; }

.lecturer {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.lecturer:first-child { padding-top: 4px; }
.lecturer:last-child  { border-bottom: none; padding-bottom: 4px; }

.lecturer-photo {
  width: 150px;
  height: 180px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  border: 1px solid rgba(199, 162, 75, 0.3);
  box-shadow: var(--shadow-sm);
}
.lecturer-photo img { width: 100%; height: 100%; object-fit: cover; }

.lecturer-content { min-width: 0; }
.lecturer-name { font-family: var(--font-serif); font-size: 1.55rem; color: var(--navy); line-height: 1.15; }
.lecturer-tagline {
  color: var(--gold-warm);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 8px 0 12px;
}
.lecturer-short { color: var(--ink-soft); line-height: 1.65; }

/* Read-more expander (native <details>, no JS). The summary shows
   its label from data-more / data-less via ::after, so the same CSS
   works in both languages. */
.lecturer-more { margin-top: 12px; }
.lecturer-more > p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  color: var(--gold-warm);
  font-weight: 600;
  font-size: 0.9rem;
  width: max-content;
}
.more-toggle::-webkit-details-marker { display: none; }   /* Safari */
.more-toggle::after { content: attr(data-more) " ↓"; }
details[open] > .more-toggle::after { content: attr(data-less) " ↑"; }
.more-toggle:hover { color: var(--navy); }

@media (max-width: 640px) {
  .lecturer { flex-direction: column; gap: 16px; }
  .lecturer-photo { width: 120px; height: 144px; }
}


/* ============================================================
   16. STUDENTS PAGE
   ------------------------------------------------------------
   Hero reuses the shared .hero / .hero-visual (open-books photo).
   Below, the two-year class list is a card grid —
   more visual than the Program page's rows. Each .class-card shows
   a format badge, the class name, lecturer, and a "coming soon" tag.
   ============================================================ */
.student-classes { background: var(--cream); }

.class-year + .class-year { margin-top: 48px; }
.class-year-head {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 1.1em;
  position: relative;
}
.class-year-head::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  background: var(--gold);
  margin: 0.5em auto 0;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.class-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--cream-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.class-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.class-card .fmt-badge { align-self: flex-start; }
.class-card-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy);
  line-height: 1.25;
}
.class-card-lect { font-size: 0.85rem; color: var(--ink-soft); }
.class-card-soon {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-warm);
}


/* ============================================================
   17. CLASS PAGE
   ------------------------------------------------------------
   Top: navy header — class info (left) + materials box (right,
   where the photo sits on other pages). Body: a stack of class
   recordings, each a title + date + responsive YouTube embed.
   Also styles the Students-page cards that link to a class page
   (.class-card--ready / .class-card-open).
   ============================================================ */

/* Students card that IS a link (a class page exists). */
a.class-card--ready { text-decoration: none; color: inherit; }
.class-card-open {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
}
.class-card--ready:hover .class-card-open { color: var(--gold-warm); }

/* Class page header (navy, two columns). */
.class-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
}
.class-hero-wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: start;
}
.class-back {
  display: block;
  width: max-content;
  color: rgba(250, 247, 242, 0.72);
  font-size: 0.85rem;
  margin-bottom: 20px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s;
}
.class-back:hover { color: var(--gold); }
.class-info .eyebrow { color: var(--gold); }
.class-info h1 { color: var(--cream); margin: 8px 0 0.7em; font-weight: 400; }

.class-facts { display: flex; flex-direction: column; gap: 15px; }
.class-facts > div { display: flex; flex-direction: column; gap: 3px; }
.class-facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.class-facts dd { margin: 0; color: rgba(250, 247, 242, 0.92); font-size: 1.02rem; }
/* Contact: one .contact-person per teacher (a class can have several).
   Each person stacks their own name/email/phone; the gap between people
   is wider than the gap inside one, so the grouping reads at a glance. */
.class-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-person { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.contact-name {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.6);
}
.class-facts a {
  color: var(--cream);
  border-bottom: 1px solid rgba(199, 162, 75, 0.5);
  transition: color 0.15s, border-color 0.15s;
}
.class-facts a:hover { color: var(--gold); border-color: var(--gold); }
.class-syllabus { color: var(--gold) !important; font-weight: 600; }

/* Materials box (right column). */
.materials-card {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(199, 162, 75, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 26px;
}
.materials-card h2 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.7em;
  padding-bottom: 0.55em;
  border-bottom: 1px solid var(--border);
}
.materials-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.materials-list a {
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.materials-list a:hover { border-color: var(--gold); }
.materials-empty { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.65; }

/* Recordings (body). Each recording is its own card on a warm
   background, so the classes read as clearly separate blocks. */
.recordings { background: var(--cream-warm); }
.session-list { max-width: 840px; margin: 0 auto; }
.session {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 30px);
}
.session + .session { margin-top: 32px; }
.session-head { margin-bottom: 14px; }
.session-date {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-warm);
  font-weight: 700;
  margin-bottom: 6px;
}
.session-title { font-family: var(--font-serif); font-size: 1.75rem; color: var(--navy); }
.session-subtitle { margin: 3px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.35; }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-deep);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: var(--cream-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

@media (max-width: 860px) {
  .class-hero-wrap { grid-template-columns: 1fr; gap: 28px; }
}


/* ============================================================
   18. 404 PAGE
   ------------------------------------------------------------
   A wrong URL still lands inside the navy hero band so it reads
   as the site, not a server error. Centred single column — no
   hero image, since a missing page shouldn't cost a download.
   ============================================================ */
.hero--notfound { min-height: 68vh; display: flex; align-items: center; }
.hero-wrap--narrow { display: block; max-width: 680px; margin: 0 auto; text-align: center; }
.notfound-body { padding: 40px 0; }
.notfound-code {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 14vw, 8rem);
  line-height: 1;
  font-weight: 600;
  margin: 0 0 8px;
  color: rgba(199, 162, 75, 0.38);
  letter-spacing: 0.04em;
}
.hero--notfound h1 { margin: 0 0 18px; }
.hero--notfound .hero-lede { margin-left: auto; margin-right: auto; }
.hero--notfound .hero-ctas { justify-content: center; }
.notfound-help {
  margin-top: 34px;
  font-size: 0.92rem;
  color: rgba(250, 247, 242, 0.6);
}
.notfound-help a {
  color: var(--cream);
  border-bottom: 1px solid rgba(199, 162, 75, 0.5);
}
.notfound-help a:hover { color: var(--gold); border-color: var(--gold); }

@media (max-width: 760px) {
  .hero--notfound { min-height: 0; }
  .notfound-body { padding: 24px 0; }
}


/* ============================================================
   19. PRIVACY / LONG-FORM TEXT PAGES
   ------------------------------------------------------------
   Reusable for any future text page (terms, accessibility…):
   .text-hero is a compact navy band (no image, no CTAs), then
   .prose holds readable body copy capped at --prose-max.
   ============================================================ */
.text-hero {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(48px, 7vw, 84px) 0 clamp(36px, 5vw, 56px);
}
.text-hero h1 { color: var(--cream); margin: 0 0 12px; }
.text-hero-meta {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(250, 247, 242, 0.6);
}

.prose-section { background: var(--cream); }
.prose { max-width: var(--prose-max); margin: 0 auto; }
.prose-lede {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.prose-block { margin-bottom: 40px; }
.prose-block:last-child { margin-bottom: 0; }
.prose-block h2 {
  font-size: 1.5rem;
  margin: 0 0 14px;
  padding-top: 4px;
}
.prose-block p { color: var(--ink-soft); }
.prose-block strong { color: var(--ink); font-weight: 600; }

.prose-list { margin: 0 0 1em; }
.prose-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}
.prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

@media (max-width: 760px) {
  .prose-block { margin-bottom: 32px; }
  .prose-lede { font-size: 1.05rem; }
}
