:root {
  /* Motion system: every transition and hover in the site draws from these. */
  --motion-fast: 180ms;
  --motion-medium: 420ms;
  --motion-slow: 650ms;
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-zoom: 1.035;
  --navy: #081a2f;
  --navy-soft: #16304a;
  --blue: #1e5eff;
  --blue-soft: rgba(30, 94, 255, 0.12);
  --white: #ffffff;
  --warm: #f7f4ef;
  --warm-strong: #efe8dc;
  --gold: #d9c39a;
  --ink: #102238;
  --muted: #54657d;
  --line: rgba(8, 26, 47, 0.12);
  --shadow: 0 24px 80px rgba(8, 26, 47, 0.16);
  --shadow-soft: 0 16px 40px rgba(8, 26, 47, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: min(1200px, calc(100% - 48px));
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  /* In-page links land below the sticky header. */
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top, rgba(30, 94, 255, 0.06), transparent 30%),
    linear-gradient(180deg, #f8f5f1 0%, #f6f2eb 46%, #f4efe8 100%);
  color: var(--navy);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

@media (pointer: fine) {
  html {
    cursor: none;
  }

  a, button, .choice, .resource, .btn {
    cursor: none;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(30, 94, 255, 0.12), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(26, 74, 112, 0.12), transparent 28%),
    radial-gradient(circle at 50% 70%, rgba(179, 149, 103, 0.09), transparent 20%);
  pointer-events: none;
  z-index: 0;
}

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

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

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

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  z-index: 1;
  /* Clip the oversized decorative glow so the document is never wider than the
     viewport (clip, unlike hidden, keeps the sticky header working). */
  overflow-x: clip;
  background:
    radial-gradient(circle at top, rgba(30, 94, 255, 0.08), transparent 30%),
    var(--warm);
}

.page-shell::before {
  content: "";
  position: absolute;
  left: -8%;
  top: 10%;
  width: 40rem;
  height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 94, 255, 0.12), rgba(30, 94, 255, 0));
  filter: blur(30px);
  pointer-events: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--muted);
}

h1,
h2,
h3,
.brand-text,
.step-name,
.destination-kicker,
.footer-title {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.06em;
}

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

h1 {
  font-size: clamp(3.8rem, 5.6vw, 8.8rem);
  line-height: 0.86;
  letter-spacing: -0.09em;
  margin-bottom: 26px;
  text-wrap: balance;
}

h1 span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: rgba(8, 26, 47, 0.9);
  text-transform: none;
  transform: translateY(2px);
}

h2 {
  font-size: clamp(2.4rem, 4vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
  margin-bottom: 0;
}

h3 {
  font-size: clamp(1.6rem, 2vw, 2.5rem);
  letter-spacing: -0.06em;
  line-height: 1.02;
}

p {
  font-size: 1.02rem;
  color: rgba(8, 26, 47, 0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 100ms;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(8, 26, 47, 0.2);
  box-shadow: 0 0 0 6px rgba(30, 94, 255, 0.08);
  z-index: 200;
  mix-blend-mode: difference;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
  transition: opacity 180ms ease, transform 220ms var(--ease-out);
}

.cursor.is-active {
  transform: translate(-50%, -50%) scale(1.8);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 18px 36px rgba(30, 94, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 22px 40px rgba(30, 94, 255, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: var(--navy);
  border-color: rgba(8, 26, 47, 0.12);
}

.btn-secondary.light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(247, 244, 239, 0.66);
  border-bottom: 1px solid rgba(8, 26, 47, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: auto;
  height: 60px;
  object-fit: contain;
  filter: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.brand-text {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
}

.nav-group {
  position: relative;
}

.nav-link {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  white-space: nowrap;
  opacity: 0.82;
  transition: opacity 180ms var(--ease-out);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-open {
  opacity: 1;
}

@media (min-width: 1081px) and (max-width: 1180px) {
  .nav-links {
    gap: 14px;
  }

  .nav-link {
    font-size: 0.86rem;
  }
}

.nav-trigger::after {
  content: "▾";
  font-size: 0.75rem;
  margin-left: 0.4rem;
  transform: translateY(-1px);
}

.nav-cta {
  white-space: nowrap;
}

.mega-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 16px);
  transform: translateX(-50%) translateY(-6px) scale(0.98);
  transform-origin: top center;
  min-width: 420px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(8, 26, 47, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  padding: 18px 18px 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms var(--motion-ease), transform 220ms var(--motion-ease);
}

.nav-group:hover .mega-menu,
.nav-group .mega-menu:focus-within,
.nav-group.is-open .mega-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

/* Single-column dropdown (e.g. Canada): narrower than the two-column mega menu. */
.nav-group--compact .mega-menu {
  min-width: 300px;
  white-space: nowrap;
  grid-template-columns: 1fr;
}

.mega-menu a {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  font-size: 0.96rem;
  color: var(--navy);
  opacity: 0.8;
  transition: background-color 160ms var(--ease-out), opacity 160ms var(--ease-out);
}

.mega-menu a:hover,
.mega-menu a:focus-visible {
  background: rgba(30, 94, 255, 0.05);
  opacity: 1;
}

.mega-label {
  margin: 0 0 8px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--muted);
}

.hero {
  padding: 52px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 28px;
  min-height: calc(100vh - 120px);
}

.hero-copy {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-copy .hero-text {
  max-width: 560px;
  font-size: clamp(1.08rem, 1.7vw, 1.45rem);
  color: rgba(8, 26, 47, 0.72);
  margin-bottom: 30px;
}

.eyebrow {
  position: relative;
  display: inline-block;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, rgba(8, 26, 47, 0), rgba(8, 26, 47, 0.5), rgba(8, 26, 47, 0));
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 20px;
  align-items: end;
  padding: 10px 0 0 10px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 7% 0 0 8%;
  background: radial-gradient(circle, rgba(30, 94, 255, 0.18), rgba(30, 94, 255, 0));
  filter: blur(40px);
  z-index: 0;
}

.visual-panel {
  --move-y: 0px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.15);
  transform: translate3d(0, var(--move-y), 0);
  transition: transform 600ms var(--ease-out), filter 600ms var(--ease-out);
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 26, 47, 0.06), rgba(8, 26, 47, 0.12));
}

.panel-one {
  min-height: 610px;
  transform: translate3d(0, calc(var(--move-y) + 32px), 0);
  background-position: center 40%;
}

.panel-two {
  min-height: 500px;
  transform: translate3d(0, calc(var(--move-y) + 80px), 0);
  background-position: center top;
}

.panel-three {
  --move-y: 0px;
  position: absolute;
  right: 38px;
  bottom: 20px;
  width: 46%;
  min-height: 230px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: translate3d(0, var(--move-y), 0);
}

/* Campus photo: cropped with object-fit so the archway and walking students stay in frame at every size. */
.panel-three .panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.panel-three::before {
  z-index: 1;
}

.floating-note {
  --move-y: 0px;
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(8, 26, 47, 0.44);
  backdrop-filter: blur(14px);
  color: var(--white);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 16px;
  transform: translate3d(0, var(--move-y), 0);
  animation: drift 8s ease-in-out infinite alternate;
}

.note-one {
  left: 20px;
  top: 28px;
}

.note-two {
  right: 20px;
  bottom: 220px;
}

@keyframes drift {
  0% {
    transform: translate3d(0, var(--move-y), 0) rotate(-1deg);
  }
  100% {
    transform: translate3d(0, calc(var(--move-y) - 10px), 0) rotate(1deg);
  }
}

section {
  padding: 110px 0;
  position: relative;
}

section.hero,
section.mbbs,
section.affordable,
section.canada-feature,
section.parents {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-headline {
  margin-bottom: 28px;
}

.destination-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-areas:
    "canada usa europe"
    "canada mbbs affordable";
  gap: 18px;
}

.destination {
  transition: box-shadow 400ms var(--ease-out);
}

/* The photograph lives on its own layer so hover can scale the image, not the card or its text. */
.destination::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
  background-size: cover;
  transition: transform var(--motion-slow) var(--motion-ease);
}

/* One real link per card; its ::before stretches over the card so a click anywhere navigates once. */
.destination a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.destination,
.destination a {
  cursor: pointer;
}

.destination:has(a:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.destination a:focus-visible {
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .destination:hover {
    box-shadow: 0 22px 52px rgba(8, 26, 47, 0.16);
  }

  .destination:hover::after {
    transform: scale(var(--motion-zoom));
  }

  /* Lift the overlay slightly so the photo reads a touch brighter under the pointer. */
  .destination:hover::before {
    opacity: 0.86;
  }
}

.destination {
  position: relative;
  min-height: 410px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  display: flex;
  align-items: end;
  padding: 22px;
}

.destination::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 26, 47, 0.12), rgba(8, 26, 47, 0.72));
  z-index: -1;
  transition: opacity 500ms var(--ease-out);
}

/* Static so the Explore link's hit area (below) spans the whole card, not just the copy. */
.destination-copy {
  position: static;
  color: var(--white);
}

.destination-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.destination h3 {
  max-width: 360px;
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  color: var(--white);
}

.destination a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
}

.destination a::after {
  content: "→";
  transition: transform 180ms var(--ease-out);
}

.destination:hover a::after,
.destination a:focus-visible::after {
  transform: translateX(4px);
}

.canada-panel {
  grid-area: canada;
  min-height: 610px;
  background-image: url("assets/images/photos/canada-toronto-indian-student.webp");
  background-image: image-set(url("assets/images/photos/canada-toronto-indian-student.avif") type("image/avif"), url("assets/images/photos/canada-toronto-indian-student.webp") type("image/webp"));
  background-position: center 22%;
}

.usa-panel {
  grid-area: usa;
  background-image: url("assets/images/photos/usa-campus-walk.webp");
  background-image: image-set(url("assets/images/photos/usa-campus-walk.avif") type("image/avif"), url("assets/images/photos/usa-campus-walk.webp") type("image/webp"));
  background-position: center 40%;
}

.europe-panel {
  grid-area: europe;
  background-image: url("assets/images/photos/europe-florence-arno.webp");
  background-image: image-set(url("assets/images/photos/europe-florence-arno.avif") type("image/avif"), url("assets/images/photos/europe-florence-arno.webp") type("image/webp"));
  background-position: center 35%;
}

.mbbs-panel {
  grid-area: mbbs;
  background-image: url("assets/images/photos/mbbs-hospital-corridor.webp");
  background-image: image-set(url("assets/images/photos/mbbs-hospital-corridor.avif") type("image/avif"), url("assets/images/photos/mbbs-hospital-corridor.webp") type("image/webp"));
  background-position: center 30%;
}

.affordable-panel {
  grid-area: affordable;
  background-image: url("assets/images/photos/affordable-friends-yosemite.webp");
  background-image: image-set(url("assets/images/photos/affordable-friends-yosemite.avif") type("image/avif"), url("assets/images/photos/affordable-friends-yosemite.webp") type("image/webp"));
  background-position: 40% 35%;
}

.pathfinder {
  background: linear-gradient(180deg, rgba(30, 94, 255, 0.04), rgba(30, 94, 255, 0));
}

.path-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 28px;
  align-items: start;
}

.path-copy {
  padding-top: 18px;
}

.path-builder {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(8, 26, 47, 0.08);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.selector-block + .selector-block {
  margin-top: 26px;
}

.selector-label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  border: 1px solid rgba(8, 26, 47, 0.12);
  background: rgba(255, 255, 255, 0.36);
  color: var(--navy);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.choice:hover,
.choice:focus-visible,
.choice.is-selected {
  background: rgba(30, 94, 255, 0.08);
  border-color: rgba(30, 94, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(30, 94, 255, 0.12);
}

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

.path-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(8, 26, 47, 0.08);
}

.mini-label {
  margin: 0 0 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--muted);
}

.result-summary {
  color: var(--navy);
  font-weight: 700;
  margin: 0;
}

.journey {
  padding-top: 120px;
}

.journey-head {
  margin-bottom: 60px;
}

.journey-wrap {
  position: relative;
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
}

.journey-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 66px;
  height: 1px;
  background: linear-gradient(90deg, rgba(8, 26, 47, 0.0), rgba(8, 26, 47, 0.18), rgba(8, 26, 47, 0));
  transform-origin: left center;
}

.journey-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 18px 18px 0;
}

.step-index {
  min-width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  transition: background-color 500ms var(--ease-out), color 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}

/* Journey steps start as outlines and fill as the story reaches them (motion.js). */
.journey-step.is-waiting .step-index {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(8, 26, 47, 0.28);
}

.step-content {
  padding-top: 6px;
}

.step-name {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 800;
}

.step-content p:last-child {
  margin-bottom: 0;
  color: rgba(8, 26, 47, 0.72);
}

.mbbs {
  background: rgba(255, 255, 255, 0.28);
}

.mbbs-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 36px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.info-list li {
  position: relative;
  padding-left: 20px;
  color: rgba(8, 26, 47, 0.88);
  font-weight: 600;
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

.inline-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.mbbs-visual {
  position: relative;
  padding-left: 24px;
}

.mbbs-image {
  min-height: 620px;
  border-radius: 30px;
  background-image: url("assets/images/photos/mbbs-students-group.webp");
  background-image: image-set(url("assets/images/photos/mbbs-students-group.avif") type("image/avif"), url("assets/images/photos/mbbs-students-group.webp") type("image/webp"));
  background-size: cover;
  /* Main student is just right of centre; heads sit in the upper third. */
  background-position: 54% 30%;
  box-shadow: var(--shadow);
  transform-origin: center center;
}

/* MBBS feature headline: bold lines with an editorial italic final line, as in the hero. */
.mbbs-headline {
  text-transform: uppercase;
  font-size: clamp(2.3rem, 4.2vw, 4.6rem);
  line-height: 0.95;
  margin-bottom: 22px;
}

.mbbs-headline span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
  font-size: 1.12em;
  line-height: 1.05;
  padding-bottom: 0.06em;
}

.quote-card .quote-lead {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--navy);
}

.quote-card {
  position: absolute;
  right: 10px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(8, 26, 47, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 18px 18px 14px;
  max-width: 240px;
  box-shadow: var(--shadow-soft);
}

.quote-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--navy);
}

.affordable {
  background: var(--navy);
  color: var(--white);
}

.affordable .eyebrow,
.affordable p,
.affordable h2,
.affordable span {
  color: var(--white);
}

.affordable-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: center;
}

.compare-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 26px;
}

.compare-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.compare-head span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

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

.compare-item {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  font-weight: 700;
  color: var(--white);
}

.compare-item.wide {
  grid-column: 1 / -1;
}

.canada-feature {
  padding-top: 120px;
}

.canada-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.canada-visual {
  min-height: 620px;
  background-image: url("assets/images/photos/canada-alberta-lake-louise-summer.webp");
  background-image: image-set(url("assets/images/photos/canada-alberta-lake-louise-summer.avif") type("image/avif"), url("assets/images/photos/canada-alberta-lake-louise-summer.webp") type("image/webp"));
  background-size: cover;
  /* Glacier centred; biased low so the turquoise lake stays in frame. */
  background-position: 52% 62%;
  border-radius: 32px;
  box-shadow: var(--shadow);
  transform-origin: center center;
}

.canada-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.canada-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(8, 26, 47, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.3);
  color: var(--navy);
  font-weight: 700;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.canada-list a::after {
  content: "→";
  opacity: 0.5;
  transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.canada-list a:hover,
.canada-list a:focus-visible {
  border-color: rgba(30, 94, 255, 0.3);
  background: rgba(255, 255, 255, 0.7);
}

.canada-list a:hover::after,
.canada-list a:focus-visible::after {
  opacity: 1;
  transform: translateX(3px);
}

.parents {
  background: rgba(8, 26, 47, 0.02);
}

.parents-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  align-items: center;
}

.parents-statement {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(8, 26, 47, 0.08);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.parents-statement p {
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 22px;
}

.parents-statement ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.parents-statement li {
  position: relative;
  padding-left: 18px;
  color: rgba(8, 26, 47, 0.74);
  font-weight: 600;
}

.parents-statement li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.resources {
  padding-bottom: 120px;
}

.resources-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link {
  font-weight: 700;
  color: var(--navy);
}

.resources-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.resource {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(8, 26, 47, 0.08);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.resource-feature {
  grid-column: span 1;
}

.resource-image {
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.resource-image-one {
  background-image: url("assets/images/photos/resource-planning-campus.webp");
  background-image: image-set(url("assets/images/photos/resource-planning-campus.avif") type("image/avif"), url("assets/images/photos/resource-planning-campus.webp") type("image/webp"));
  background-position: center 25%;
}

.resource-image-two {
  background-image: url("assets/images/photos/resource-canada-vancouver-student.webp");
  background-image: image-set(url("assets/images/photos/resource-canada-vancouver-student.avif") type("image/avif"), url("assets/images/photos/resource-canada-vancouver-student.webp") type("image/webp"));
  background-position: 68% 14%;
}

.resource-image-three {
  background-image: url("assets/images/photos/resource-mbbs-students-corridor.webp");
  background-image: image-set(url("assets/images/photos/resource-mbbs-students-corridor.avif") type("image/avif"), url("assets/images/photos/resource-mbbs-students-corridor.webp") type("image/webp"));
  background-position: center 22%;
}

.resource-body {
  padding: 20px 18px 22px;
}

.meta {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 10px;
}

.resource-body h3 {
  font-size: clamp(1.3rem, 2vw, 2rem);
  margin: 0;
}

.final-cta {
  padding: 0 0 110px;
}

.final-cta-panel {
  background: radial-gradient(circle at top left, rgba(30, 94, 255, 0.2), transparent 30%), var(--navy);
  border-radius: 34px;
  padding: 58px 36px 46px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-shadow: var(--shadow);
  min-height: 500px;
}

.final-cta-panel .eyebrow,
.final-cta-panel h2,
.final-cta-panel .btn {
  color: var(--white);
}

.final-cta-panel h2 {
  font-size: clamp(2.6rem, 5vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  margin-bottom: 26px;
}

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

.site-footer {
  background: var(--navy);
  color: rgba(247, 244, 239, 0.72);
  padding: 64px 0 28px;
  font-size: 0.94rem;
}

/* Global p colour is dark ink; everything in the footer inherits the light tone instead. */
.site-footer p {
  color: inherit;
}

.site-footer a {
  color: rgba(247, 244, 239, 0.86);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.sf-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.9fr 1.2fr 0.95fr;
  gap: 40px 36px;
  align-items: start;
}

.footer-logo {
  display: block;
  width: 170px;
  height: auto;
}

.sf-copy {
  margin: 18px 0 20px;
  max-width: 300px;
  color: rgba(247, 244, 239, 0.66);
  font-size: 0.92rem;
  line-height: 1.6;
}

.sf-social {
  display: flex;
  gap: 4px;
  margin-left: -12px;
}

.sf-social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: rgba(247, 244, 239, 0.72);
  transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.sf-social a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sf-label {
  margin: 0 0 16px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.5);
}

.sf-sublabel {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.86);
}

.sf-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.sf-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  transition: transform 200ms var(--ease-out), color 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .sf-links a:hover {
    transform: translateX(3px);
  }
}

.sf-address {
  font-style: normal;
  line-height: 1.6;
  margin: 0 0 8px;
}

.site-footer .sf-strong {
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}

.sf-office + .sf-office {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sf-office p {
  margin: 0 0 4px;
}

.sf-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}

.sf-tag {
  min-width: 112px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.5);
}

.sf-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sf-wa svg {
  color: #4ade80;
  flex: none;
}

.sf-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.site-footer .sf-cta:hover {
  border-color: var(--blue);
  background: rgba(30, 94, 255, 0.16);
}

.sf-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.sf-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(247, 244, 239, 0.5);
}

.sf-connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin-top: 22px;
}

.sf-connect .sf-cta {
  margin-bottom: 0;
}

.sf-inline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(247, 244, 239, 0.82);
  font-weight: 600;
}

.sf-inline:hover,
.sf-inline:focus-visible {
  color: var(--white);
}

.sf-note {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: rgba(247, 244, 239, 0.6);
}

.sf-legal {
  display: flex;
  gap: 10px;
}

.sf-legal a {
  color: rgba(247, 244, 239, 0.72);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sf-legal a:hover,
.sf-legal a:focus-visible {
  color: var(--white);
}

@media (max-width: 1100px) {
  .sf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sf-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 48px 0 24px;
  }

  .sf-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .sf-india {
    grid-column: 1 / -1;
    grid-row: 4;
  }
}

@media (max-width: 360px) {
  .sf-grid {
    grid-template-columns: 1fr;
  }
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 720px);
  margin: 28px 0 24px;
}

.contact-strip-block {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 22px 20px 18px;
  display: grid;
  gap: 8px;
}

.contact-strip-block p,
.contact-strip-block a {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.contact-strip-block a {
  font-weight: 700;
}

/* Thiruvananthapuram WhatsApp-only number: small label above the number,
   inheriting the colour of whichever contact block it sits in. */
.wa-only-link {
  display: inline-grid;
  gap: 2px;
}

.wa-only-note {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.7;
}

.contact-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.66);
}

@media (max-width: 780px) {
  .contact-strip {
    grid-template-columns: 1fr;
  }
}

.nav-backdrop {
  display: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 46px;
  height: 46px;
  padding: 8px;
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 999px;
  margin: 5px auto;
  transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

/* Below-the-fold photos load on approach: while html.lazy-bg is set (head
   snippet), [data-lazy-bg] elements hold their background until script.js
   marks them .bg-loaded. The head snippet drops lazy-bg if the script never runs. */
.lazy-bg [data-lazy-bg]:not(.bg-loaded),
.lazy-bg [data-lazy-bg]:not(.bg-loaded)::after {
  background-image: none !important;
}

/* Institution discovery sections (study-canada / study-usa / study-europe). */
section.inst-section {
  padding: 0;
  margin-top: 56px;
}

.inst-section > h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 0.98;
  margin: 0 0 24px;
  max-width: 18ch;
}

.inst-section > .inst-intro {
  max-width: 62ch;
  margin: -8px 0 24px;
  color: rgba(8, 26, 47, 0.74);
}

.destination-page .inst-section {
  margin-bottom: 40px;
}

.inst-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 20px;
}

.inst-search-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 280px;
  justify-content: flex-end;
}

.inst-search {
  width: min(100%, 320px);
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  color: var(--navy);
}

.inst-search:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.inst-filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.inst-filters .inst-search {
  width: 100%;
}

.inst-select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.92rem;
  color: var(--navy);
  min-width: 0;
}

.inst-select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.inst-section .filter-count {
  margin: 0 0 14px;
}

.inst-levels {
  margin: -8px 0 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.inst-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.inst-more[hidden] {
  display: none;
}

.inst-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.inst-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(8, 26, 47, 0.09);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 26px rgba(8, 26, 47, 0.05);
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), border-color 250ms var(--ease-out);
}

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

.inst-type {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.inst-card h3 {
  font-size: 1.28rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}

.inst-place {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.inst-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.inst-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.inst-link span {
  transition: transform 200ms var(--ease-out);
}

.inst-card:has(.inst-link:focus-visible) {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.inst-link:focus-visible {
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .inst-card:hover {
    transform: translateY(-3px);
    border-color: rgba(30, 94, 255, 0.24);
    box-shadow: 0 18px 38px rgba(8, 26, 47, 0.1);
  }

  .inst-card:hover .inst-link span {
    transform: translateX(4px);
  }
}

.inst-none,
.inst-empty p {
  color: var(--muted);
}

.inst-empty {
  padding: 26px;
  border-radius: 20px;
  border: 1px dashed rgba(8, 26, 47, 0.2);
}

.inst-empty p {
  margin: 0;
  max-width: 64ch;
}

.inst-country {
  font-size: 1.5rem;
  margin: 28px 0 12px;
}

.inst-note {
  margin: 18px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.inst-note a {
  color: var(--blue);
  font-weight: 600;
}

.inst-cta {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px 32px;
  padding: 26px 28px;
  border-radius: 24px;
  border: 1px solid rgba(8, 26, 47, 0.09);
  background: rgba(255, 255, 255, 0.5);
}

.inst-cta h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.inst-cta p {
  margin: 0;
  max-width: 60ch;
}

@media (max-width: 1100px) {
  .inst-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .inst-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inst-search-wrap {
    justify-content: flex-start;
  }

  .inst-cta {
    grid-template-columns: 1fr;
  }

  .inst-filters {
    grid-template-columns: 1fr 1fr;
  }

  .inst-filters .inst-search {
    grid-column: 1 / -1;
  }

  .inst-cta .btn {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .inst-grid {
    grid-template-columns: 1fr;
  }

  .inst-controls .segmented {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .inst-search-wrap {
    flex-wrap: wrap;
  }

  .inst-search {
    width: 100%;
  }

  .inst-filters {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------
   Luxury hero (homepage): full-bleed Toronto photograph, editorial
   headline in the calm sky, location mark, soft fade into the page.
   --------------------------------------------------------------- */
.lux-hero {
  position: relative;
  min-height: calc(100svh - 84px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  isolation: isolate;
  background: #d9d3c8;
}

.lux-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.lux-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 42%;
  transform: translate3d(var(--lux-x, 0px), var(--lux-y, 0px), 0) scale(var(--lux-scale, 1.04));
  transform-origin: 40% 50%;
  will-change: transform;
}

/* Legibility: a warm ivory veil behind the copy. It fades out towards the
   bottom so the lake in front of the skyline stays clear. */
.lux-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(270deg, rgba(247, 244, 239, 0.76) 0%, rgba(247, 244, 239, 0.46) 40%, rgba(247, 244, 239, 0) 66%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 86%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 86%);
}

/* A short fade at the very bottom into the cream page, over the media only. */
.lux-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 242, 235, 0) 88%, rgba(246, 242, 235, 0.92) 100%);
}

.lux-inner {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding: 72px clamp(0px, 3.5vw, 56px) 120px 0;
}

.lux-copy {
  width: min(620px, 52%);
}

.lux-eyebrow {
  margin: 0 0 26px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--navy);
}

.lux-eyebrow span {
  color: #b39567;
  margin: 0 6px;
}

.lux-hero h1 {
  font-size: clamp(3.2rem, 6.4vw, 6.4rem);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 30px;
}

.lux-hero h1 > span:last-child {
  font-size: 0.86em;
  line-height: 1.02;
  letter-spacing: -0.03em;
  padding-bottom: 0.05em;
}

.lux-lines {
  margin: 0 0 34px;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  font-weight: 500;
  color: rgba(8, 26, 47, 0.9);
  border-left: 2px solid #c9ab7d;
  padding-left: 18px;
}

.lux-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lux-actions .btn-primary span {
  display: inline-block;
  margin-left: 8px;
  transition: transform var(--motion-fast) var(--motion-ease);
}

.lux-secondary {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(8px);
  border-color: rgba(8, 26, 47, 0.26);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(8, 26, 47, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  .lux-actions .btn-primary:hover span {
    transform: translateX(4px);
  }
}

.lux-location {
  position: absolute;
  left: max(24px, calc((100% - 1200px) / 2));
  bottom: 34px;
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(8, 26, 47, 0.45);
}

.lux-location .lux-coords {
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.78);
  font-variant-numeric: tabular-nums;
}

/* Living Toronto: slow camera, drifting haze, soft water light, faint city
   lights. Transform/opacity only; paused while the hero is off screen. */
.lux-cam {
  position: absolute;
  inset: 0;
  animation: lux-camera 36s ease-in-out infinite alternate;
  /* Anchored low: the slow push-in trims sky rather than the lake. */
  transform-origin: 42% 90%;
}

.lux-cam picture {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes lux-camera {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.035) translate3d(-0.6%, -0.4%, 0); }
}

.lux-haze {
  position: absolute;
  left: -30%;
  width: 160%;
  top: 30%;
  height: 36%;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 22% 60% at 18% 55%, rgba(255, 244, 228, 0.34), transparent 70%),
    radial-gradient(ellipse 26% 50% at 52% 45%, rgba(255, 240, 222, 0.26), transparent 72%),
    radial-gradient(ellipse 20% 55% at 82% 60%, rgba(255, 246, 232, 0.3), transparent 70%);
  animation: lux-haze 48s ease-in-out infinite alternate;
}

@keyframes lux-haze {
  from { transform: translate3d(-4%, 0, 0); opacity: 0.4; }
  to { transform: translate3d(6%, -2%, 0); opacity: 0.62; }
}

.lux-water {
  position: absolute;
  left: -20%;
  width: 140%;
  top: 60%;
  bottom: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.5;
  background: repeating-linear-gradient(180deg,
    rgba(255, 250, 240, 0) 0 9px,
    rgba(255, 250, 240, 0.28) 10px,
    rgba(255, 250, 240, 0) 13px 22px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%), linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%), linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-composite: intersect;
  animation: lux-water 14s linear infinite;
}

@keyframes lux-water {
  0% { transform: translate3d(0, 0, 0); opacity: 0.35; }
  50% { transform: translate3d(-4%, 3px, 0); opacity: 0.55; }
  100% { transform: translate3d(-8%, 0, 0); opacity: 0.35; }
}

.lux-hero.is-offscreen .lux-cam,
.lux-hero.is-offscreen .lux-haze,
.lux-hero.is-offscreen .lux-water {
  animation-play-state: paused;
}

/* Optional background video: sits over the photo (its poster) and fades in
   only once real frames are rendering, so there is never a blank frame. */
.lux-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crop from the sky, not the lake. */
  object-position: 30% 75%;
  filter: contrast(1.07) saturate(1.1);
  opacity: 0;
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.lux-hero.has-video .lux-video {
  opacity: 1;
}

/* Warm editorial grade over the footage so it matches the site palette. */
.lux-hero.has-video .lux-cam::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 238, 214, 0.1), rgba(247, 232, 210, 0.14));
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* Real footage supplies the environmental motion: retire the artificial
   water and lights, calm the haze and the camera. */
/* The footage's skyline sits behind the copy, so the veil deepens on the
   right once video is playing (fades in with the video). */
.lux-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(270deg, rgba(247, 244, 239, 0.8) 0%, rgba(247, 244, 239, 0.6) 36%, rgba(247, 244, 239, 0) 62%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 86%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 86%);
}

.lux-hero.has-video::after {
  opacity: 1;
}

.lux-hero.has-video .lux-water {
  display: none;
}

.lux-hero.has-video .lux-haze {
  opacity: 0.12;
  animation-duration: 80s;
}

.lux-hero.has-video .lux-cam {
  animation-duration: 60s;
}

/* Masked headline lines (motion.js wraps each line's text in .line-inner). */
.lux-hero h1 .line-mask {
  display: block;
  overflow: clip;
  padding-bottom: 0.02em;
}

.lux-hero h1 .line-inner {
  display: block;
  /* Inherit the bold line's type, not the global italic "h1 span" style. */
  font: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  transform: none;
}

.lux-copy {
  transform: translate3d(0, var(--lux-copy-y, 0px), 0);
}

.lux-actions .btn-primary {
  transition: transform var(--motion-medium) var(--motion-ease), box-shadow var(--motion-medium) var(--motion-ease), background-color 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .lux-actions .btn-primary:hover {
    box-shadow: 0 22px 46px rgba(30, 94, 255, 0.42), 0 0 0 6px rgba(30, 94, 255, 0.08);
  }

  .lux-secondary {
    transition: background-color var(--motion-medium) var(--motion-ease), border-color var(--motion-medium) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
  }

  .lux-secondary:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(8, 26, 47, 0.42);
  }
}

@media (max-width: 1024px) {
  .lux-copy {
    width: min(520px, 56%);
  }
}

/* Phones and portrait tablets: the same composition as desktop. The video
   fills the whole hero; the copy sits over it on a soft cream veil that fades
   down from the top, with the buttons near the bottom over the lake. */
@media (max-width: 780px), (max-width: 1024px) and (orientation: portrait) {
  .lux-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: calc(100svh - 84px);
  }

  /* Veil behind the copy: strong at the top, clear by the skyline. */
  .lux-hero::before {
    background: linear-gradient(180deg, rgba(247, 244, 239, 0.9) 0%, rgba(247, 244, 239, 0.76) 26%, rgba(247, 244, 239, 0.34) 46%, rgba(247, 244, 239, 0) 60%);
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* The side veil is a desktop device. */
  .lux-hero::after {
    display: none;
  }

  .lux-img {
    object-position: 40% 18%;
  }

  /* Portrait crop from the left edge of the frame: the Rogers Centre on the
     left, the CN Tower at about two-thirds across, clear of the headline. */
  .lux-video {
    object-position: 0% 50%;
  }

  .lux-inner {
    flex: 1;
    display: flex;
    padding: 26px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .lux-copy {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .lux-hero h1 {
    font-size: clamp(2.2rem, 9.6vw, 4.2rem);
    line-height: 0.92;
    margin-bottom: 16px;
  }

  .lux-eyebrow {
    margin-bottom: 14px;
  }

  .lux-lines {
    margin-bottom: 22px;
  }

  /* Buttons settle at the bottom, over the lake; the skyline shows between. */
  .lux-actions {
    margin-top: auto;
  }

  /* Phones: keep only the slow camera; skip haze and water light. */
  .lux-haze,
  .lux-water {
    display: none;
  }

  .lux-cam {
    animation-duration: 48s;
  }

  /* No room for the location mark once the copy overlays the footage. */
  .lux-location {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lux-img,
  .lux-copy {
    transform: none;
  }

  .lux-cam,
  .lux-haze,
  .lux-water {
    animation: none !important;
  }
}

/* Content is visible by default. While motion.js primes entrances, hide them to avoid a flash. */
.motion-pending .reveal {
  opacity: 0;
}

/* First headline line: animatable wrapper that keeps the h1's own type. */
h1 > .h1-plain {
  display: block;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-transform: inherit;
  transform: none;
}

/* Segmented control (budget and destination filters). */
.segmented {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.segmented [role="radio"] {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 250ms var(--ease-out), transform 100ms var(--ease-out);
}

.segmented [role="radio"][aria-checked="true"] {
  background: var(--navy);
  color: var(--white);
}

/* Once the gliding indicator is in place it carries the active background. */
.segmented.is-ready [role="radio"][aria-checked="true"] {
  background: transparent;
}

.segmented [role="radio"]:active {
  transform: scale(0.97);
}

.segmented [role="radio"]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.seg-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(8, 26, 47, 0.18);
  pointer-events: none;
}

.segmented:not(.is-ready) .seg-indicator {
  display: none;
}

[data-filter-grid] {
  position: relative;
}

[data-filter-grid] > [data-item][hidden] {
  display: none !important;
}

.filter-count {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .hero-grid,
  .path-grid,
  .mbbs-layout,
  .affordable-layout,
  .canada-layout,
  .parents-layout {
    grid-template-columns: 1fr;
  }

  .destination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "canada canada"
      "usa europe"
      "mbbs affordable";
  }

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

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

/* Compact navigation (phones and tablets): the full desktop menu needs about
   1080px, so below that the hamburger panel takes over. */
@media (max-width: 1080px) {
  .topbar {
    background: rgba(247, 244, 239, 0.9);
  }

  .nav-toggle {
    display: block;
  }

  /* Mobile navigation: one full-width panel under the header. Everything
     here overrides desktop dropdown positioning so nothing leaks in. */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    max-height: calc(100vh - 84px);
    max-height: calc(100dvh - 84px);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Expanding an accordion must not make the browser scroll the panel to
       "anchor" a lower item, which would push the tapped item out of view. */
    overflow-anchor: none;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    /* Desktop uses flex-end; in a scrolling column that would push overflow
       off the top of the panel where it can't be reached. */
    justify-content: flex-start;
    align-items: stretch;
    gap: 14px;
    padding: 8px 20px calc(22px + env(safe-area-inset-bottom));
    background: rgb(250, 248, 244);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(8, 26, 47, 0.12);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
  }

  .nav-links {
    flex: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-group {
    position: static;
    border-bottom: 1px solid var(--line);
  }

  .nav-links > .nav-link,
  .nav-group > .nav-trigger {
    width: 100%;
    min-height: 52px;
    padding: 0 4px;
    justify-content: space-between;
    font-size: 1rem;
    text-align: left;
    opacity: 1;
  }

  .nav-links > .nav-link {
    border-bottom: 1px solid var(--line);
  }

  .nav-trigger::after {
    transition: transform 200ms var(--ease-out);
  }

  .nav-trigger[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  .nav-links .nav-link:focus-visible,
  .mega-menu a:focus-visible,
  .nav-toggle:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }

  /* Accordions: in normal flow, directly under their trigger. Listed with the
     desktop hover/focus selectors so those can't reapply absolute positioning. */
  .mega-menu,
  .nav-group:hover .mega-menu,
  .nav-group .mega-menu:focus-within,
  .nav-group.is-open .mega-menu {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 0 12px 14px;
    grid-template-columns: 1fr;
    gap: 0;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    transition: none;
  }

  .mega-menu {
    display: none;
  }

  .nav-group.is-open .mega-menu {
    display: grid;
  }

  .mega-menu > div + div {
    margin-top: 6px;
  }

  .mega-label {
    margin: 8px 0 2px;
    padding-left: 12px;
  }

  .mega-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.98rem;
    opacity: 0.86;
  }

  .nav-cta {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
  }

  /* Hamburger becomes a close (X) while the panel is open. */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

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

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(8, 26, 47, 0.32);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms;
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 200ms var(--ease-out), visibility 0s;
  }

  /* Keep the page behind the open menu still. Only body is locked: it passes
     to the viewport, whereas locking html would turn body into its own scroll
     box and carry the sticky header off-screen on scrolled pages. */
  html.nav-open body {
    overflow: hidden;
  }
}

@media (max-width: 780px) {
  /* Keep the main medical student centred in the narrow crop. */
  .mbbs-image {
    background-position: 55% 30%;
  }


  .hero {
    padding-top: 26px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-visual {
    min-height: 460px;
    grid-template-columns: 1fr 1fr;
  }

  .panel-one,
  .panel-two {
    min-height: 290px;
  }

  .panel-three {
    width: 52%;
    min-height: 170px;
  }

  .section-headline.resources-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .destination-grid,
  .journey-wrap,
  .compare-grid,
  .canada-list,
  .info-list,
  .dual-grid {
    grid-template-columns: 1fr;
  }

  /* Single column on phones: the tablet area map has two columns, which squeezed USA and MBBS to a sliver. */
  .destination-grid {
    grid-template-areas:
      "canada"
      "usa"
      "europe"
      "mbbs"
      "affordable";
  }

  .journey-track {
    display: none;
  }

  .journey-wrap {
    gap: 18px;
  }

  .journey-step {
    padding: 0;
  }

  .final-cta-panel {
    min-height: 400px;
    padding: 42px 22px 30px;
  }
}

@media (max-width: 520px) {
  /* Find your path: roomier card, stacked result with a full-width CTA. */
  .path-grid > * {
    min-width: 0;
  }

  .path-builder {
    padding: 22px 20px;
    border-radius: 24px;
  }

  .selector-block + .selector-block {
    margin-top: 22px;
  }

  .selector-label {
    margin-bottom: 10px;
  }

  .choice-group {
    gap: 8px;
  }

  .choice {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .dual-grid {
    gap: 22px;
  }

  .path-result {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 24px;
  }

  .path-result .path-btn {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    white-space: nowrap;
  }

  .btn {
    min-height: 48px;
    width: 100%;
  }

  .hero-actions,
  .cta-actions,
  .inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .container {
    width: min(100% - 40px, 1200px);
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual {
    min-height: 360px;
  }

  .panel-one {
    transform: translateY(10px);
  }

  .panel-two {
    transform: translateY(38px);
  }

  .note-two {
    bottom: 160px;
  }
}

/* ---------------------------------------------------------------
   Reusable motion utilities
   .card-hover   lift + shadow refinement on hover
   .img-zoom     container whose img/picture zooms gently on hover
   .link-arrow   link whose trailing <span> arrow nudges right
   .stagger-group  children reveal one after another (motion.js)
   --------------------------------------------------------------- */
.card-hover {
  transition: transform var(--motion-medium) var(--motion-ease), box-shadow var(--motion-medium) var(--motion-ease), border-color var(--motion-medium) var(--motion-ease);
}

.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform var(--motion-slow) var(--motion-ease);
}

.link-arrow span {
  display: inline-block;
  transition: transform var(--motion-fast) var(--motion-ease);
}

@media (hover: hover) and (pointer: fine) {
  .card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(8, 26, 47, 0.12);
  }

  .img-zoom:hover img,
  .card-hover:hover .img-zoom img {
    transform: scale(var(--motion-zoom));
  }

  .link-arrow:hover span,
  .card-hover:hover .link-arrow span {
    transform: translateX(4px);
  }

  .sf-social a {
    transition: color var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease);
  }

  .sf-social a:hover {
    color: var(--white);
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  /* No hover lifts or zooms; colour and shadow changes still confirm the hover. */
  .card-hover:hover,
  .btn:hover,
  .sf-social a:hover,
  .img-zoom:hover img,
  .card-hover:hover .img-zoom img,
  .destination:hover::after,
  .res-card:hover img,
  .res-featured:hover img,
  .res-card:hover,
  .res-featured:hover,
  .inst-card:hover,
  .explore-card:hover .explore-media::after {
    transform: none !important;
  }
}

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

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

/* Touch devices: comfortable 44px tap targets for inline card links, phone
   numbers and FAQ toggles (layout unchanged; the hit area grows). */
@media (pointer: coarse) {
  .destination-copy > a,
  .country-body > a,
  .explore-card > a,
  .inst-card > .inst-link,
  .mx-card > .mx-link,
  .contact-strip-block > a,
  .container > .text-link,
  .sf-strong {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  details > summary {
    padding-block: 10px;
  }
}

/* Keyboard users: first tab stop jumps past the navigation. */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus {
  transform: none;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

