/* =========================================================
   Canadian School of Tashkent - student website
   ========================================================= */
:root {
  --ink: #101a30;
  --navy: #0e1a35;
  --navy-2: #172a52;
  --red: #d62f2a;
  --red-dark: #a91f1b;
  --red-soft: #fdeceb;
  --gold: #e8b04b;
  --teal: #19a59a;
  --muted: #5d677d;
  --line: #e8e4dc;
  --cream: #faf6ef;
  --paper: #ffffff;
  --sky: #f3f5fb;
  --radius: 22px;
  --shadow-sm: 0 2px 10px rgba(14, 26, 53, 0.06);
  --shadow: 0 14px 40px rgba(14, 26, 53, 0.09);
  --shadow-lg: 0 28px 70px rgba(14, 26, 53, 0.18);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; }
a { color: inherit; }
img, svg { max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--gold); color: var(--navy); }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

/* ---------- Navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(14, 26, 53, 0.07);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px 20px; padding-top: 12px; padding-bottom: 12px;
}
.logo {
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em;
  color: var(--navy); text-decoration: none; display: flex; align-items: center; gap: 11px;
}
.logo .mark {
  display: grid; place-items: center; width: 40px; height: 40px; font-size: 1.2rem;
  background: linear-gradient(145deg, var(--red), var(--red-dark));
  border-radius: 12px; box-shadow: 0 6px 16px rgba(214, 47, 42, 0.35);
}
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
nav a {
  text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--navy);
  padding: 9px 14px; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
nav a:hover { background: var(--red-soft); color: var(--red); }
nav a.active { background: var(--red-soft); color: var(--red); }
nav a.cta { background: var(--navy); color: #fff; margin-left: 8px; padding: 10px 20px; }
nav a.cta:hover, nav a.cta.active { background: var(--red); color: #fff; }

.menu-toggle {
  display: none; border: none; cursor: pointer; font: inherit; font-weight: 700;
  background: var(--sky); color: var(--navy); padding: 9px 18px; border-radius: 999px;
}

.dropdown { position: relative; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px; margin-top: 6px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.submenu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.submenu a { display: block; border-radius: 12px; white-space: nowrap; padding: 10px 14px; }
.dropdown:hover .submenu,
.dropdown:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 96px 0 170px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(214, 47, 42, 0.55), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(232, 176, 75, 0.20), transparent 60%),
    linear-gradient(160deg, #0b142b 0%, #13244a 55%, #1b2f5c 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 60px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 0.85rem;
  margin-bottom: 26px; backdrop-filter: blur(6px);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(232,176,75,0.25); }
.hero h1 {
  color: #fff; font-weight: 600; font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 1.04; letter-spacing: -0.025em;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); display: block; }
.hero .lead { margin: 26px 0 34px; max-width: 560px; font-size: 1.15rem; color: #cfd8ee; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 0.98rem;
  padding: 15px 30px; border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 12px 28px rgba(214, 47, 42, 0.45); }
.btn-primary:hover { background: #e63a35; box-shadow: 0 16px 36px rgba(214, 47, 42, 0.55); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.hero-points { list-style: none; margin-top: 38px; display: grid; gap: 8px; }
.hero-points li { padding-left: 30px; position: relative; color: #dbe3f5; font-size: 0.95rem; font-weight: 500; }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  line-height: 20px; text-align: center; font-size: 0.7rem; font-weight: 800;
  border-radius: 50%; background: rgba(232,176,75,0.2); color: var(--gold);
}

.hero-visual { position: relative; padding: 30px 0; }
.hv-card.main {
  position: relative; overflow: hidden; color: #fff; padding: 44px 36px; min-height: 360px;
  border-radius: 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  background: linear-gradient(150deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}
.hv-card .leaf {
  position: absolute; top: -34px; right: -24px; width: 190px; color: var(--red); opacity: 0.9;
  transform: rotate(14deg); filter: drop-shadow(0 20px 40px rgba(214,47,42,0.5));
}
.hv-label { position: relative; text-transform: uppercase; letter-spacing: 2.5px; font-size: 0.72rem; font-weight: 700; color: var(--gold); }
.hv-card strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; line-height: 1.2; position: relative; }
.hv-sub { color: #c4cfe8; font-size: 0.92rem; }
.hv-chip {
  position: absolute; background: #fff; color: var(--navy); font-weight: 700; font-size: 0.86rem;
  padding: 11px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.c-a { top: 4px; left: -26px; }
.c-b { top: 30%; right: -22px; animation-delay: -2s; }
.c-c { bottom: 2px; left: 22px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Stats ---------- */
.stats { margin-top: -84px; position: relative; z-index: 5; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 14px;
  width: min(1132px, calc(100% - 48px)); /* keep the page gutter that .container padding lost */
}
.stat { text-align: center; padding: 26px 16px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--line);
}
.stat strong { display: block; font-family: var(--serif); font-size: 2.8rem; font-weight: 600; line-height: 1.1; color: var(--red); }
.stat span { color: var(--muted); font-weight: 600; font-size: 0.9rem; }

/* ---------- Search ---------- */
.search-section { padding: 44px 0 0; }
.search-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 28px; padding: 34px 26px; text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.search-box::after {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  right: -80px; top: -120px; background: rgba(214, 47, 42, 0.35); filter: blur(30px);
  pointer-events: none;
}
.search-box h2 { color: #fff; font-size: 1.5rem; margin-bottom: 18px; position: relative; }
.search-form {
  position: relative; z-index: 1; display: flex; max-width: 660px; margin: 0 auto;
  background: #fff; border-radius: 999px; padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.search-form input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  padding: 12px 22px; font: inherit; color: var(--ink);
}
.search-form button {
  border: none; cursor: pointer; font: inherit; font-weight: 800; border-radius: 999px;
  padding: 12px 24px; background: var(--red); color: #fff; transition: background 0.2s;
}
.search-form button:hover { background: var(--red-dark); }
.search-form button.clear { background: transparent; color: var(--muted); padding: 12px 14px; }
.search-form button.clear:hover { background: transparent; color: var(--red); }
.search-status { color: #c9d3ec; margin-top: 16px; min-height: 1.6em; font-weight: 500; font-size: 0.93rem; position: relative; }
mark.hit { background: #ffe08a; color: var(--navy); padding: 0 3px; border-radius: 4px; }
mark.hit.current { background: var(--red); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 100px 0; }
.bg-sky { background: var(--sky); }
.bg-cream { background: var(--cream); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 54px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase;
  letter-spacing: 2.5px; font-weight: 800; font-size: 0.74rem; color: var(--red); margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--red); opacity: 0.5; border-radius: 2px; }
.about-text .eyebrow::after { display: none; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); font-weight: 600; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.about-visual {
  position: relative; border-radius: 36px; padding: 70px 30px; text-align: center;
  font-size: 5.5rem; line-height: 1.2; color: #fff; overflow: hidden; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(300px 220px at 80% 0%, rgba(232,176,75,0.4), transparent 70%),
    linear-gradient(150deg, var(--navy-2), var(--navy));
}
.about-visual::after {
  content: ""; position: absolute; inset: 14px; border-radius: 26px; border: 1px dashed rgba(255,255,255,0.25);
}
.about-visual small {
  display: block; font-family: var(--serif); font-style: italic; font-size: 1.2rem;
  color: var(--gold); margin-top: 14px; position: relative; z-index: 1;
}
.about-text h2 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 600; margin-bottom: 20px; }
.about-text p { margin-bottom: 20px; color: var(--muted); font-size: 1.06rem; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { padding-left: 38px; position: relative; font-weight: 600; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 26px; height: 26px;
  line-height: 26px; text-align: center; font-size: 0.8rem; font-weight: 800;
  color: #fff; background: linear-gradient(145deg, var(--teal), #0f8077); border-radius: 50%;
}

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold)); transform: scaleX(0);
  transform-origin: left; transition: transform 0.4s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

.icon {
  width: 60px; height: 60px; display: grid; place-items: center; font-size: 1.7rem;
  border-radius: 18px; margin-bottom: 20px; transition: transform 0.3s;
}
.card:hover .icon { transform: rotate(-6deg) scale(1.08); }
.c1 .icon { background: linear-gradient(145deg, #e4e9ff, #cdd6ff); }
.c2 .icon { background: linear-gradient(145deg, #d8f6f1, #b5ece3); }
.c3 .icon { background: linear-gradient(145deg, #ffe3e1, #ffc9c5); }
.c4 .icon { background: linear-gradient(145deg, #fff0c9, #ffe29a); }
.c5 .icon { background: linear-gradient(145deg, #ebe4ff, #d6c9ff); }
.c6 .icon { background: linear-gradient(145deg, #dff6e4, #bfeccb); }

/* Timeline -> four stage columns */
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 44px; height: 3px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--red) 0 10px, transparent 10px 18px); opacity: 0.45;
}
.step { position: relative; z-index: 1; display: flex; flex-direction: column; }
.time {
  align-self: center; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--red), var(--red-dark)); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
  box-shadow: 0 0 0 8px var(--sky), 0 14px 30px rgba(214, 47, 42, 0.35);
}
.step-body {
  margin-top: -14px; padding: 44px 24px 28px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); flex: 1; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.step:hover .step-body { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-body h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.step-body p { color: var(--muted); font-size: 0.93rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 46px; }
.chip {
  background: #fff; border: 1px solid var(--line); padding: 11px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.93rem; color: var(--navy); box-shadow: var(--shadow-sm);
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { transform: translateY(-3px); background: var(--navy); color: #fff; border-color: var(--navy); }

/* Callout */
.callout {
  max-width: 860px; margin: 56px auto 0; padding: 34px 38px; background: #fff;
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(var(--red), var(--gold)); }
.callout h3 { font-size: 1.35rem; margin-bottom: 10px; }
.callout p { color: var(--muted); }

/* Campus tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.tile {
  position: relative; overflow: hidden; color: #fff; border-radius: 28px; padding: 38px 34px;
  min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow); transition: transform 0.35s, box-shadow 0.35s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background: radial-gradient(260px 200px at 90% 0%, rgba(255,255,255,0.55), transparent 70%);
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,14,30,0.78), rgba(8,14,30,0.15) 70%);
}
.tile:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--shadow-lg); }
.tile h3 { color: #fff; font-size: 1.5rem; font-weight: 600; margin-bottom: 8px; position: relative; z-index: 2; }
.tile p { position: relative; z-index: 2; color: rgba(255,255,255,0.92); font-size: 0.96rem; }
.tile .big {
  position: absolute; z-index: 1; right: 22px; top: 18px; font-size: 5.2rem; opacity: 0.9;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25)); transition: transform 0.4s;
}
.tile:hover .big { transform: scale(1.12) rotate(-6deg); }
.t1 { background: linear-gradient(140deg, #2f55d4, #4a79f0); }
.t2 { background: linear-gradient(140deg, #0c9b7a, #35d1a8); }
.t3 { background: linear-gradient(140deg, #e8590c, #ffa04d); }
.t4 { background: linear-gradient(140deg, #6b57e8, #a58cff); }
.t5 { background: linear-gradient(140deg, #c92a2a, #ff7a7a); }
.t6 { background: linear-gradient(140deg, #0e8aa0, #55d0e3); }

/* Quotes */
.quote p { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--navy); margin-bottom: 22px; position: relative; z-index: 1; }
.quote::after {
  content: "“"; position: absolute; top: -6px; right: 22px; font-family: var(--serif);
  font-size: 6.5rem; line-height: 1; color: var(--gold); opacity: 0.55;
}
.who { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--sky), #e3e8f8); font-size: 1.5rem; flex: none;
}
.who strong { display: block; font-family: var(--sans); font-weight: 700; color: var(--navy); line-height: 1.25; }
.who span { font-size: 0.85rem; color: var(--muted); }

/* Admissions steps */
.steps .icon {
  font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: #fff;
  background: linear-gradient(145deg, var(--navy-2), var(--navy)) !important; border-radius: 50%;
}

/* News */
.news .date {
  display: inline-block; font-weight: 800; font-size: 0.7rem; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--red); background: var(--red-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* Contact */
.contact-wrap {
  position: relative; overflow: hidden; border-radius: 40px; padding: 80px 48px; color: #fff;
  background:
    radial-gradient(600px 360px at 100% 0%, rgba(214,47,42,0.5), transparent 60%),
    radial-gradient(500px 320px at 0% 100%, rgba(232,176,75,0.22), transparent 60%),
    linear-gradient(150deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-lg);
}
.contact-wrap .section-head h2 { color: #fff; }
.contact-wrap .section-head p { color: #c6d1ea; }
.contact-wrap .eyebrow { color: var(--gold); }
.contact-wrap .eyebrow::before, .contact-wrap .eyebrow::after { background: var(--gold); }
.contact-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.contact-item {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px; padding: 28px 24px; text-align: center; backdrop-filter: blur(8px);
  transition: transform 0.3s, background 0.3s;
}
.contact-item:hover { transform: translateY(-6px); background: rgba(255,255,255,0.14); }
.contact-item .ci { font-size: 2rem; display: block; margin-bottom: 8px; }
.contact-item h3 { color: var(--gold); font-family: var(--sans); font-weight: 700; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.contact-item p { color: #eaf0ff; font-size: 0.98rem; word-break: break-word; }

/* Footer */
footer { background: #0a1228; color: #aab6d3; padding: 56px 0; text-align: center; }
footer .logo { justify-content: center; color: #fff; margin-bottom: 14px; }
footer p { font-size: 0.9rem; }
footer .motto { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.12rem; margin: 0 auto 10px; max-width: 560px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hv-chip { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 70px 0 150px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .c-a { left: -6px; } .c-b { right: -6px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 72px 0; }
  .contact-wrap { padding: 56px 24px; border-radius: 30px; }
  .menu-toggle { display: inline-block; }
  nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 4px; }
  nav.open { display: flex; }
  nav a { display: block; }
  nav a.cta { margin: 6px 0 0; text-align: center; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; min-width: 0; margin: 0; }
  .submenu::before { display: none; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .stats-grid { width: calc(100% - 36px); }
  .timeline { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .callout { padding: 28px 24px 28px 28px; }
  .hv-card.main { min-height: 300px; padding: 32px 26px; }
}

/* Leadership cards: keep short person cards centred next to the quote card */
.leaders .card:not(.quote) { display: flex; align-items: center; }
.leaders .card:not(.quote) .avatar { width: 64px; height: 64px; font-size: 2rem; }
.leaders .card:not(.quote) .who strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }

/* Final polish */
.tile { min-height: 300px; }
.tile .big { font-size: 4.2rem; top: 22px; right: 26px; }
.step-body h3 { font-size: 1.05rem; text-wrap: balance; }
@media (max-width: 560px) {
  .topbar .container { flex-wrap: nowrap; }
  .topbar .container:has(nav.open) { flex-wrap: wrap; }
  .logo { font-size: 0.95rem; gap: 8px; }
  .logo .mark { width: 34px; height: 34px; font-size: 1rem; border-radius: 10px; }
  .menu-toggle { padding: 8px 14px; font-size: 0.85rem; white-space: nowrap; }
}

/* ---------- Step 5: colour & typography refinements ---------- */
:root { --muted: #4f5a72; --red-text: #b3231f; }
body { font-size: 1.06rem; line-height: 1.7; }
h1, h2, h3 { text-wrap: balance; }
.eyebrow { color: var(--red-text); font-size: 0.78rem; }
.news .date { color: var(--red-text); }
.card p { font-size: 1rem; }
.step-body p { font-size: 0.98rem; }
.chip { font-size: 0.97rem; }
.stat span { font-size: 0.95rem; }
.who span { font-size: 0.9rem; }
.section-head p, .about-text p { line-height: 1.7; }
.card h3 { font-size: 1.32rem; }

/* ---------- Step 6: cards, tags, hover ---------- */
.tag {
  display: inline-block; align-self: flex-start; margin-bottom: 14px; padding: 4px 12px;
  border-radius: 999px; font-family: var(--sans); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase; line-height: 1.5;
  background: var(--sky); color: var(--navy-2);
}
.c1 .tag { background: #e4e9ff; color: #2b3f9e; }
.c2 .tag { background: #d8f6f1; color: #0b6b62; }
.c3 .tag { background: #ffe3e1; color: #a02420; }
.c5 .tag { background: #ebe4ff; color: #5a3fb8; }
.tile .tag {
  position: relative; z-index: 2; background: rgba(255,255,255,0.22); color: #fff;
  border: 1px solid rgba(255,255,255,0.4); backdrop-filter: blur(6px);
}
.tile p { color: #fff; }
.tile .more {
  position: absolute; z-index: 2; right: 28px; bottom: 30px; width: 38px; height: 38px;
  display: grid; place-items: center; border-radius: 50%; font-weight: 800;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.45);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.tile:hover .more { transform: translateX(4px); background: #fff; color: var(--navy); }
.tile { padding-right: 84px; }

@media (max-width: 560px) {
  body { font-size: 1.02rem; }
  .tile { padding-right: 78px; min-height: 270px; }
}

/* ---------- Multi-page additions ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 84px 0 96px; text-align: center;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(214, 47, 42, 0.5), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(232, 176, 75, 0.2), transparent 60%),
    linear-gradient(160deg, #0b142b 0%, #13244a 60%, #1b2f5c 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.45;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-weight: 600; font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -0.02em; margin: 6px auto 16px; max-width: 880px; }
.page-hero p { color: #cfd8ee; max-width: 640px; margin: 0 auto; font-size: 1.12rem; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before, .page-hero .eyebrow::after { background: var(--gold); }
.crumbs { display: flex; justify-content: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: #aab6d3; margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.page-hero + .search-section { margin-top: -32px; position: relative; z-index: 5; padding-top: 0; }
.page-hero + .search-section .search-box { box-shadow: var(--shadow-lg); }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--red); box-shadow: var(--shadow); }

a.link-card { text-decoration: none; color: inherit; display: block; }
.link-card .more { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 0.9rem; color: var(--red); transition: transform 0.2s; }
.link-card:hover .more { transform: translateX(6px); }

.cta-section { padding: 0 0 100px; }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px;
  padding: 52px 56px; border-radius: 36px; color: #fff; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(500px 280px at 100% 0%, rgba(232,176,75,0.35), transparent 60%),
    linear-gradient(135deg, var(--red), var(--red-dark));
}
.cta-band h2 { color: #fff; font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 8px; }
.cta-band p { color: #ffe2df; max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band .btn-primary { background: #fff; color: var(--red-dark); box-shadow: 0 12px 28px rgba(0,0,0,0.2); }
.cta-band .btn-primary:hover { background: var(--cream); }

/* Footer columns */
footer { text-align: left; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
footer .logo { justify-content: flex-start; margin-bottom: 14px; }
footer .motto { margin: 0; font-size: 1.05rem; max-width: 340px; }
footer h4 { color: #fff; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
footer a:not(.logo) { display: block; text-decoration: none; margin-bottom: 8px; font-size: 0.95rem; }
footer a:not(.logo):hover { color: var(--gold); }
footer .foot-grid p { margin-bottom: 8px; font-size: 0.93rem; }
.foot-note { text-align: center; padding-top: 28px; font-size: 0.85rem; }

@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 28px; }
  .page-hero { padding: 64px 0 84px; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
}
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.three { grid-template-columns: 1fr; } }

/* ---------- Step 7: weekly timetable ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tt-legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 24px; }
.tt-legend span { padding: 5px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.tt-wrap { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.timetable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.timetable thead th {
  background: var(--navy); color: #fff; text-align: left; padding: 16px 14px;
  font-size: 0.78rem; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 800;
}
.timetable thead th:first-child { width: 110px; }
.timetable td, .timetable tbody th { padding: 14px; vertical-align: top; border-top: 1px solid var(--line); text-align: left; }
.timetable td + td, .timetable td:first-of-type { border-left: 1px solid var(--line); }
.tt-period strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); line-height: 1.2; }
.tt-period span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.timetable td strong { display: block; font-size: 0.95rem; line-height: 1.3; color: var(--navy); margin-bottom: 4px; }
.timetable td small { display: block; font-size: 0.8rem; line-height: 1.4; color: var(--muted); }
.tt-break td { background: var(--sky); padding: 10px 14px; font-size: 0.85rem; border-left: none; }
.tt-break td strong { display: inline; font-size: 0.78rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--navy-2); margin-right: 8px; }
.tt-break td span { color: var(--muted); font-weight: 600; }
.s-sci { background: #e4e9ff; } .s-hum { background: #ffeceb; } .s-ai { background: #ebe4ff; } .s-other { background: #fff4d6; }
.tt-legend .s-sci { color: #2b3f9e; } .tt-legend .s-hum { color: #a02420; } .tt-legend .s-ai { color: #5a3fb8; } .tt-legend .s-other { color: #7a5200; }
.timetable td.s-sci { background: #f1f4ff; } .timetable td.s-hum { background: #fff5f4; } .timetable td.s-ai { background: #f5f1ff; } .timetable td.s-other { background: #fffaea; }

@media (max-width: 860px) {
  .tt-wrap { background: transparent; border: none; box-shadow: none; overflow: visible; }
  .timetable, .timetable tbody { display: block; }
  .timetable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .timetable tr { display: block; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
  .timetable tbody th.tt-period { display: flex; align-items: baseline; gap: 12px; background: var(--navy); border: none; padding: 12px 16px; }
  .tt-period strong, .tt-period span { color: #fff; }
  .tt-period strong { display: inline; font-size: 1.1rem; }
  .tt-period span { color: #c9d3ec; }
  .timetable td { display: grid; grid-template-columns: 92px 1fr; gap: 12px; border-left: none !important; padding: 12px 16px; }
  .timetable td[data-day]::before { content: attr(data-day); font-size: 0.72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
  .timetable td > * { grid-column: 2; }
  .tt-break { background: var(--sky) !important; border-style: dashed !important; box-shadow: none !important; }
  .tt-break td { display: block; padding: 10px 16px; }
}

/* ---------- Upcoming events ---------- */
.event-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--navy); transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--navy); transform: translateY(-2px); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.event { display: flex; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.event:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event[hidden] { display: none; }
.event-date {
  flex: 0 0 96px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: var(--navy); color: #fff; font-size: 0.85rem; font-weight: 600; text-align: center; padding: 16px 8px;
}
.event-date span { font-size: 1.15rem; font-weight: 800; text-transform: uppercase; }
.event-body { padding: 18px 22px; }
.event-body h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.event-body p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.event-empty { text-align: center; color: var(--muted); margin-top: 24px; }
@media (max-width: 760px) { .event-list { grid-template-columns: 1fr; } }

/* ---------- Logo images ---------- */
.logo { gap: 12px; }
.logo .logo-mark { height: 52px; width: auto; }
.logo .logo-text {
  font-family: var(--sans, 'Plus Jakarta Sans', sans-serif); font-weight: 800;
  font-size: 1.02rem; line-height: 1.12; letter-spacing: -0.01em; color: #1b3a8f;
}
footer .logo img { display: block; height: 110px; width: auto; }
@media (max-width: 760px) {
  .logo .logo-mark { height: 42px; }
  .logo .logo-text { font-size: 0.85rem; }
}

.search-form button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; }

/* ---------- Layout fixes: no orphaned card rows, no broken email ---------- */
.grid.steps { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .grid.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.contact-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item p { overflow-wrap: anywhere; }

/* ---------- Step 9: accessibility ---------- */
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200; padding: 12px 22px;
  background: var(--navy); color: #fff; font-weight: 700; border-radius: 0 0 14px 14px;
  text-decoration: none; transition: top 0.15s;
}
.skip-link:focus { top: 0; outline: 3px solid var(--gold); outline-offset: 2px; }
main:focus { outline: none; }

/* Keyboard focus: strong ring on light backgrounds, gold on dark ones (both pass 3:1) */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #1d3fbf; outline-offset: 3px; border-radius: 6px;
}
.hero a:focus-visible, .page-hero a:focus-visible, .cta-band a:focus-visible,
.contact-wrap a:focus-visible, .search-box button:focus-visible, footer a:focus-visible,
.tile:focus-visible {
  outline-color: var(--gold);
}
.search-form input:focus-visible { outline: none; }
.search-form:focus-within { box-shadow: 0 0 0 4px var(--gold), 0 10px 30px rgba(0,0,0,0.25); }
.card.link-card:focus-visible { outline-offset: 4px; border-radius: var(--radius); }

/* Clear, comfortable targets and recognisable links */
.search-form input::placeholder { color: #5b6477; opacity: 1; }
.search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.menu-toggle, .search-form button, .filter-btn { min-height: 44px; }
nav a { min-height: 44px; display: inline-flex; align-items: center; }
.submenu a { display: flex; }
.contact-item a, footer .foot-grid p a { text-decoration: underline; text-underline-offset: 3px; }
.contact-item a:hover, footer .foot-grid p a:hover { color: var(--gold); }
.search-status { color: #dbe3f7; }
.crumbs { color: #c9d3ec; }

/* Don't rely on colour alone to show the current page */
nav a[aria-current="page"]:not(.cta) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

@media (forced-colors: active) {
  .btn, .chip, .filter-btn { border: 1px solid ButtonText; }
}
nav a.cta { justify-content: center; }
@media (max-width: 900px) { nav a { display: flex; } }
