/* ==========================================================================
   Rivil International: shared destination-page theme foundation
   Generic structural rules for every "Study in <Country>" page. All colour
   values are driven by CSS custom properties scoped under a body theme
   class, so future destinations (body.theme-uk, body.theme-australia,
   body.theme-canada, body.theme-malaysia, body.theme-singapore) can be
   added below without touching any other theme's rules.

   Loaded after mobile.css on destination pages.
   ========================================================================== */

/* ---------- Theme: New Zealand ---------- */
/* --dest-accent sampled directly from the Stitch reference button (#556B2F,
   the site's primary olive). Overlay stays within rgba(10,15,10, 0.5–0.65). */

body.theme-nz {
  --dest-accent: #556B2F;
  --dest-bg: #0a0f0a;
  --dest-glass-bg: rgba(15, 22, 15, 0.55);
  --dest-glass-border: rgba(255, 255, 255, 0.08);
  --dest-text-primary: #ffffff;
  --dest-text-muted: rgba(255, 255, 255, 0.74);
  --dest-overlay: rgba(10, 15, 10, 0.55);
  --dest-overlay-soft: rgba(10, 15, 10, 0.5);
  --dest-overlay-strong: rgba(10, 15, 10, 0.65);
  background-color: var(--dest-bg);
}

/* Theme-scoped section photography. The photos stay sharp; only the glass
   panels floating above them are blurred, via backdrop-filter. */
body.theme-nz .dest-hero-img      { background-image: url("assets/mount-cook-updated.jpg"); }
body.theme-nz .dest-bg-universities { background-image: url("assets/destinations/new-zealand/bg-universities-auckland.jpg"); }
body.theme-nz .dest-bg-scholarships { background-image: url("assets/destinations/new-zealand/bg-scholarships-milford.jpg"); }
body.theme-nz .dest-bg-gallery      { background-image: url("assets/destinations/new-zealand/bg-gallery-nelson.jpg"); }
body.theme-nz .dest-bg-cta          { background-image: url("assets/destinations/new-zealand/bg-cta-ferns.jpg"); }

/* ---------- Theme: United Kingdom ---------- */

body.theme-uk {
  --dest-accent: #c62c54;
  --dest-bg: #080b12;
  --dest-glass-bg: rgba(11, 18, 30, 0.58);
  --dest-glass-border: rgba(255, 255, 255, 0.12);
  --dest-text-primary: #ffffff;
  --dest-text-muted: rgba(255, 255, 255, 0.74);
  --dest-overlay: rgba(8, 13, 23, 0.62);
  --dest-overlay-soft: rgba(8, 13, 23, 0.54);
  --dest-overlay-strong: rgba(8, 13, 23, 0.7);
  background-color: var(--dest-bg);
}

body.theme-uk .dest-hero-img        { background-image: url("assets/destinations/uk/hero-london-thames.jpg"); }
body.theme-uk .dest-bg-universities { background-image: url("assets/destinations/uk/bg-universities-oxford.jpg"); }
body.theme-uk .dest-bg-scholarships { background-image: url("assets/destinations/uk/bg-scholarships-library.jpg"); }
body.theme-uk .dest-bg-gallery      { background-image: url("assets/destinations/uk/bg-gallery-highlands.jpg"); }
body.theme-uk .dest-bg-cta          { background-image: url("assets/destinations/uk/bg-cta-phone-box.jpg"); }

body.theme-uk .dest-img-tag,
body.theme-uk .dest-gallery-caption {
  background: rgba(8, 13, 23, 0.62);
}

/* ---------- Theme: Australia ---------- */

body.theme-australia {
  --dest-accent: #ad552f;
  --dest-bg: #0d0d0b;
  --dest-glass-bg: rgba(30, 22, 15, 0.58);
  --dest-glass-border: rgba(255, 244, 232, 0.13);
  --dest-text-primary: #ffffff;
  --dest-text-muted: rgba(255, 255, 255, 0.74);
  --dest-overlay: rgba(18, 13, 9, 0.6);
  --dest-overlay-soft: rgba(18, 13, 9, 0.52);
  --dest-overlay-strong: rgba(18, 13, 9, 0.68);
  background-color: var(--dest-bg);
}

body.theme-australia .dest-hero-img        { background-image: url("assets/destinations/australia/hero-sydney-harbour.jpg"); }
body.theme-australia .dest-bg-universities { background-image: url("assets/destinations/australia/bg-universities-sydney.jpg"); }
body.theme-australia .dest-bg-scholarships { background-image: url("assets/destinations/australia/bg-scholarships-library.jpg"); }
body.theme-australia .dest-bg-gallery      { background-image: url("assets/destinations/australia/bg-gallery-ocean-road.jpg"); }
body.theme-australia .dest-bg-cta          { background-image: url("assets/destinations/australia/bg-cta-uluru.jpg"); }

body.theme-australia .dest-img-tag,
body.theme-australia .dest-gallery-caption {
  background: rgba(18, 13, 9, 0.64);
}

/* ---------- Theme: Canada ---------- */

body.theme-canada {
  --dest-accent: #b83c48;
  --dest-bg: #080c12;
  --dest-glass-bg: rgba(12, 21, 31, 0.6);
  --dest-glass-border: rgba(235, 244, 255, 0.13);
  --dest-text-primary: #ffffff;
  --dest-text-muted: rgba(255, 255, 255, 0.74);
  --dest-overlay: rgba(8, 15, 24, 0.62);
  --dest-overlay-soft: rgba(8, 15, 24, 0.54);
  --dest-overlay-strong: rgba(8, 15, 24, 0.7);
  background-color: var(--dest-bg);
}

body.theme-canada .dest-hero-img        { background-image: url("assets/destinations/canada/hero-toronto-skyline.jpg"); }
body.theme-canada .dest-bg-universities { background-image: url("assets/destinations/canada/bg-universities-campus.jpg"); }
body.theme-canada .dest-bg-scholarships { background-image: url("assets/destinations/canada/bg-scholarships-montreal-library.jpg"); }
body.theme-canada .dest-bg-gallery      { background-image: url("assets/destinations/canada/bg-gallery-banff.jpg"); }
body.theme-canada .dest-bg-cta          { background-image: url("assets/destinations/canada/bg-cta-niagara.jpg"); }

body.theme-canada .dest-img-tag,
body.theme-canada .dest-gallery-caption {
  background: rgba(8, 15, 24, 0.66);
}

/* ---------- Theme: Malaysia ---------- */

body.theme-malaysia {
  --dest-accent: #c99b2e;
  --dest-bg: #07100f;
  --dest-glass-bg: rgba(9, 25, 23, 0.6);
  --dest-glass-border: rgba(243, 231, 188, 0.14);
  --dest-text-primary: #ffffff;
  --dest-text-muted: rgba(255, 255, 255, 0.74);
  --dest-overlay: rgba(5, 18, 17, 0.62);
  --dest-overlay-soft: rgba(5, 18, 17, 0.54);
  --dest-overlay-strong: rgba(5, 18, 17, 0.7);
  background-color: var(--dest-bg);
}

body.theme-malaysia .dest-hero-img        { background-image: url("assets/destinations/malaysia/hero-kuala-lumpur.jpg"); }
body.theme-malaysia .dest-bg-universities { background-image: url("assets/destinations/malaysia/bg-universities-putrajaya.jpg"); }
body.theme-malaysia .dest-bg-scholarships { background-image: url("assets/destinations/malaysia/bg-scholarships-rexkl.jpg"); }
body.theme-malaysia .dest-bg-gallery      { background-image: url("assets/destinations/malaysia/bg-gallery-cameron-highlands.jpg"); }
body.theme-malaysia .dest-bg-cta          { background-image: url("assets/destinations/malaysia/bg-cta-langkawi.jpg"); }

body.theme-malaysia .dest-img-tag,
body.theme-malaysia .dest-gallery-caption {
  background: rgba(5, 18, 17, 0.66);
}

/* ---------- Theme: Singapore ---------- */

body.theme-singapore {
  --dest-accent: #d14b57;
  --dest-bg: #080d12;
  --dest-glass-bg: rgba(10, 22, 29, 0.6);
  --dest-glass-border: rgba(232, 242, 248, 0.14);
  --dest-text-primary: #ffffff;
  --dest-text-muted: rgba(255, 255, 255, 0.74);
  --dest-overlay: rgba(6, 16, 23, 0.62);
  --dest-overlay-soft: rgba(6, 16, 23, 0.54);
  --dest-overlay-strong: rgba(6, 16, 23, 0.7);
  background-color: var(--dest-bg);
}

body.theme-singapore .dest-hero-img        { background-image: url("assets/destinations/singapore/hero-marina-bay.jpg"); }
body.theme-singapore .dest-bg-universities { background-image: url("assets/destinations/singapore/bg-universities-gardens.jpg"); }
body.theme-singapore .dest-bg-scholarships { background-image: url("assets/destinations/singapore/bg-scholarships-library.jpg"); }
body.theme-singapore .dest-bg-gallery      { background-image: url("assets/destinations/singapore/bg-gallery-supertrees.jpg"); }
body.theme-singapore .dest-bg-cta          { background-image: url("assets/destinations/singapore/bg-cta-botanic-gardens.jpg"); }

body.theme-singapore .dest-img-tag,
body.theme-singapore .dest-gallery-caption {
  background: rgba(6, 16, 23, 0.66);
}

/* ---------- Theme: Ireland ---------- */

body.theme-ireland {
  --dest-accent: #66a873;
  --dest-bg: #06100b;
  --dest-glass-bg: rgba(8, 26, 18, 0.6);
  --dest-glass-border: rgba(218, 239, 222, 0.15);
  --dest-text-primary: #ffffff;
  --dest-text-muted: rgba(255, 255, 255, 0.76);
  --dest-overlay: rgba(5, 18, 12, 0.62);
  --dest-overlay-soft: rgba(5, 18, 12, 0.54);
  --dest-overlay-strong: rgba(5, 18, 12, 0.72);
  background-color: var(--dest-bg);
}

body.theme-ireland .dest-hero-img        { background-image: url("assets/destinations/ireland/hero-dublin-liffey.jpg"); }
body.theme-ireland .dest-bg-universities { background-image: url("assets/destinations/ireland/bg-universities-trinity.jpg"); }
body.theme-ireland .dest-bg-scholarships { background-image: url("assets/destinations/ireland/bg-scholarships-library.jpg"); }
body.theme-ireland .dest-bg-gallery      { background-image: url("assets/destinations/ireland/bg-gallery-wild-atlantic.jpg"); }
body.theme-ireland .dest-bg-cta          { background-image: url("assets/destinations/ireland/bg-cta-cliffs-of-moher.jpg"); }

body.theme-ireland .dest-img-tag,
body.theme-ireland .dest-gallery-caption {
  background: rgba(5, 18, 12, 0.7);
  border-color: rgba(218, 239, 222, 0.16);
}

/* ---------- Theme: Dubai ---------- */

body.theme-dubai {
  --dest-accent: #c9a35d;
  --dest-bg: #090806;
  --dest-glass-bg: rgba(20, 16, 10, 0.62);
  --dest-glass-border: rgba(226, 190, 117, 0.22);
  --dest-text-primary: #ffffff;
  --dest-text-muted: rgba(255, 255, 255, 0.74);
  --dest-overlay: rgba(13, 10, 6, 0.64);
  --dest-overlay-soft: rgba(13, 10, 6, 0.56);
  --dest-overlay-strong: rgba(13, 10, 6, 0.72);
  background-color: var(--dest-bg);
}

body.theme-dubai .dest-hero-img {
  background-image: url("assets/destinations/dubai/hero-burj-khalifa-day.jpg");
  background-position: center 18%;
}
body.theme-dubai .dest-bg-universities { background-image: url("assets/destinations/dubai/bg-universities-museum-future.jpg"); }
body.theme-dubai .dest-bg-scholarships { background-image: url("assets/destinations/dubai/bg-scholarships-library.jpg"); }
body.theme-dubai .dest-bg-gallery      { background-image: url("assets/destinations/dubai/bg-gallery-dubai-marina-night.jpg"); }
body.theme-dubai .dest-bg-cta          { background-image: url("assets/destinations/dubai/bg-cta-desert-dunes.jpg"); }

body.theme-dubai .dest-hero-overlay {
  background:
    radial-gradient(circle at 64% 28%, rgba(220, 166, 82, 0.12), transparent 42%),
    linear-gradient(to bottom,
      rgba(7, 6, 5, 0.16) 0%,
      rgba(9, 7, 5, 0.52) 60%,
      rgba(9, 7, 5, 0.88) 100%);
}

body.theme-dubai .dest-glass-panel {
  box-shadow: 0 28px 70px -30px rgba(0, 0, 0, 0.88),
              inset 0 1px 0 rgba(255, 225, 164, 0.1);
}

body.theme-dubai .dest-hero-title {
  text-shadow: 0 3px 48px rgba(0, 0, 0, 0.72), 0 0 34px rgba(201, 163, 93, 0.15);
}

body.theme-dubai .dest-img-tag,
body.theme-dubai .dest-gallery-caption {
  background: rgba(13, 10, 6, 0.72);
  border-color: rgba(226, 190, 117, 0.22);
}

/* ---------- Section shells ---------- */

/* Matches the 120px section-gap rhythm used across the rest of the site. */
.dest-section {
  position: relative;
  padding: 120px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

@media (min-width: 768px) {
  .dest-section { padding: 120px 64px; }
}

.dest-section-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

/* Photo-backed section: image cover + dark overlay layered on top. */
.dest-section-bg {
  background-size: cover;
  background-position: center;
}

.dest-section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--dest-overlay);
}

.dest-overlay-soft::before   { background: var(--dest-overlay-soft); }
.dest-overlay-strong::before { background: var(--dest-overlay-strong); }

/* ---------- Glass panel ---------- */
/* Transition list also carries opacity so .scroll-reveal fade-in keeps
   working when this rule wins the cascade over mobile.css. */

.dest-glass-panel {
  background: var(--dest-glass-bg);
  border: 1px solid var(--dest-glass-border);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

/* ---------- Typography ---------- */

.dest-pill {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* Small accent eyebrow above a heading. */
.dest-eyebrow {
  display: block;
  color: color-mix(in srgb, var(--dest-accent) 45%, #ffffff);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 18px;
}

.dest-section-title {
  color: var(--dest-text-primary);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-align: center;
}

.dest-section-sub {
  color: var(--dest-text-muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  text-align: center;
  max-width: 680px;
  margin: 22px auto 72px;
}

.dest-align-left,
.dest-align-left.dest-section-title,
.dest-align-left.dest-section-sub {
  text-align: left;
  margin-left: 0;
}

/* Removes the trailing gap when a .dest-section-sub sits inside a panel
   or gallery header rather than directly above a grid. */
.dest-sub-flush { margin-bottom: 0; }

/* ---------- Buttons ---------- */

.dest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Frosted-glass take on the accent colour: same hue, translucent fill,
   blur and a light inner edge instead of a flat solid block. */
.dest-btn-primary {
  background: color-mix(in srgb, var(--dest-accent) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--dest-accent) 55%, rgba(255, 255, 255, 0.35));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #ffffff;
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--dest-accent) 80%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.dest-btn-primary:hover {
  background: color-mix(in srgb, var(--dest-accent) 88%, transparent);
  transform: translateY(-2px);
}

/* Every destination hero uses one monochrome CTA treatment. Country accent
   colours remain available for content and lower-page actions. */
.dest-hero .dest-btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #070909;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 16px 38px -18px rgba(0, 0, 0, 0.72),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dest-hero .dest-btn-primary:hover {
  background: #eeeeeb;
  border-color: #eeeeeb;
  color: #070909;
}

.dest-btn-outline { border: 1px solid rgba(255, 255, 255, 0.35); color: #ffffff; }
.dest-btn-outline:hover { background: rgba(255, 255, 255, 0.08); }

.dest-btn-light { background: #ffffff; color: #0a0f0a; }
.dest-btn-light:hover { filter: brightness(0.9); }

.dest-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ---------- Hero ---------- */

.dest-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Slight overscan leaves room for parallax without making the hero feel
   tightly cropped before the subtle Ken Burns animation begins. */
.dest-hero-media {
  position: absolute;
  left: 0;
  right: 0;
  top: -12%;
  height: 112%;
  z-index: 0;
  will-change: transform;
}

/* Ken Burns target: keyframes referenced by initKenBurnsHero(). */
.dest-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

@keyframes dest-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.dest-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(10, 15, 10, 0.25) 0%,
    rgba(10, 15, 10, 0.55) 60%,
    rgba(10, 15, 10, 0.85) 100%);
}

.dest-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  padding: 0 16px;
}

.dest-greeting {
  position: relative;
  margin: 18px 0 2px;
  display: block;
  text-align: left;
}

.dest-greeting-word {
  font-family: 'Alex Brush', cursive;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(24px, 4.875vw, 60px);
  color: #FFFFFF;
  text-shadow: 0 1px 14px rgba(0,0,0,0.5);
  line-height: 1;
  display: inline-block;
  transform: rotate(-6deg);
  transform-origin: left center;
}

.dest-greeting + .dest-hero-title {
  margin-top: 4px;
}

/* initGreetingReveal() starts this animation alongside the greeting and
   releases the title exactly 150ms later. */
.dest-hero-title.hero-rise {
  animation-delay: 150ms;
  animation-play-state: paused;
}

.dest-hero-title {
  color: var(--dest-text-primary);
  font-size: clamp(32px, 6.5vw, 80px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 30px 0 24px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
}

.dest-hero-sub {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto 44px;
}

/* ---------- Country intro ---------- */

.dest-country-title {
  color: var(--dest-text-primary);
  font-size: clamp(44px, 12vw, 156px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  word-break: break-word;
  text-align: center;
  position: relative;
  z-index: 3;
  margin-bottom: -0.2em;
  pointer-events: none;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dest-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-top: 72px;
}

/* When the oversized country heading is omitted, let the section's equal
   vertical padding provide the full rhythm above and below the content. */
.dest-section-no-title .dest-intro-grid {
  padding-top: 0;
}

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

.dest-img-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--dest-glass-border);
}

.dest-img-card img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.dest-img-tag {
  position: absolute;
  padding: 6px 12px;
  border: 1px solid var(--dest-glass-border);
  border-radius: 8px;
  background: rgba(10, 15, 10, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dest-img-tag-tl { top: 16px; left: 16px; }
.dest-img-tag-bl { bottom: 16px; left: 16px; }

.dest-intro-heading {
  color: var(--dest-text-primary);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.dest-intro-copy {
  color: var(--dest-text-muted);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 34px;
}

.dest-check-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dest-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.5;
}

.dest-check-list .material-symbols-outlined {
  color: var(--dest-accent);
  font-size: 22px;
  flex-shrink: 0;
}

.dest-nz-map-card {
  max-width: 980px;
  margin: 0 auto;
}

.dest-nz-map-card img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.dest-nz-map-card figcaption {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.58);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.dest-nz-map-section {
  background: #07100b;
}

.dest-nz-map-head .dest-section-sub {
  margin-bottom: 48px;
}

/* ---------- New Zealand student life ---------- */
/* Page-specific content section; the theme and class prefixes keep these
   additions isolated from every other destination page. */

body.theme-nz .dest-nz-life-section {
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--dest-accent) 18%, transparent), transparent 34%),
    linear-gradient(145deg, #09120c 0%, #07100b 58%, #0b140d 100%);
}

body.theme-nz .dest-nz-life-head .dest-section-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 600;
}

body.theme-nz .dest-nz-life-head .dest-section-sub {
  margin-bottom: 56px;
}

body.theme-nz .dest-nz-life-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.theme-nz .dest-nz-life-card {
  padding: 36px;
}

body.theme-nz .dest-nz-life-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border: 1px solid color-mix(in srgb, var(--dest-accent) 48%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--dest-accent) 14%, transparent);
  color: color-mix(in srgb, var(--dest-accent) 55%, #ffffff);
  font-size: 24px;
}

body.theme-nz .dest-nz-life-card h3,
body.theme-nz .dest-nz-life-texture h3,
body.theme-nz .dest-nz-life-resource h3 {
  color: var(--dest-text-primary);
  font-size: clamp(23px, 2.3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.theme-nz .dest-nz-life-card p,
body.theme-nz .dest-nz-life-texture p,
body.theme-nz .dest-nz-life-resource p {
  margin-top: 18px;
  color: var(--dest-text-muted);
  font-size: 16px;
  line-height: 1.75;
}

body.theme-nz .dest-nz-life-card p + p {
  margin-top: 16px;
}

body.theme-nz .dest-nz-life-reasons .dest-check-list {
  margin-top: 22px;
}

body.theme-nz .dest-nz-life-reasons .dest-check-list li {
  font-size: 15px;
}

body.theme-nz .dest-nz-life-texture {
  margin-top: 24px;
  padding: 36px;
  border-color: color-mix(in srgb, var(--dest-accent) 34%, var(--dest-glass-border));
}

body.theme-nz .dest-nz-life-texture p {
  max-width: 980px;
}

body.theme-nz .dest-nz-life-resource {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: center;
  gap: 48px;
  margin-top: 24px;
  padding: 42px;
  border-color: color-mix(in srgb, var(--dest-accent) 52%, var(--dest-glass-border));
  background: color-mix(in srgb, var(--dest-accent) 12%, var(--dest-glass-bg));
}

body.theme-nz .dest-nz-life-resource .dest-eyebrow {
  margin-bottom: 10px;
  text-align: left;
}

body.theme-nz .dest-nz-life-resource p {
  max-width: 720px;
}

body.theme-nz .dest-nz-life-resource-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

body.theme-nz .dest-nz-life-resource-actions .dest-btn {
  width: 100%;
  text-align: center;
}

body.theme-nz .dest-nz-life-reference-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

body.theme-nz .dest-nz-life-reference-links a {
  color: color-mix(in srgb, var(--dest-accent) 42%, #ffffff);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--dest-accent) 60%, transparent);
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

body.theme-nz .dest-nz-life-reference-links a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  body.theme-nz .dest-nz-life-grid,
  body.theme-nz .dest-nz-life-resource {
    grid-template-columns: 1fr;
  }

  body.theme-nz .dest-nz-life-resource {
    gap: 32px;
  }
}

@media (max-width: 600px) {
  body.theme-nz .dest-nz-life-card,
  body.theme-nz .dest-nz-life-texture,
  body.theme-nz .dest-nz-life-resource {
    padding: 28px 22px;
  }
}

/* ---------- University cards ---------- */

/* ---------- Institution group headers ---------- */

.dest-group {
  margin-top: 24px;
}

.dest-group-spaced {
  margin-top: 96px;
}

.dest-group-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 28px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dest-group-head .dest-eyebrow {
  text-align: left;
  margin-bottom: 4px;
}

.dest-group-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--dest-accent);
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--dest-accent) 45%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--dest-accent) 12%, transparent);
}

.dest-group-title {
  color: var(--dest-text-primary);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dest-partnership-intro {
  max-width: 880px;
  margin-top: 96px;
}

.dest-partnership-intro .dest-eyebrow {
  text-align: left;
  margin-bottom: 12px;
}

.dest-partnership-title {
  color: var(--dest-text-primary);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

/* ---------- University / institution cards ---------- */

.dest-uni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .dest-uni-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .dest-uni-grid { grid-template-columns: 1fr; }
}

.dest-university-card {
  display: flex;
  flex-direction: column;
  padding: 34px 32px;
}

.dest-university-card:hover {
  box-shadow: 0 32px 70px -28px rgba(0, 0, 0, 0.75),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ---------- Compact institution directory ---------- */
/* Flat grid, no city grouping. City is a metadata line inside each card. */

.dest-directory-count {
  margin-top: -48px;
  margin-bottom: 48px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.dest-directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 16px;
}

@media (min-width: 600px) {
  .dest-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 850px) {
  .dest-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .dest-directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.dest-directory-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: var(--dest-glass-bg);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.dest-directory-card:hover {
  border-color: color-mix(in srgb, var(--dest-accent) 40%, transparent);
  background: color-mix(in srgb, var(--dest-glass-bg) 90%, #ffffff 6%);
  transform: translateY(-3px);
}

.dest-directory-card-location {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dest-directory-card-location .material-symbols-outlined {
  color: var(--dest-accent);
  font-size: 12px;
  line-height: 1;
}

.dest-directory-card-main {
  display: block;
}

.dest-directory-card-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.dest-directory-card-name {
  margin-top: 12px;
  color: #ffffff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 600;
  line-height: 1.25;
}

.dest-directory-card-description {
  display: -webkit-box;
  max-width: 46rem;
  margin-top: 14px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: rgba(255, 255, 255, 0.65);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.6;
}

.dest-directory-programmes {
  margin-top: 10px;
}

.dest-directory-programmes-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dest-accent);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dest-directory-programmes-label .material-symbols-outlined {
  font-size: 14px;
  line-height: 1;
}

.dest-directory-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dest-directory-card-tag {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}

.dest-directory-card-divider {
  width: 100%;
  height: 1px;
  margin: 16px 0 12px;
  background: rgba(255, 255, 255, 0.08);
}

.dest-directory-card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
}

.dest-directory-card-actions > a {
  flex: 1 1 0;
  min-width: 0;
}

.dest-directory-card-website {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.dest-directory-card-website:hover {
  border-color: var(--dest-accent);
  color: var(--dest-accent);
}

.dest-directory-card-website .material-symbols-outlined {
  font-size: 15px;
  line-height: 1;
}

.dest-directory-card-whatsapp {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  background: #25D366;
  color: #ffffff;
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  transition: background 0.2s ease;
}

.dest-directory-card-whatsapp:hover {
  background: #2EE573;
}

.dest-directory-card-whatsapp svg {
  width: 15px;
  height: 15px;
  color: #ffffff;
}

/* New Zealand institution cards use the same 40:60 logo-field/content split.
   The branch-only class and page-specific grid IDs keep every other
   destination's institution cards unchanged. */
body.theme-nz .dest-nz-university-card,
body.theme-nz #polytechnic-cards-new-zealand > .dest-university-card,
body.theme-nz #private-training-provider-cards-new-zealand > .dest-university-card {
  box-sizing: border-box;
  height: 480px;
  padding: 0;
  overflow: hidden;
}

body.theme-nz .dest-nz-university-card > .dest-uni-logo,
body.theme-nz #polytechnic-cards-new-zealand > .dest-university-card > .dest-uni-logo,
body.theme-nz #private-training-provider-cards-new-zealand > .dest-university-card > .dest-uni-logo {
  flex: 0 0 192px;
  width: 100%;
  height: 192px;
  margin: 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: none;
}

body.theme-nz .dest-nz-university-card > .dest-uni-logo img,
body.theme-nz #polytechnic-cards-new-zealand > .dest-university-card > .dest-uni-logo img,
body.theme-nz #private-training-provider-cards-new-zealand > .dest-university-card > .dest-uni-logo img {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 20px;
  object-fit: contain;
}

body.theme-nz .dest-nz-university-card .dest-uni-logo-fallback {
  color: var(--nz-logo-fallback-color, #2f342f);
}

body.theme-nz .dest-nz-university-content {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  padding: 18px 22px;
}

body.theme-nz .dest-nz-university-content .dest-uni-tags {
  padding-top: 14px;
}

body.theme-nz .dest-nz-rank-chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--dest-accent) 58%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--dest-accent) 15%, transparent);
  color: color-mix(in srgb, var(--dest-accent) 48%, #ffffff);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

body.theme-nz .dest-nz-rank-chip .material-symbols-outlined {
  font-size: 16px;
}

body.theme-nz .dest-nz-university-content .dest-uni-actions {
  margin-top: auto;
}

body.theme-nz #polytechnic-cards-new-zealand > .dest-university-card > .dest-uni-name,
body.theme-nz #private-training-provider-cards-new-zealand > .dest-university-card > .dest-uni-name {
  margin: 18px 22px 0;
}

body.theme-nz #polytechnic-cards-new-zealand > .dest-university-card > .dest-uni-city,
body.theme-nz #private-training-provider-cards-new-zealand > .dest-university-card > .dest-uni-city {
  margin-right: 22px;
  margin-left: 22px;
}

body.theme-nz #polytechnic-cards-new-zealand > .dest-university-card > .dest-uni-tags,
body.theme-nz #private-training-provider-cards-new-zealand > .dest-university-card > .dest-uni-tags {
  margin-right: 22px;
  margin-left: 22px;
  padding-top: 14px;
}

body.theme-nz #polytechnic-cards-new-zealand > .dest-university-card > .dest-uni-actions,
body.theme-nz #private-training-provider-cards-new-zealand > .dest-university-card > .dest-uni-actions {
  margin: auto 22px 18px;
}

/* Light backing panel so dark-on-transparent logos stay legible. */
.dest-uni-logo {
  position: relative;
  width: 100%;
  height: 96px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.dest-uni-logo img {
  max-width: 74%;
  max-height: 60px;
  object-fit: contain;
}

.dest-uni-logo-fallback {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #2f342f;
  user-select: none;
}

.dest-uni-name {
  color: var(--dest-text-primary);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.dest-uni-city {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--dest-text-muted);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.dest-uni-city .material-symbols-outlined {
  color: var(--dest-accent);
  font-size: 16px;
}

.dest-uni-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.dest-uni-tag {
  padding: 7px 12px;
  border: 1px solid var(--dest-glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Institution card action buttons. */
.dest-uni-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.dest-uni-website,
.dest-uni-enquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 10px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.dest-uni-website {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.dest-uni-website:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.dest-uni-website .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 17px;
}

.dest-uni-enquire {
  border: 1px solid color-mix(in srgb, var(--dest-accent) 50%, transparent);
  background: color-mix(in srgb, var(--dest-accent) 16%, transparent);
}

.dest-uni-enquire:hover {
  background: color-mix(in srgb, var(--dest-accent) 42%, transparent);
  border-color: color-mix(in srgb, var(--dest-accent) 70%, #ffffff 12%);
  transform: translateY(-1px);
}

.dest-uni-enquire svg { flex-shrink: 0; }

/* ---------- Scholarships ---------- */

.dest-scholarship-panel {
  padding: 36px 24px;
}

@media (min-width: 768px) {
  .dest-scholarship-panel { padding: 56px; }
}

.dest-scholarship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 36px 0 40px;
}

@media (max-width: 768px) {
  .dest-scholarship-grid { grid-template-columns: 1fr; }
}

.dest-scholarship-name {
  color: var(--dest-accent);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dest-scholarship-desc {
  color: var(--dest-text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Gallery ---------- */

.dest-gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.dest-gallery-arrows {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.dest-gallery-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--dest-glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dest-gallery-arrow:hover {
  background: var(--dest-accent);
  border-color: var(--dest-accent);
}

.dest-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dest-gallery::-webkit-scrollbar { display: none; }

.dest-gallery-item {
  position: relative;
  flex: 0 0 280px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--dest-glass-border);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .dest-gallery-item { flex-basis: 340px; height: 440px; }
}

.dest-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark blurred glass strip over the bottom of each gallery photo. */
.dest-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: rgba(10, 15, 10, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--dest-glass-border);
}

.dest-gallery-caption h4 {
  color: var(--dest-text-primary);
  font-size: 16px;
  font-weight: 700;
}

.dest-gallery-caption p {
  color: var(--dest-text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}

/* ---------- Stats bar ---------- */

.dest-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
  padding: 28px 8px;
}

.dest-stat {
  padding: 8px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.dest-stat:first-child { border-left: 0; }

.dest-stat-label {
  color: var(--dest-accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dest-stat-value {
  color: var(--dest-text-primary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .dest-stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 20px; padding: 24px 8px; }
  .dest-stat:nth-child(odd) { border-left: 0; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .dest-hero-img { animation: none !important; }
  .dest-greeting-word {
    opacity: 1;
    transform: rotate(-6deg);
    filter: blur(0);
  }
  .dest-hero-title.hero-rise {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .dest-gallery { scroll-behavior: auto; }
  .dest-glass-panel,
  .dest-btn,
  .dest-gallery-arrow { transition: none; }
}
