/* EduRise International School — visual system */

:root {
  --navy: #071833;
  --navy-2: #10284d;
  --ink: #142033;
  --muted: #5c6b80;
  --cyan: #1ad4c5;
  --blue: #4d7dff;
  --violet: #7b5cff;
  --coral: #ff6d6d;
  --gold: #f5c16c;
  --paper: #f4f7fc;
  --white: #ffffff;
  --line: rgba(7, 24, 51, 0.1);
  --shadow: 0 24px 60px rgba(7, 24, 51, 0.14);
  --radius: 28px;
  --header: 84px;
  --font: "Poppins", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: clip;
}

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

a { color: inherit; }

button, input, textarea { font: inherit; }

h1, h2, h3, h4, p { overflow-wrap: anywhere; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.03em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 1rem;
  border-radius: 999px;
}

.skip:focus { top: 1rem; }

.wrap {
  width: min(1680px, calc(100% - 2.25rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head { max-width: 40rem; margin-bottom: 2rem; }

.section-head h2,
.about-copy h2,
.contact h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
}

.section-head p:last-child { color: var(--muted); margin: 0; }

.section-head.light .eyebrow,
.section-head.light h2,
.section-head.light p,
.academics,
.academics .eyebrow { color: var(--white); }

.academics .eyebrow { color: var(--cyan); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn-accent {
  color: var(--navy);
  background: linear-gradient(120deg, #8ff7ef, var(--cyan) 35%, var(--blue));
  box-shadow: 0 12px 30px rgba(77, 125, 255, 0.28);
}

.btn-light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.btn-lg { min-height: 54px; padding-inline: 1.5rem; }

.btn-apply {
  position: relative;
  overflow: hidden;
  color: var(--navy);
  background: linear-gradient(120deg, #d8fff8, var(--cyan) 40%, #9eb6ff);
  box-shadow: 0 8px 24px rgba(26, 212, 197, 0.35);
}

.btn-apply::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: sheen 3.4s ease-in-out infinite;
}

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

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

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  color: var(--white);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-solid,
body.nav-open .site-header {
  background: rgba(7, 24, 51, 0.94);
  box-shadow: 0 10px 40px rgba(7, 24, 51, 0.25);
}

.header-bar {
  width: min(1680px, calc(100% - 2.25rem));
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  position: relative;
  z-index: 45;
}

.logo {
  animation: logo-float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(26, 212, 197, 0.35));
}

.brand-name {
  display: grid;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.brand-name small {
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.nav-toggle {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 45;
  cursor: pointer;
}

.nav-toggle i {
  position: absolute;
  left: 15px;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s, top 0.35s var(--ease);
}

.nav-toggle i:nth-child(2) { top: 17px; }
.nav-toggle i:nth-child(3) { top: 23px; }
.nav-toggle i:nth-child(4) { top: 29px; }

.nav-toggle[aria-expanded="true"] i:nth-child(2) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(4) { top: 23px; transform: rotate(-45deg); }

.site-nav {
  position: fixed;
  inset: 0;
  z-index: 35;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: calc(var(--header) + 1rem) 1.5rem 2rem;
  background: #071833;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
}

.site-nav ul a {
  display: inline-block;
  font-size: clamp(1.4rem, 4vw, 2rem);
  opacity: 0;
  transform: translateY(16px);
}

.site-nav.is-open ul a {
  opacity: 1;
  transform: none;
  transition: 0.45s var(--ease);
}

.site-nav.is-open li:nth-child(1) a { transition-delay: 0.05s; }
.site-nav.is-open li:nth-child(2) a { transition-delay: 0.08s; }
.site-nav.is-open li:nth-child(3) a { transition-delay: 0.11s; }
.site-nav.is-open li:nth-child(4) a { transition-delay: 0.14s; }
.site-nav.is-open li:nth-child(5) a { transition-delay: 0.17s; }
.site-nav.is-open li:nth-child(6) a { transition-delay: 0.2s; }
.site-nav.is-open li:nth-child(7) a { transition-delay: 0.23s; }
.site-nav.is-open li:nth-child(8) a { transition-delay: 0.26s; }

.site-nav ul a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 0.3s var(--ease);
}

.site-nav ul a:hover::after,
.site-nav ul a.is-active::after { width: 100%; }

.site-nav .btn-apply { align-self: flex-start; }

body.nav-open { overflow: hidden; }

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--white);
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header) + 1.5rem) 0 4.5rem;
}

.hero-media {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(7, 24, 51, 0.94) 0%, rgba(7, 24, 51, 0.78) 48%, rgba(7, 24, 51, 0.35) 100%),
    radial-gradient(circle at 80% 20%, rgba(123, 92, 255, 0.28), transparent 32%);
  animation: shade 10s ease-in-out infinite alternate;
}

.orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.orb-a {
  width: 180px;
  height: 180px;
  right: 8%;
  top: 22%;
  background: radial-gradient(circle, rgba(26, 212, 197, 0.7), transparent 68%);
  animation: floaty 7s ease-in-out infinite;
}

.orb-b {
  width: 120px;
  height: 120px;
  right: 22%;
  bottom: 24%;
  background: radial-gradient(circle, rgba(77, 125, 255, 0.65), transparent 68%);
  animation: floaty 9s ease-in-out infinite reverse;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1680px, calc(100% - 2.25rem));
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}

.kicker {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: rise 0.8s var(--ease) both;
}

.kicker span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 0.8rem;
  max-width: 14ch;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  font-weight: 800;
  animation: rise 0.9s 0.1s var(--ease) both;
}

.lede {
  max-width: 38rem;
  margin: 0 0 1.4rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.94);
  animation: rise 0.9s 0.2s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s 0.3s var(--ease) both;
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  padding: 0;
  max-width: 640px;
  animation: rise 1s 0.4s var(--ease) both;
}

.hero-stats li {
  padding: 0.9rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero-stats strong {
  display: block;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: -0.04em;
}

.hero-stats span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.78); }

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  color: var(--white);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.scroll-cue i {
  width: 18px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  position: relative;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--white);
  animation: cue 1.5s ease-in-out infinite;
}

/* About */

.about { padding: 5.5rem 0 4rem; background: var(--paper); }

.about-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.collage {
  position: relative;
  min-height: 460px;
}

.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.shot-a { width: 72%; height: 320px; }
.shot-b {
  position: absolute;
  width: 46%;
  height: 210px;
  right: 0;
  bottom: 36px;
  border: 6px solid var(--paper);
}
.shot-c {
  position: absolute;
  width: 34%;
  height: 150px;
  left: 8%;
  bottom: 0;
  border: 6px solid var(--paper);
}

@media (hover: hover) and (pointer: fine) {
  .shot:hover img { transform: scale(1.06); }
}

.glass-card {
  position: absolute;
  top: 18px;
  right: 6%;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}

.glass-card strong { display: block; font-size: 1.05rem; }
.glass-card span { color: var(--muted); font-size: 0.82rem; }

.about-copy p { color: var(--muted); }

.vision-row {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.vision-row article {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.vision-row h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.vision-row p { margin: 0; }

.journey {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  position: relative;
}

.journey li {
  background: var(--white);
  border-radius: 22px;
  padding: 1.1rem 1.15rem 1.15rem 1.15rem;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(7, 24, 51, 0.05);
}

.journey span {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--blue);
  font-weight: 800;
}

.journey h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.journey p { margin: 0; color: var(--muted); }

/* Why */

.why {
  padding: 5rem 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(26, 212, 197, 0.16), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(123, 92, 255, 0.14), transparent 36%),
    var(--white);
}

.why-grid {
  display: grid;
  gap: 1rem;
}

.why-card {
  position: relative;
  padding: 1.4rem 1.3rem 1.3rem;
  border-radius: 26px;
  background: linear-gradient(160deg, #ffffff, #f3f7ff);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 16px 40px rgba(7, 24, 51, 0.06);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(26, 212, 197, 0.1), rgba(77, 125, 255, 0.15) 40%, rgba(123, 92, 255, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(77, 125, 255, 0.16);
  }
  .why-card:hover::before {
    background: linear-gradient(140deg, var(--cyan), var(--blue), var(--violet));
  }
  .why-card:hover .why-icon { transform: translateY(-3px) rotate(-6deg); }
}

.why-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 0.9rem;
  background: linear-gradient(145deg, rgba(26, 212, 197, 0.18), rgba(77, 125, 255, 0.18));
  transition: transform 0.4s var(--ease);
}

.why-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--navy-2);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.why-card h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.why-card p { margin: 0; color: var(--muted); }

/* Academics */

.academics {
  padding: 5rem 0;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 0%, rgba(26, 212, 197, 0.22), transparent 28%),
    radial-gradient(circle at 100% 80%, rgba(123, 92, 255, 0.32), transparent 34%),
    linear-gradient(165deg, #071833 0%, #102a56 58%, #1c4b96 100%);
}

.program-grid {
  display: grid;
  gap: 1rem;
}

.program {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
}

.program-visual {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.program-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.program-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 24, 51, 0.92) 0%, rgba(7, 24, 51, 0.15) 55%, rgba(7, 24, 51, 0.2));
  transition: opacity 0.4s;
}

@media (hover: hover) and (pointer: fine) {
  .program:hover img { transform: scale(1.08); }
}

.program-copy {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.3rem;
}

.tag {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.program h3 { margin: 0 0 0.35rem; font-size: 1.7rem; }
.program-copy p { margin: 0 0 0.9rem; color: rgba(255, 255, 255, 0.86); }

.explore {
  border: 0;
  cursor: pointer;
  color: var(--navy);
  background: var(--white);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  transition: transform 0.3s var(--ease), background 0.3s;
}

@media (hover: hover) and (pointer: fine) {
  .explore:hover { transform: translateY(-2px); background: var(--cyan); }
}

.program-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.program.is-open .program-more { grid-template-rows: 1fr; }

.program-more > div { overflow: hidden; }

.program-more p {
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  color: rgba(255, 255, 255, 0.88);
}

/* Facilities */

.facilities { padding: 5rem 0; background: var(--paper); }

.facility-board {
  display: grid;
  gap: 1rem;
}

.facility {
  position: relative;
  min-height: 240px;
  border-radius: 26px;
  overflow: hidden;
  color: var(--white);
  min-width: 0;
}

.facility img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.facility::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 24, 51, 0.88), rgba(7, 24, 51, 0.05) 60%);
}

.facility div {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.15rem 1.2rem 1.2rem;
}

.facility h3 { margin: 0 0 0.3rem; font-size: 1.25rem; }
.facility p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 0.95rem; }

@media (hover: hover) and (pointer: fine) {
  .facility:hover img { transform: scale(1.07); }
}

/* Stats */

.stats {
  position: relative;
  padding: 4.5rem 0;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(7, 24, 51, 0.88), rgba(16, 40, 77, 0.78) 45%, rgba(77, 125, 255, 0.55)),
    url("images/field.jpg") center/cover;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
}

.stats-grid {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.stats article strong {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, #ffffff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats article span { color: rgba(255, 255, 255, 0.86); }

/* Admissions */

.admissions { padding: 5rem 0 4.5rem; background: var(--white); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--cyan), var(--blue), var(--violet));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.1s var(--ease);
}

.steps.is-in::before { transform: scaleY(1); }

.steps li {
  position: relative;
  padding: 0.2rem 0 0.2rem 4rem;
}

.steps span {
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(26, 212, 197, 0.18);
}

.steps h3 { margin: 0.15rem 0 0.3rem; }
.steps p { margin: 0; color: var(--muted); }

.admit-cta {
  margin-top: 2rem;
  padding: 1.4rem;
  border-radius: 28px;
  display: grid;
  gap: 1rem;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(26, 212, 197, 0.35), transparent 40%),
    linear-gradient(120deg, var(--navy), var(--navy-2));
  color: var(--white);
}

.admit-cta h3 { margin: 0 0 0.35rem; font-size: 1.5rem; }
.admit-cta p { margin: 0; color: rgba(255, 255, 255, 0.82); }
.admit-cta .btn { justify-self: start; }

/* Gallery */

.gallery { padding: 4.5rem 0 5rem; background: var(--paper); }

.masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 140px;
  gap: 0.7rem;
}

.tile {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy);
  min-width: 0;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 24, 51, 0.45), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}

@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.08); }
  .tile:hover::after { opacity: 1; }
}

.tile-a { grid-column: span 2; grid-row: span 2; }
.tile-b { grid-row: span 2; }
.tile-h { grid-column: span 2; }

/* News */

.news { padding: 1rem 0 5rem; }

.news-layout { display: grid; gap: 1rem; }

.feature-story {
  position: relative;
  min-height: 420px;
  border-radius: 30px;
  overflow: hidden;
  color: var(--white);
}

.feature-story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.feature-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 24, 51, 0.9), rgba(7, 24, 51, 0.15));
}

.feature-story div {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem;
}

.feature-story h3 { margin: 0 0 0.4rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.feature-story p { margin: 0; color: rgba(255, 255, 255, 0.88); }

@media (hover: hover) and (pointer: fine) {
  .feature-story:hover img { transform: scale(1.06); }
}

.news-side {
  display: grid;
  gap: 1rem;
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.event-list li,
.news-cards article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.event-list time {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(160deg, var(--navy), var(--blue));
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-list time span {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.event-list strong,
.news-cards h4 { display: block; margin: 0; }
.event-list p,
.news-cards p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.92rem; }

.news-cards h3,
.news-side h3 { margin: 0 0 0.7rem; }

.news-cards article img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 16px;
}

.news-cards h4 { font-size: 1rem; }

@media (hover: hover) and (pointer: fine) {
  .event-list li:hover,
  .news-cards article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }
}

/* Voices */

.voices {
  padding: 5rem 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(26, 212, 197, 0.18), transparent 28%),
    linear-gradient(180deg, #eef3fb, #f7f9fd);
}

.slider { position: relative; }

.viewport { overflow: hidden; border-radius: 32px; }

.track {
  display: flex;
  transition: transform 0.6s var(--ease);
}

.quote {
  min-width: 100%;
  margin: 0;
  padding: clamp(1.3rem, 3vw, 2.4rem);
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.quote img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px rgba(26, 212, 197, 0.25);
}

.quote blockquote { margin: 0; max-width: 38rem; }
.quote p {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.quote figcaption { font-weight: 700; }
.quote figcaption span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.slider-ui {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: var(--navy);
  position: relative;
}

.slider-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
}

.prev::before { transform: translateX(2px) rotate(135deg); }
.next::before { transform: translateX(-2px) rotate(-45deg); }

.dots { display: flex; gap: 0.4rem; }

.dots button {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  border: 0;
  padding: 0;
  background: rgba(7, 24, 51, 0.2);
  cursor: pointer;
}

.dots button[aria-selected="true"] {
  width: 26px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

/* Contact */

.contact { padding: 5rem 0; background: var(--white); }

.contact-grid { display: grid; gap: 1.5rem; align-items: start; }

.info-list {
  list-style: none;
  margin: 1.2rem 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.info-list strong { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.info-list a { display: block; color: var(--navy); }

.map-card {
  display: grid;
  min-height: 140px;
  padding: 1.2rem;
  border-radius: 24px;
  text-decoration: none;
  align-content: end;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 30%, rgba(26, 212, 197, 0.45), transparent 24%),
    radial-gradient(circle at 70% 60%, rgba(77, 125, 255, 0.45), transparent 28%),
    linear-gradient(145deg, #12305f, #071833);
}

.map-card strong { font-size: 1.05rem; }

.enquiry {
  padding: 1.3rem;
  border-radius: 30px;
  background: rgba(244, 247, 252, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.enquiry h3 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.form-lead { margin: 0 0 1rem; color: var(--muted); }

.field { margin-bottom: 0.8rem; }
.field-row { display: grid; gap: 0.8rem; }

label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }

input, textarea {
  width: 100%;
  border: 1px solid rgba(7, 24, 51, 0.12);
  background: var(--white);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
}

textarea { resize: vertical; min-height: 120px; }

input:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px rgba(77, 125, 255, 0.15); }

.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--coral); }

.err { min-height: 1.1em; margin: 0.25rem 0 0; color: #c43b4b; font-size: 0.82rem; }

.form-status { margin: 0.8rem 0 0; font-weight: 600; }
.form-status a { color: var(--blue); }

.hp { position: absolute; left: -9999px; }

/* Footer */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
}

.site-footer h3 { margin: 0 0 0.7rem; color: var(--white); font-size: 1rem; }
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer p { margin: 0 0 0.7rem; }

.brand-footer { color: var(--white); margin-bottom: 0.8rem; }

.social { display: flex; gap: 0.5rem; }
.social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.social svg { width: 18px; height: 18px; fill: var(--white); }

@media (hover: hover) and (pointer: fine) {
  .social a:hover { transform: translateY(-3px); background: rgba(26, 212, 197, 0.3); }
  .site-footer ul a:hover { color: var(--cyan); }
}

.newsletter { display: grid; gap: 0.55rem; }
.newsletter input { background: rgba(255, 255, 255, 0.08); color: var(--white); border-color: rgba(255, 255, 255, 0.16); }
.newsletter input::placeholder { color: rgba(255, 255, 255, 0.55); }
.newsletter .btn { justify-self: start; }

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: space-between;
  font-size: 0.88rem;
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.to-top::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid white;
  border-top: 2px solid white;
  transform: translateY(2px) rotate(-45deg);
}

.to-top[hidden] { display: none; }

/* Lightbox */

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5, 12, 28, 0.88);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lightbox-dialog {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.lightbox figure { margin: 0; }
.lightbox img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 18px;
  background: #000;
}

.lightbox figcaption {
  color: var(--white);
  text-align: center;
  margin-top: 0.6rem;
}

.lightbox-count { color: rgba(255, 255, 255, 0.7); text-align: center; grid-column: 1 / -1; margin: 0; }

.lightbox-close,
.lightbox-nav {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
}

.lightbox-close {
  position: absolute;
  top: -0.2rem;
  right: 3rem;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  z-index: 2;
}

.lightbox-nav { width: 46px; height: 46px; position: relative; }
.lightbox-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
}
.lightbox-prev::before { transform: translateX(2px) rotate(135deg); }
.lightbox-next::before { transform: translateX(-2px) rotate(-45deg); }

/* Reveal */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal].is-in,
.js [data-reveal="left"].is-in,
.js [data-reveal="right"].is-in {
  opacity: 1;
  transform: none;
}

/* Motion */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes sheen {
  0%, 55% { transform: translateX(-130%); }
  80%, 100% { transform: translateX(130%); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes shade {
  from { filter: saturate(1); }
  to { filter: saturate(1.15) hue-rotate(8deg); }
}

@keyframes cue {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Breakpoints */

@media (max-width: 767px) {
  .orb { display: none; }
  .js [data-reveal],
  .js [data-reveal="left"],
  .js [data-reveal="right"] { transform: none; }
  .hero { align-items: end; }
  .hero h1 { max-width: none; }
  .shot-a { width: 100%; height: 240px; }
  .shot-b, .shot-c { position: static; width: 100%; height: 180px; border: 0; margin-top: 0.7rem; }
  .collage { min-height: 0; display: grid; }
  .glass-card { position: static; margin-top: 0.7rem; animation: none; }
  .scroll-cue { display: none; }
  .hero { padding-bottom: 2.2rem; }
  .stats { clip-path: none; }
  .masonry { grid-auto-rows: 120px; }
  .lightbox-dialog { grid-template-columns: 1fr; }
  .lightbox-nav { display: none; }
  .lightbox-close { right: 0; top: -3rem; }
}

@media (min-width: 700px) {
  .vision-row { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .masonry { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; }
  .tile-a { grid-column: span 2; grid-row: span 2; }
  .tile-b { grid-column: span 1; grid-row: span 2; }
  .tile-c { grid-column: span 1; grid-row: span 1; }
  .tile-h { grid-column: span 2; grid-row: span 1; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 0.8fr 0.9fr 1.1fr; }
}

@media (min-width: 768px) {
  .wrap, .hero-inner, .header-bar { width: min(1680px, calc(100% - 2.5rem)); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-wide { grid-column: span 2; }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .facility-board { grid-template-columns: 1fr 1fr; }
  .facility-hero { grid-column: span 2; min-height: 360px; }
  .news-layout { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 2rem; }
  .journey { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .steps::before {
    left: 23px;
    right: calc(25% - 23px);
    top: 22px;
    bottom: auto;
    width: auto;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
  }

  .steps.is-in::before { transform: scaleX(1); }

  .steps li { padding: 4rem 0.75rem 0 0; }

  .about-layout { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .facility-board {
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: 250px 250px;
  }
  .facility-hero { grid-column: 1; grid-row: 1 / span 2; min-height: 0; }
  .journey { grid-template-columns: repeat(4, 1fr); }
  .journey::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent);
  }
  .journey li { padding-top: 1.6rem; }
  .admit-cta { grid-template-columns: 1fr auto; padding: 1.6rem 1.8rem; }
}

@media (min-width: 1180px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    inset: auto;
    height: auto;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav ul a {
    opacity: 1;
    transform: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.4rem 0.55rem;
  }
  .site-nav .btn-apply { align-self: center; min-height: 44px; }
  body.nav-open { overflow: auto; }
}

@media (min-width: 1440px) {
  .wrap, .hero-inner, .header-bar { width: min(1760px, calc(100% - 2.5rem)); }
  .program-visual { min-height: 420px; }
}

@media (min-width: 1920px) {
  .wrap, .hero-inner, .header-bar { width: min(1840px, calc(100% - 3rem)); }
}
