/*
 * SITM Entebbe website
 * Custom visual system layered over the licensed Histudy base stylesheet.
 * Edit this file for colours, spacing, typography, layout and animations.
 */

/* ---------- 1. Design tokens and font setup ---------- */
@font-face {
  font-family: "Euclid Circular";
  src: url("../fonts/EuclidCircularA-Regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Euclid Circular";
  src: url("../fonts/EuclidCircularA-SemiBold.woff2") format("woff2");
  font-display: swap;
  font-weight: 600;
}

@font-face {
  font-family: "Euclid Circular";
  src: url("../fonts/EuclidCircularA-Bold.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

:root {
  --header-height: 122px;
  --ink: #17241f;
  --ink-soft: #30473b;
  --forest-950: #0d2d22;
  --forest-900: #123c2c;
  --forest-800: #18503a;
  --forest-700: #27664a;
  --sage: #3f704f;
  --sage-light: #dce9df;
  --mint: #edf5ef;
  --paper: #fbfcf8;
  --white: #ffffff;
  --gold: #f4b21b;
  --gold-dark: #ca8700;
  --line: rgba(23, 36, 31, 0.12);
  --shadow-sm: 0 12px 30px rgba(13, 45, 34, 0.08);
  --shadow-lg: 0 28px 70px rgba(13, 45, 34, 0.16);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --content: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Euclid Circular", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(244, 178, 27, 0.75);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 8px;
  color: var(--white);
  background: var(--forest-900);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 104px 0;
}

.section--soft {
  background: var(--mint);
}

.section--dark {
  overflow: hidden;
  color: var(--white);
  background: var(--forest-950);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--forest-700);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  content: "";
  background: var(--gold);
}

.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: #f8d674;
}

.section--dark .section-heading h2,
.section--dark .section-heading .lead,
.section--dark > .container > .split h2,
.section--dark .check-list li {
  color: var(--white);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.section--dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 52px;
}

.section-heading > * {
  margin-bottom: 0;
}

/* ---------- 2. Shared buttons ---------- */
.button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 240ms var(--ease),
    box-shadow 240ms var(--ease),
    background 240ms ease;
}

.button::after {
  position: absolute;
  inset: -2px auto -2px -60%;
  width: 38%;
  content: "";
  transform: skewX(-24deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.48),
    transparent
  );
  transition: left 520ms var(--ease);
}

.button:hover {
  transform: translateY(-3px);
}

.button:hover::after {
  left: 135%;
}

.button--gold {
  color: #14231d;
  background: var(--gold);
  box-shadow: 0 14px 32px rgba(244, 178, 27, 0.28);
}

.button--gold:hover {
  background: #ffc338;
  box-shadow: 0 18px 36px rgba(244, 178, 27, 0.38);
}

.button--green {
  color: var(--white);
  background: var(--forest-700);
  box-shadow: 0 14px 32px rgba(39, 102, 74, 0.2);
}

.button--white {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest-700);
  font-weight: 700;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(5px);
}

/* ---------- 3. Header and navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 250ms ease,
    background 250ms ease;
}

main {
  padding-top: var(--header-height);
}

main.main--with-ticker {
  padding-top: 0;
}

.site-header.is-scrolled {
  box-shadow: 0 16px 35px rgba(13, 45, 34, 0.1);
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--forest-950);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
}

.topbar__inner {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar a:hover {
  color: var(--white);
}

.nav-shell {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 190px;
  height: 62px;
  flex: 0 0 190px;
  object-fit: contain;
  object-position: left center;
}

.brand__copy {
  display: none;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  overflow: hidden;
  border-radius: 17px 48% 17px 48%;
  color: var(--white);
  background: var(--forest-700);
  font-weight: 700;
  transform: rotate(-5deg);
}

.brand__mark::after {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(244, 178, 27, 0.75);
  border-radius: 50%;
  content: "";
}

.brand__copy {
  display: grid;
  line-height: 1.05;
}

.brand__copy strong {
  color: var(--forest-900);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

.brand__copy span {
  margin-top: 5px;
  color: var(--sage);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  position: relative;
  padding: 11px 12px;
  border-radius: 10px;
  color: #334039;
  font-size: 1.4rem;
  font-weight: 600;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  transition: transform 240ms var(--ease);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--forest-700);
  background: var(--mint);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--forest-900);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Ticker */
.ticker-banner {
  position: relative;
  z-index: 1;
  margin-top: var(--header-height);
  background: #000;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 25s linear infinite;
}

.ticker-track span {
  flex: 0 0 auto;
  padding-right: 3rem;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 4. Hero areas ---------- */
.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 122px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-950);
}

.hero__media,
.page-hero__media {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero__media {
  animation: heroZoom 14s ease-out both;
}

.hero::before,
.page-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(9, 30, 23, 0.94) 0%,
      rgba(9, 30, 23, 0.72) 45%,
      rgba(9, 30, 23, 0.23) 100%
    ),
    linear-gradient(0deg, rgba(9, 30, 23, 0.82) 0%, transparent 55%);
}

.hero::after,
.page-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  opacity: 0.18;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.85) 0.7px,
    transparent 0.7px
  );
  background-size: 8px 8px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 150px 0 110px;
}

.hero h1 {
  margin-bottom: 28px;
  max-width: 850px;
  color: var(--white);
}

.hero__summary {
  max-width: 680px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.hero__meta strong {
  color: var(--white);
}

.page-hero {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--forest-950);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  padding: 150px 0 80px;
}

.page-hero h1 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(3.2rem, 7vw, 6.2rem);
}

.page-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.18rem;
}

@keyframes heroZoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

/* ---------- 5. Cards, grids and split sections ---------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

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

.card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition:
    transform 300ms var(--ease),
    box-shadow 300ms var(--ease),
    border-color 300ms ease;
}

.card:hover {
  transform: translateY(-7px);
  border-color: rgba(92, 138, 106, 0.34);
  box-shadow: var(--shadow-lg);
}

.card::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(92, 138, 106, 0.17),
    transparent 42%
  );
  transition: opacity 220ms ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card__number,
.icon-box {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 15px;
  color: var(--forest-900);
  background: var(--sage-light);
  font-weight: 700;
}

.card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.split {
  display: grid;
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.split--reverse .split__media {
  order: 2;
}

.split__media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.split__media img {
  position: absolute;
  inset: 0;
  height: 110%;
  object-fit: cover;
  transform: translateY(var(--parallax, -3%));
}

.split__media::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 115px;
  height: 115px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 18px rgba(244, 178, 27, 0.2);
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-soft);
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--sage);
  content: "✓";
  font-size: 0.76rem;
  font-weight: 700;
}

/* ---------- 6. Statistics and pathways ---------- */
.stats-band {
  position: relative;
  z-index: 3;
  margin-top: -54px;
}

.stats-grid {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  background: var(--forest-900);
  box-shadow: var(--shadow-lg);
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  min-height: 170px;
  padding: 34px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.bento {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
}

.pathway {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--radius-md);
  color: var(--white);
  background: var(--forest-900);
}

.pathway:nth-child(2),
.pathway:nth-child(5) {
  background: var(--sage);
}

.pathway:nth-child(3) {
  background: #2f493f;
}

.pathway:first-child {
  min-height: 644px;
  grid-row: span 2;
}

.pathway__image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  transition:
    transform 600ms var(--ease),
    opacity 350ms ease;
}

.pathway::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(13, 45, 34, 0.95), transparent 75%);
}

.pathway:hover .pathway__image {
  transform: scale(1.06);
  opacity: 0.42;
}

.pathway__content {
  position: relative;
  z-index: 2;
}

.pathway__label {
  color: #f7d36b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pathway h3 {
  margin: 8px 0 6px;
  font-size: 1.55rem;
  color: white;
}

.pathway p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 7. History, team, quotes and events ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 50px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 107px;
  width: 2px;
  content: "";
  background: var(--sage-light);
}

.timeline__progress {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 107px;
  width: 2px;
  height: var(--timeline-progress, 0%);
  background: var(--gold);
  transition: height 120ms linear;
}

.milestone {
  position: relative;
  display: grid;
  min-height: 150px;
  align-items: start;
  gap: 45px;
  padding: 6px 0 44px;
  grid-template-columns: 85px 1fr;
}

.milestone__year {
  position: relative;
  z-index: 2;
  padding-top: 4px;
  color: var(--forest-700);
  font-size: 1.25rem;
  font-weight: 700;
}

.milestone__year::after {
  position: absolute;
  top: 11px;
  right: -31px;
  width: 14px;
  height: 14px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  content: "";
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.milestone__body {
  max-width: 760px;
  padding: 0 0 0 12px;
}

.milestone__body p {
  margin: 0;
  color: var(--ink-soft);
}

.person-card,
.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.person-card img,
.event-card img {
  height: 310px;
  object-fit: cover;
  transition: transform 550ms var(--ease);
}

.person-card:hover img,
.event-card:hover img {
  transform: scale(1.045);
}

.person-card__body,
.event-card__body {
  padding: 26px;
}

.person-card__body span,
.event-card__meta {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.quote-stage {
  display: grid;
  align-items: stretch;
  gap: 34px;
  grid-template-columns: 0.8fr 1.2fr;
}

.quote-stage__image {
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.quote-stage__image img {
  height: 100%;
  object-fit: cover;
}

.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(35px, 6vw, 72px);
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--forest-900);
}

.quote-card blockquote {
  margin: 0 0 28px;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: white;
}

.quote-card cite {
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
}

.quote-card::before {
  position: absolute;
  top: 28px;
  right: 38px;
  color: rgba(244, 178, 27, 0.32);
  content: "“";
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
}

/* ---------- 8. Programme filters and accordions ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-button {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--forest-700);
  color: var(--white);
  background: var(--forest-700);
}

.programme-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.programme-card[hidden] {
  display: none;
}

.programme-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 42px;
}

.programme-card__tag {
  color: var(--forest-700);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.programme-card__count {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--forest-700);
  background: var(--mint);
  font-weight: 700;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.accordion summary {
  position: relative;
  padding: 22px 62px 22px 24px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  content: "+";
  transform: translateY(-50%);
  color: var(--sage);
  font-size: 1.6rem;
}

.accordion details[open] summary::after {
  content: "−";
}

.accordion__content {
  padding: 0 24px 24px;
  color: var(--ink-soft);
}

/* ---------- 9. Campus life, gallery and facilities ---------- */
.feature-strip {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  grid-template-columns: repeat(3, 1fr);
}

.feature-strip__item {
  min-height: 320px;
  padding: 32px;
  color: var(--white);
  background: var(--forest-900);
}

.feature-strip__item:nth-child(2) {
  background: var(--sage);
}

.feature-strip__item:nth-child(3) {
  color: var(--ink);
  background: var(--gold);
}

.facility-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  grid-template-columns: 0.9fr 1.1fr;
}

.facility-card img {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.facility-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 220px;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  cursor: zoom-in;
  background: var(--sage-light);
}

.gallery-item:nth-child(7n + 1),
.gallery-item:nth-child(7n + 5) {
  grid-row: span 2;
}

.gallery-item:nth-child(7n + 3) {
  grid-column: span 2;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition:
    transform 550ms var(--ease),
    filter 300ms ease;
}

.gallery-item::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(13, 45, 34, 0.78);
  content: "+";
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 10. Forms, contact and dialogs ---------- */
.contact-layout {
  display: grid;
  align-items: start;
  gap: 60px;
  grid-template-columns: 0.78fr 1.22fr;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.contact-list__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
}

.contact-list__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: var(--forest-800);
  background: var(--sage-light);
}

.contact-list__item strong {
  display: block;
}

.contact-list__item span,
.contact-list__item a {
  color: var(--ink-soft);
}

.form-card {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field--wide {
  grid-column: 1 / -1;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #cfd9d2;
  border-radius: 11px;
  color: var(--ink);
  background: #fcfdfb;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(92, 138, 106, 0.13);
}

.form-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.form-status {
  display: none;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--forest-900);
  background: var(--mint);
}

.form-status.is-visible {
  display: block;
}

.location-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}

.location-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.location-card__map {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(13, 45, 34, 0.92), rgba(92, 138, 106, 0.78)),
    radial-gradient(circle at 30% 35%, rgba(244, 178, 27, 0.5), transparent 30%);
}

.location-card__map::before,
.location-card__map::after {
  position: absolute;
  width: 220px;
  height: 2px;
  content: "";
  transform: rotate(35deg);
  background: rgba(255, 255, 255, 0.18);
}

.location-card__map::after {
  transform: rotate(-24deg);
}

.location-card__pin {
  position: relative;
  z-index: 2;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 7px solid rgba(255, 255, 255, 0.28);
  border-radius: 50% 50% 50% 8px;
  background: var(--gold);
  transform: rotate(-45deg);
}

.location-card__pin span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--forest-950);
}

.location-card__body {
  padding: 28px;
}

.dialog {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  visibility: hidden;
  padding: 24px;
  place-items: center;
  opacity: 0;
  background: rgba(6, 22, 16, 0.72);
  backdrop-filter: blur(10px);
  transition:
    visibility 0s linear 240ms,
    opacity 240ms ease;
}

.dialog.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.dialog__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 50px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.32);
  transform: translateY(22px) scale(0.98);
  transition: transform 300ms var(--ease);
}

.dialog.is-open .dialog__panel {
  transform: translateY(0) scale(1);
}

.dialog__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--forest-900);
  cursor: pointer;
  font-size: 1.25rem;
}

.lightbox .dialog__panel {
  width: min(1050px, 100%);
  padding: 12px;
  background: #081711;
}

.lightbox img {
  max-height: 80vh;
  object-fit: contain;
  border-radius: 22px;
}

/* ---------- 11. Calls to action, footer and floating tools ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(45px, 7vw, 78px);
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(244, 178, 27, 0.3),
      transparent 28%
    ),
    linear-gradient(135deg, var(--forest-950), var(--forest-700));
}

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

.cta::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.2;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.9) 0.7px,
    transparent 0.7px
  );
  background-size: 9px 9px;
}

.cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}
.cta__content h2{
  
  color: white;
}

.cta h2 {
  max-width: 700px;
  margin-bottom: 0;
}

.site-footer {
  padding: 76px 0 28px;
  color: rgba(255, 255, 255, 0.86);
  background: #0a241a;
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
  grid-template-columns: 1.35fr 0.7fr 0.7fr 1fr;
}

.site-footer .brand__copy strong,
.site-footer .brand__copy span {
  color: var(--white);
}

.footer-title {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.8rem;
}

.verification-note {
  max-width: 720px;
}

.whatsapp {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  border-radius: 999px;
  color: var(--white);
  background: #1fc86a;
  box-shadow: 0 16px 38px rgba(31, 200, 106, 0.32);
  font-weight: 700;
  transition: transform 220ms var(--ease);
}

.whatsapp:hover {
  transform: translateY(-4px) scale(1.02);
}

/* ---------- 12. Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero [data-reveal] {
  opacity: 1;
  animation: revealIn 760ms var(--ease) both;
  animation-delay: var(--delay, 0ms);
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 13. Responsive navigation and layout ---------- */
@media (max-width: 1100px) {
  :root {
    --header-height: 114px;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-shell {
    min-height: 78px;
  }

  .nav-panel {
    position: fixed;
    z-index: 110;
    top: 0;
    right: 0;
    width: min(390px, 90vw);
    height: 100vh;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 95px 28px 36px;
    background: var(--white);
    box-shadow: -28px 0 70px rgba(13, 45, 34, 0.18);
    transform: translateX(105%);
    transition: transform 340ms var(--ease);
  }

  .nav-panel.is-open {
    transform: translateX(0);
  }

  .main-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .main-nav a {
    padding: 14px 16px;
    font-size: 1.5rem;
  }

  .nav-panel .button {
    width: 100%;
  }

  .menu-toggle {
    position: relative;
    z-index: 120;
  }

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

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

  .pathway:first-child {
    min-height: 420px;
    grid-column: span 2;
    grid-row: auto;
  }

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

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

@media (max-width: 820px) {
  :root {
    --header-height: 78px;
  }

  .section {
    padding: 78px 0;
  }

  .topbar {
    display: none;
  }

  .hero {
    min-height: 700px;
  }

  .hero::before,
  .page-hero::before {
    background: linear-gradient(
      90deg,
      rgba(9, 30, 23, 0.94),
      rgba(9, 30, 23, 0.5)
    );
  }

  .hero__content {
    padding: 120px 0 90px;
  }

  .section-heading,
  .cta__content {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-2,
  .grid-3,
  .split,
  .quote-stage,
  .contact-layout,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .split__media {
    min-height: 430px;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-strip__item {
    min-height: 230px;
  }

  .facility-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 580px) {
  .container {
    width: min(calc(100% - 28px), var(--content));
  }

  .brand {
    min-width: auto;
  }

  .brand__logo {
    width: 150px;
    height: 48px;
    flex-basis: 150px;
  }

  .brand__mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand__copy strong {
    font-size: 1.08rem;
  }

  .brand__copy span {
    font-size: 0.58rem;
  }

  .hero {
    min-height: 690px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .page-hero {
    min-height: 440px;
  }

  .page-hero__content {
    padding: 110px 0 62px;
  }

  .stats-band {
    margin-top: -28px;
  }

  .stats-grid,
  .grid-4,
  .bento,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 140px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .pathway:first-child {
    min-height: 350px;
    grid-column: auto;
  }

  .pathway {
    min-height: 300px;
  }

  .timeline::before,
  .timeline__progress {
    left: 12px;
  }

  .milestone {
    gap: 20px;
    padding-left: 32px;
    grid-template-columns: 1fr;
  }

  .milestone__year::after {
    top: 8px;
    right: auto;
    left: -26px;
  }

  .milestone__body {
    padding-left: 0;
  }

  .gallery-grid {
    grid-auto-rows: 190px;
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(n) {
    grid-row: auto;
    grid-column: auto;
  }

  .gallery-item:nth-child(4n + 1) {
    grid-row: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp {
    right: 14px;
    bottom: 14px;
    width: 54px;
    padding: 14px;
    justify-content: center;
  }

  .whatsapp span {
    display: none;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
/* =========================================================
   ABOUT PAGE — TYPOGRAPHY CONSISTENCY
   Keep About Us typography consistent with the SITM theme.
   ========================================================= */

.page-about-sitm,
.page-about-sitm * {
  font-family: "Euclid Circular", Arial, sans-serif;
}
/* =========================================================
   SITM — GLOBAL FONT CONSISTENCY
   ========================================================= */

body,
body * {
  font-family: "Euclid Circular", Arial, sans-serif;
}
/* =========================================================
   SITM EVENTS PAGE
   Targeted styling only
   ========================================================= */

/* ---------- EVENTS HERO ---------- */

.sitm-events-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(
      105deg,
      rgba(13, 45, 34, 0.78),
      rgba(13, 45, 34, 0.34)
    ),
    url("PASTE-HERO-IMAGE-URL-HERE");
  background-size: cover;
  background-position: center;
}

.sitm-events-hero .container {
  width: 100%;
}

.sitm-events-hero .page-hero__content {
  max-width: 760px;
  padding: 90px 0;
}

.sitm-events-hero h1 {
  max-width: 760px;
  margin: 14px 0 20px;
  color: #ffffff;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.sitm-events-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  line-height: 1.75;
}


/* ---------- SECTION HEADINGS ---------- */

.sitm-events-page .section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.sitm-events-page .section-heading h2 {
  margin: 12px 0 18px;
}

.sitm-events-page .section-heading .lead {
  margin-bottom: 0;
}


/* ---------- EVENT GRID ---------- */

.sitm-event-grid {
  align-items: stretch;
}

.sitm-event-grid .event-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sitm-event-grid .event-card__media {
  overflow: hidden;
}

.sitm-event-grid .event-card__media img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}

.sitm-event-grid .event-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sitm-event-grid .event-card__body .text-link {
  margin-top: auto;
  padding-top: 20px;
}

.sitm-event-grid .event-card h3 {
  margin-top: 12px;
  margin-bottom: 12px;
}


/* ---------- EVENT META ---------- */

.sitm-events-page .event-card__meta {
  color: var(--gold-dark);
}

.section--dark .event-card__meta {
  color: var(--gold);
}


/* ---------- GRADUATION ---------- */

.sitm-events-graduation .split {
  align-items: center;
}

.sitm-events-graduation .split__media {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.sitm-events-graduation .split__media img {
  width: 100%;
  min-height: 500px;
  display: block;
  object-fit: cover;
}

.sitm-events-graduation .split__content {
  padding: 20px 0;
}

.sitm-events-graduation h2 {
  margin: 12px 0 20px;
}

.sitm-event-checklist {
  display: grid;
  gap: 18px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.sitm-event-checklist li {
  position: relative;
  padding-left: 30px;
}

.sitm-event-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.sitm-event-checklist strong {
  display: inline-block;
  margin-right: 7px;
  color: var(--forest-800);
}


/* ---------- DARK HIGHLIGHTS ---------- */

.sitm-events-highlights {
  position: relative;
  overflow: hidden;
}

.sitm-events-highlights .section-heading {
  margin-bottom: 48px;
}

.sitm-events-highlights .event-card {
  height: 100%;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.sitm-events-highlights .event-card__body {
  padding: 30px;
}

.sitm-events-highlights .event-card h3 {
  color: #ffffff;
  margin: 12px 0 14px;
}

.sitm-events-highlights .event-card p {
  color: rgba(255, 255, 255, 0.76);
}

.sitm-events-highlights .event-card__meta {
  color: var(--gold);
}


/* ---------- QUOTE ---------- */

.sitm-events-quote .quote-stage {
  min-height: 540px;
}

.sitm-events-quote .quote-stage__image img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.sitm-events-quote .quote-card blockquote {
  margin-top: 18px;
}


/* ---------- QUESTIONS ---------- */

.sitm-event-questions .split {
  align-items: flex-start;
}

.sitm-event-questions .split__content {
  padding-top: 10px;
}

.sitm-event-questions h2 {
  margin: 12px 0 18px;
}

.sitm-event-questions .accordion {
  width: 100%;
}


/* ---------- FINAL CTA ---------- */

.sitm-events-cta {
  text-align: center;
}

.sitm-events-cta .cta {
  max-width: 820px;
  margin: 0 auto;
}

.sitm-events-cta h2 {
  max-width: 720px;
  margin: 12px auto 18px;
  color: #ffffff;
}

.sitm-events-cta p {
  max-width: 650px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.78);
}


/* ---------- MOBILE ---------- */

@media (max-width: 900px) {

  .sitm-events-hero {
    min-height: 460px;
  }

  .sitm-events-hero .page-hero__content {
    padding: 70px 0;
  }

  .sitm-events-graduation .split__media img,
  .sitm-events-quote .quote-stage__image img {
    min-height: 400px;
  }

}


@media (max-width: 700px) {

  .sitm-events-hero {
    min-height: 420px;
  }

  .sitm-events-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.7rem);
  }

  .sitm-events-hero p {
    font-size: 1rem;
  }

  .sitm-events-page .section-heading {
    margin-bottom: 36px;
  }

  .sitm-event-grid .event-card__media img {
    height: 240px;
  }

  .sitm-events-graduation .split__media img,
  .sitm-events-quote .quote-stage__image img {
    min-height: 320px;
  }

  .sitm-events-highlights .event-card__body {
    padding: 24px;
  }

}


/* =========================================================
   END EVENTS PAGE
   ========================================================= */
