@font-face {
  font-family: "Shatha DIN";
  src: url("../assets/fonts/din-next-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Shatha DIN";
  src: url("../assets/fonts/din-next-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Shatha DIN";
  src: url("../assets/fonts/din-next-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

:root {
  --blue: #4baed6;
  --blue-deep: #2e8fb8;
  --blue-pale: #b0e8f0;
  --pink: #e8a0c8;
  --paper: #f8fafc;
  --ink: #1a2e38;
  --ink-soft: #3d5a6b;
  --line: #cfe4ed;
  --surface: #ffffff;
  --surface-tint: #edf6fc;
  --footer: #112d3a;
  --success: #25d366;
  --font-display: "Shatha DIN", Tahoma, Arial, sans-serif;
  --font-body: "Shatha DIN", Tahoma, Arial, sans-serif;
  --font-arabic: "Shatha DIN", Tahoma, Arial, sans-serif;
  --nav-h: 76px;
  --page-edge: clamp(1rem, 3vw, 3rem);
  --section-y: clamp(4.5rem, 8vw, 7.5rem);
  --radius-sm: 0.4rem;
  --radius-md: 0.8rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 8px 24px rgba(32, 96, 122, 0.09);
  --shadow-lg: 0 24px 70px rgba(32, 96, 122, 0.17);
  --ease: cubic-bezier(0.22, 0.72, 0.26, 1);
}

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

[hidden] {
  display: none !important;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

html[dir="rtl"] {
  font-family: var(--font-arabic);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

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

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

::selection {
  color: var(--ink);
  background: var(--blue-pale);
}

.container {
  width: min(100% - (2 * var(--page-edge)), 1240px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  inset-block-start: 0.75rem;
  inset-inline-start: 1rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.2rem;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  content: "";
}

[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

[dir="rtl"] .eyebrow::before {
  background: linear-gradient(270deg, var(--blue), var(--pink));
}

.display,
.heading,
.subheading {
  margin: 0;
  font-family: var(--font-display);
  text-wrap: balance;
}

[dir="rtl"] .display,
[dir="rtl"] .heading,
[dir="rtl"] .subheading {
  font-family: var(--font-arabic);
}

.display {
  font-size: clamp(2.65rem, 6vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.heading {
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.subheading {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

[dir="rtl"] .display,
[dir="rtl"] .heading {
  letter-spacing: 0;
  line-height: 1.25;
}

.lede,
.body-copy {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.lede {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.body-copy {
  font-size: 0.95rem;
}

[dir="rtl"] .lede,
[dir="rtl"] .body-copy {
  line-height: 2;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 220ms var(--ease), background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

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

.button--primary {
  color: #fff;
  background: var(--blue-deep);
  box-shadow: 0 12px 28px rgba(46, 143, 184, 0.28);
}

.button--primary:hover {
  background: #247ca1;
  box-shadow: 0 16px 34px rgba(46, 143, 184, 0.34);
}

.button--outline {
  border-color: var(--blue-deep);
  color: var(--blue-deep);
  background: transparent;
}

.button--outline:hover {
  color: #fff;
  background: var(--blue-deep);
}

.button--light {
  color: var(--ink);
  background: #fff;
}

.button--light:hover {
  background: var(--surface-tint);
}

.button--whatsapp {
  color: #fff;
  background: #168b5a;
  box-shadow: 0 12px 28px rgba(22, 139, 90, 0.25);
}

.button--whatsapp:hover {
  background: #117449;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--blue-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.text-link .icon {
  transition: transform 200ms ease;
}

.text-link:hover .icon {
  transform: translateX(0.25rem);
}

[dir="rtl"] .text-link:hover .icon {
  transform: translateX(-0.25rem);
}

/* Navigation */
.nav {
  position: fixed;
  z-index: 1000;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(18px);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.nav.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(25, 70, 90, 0.08);
}

.nav__inner {
  display: flex;
  height: 100%;
  align-items: center;
  gap: clamp(0.85rem, 1.8vw, 1.75rem);
}

.nav__brand {
  display: flex;
  min-height: 44px;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
}

.nav__logo {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.nav__brand-name {
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

[dir="rtl"] .nav__brand-name {
  font-family: var(--font-arabic);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.3rem);
}

.nav__links,
.nav__actions {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.6vw, 1.45rem);
}

.nav__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

[dir="rtl"] .nav__link {
  letter-spacing: 0;
}

.nav__link::after {
  position: absolute;
  inset-block-end: 0.35rem;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 200ms ease, transform 200ms ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.language-switch,
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-weight: 700;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.language-switch {
  width: auto;
  min-width: 94px;
  height: 46px;
  gap: 0.42rem;
  margin-inline-start: auto;
  padding-inline: 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.language-switch:hover,
.nav__toggle:hover {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.language-switch__globe {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 0.72rem;
}

.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav__toggle-bars {
  position: relative;
}

.nav__toggle-bars::before,
.nav__toggle-bars::after {
  position: absolute;
  inset-inline-start: 0;
  content: "";
}

.nav__toggle-bars::before {
  transform: translateY(-6px);
}

.nav__toggle-bars::after {
  transform: translateY(6px);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before {
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after {
  transform: rotate(-45deg);
}

.nav__mobile-cta {
  display: none;
}

.nav__scrim {
  position: fixed;
  z-index: 900;
  inset: var(--nav-h) 0 0;
  background: rgba(13, 35, 44, 0.44);
  backdrop-filter: blur(2px);
}

main {
  padding-top: var(--nav-h);
}

/* Shared sections */
.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--surface-tint);
}

.section--blue {
  color: #fff;
  background: var(--blue-deep);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
  gap: 2.5rem;
  align-items: end;
  margin-block-end: clamp(2.4rem, 5vw, 4.5rem);
}

.section-heading--center {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading--center .body-copy,
.section-heading--center .lede {
  margin-block-start: 1rem;
}

/* Home hero */
.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--nav-h));
  overflow: hidden;
  place-items: center;
  color: #fff;
  background: var(--ink);
}

.hero__media,
.hero__media::after {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__media::after {
  background:
    linear-gradient(90deg, rgba(12, 39, 51, 0.85) 0%, rgba(12, 39, 51, 0.55) 45%, rgba(12, 39, 51, 0.12) 78%),
    linear-gradient(0deg, rgba(12, 39, 51, 0.35), transparent 55%);
  content: "";
}

[dir="rtl"] .hero__media::after {
  background:
    linear-gradient(270deg, rgba(12, 39, 51, 0.85) 0%, rgba(12, 39, 51, 0.55) 45%, rgba(12, 39, 51, 0.12) 78%),
    linear-gradient(0deg, rgba(12, 39, 51, 0.35), transparent 55%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (2 * var(--page-edge))), 1240px);
  padding-block: clamp(4rem, 8vw, 8rem);
}

.hero__content {
  max-width: 760px;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.hero__headline-accent {
  color: var(--blue-pale);
}

.hero__copy {
  max-width: 660px;
  margin-block-start: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-block-start: 2rem;
}

.hero .button--outline {
  border-color: rgba(255, 255, 255, 0.66);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.hero .button--outline:hover {
  color: var(--ink);
  background: #fff;
}

/* Evidence band */
.stats-band {
  position: relative;
  z-index: 2;
  color: #fff;
  background: var(--blue-deep);
}

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

.stat {
  position: relative;
  min-height: 148px;
  padding: 2.2rem clamp(1rem, 2vw, 2.2rem);
}

.stat + .stat {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.22);
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

[dir="rtl"] .stat__value {
  font-family: var(--font-body);
}

.stat__label {
  margin-block-start: 0.7rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Home pathways */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms ease;
}

.feature-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-7px);
}

.feature-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-tint);
}

.feature-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.feature-card:hover .feature-card__image img {
  transform: scale(1.045);
}

.feature-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.6rem;
}

.feature-card__body .body-copy {
  margin-block: 0.8rem 1.4rem;
}

.feature-card__body .text-link {
  margin-block-start: auto;
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  color: var(--blue-deep);
  background: rgba(75, 174, 214, 0.12);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag--pink {
  color: #9d4f7c;
  background: rgba(232, 160, 200, 0.2);
}

[dir="rtl"] .tag {
  letter-spacing: 0;
}

/* Holistic mosaic */
.principles-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.9fr;
  gap: 1.25rem;
  align-items: stretch;
}

.principle {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.principle--split {
  display: flex;
  flex-direction: column;
}

.principle__media {
  position: relative;
  flex: 0 0 168px;
  overflow: hidden;
  background: var(--blue-wash);
}

.principle__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 40, 51, 0.06), rgba(13, 40, 51, 0.26));
  content: "";
}

.principle__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.principle__media--languages > img {
  object-position: center bottom;
}

.principle--split:hover .principle__media > img {
  transform: scale(1.035);
}

.principle__body {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
}

.principle--split .principle__body {
  height: auto;
  flex: 1;
  justify-content: flex-start;
}

.principle__mark {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  margin-block-end: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--blue-deep);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
}

.principle__media .principle__mark {
  position: absolute;
  z-index: 1;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  margin: 0;
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(13, 40, 51, 0.38);
  backdrop-filter: blur(8px);
}

.principle .body-copy {
  margin-block-start: 0.75rem;
}

.principle--image {
  min-height: 420px;
  border: 0;
  color: #fff;
  background: var(--ink);
}

.principle--image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.principle--image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 40, 51, 0.94), rgba(13, 40, 51, 0.08) 75%);
  content: "";
}

.principle--image .body-copy {
  color: rgba(255, 255, 255, 0.85);
}

.principle--image .principle__mark {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-block-start: 1.2rem;
}

.principle--split .language-tags,
.principle--split .campus-icons {
  margin-block-start: auto;
  padding-block-start: 1.2rem;
}

.campus-icons {
  display: flex;
  gap: 0.45rem;
  margin-block-start: 1.2rem;
}

.campus-icons span {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  color: var(--blue-deep);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Location */
.location-layout,
.page-intro__grid,
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.contact-list {
  display: grid;
  gap: 1.4rem;
  margin-block: 2rem;
}

.contact-list__item {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.contact-list__icon,
.contact-card__icon,
.map-detail__icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  place-items: center;
  color: var(--blue-deep);
  background: rgba(75, 174, 214, 0.12);
}

.contact-list__item .body-copy {
  margin-block-start: 0.3rem;
}

.map-frame {
  height: clamp(330px, 42vw, 500px);
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
  box-shadow: var(--shadow-lg);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Interior page hero */
.page-intro {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 8% 16%, rgba(232, 160, 200, 0.28), transparent 24rem),
    linear-gradient(145deg, #edf8fc, #f8fafc 62%);
}

[dir="rtl"] .page-intro {
  background:
    radial-gradient(circle at 92% 16%, rgba(232, 160, 200, 0.28), transparent 24rem),
    linear-gradient(215deg, #edf8fc, #f8fafc 62%);
}

.page-intro__copy .lede {
  margin-block-start: 1.4rem;
}

.page-intro__image {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 7px solid #fff;
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
  box-shadow: var(--shadow-lg);
}

.page-intro__image::before {
  position: absolute;
  z-index: 1;
  width: 9rem;
  height: 9rem;
  inset-block-end: -3rem;
  inset-inline-start: -3rem;
  border: 1.5rem solid rgba(232, 160, 200, 0.78);
  border-radius: 50%;
  content: "";
}

.page-intro__image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.page-intro__image--contain img {
  object-fit: contain;
}

.verification-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.verification-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.verification-list li::before {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--blue-deep);
  content: "✓";
  font-size: 0.72rem;
}

/* Curriculum signature route */
.route {
  position: relative;
  max-width: 1060px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  padding-block: 2rem 4rem;
}

.route__drawing {
  position: absolute;
  z-index: 0;
  inset: 0 4% auto;
  width: 92%;
  height: 250px;
  overflow: visible;
}

.route__drawing path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.5s var(--ease);
}

.route__drawing path:nth-child(1) {
  stroke: var(--blue);
}

.route__drawing path:nth-child(2) {
  stroke: var(--blue-deep);
  transition-delay: 150ms;
}

.route__drawing path:nth-child(3) {
  stroke: var(--pink);
  transition-delay: 300ms;
}

.route.is-active .route__drawing path {
  stroke-dashoffset: 0;
}

.route__nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.route__node {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  opacity: 0.35;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms var(--ease);
}

.route.is-active .route__node {
  opacity: 1;
  transform: none;
}

.route.is-active .route__node:nth-child(2) {
  transition-delay: 150ms;
}

.route.is-active .route__node:nth-child(3) {
  transition-delay: 300ms;
}

.route__flag {
  display: block;
  margin-block-end: 0.6rem;
  font-size: 1.5rem;
}

.route__destination {
  position: absolute;
  z-index: 2;
  inset-block-end: 0;
  inset-inline-start: 50%;
  display: grid;
  width: 66px;
  height: 66px;
  border: 6px solid var(--surface-tint);
  border-radius: 50%;
  place-items: center;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateX(-50%) scale(0.8);
  transition: transform 500ms 800ms var(--ease);
}

[dir="rtl"] .route__destination {
  transform: translateX(50%) scale(0.8);
}

.route.is-active .route__destination {
  transform: translateX(-50%) scale(1);
}

[dir="rtl"] .route.is-active .route__destination {
  transform: translateX(50%) scale(1);
}

.route__destination img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.pathways-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pathway-card {
  position: relative;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex-direction: column;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.pathway-card::before {
  height: 4px;
  background: var(--blue);
  content: "";
}

.pathway-card--saudi::before {
  background: var(--blue-deep);
}

.pathway-card--american::before {
  background: var(--pink);
}

.pathway-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.pathway-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pathway-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.pathway-card__title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.pathway-card__provider {
  margin: 0.2rem 0 0;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.pathway-card .body-copy {
  margin-block: 1rem;
}

.subject-list {
  display: grid;
  gap: 0.5rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.subject-list li {
  position: relative;
  padding-inline-start: 1rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.5;
}

.subject-list li::before {
  position: absolute;
  inset-block-start: 0.62em;
  inset-inline-start: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--pink);
  content: "";
}

/* Disciplines */
.discipline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.discipline {
  min-height: 220px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color 220ms ease, transform 220ms var(--ease), box-shadow 220ms ease;
}

.discipline:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.discipline .body-copy {
  margin-block-start: 0.75rem;
}

.discipline--blue {
  border-color: var(--blue-deep);
  color: #fff;
  background: var(--blue-deep);
}

.discipline--blue .body-copy {
  color: rgba(255, 255, 255, 0.84);
}

.discipline--wide {
  position: relative;
  grid-column: span 2;
  min-height: 260px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.discipline--wide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.discipline--wide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 45, 58, 0.98), rgba(17, 45, 58, 0.2));
  content: "";
}

[dir="rtl"] .discipline--wide::after {
  background: linear-gradient(270deg, rgba(17, 45, 58, 0.98), rgba(17, 45, 58, 0.2));
}

.discipline--wide .discipline__content {
  position: relative;
  z-index: 1;
  max-width: 58%;
}

.discipline--wide .body-copy {
  color: rgba(255, 255, 255, 0.85);
}

.discipline--full {
  grid-column: 1 / -1;
  min-height: auto;
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.event-card {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex-direction: column;
  background: #fff;
}

.event-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

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

.event-card__date {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  min-width: 3.3rem;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.event-card__date strong,
.event-card__date span {
  display: block;
}

.event-card__date strong {
  color: var(--blue-deep);
  font-size: 1rem;
}

.event-card__date span {
  color: var(--ink-soft);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.2rem;
}

.event-card__meta {
  margin-block: 0.55rem 1rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.event-card__body .text-link {
  margin-block-start: auto;
}

.event-card--admissions {
  padding: 1.5rem;
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-deep), #245f78);
}

.event-card--admissions .body-copy {
  margin-block: 0.8rem 1.4rem;
  color: rgba(255, 255, 255, 0.84);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  display: flex;
  min-height: 260px;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex-direction: column;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-card .body-copy {
  margin-block: 0.55rem 1.25rem;
}

.contact-card--social {
  overflow: hidden;
  padding: 0;
}

.contact-card--social .contact-card__content {
  padding: 1.5rem;
}

.contact-card__preview {
  min-height: 150px;
  flex: 1;
  overflow: hidden;
}

.contact-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-card--email {
  border: 0;
  color: #fff;
  background: var(--blue-deep);
}

.contact-card--email .body-copy {
  color: rgba(255, 255, 255, 0.84);
}

.contact-card--email .contact-card__icon,
.contact-card--whatsapp .contact-card__icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.contact-card--email a {
  margin-block-start: auto;
  font-weight: 700;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.contact-card--campus {
  position: relative;
  grid-column: span 2;
  min-height: 360px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.contact-card--campus > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.contact-card--campus::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 45, 58, 0.96), rgba(17, 45, 58, 0.18));
  content: "";
}

[dir="rtl"] .contact-card--campus::after {
  background: linear-gradient(270deg, rgba(17, 45, 58, 0.96), rgba(17, 45, 58, 0.18));
}

.contact-card--campus .contact-card__content {
  position: relative;
  z-index: 1;
  max-width: 65%;
}

.contact-card--campus .body-copy {
  color: rgba(255, 255, 255, 0.85);
}

.contact-card--whatsapp {
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, #1a9a65, #117449);
}

.contact-card--whatsapp .body-copy {
  color: rgba(255, 255, 255, 0.84);
}

.phone-list,
.social-list {
  display: grid;
  gap: 0.6rem;
  margin-block-start: auto;
}

.phone-link,
.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.phone-link:hover,
.social-link:hover {
  border-color: var(--blue);
  background: var(--surface-tint);
}

.phone-link__label {
  display: block;
  color: var(--blue-deep);
  font-size: 0.68rem;
  font-weight: 700;
}

.phone-link__number {
  display: block;
  margin-block-start: 0.18rem;
  direction: ltr;
  font-size: 0.9rem;
  font-weight: 700;
}

.map-details {
  display: grid;
  gap: 1.25rem;
  margin-block-start: 2rem;
}

.map-detail {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.map-detail .body-copy {
  margin-block-start: 0.2rem;
}

/* Footer */
.footer {
  position: relative;
  overflow: hidden;
  padding-block: 4.5rem 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  background: var(--footer);
}

.footer::before {
  position: absolute;
  width: 28rem;
  height: 28rem;
  inset-block-start: -18rem;
  inset-inline-end: -8rem;
  border: 4rem solid rgba(75, 174, 214, 0.08);
  border-radius: 50%;
  content: "";
}

.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.65fr 0.75fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}

[dir="rtl"] .footer__brand {
  font-family: var(--font-arabic);
}

.footer__brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.footer__description {
  max-width: 520px;
  margin: 1rem 0;
  font-size: 0.86rem;
  line-height: 1.8;
}

.footer__email {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.footer__title {
  margin-block-end: 1rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[dir="rtl"] .footer__title {
  letter-spacing: 0;
}

.footer__links {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
}

.footer__links a:hover {
  color: #fff;
}

.footer__disabled {
  color: rgba(255, 255, 255, 0.42);
}

.footer__social {
  display: flex;
  gap: 0.55rem;
  margin-block-start: 1.2rem;
}

.footer__social a {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding-inline: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  place-items: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.footer__bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: 3.5rem;
  padding-block-start: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
}

.whatsapp-float {
  position: fixed;
  z-index: 850;
  inset-inline-end: 1.25rem;
  inset-block-end: 1.25rem;
  display: grid;
  width: 56px;
  height: 56px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: var(--success);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 200ms var(--ease);
}

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

/* Motion */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js [data-reveal="2"] {
  transition-delay: 100ms;
}

.js [data-reveal="3"] {
  transition-delay: 200ms;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-grid,
  .pathways-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card:last-child,
  .pathway-card:last-child {
    grid-column: 1 / -1;
  }

  .pathway-card:last-child {
    display: grid;
    grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  }

  .pathway-card:last-child::before {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 4px;
    height: auto;
  }

  .pathway-card:last-child .pathway-card__image {
    aspect-ratio: auto;
  }

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

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

  .contact-card--campus {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --nav-h: 70px;
  }

  .nav__brand-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__desktop-cta {
    display: none;
  }

  .nav__menu {
    position: fixed;
    z-index: 1001;
    inset-block: var(--nav-h) auto;
    inset-inline: 0;
    display: grid;
    max-height: calc(100svh - var(--nav-h));
    padding: 1.25rem var(--page-edge) 1.5rem;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 45px rgba(17, 45, 58, 0.14);
    opacity: 0;
    overflow-y: auto;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition: opacity 200ms ease, transform 200ms var(--ease);
  }

  .nav__menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav__links {
    display: grid;
    gap: 0;
  }

  .nav__link {
    min-height: 56px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .nav__link::after {
    inset-block: 0;
    inset-inline: 0 auto;
    width: 3px;
    height: auto;
    transform: scaleY(0);
  }

  .nav__link:hover::after,
  .nav__link.is-active::after {
    transform: scaleY(1);
  }

  .nav__actions {
    display: grid;
    margin-block-start: 1rem;
  }

  .nav__actions .language-switch {
    display: none;
  }

  .nav__mobile-cta {
    display: inline-flex;
  }

  .hero {
    min-height: min(760px, calc(100svh - var(--nav-h)));
  }

  .hero__media::after,
  [dir="rtl"] .hero__media::after {
    background: linear-gradient(0deg, rgba(12, 39, 51, 0.88) 0%, rgba(12, 39, 51, 0.42) 70%, rgba(12, 39, 51, 0.18) 100%);
  }

  .hero__inner {
    align-self: end;
    padding-block: 6rem 3.5rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .principle--image {
    grid-row: span 2;
  }

  .location-layout,
  .page-intro__grid,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .page-intro__image {
    min-height: 360px;
  }

  .page-intro__image img {
    min-height: 360px;
  }

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

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

  .footer__grid {
    grid-template-columns: 1.4fr 0.8fr;
  }

  .footer__grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav__inner {
    gap: 0.55rem;
  }

  .nav__brand-name {
    max-width: 145px;
    font-size: 0.9rem;
  }

  .nav__logo {
    width: 38px;
    height: 38px;
  }

  .language-switch {
    min-width: 82px;
    height: 44px;
    gap: 0.35rem;
    padding-inline: 0.65rem;
    font-size: 0.76rem;
  }

  .nav__toggle {
    width: 44px;
    height: 44px;
  }

  .display {
    font-size: clamp(2.35rem, 12vw, 3.65rem);
  }

  .heading {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .hero {
    min-height: 680px;
  }

  .hero__media img {
    object-position: 56% center;
  }

  .hero__actions {
    display: grid;
  }

  .hero__actions .button {
    width: 100%;
  }

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

  .stat {
    min-height: 132px;
    padding: 1.5rem 1rem;
  }

  .stat:nth-child(3) {
    border-inline-start: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .feature-grid,
  .principles-grid,
  .pathways-detail,
  .discipline-grid,
  .events-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:last-child,
  .pathway-card:last-child,
  .discipline--wide,
  .discipline--full,
  .contact-card--campus {
    grid-column: auto;
  }

  .pathway-card:last-child {
    display: flex;
  }

  .pathway-card:last-child::before {
    position: static;
    width: auto;
    height: 4px;
  }

  .principle,
  .principle--image {
    min-height: 320px;
    grid-row: auto;
  }

  .map-frame {
    height: 320px;
    border-width: 4px;
  }

  .page-intro__image,
  .page-intro__image img {
    min-height: 290px;
  }

  .route {
    padding-block: 0 5rem;
  }

  .route__drawing {
    inset-block: 0 0;
    inset-inline: 1rem auto;
    width: 100px;
    height: calc(100% - 1rem);
    transform: rotate(90deg) translateY(-100px);
    transform-origin: top left;
  }

  [dir="rtl"] .route__drawing {
    inset-inline: auto 1rem;
    transform: rotate(-90deg) translateY(-100px);
    transform-origin: top right;
  }

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

  .route__node {
    text-align: start;
  }

  .route__destination {
    inset-inline-start: 0;
    transform: none;
  }

  [dir="rtl"] .route__destination,
  .route.is-active .route__destination,
  [dir="rtl"] .route.is-active .route__destination {
    inset-inline: auto 0;
    transform: none;
  }

  .discipline--wide .discipline__content,
  .contact-card--campus .contact-card__content {
    max-width: 100%;
  }

  .contact-card--campus {
    min-height: 390px;
  }

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

  .footer__grid > :last-child {
    grid-column: auto;
  }

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

@media (max-width: 380px) {
  .nav__inner {
    gap: 0.35rem;
  }

  .nav__brand-name {
    max-width: 88px;
  }

  .language-switch {
    min-width: 78px;
    padding-inline: 0.55rem;
    font-size: 0.72rem;
  }

  .stat__label {
    font-size: 0.68rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-float::before {
    position: absolute;
    inset-inline-end: calc(100% + 0.65rem);
    width: max-content;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    color: #fff;
    background: var(--ink);
    content: attr(aria-label);
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0.4rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .whatsapp-float:hover::before {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .route__drawing path {
    stroke-dashoffset: 0;
  }

  .route__node {
    opacity: 1;
    transform: none;
  }
}
