:root {
  --navy: #071a2f;
  --navy-2: #0d2947;
  --academic-blue: #1e3a5f;
  --gold: #d4af37;
  --gold-2: #f1d981;
  --ivory: #f8f3e8;
  --soft-grey: #f4f6f8;
  --white: #ffffff;
  --charcoal: #1e293b;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 24px 70px rgba(7, 26, 47, 0.16);
  --shadow-soft: 0 18px 46px rgba(7, 26, 47, 0.12);
  --shadow-luxury: 0 28px 90px rgba(7, 26, 47, 0.22);
  --radius: 8px;
  --max-width: 1180px;
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background:
    linear-gradient(180deg, rgba(248, 243, 232, 0.42), rgba(255, 255, 255, 0) 360px),
    var(--white);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

::selection {
  background: rgba(212, 175, 55, 0.35);
}

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

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

.section.compact {
  padding: 66px 0;
}

.section.soft {
  background:
    linear-gradient(180deg, rgba(248, 243, 232, 0.58), rgba(244, 246, 248, 0.92)),
    var(--soft-grey);
}

.section.soft::before,
.page-hero::before,
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section.soft::before {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(7, 26, 47, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 26, 47, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
}

.section.navy {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 0%, rgba(212, 175, 55, 0.16), transparent 28%),
    linear-gradient(135deg, var(--navy) 0%, #102d4d 100%);
}

.section-title {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

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

.section-title .eyebrow::before {
  display: none;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.12;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section-title h2,
.page-hero h1,
.hero h1 {
  overflow-wrap: anywhere;
}

.navy h1,
.navy h2,
.navy h3,
.navy h4,
.hero h1 {
  color: var(--white);
}

h1 {
  font-size: clamp(2.05rem, 3.6vw, 3.7rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.55rem, 2.55vw, 2.35rem);
}

h3 {
  font-size: clamp(1.12rem, 1.55vw, 1.45rem);
}

p {
  margin: 0;
}

.lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
}

.navy .lead,
.navy p {
  color: rgba(255, 255, 255, 0.78);
}

.navy .card h3 {
  color: var(--navy);
}

.navy .card p {
  color: var(--muted);
}

.navy .feature-list li {
  color: rgba(255, 255, 255, 0.86);
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  isolation: isolate;
  transition: transform 0.35s var(--ease-luxury), box-shadow 0.35s var(--ease-luxury), border-color 0.35s var(--ease-luxury), background 0.35s var(--ease-luxury);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -40% -70%;
  z-index: -1;
  transform: translateX(-58%) rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transition: transform 0.75s var(--ease-luxury);
}

.btn:hover::before {
  transform: translateX(58%) rotate(18deg);
}

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

.btn-primary {
  color: #071a2f;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 14px 35px rgba(212, 175, 55, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 18px 44px rgba(212, 175, 55, 0.42);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: rgba(212, 175, 55, 0.65);
  background: rgba(255, 255, 255, 0.14);
}

.btn-outline {
  color: var(--navy);
  border-color: rgba(7, 26, 47, 0.16);
  background: var(--white);
}

.btn-outline:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-soft);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.scrolled,
.site-header.inner-header {
  background: rgba(7, 26, 47, 0.96);
  box-shadow: 0 14px 35px rgba(7, 26, 47, 0.2);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 10px 9px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 800;
  transition: color 0.25s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 6px;
  left: 10px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 15px !important;
  border-radius: 6px;
  color: var(--navy) !important;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 10px 22px rgba(212, 175, 55, 0.25);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: relative;
}

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

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

.nav-open .menu-toggle span {
  transform: rotate(45deg);
}

.nav-open .menu-toggle span::before {
  transform: translateY(7px) rotate(90deg);
}

.nav-open .menu-toggle span::after {
  opacity: 0;
}

.hero {
  position: relative;
  min-height: 90vh;
  padding: 126px 0 72px;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 26, 47, 0.97) 0%, rgba(7, 26, 47, 0.89) 45%, rgba(7, 26, 47, 0.42) 100%),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.hero::before,
.page-hero::before {
  z-index: 0;
  opacity: 0.58;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(212, 175, 55, 0.12) 42%, transparent 58% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 82px);
  background-size: 220% 100%, 82px 82px;
  animation: academicSheen 12s var(--ease-luxury) infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  background: linear-gradient(0deg, rgba(7, 26, 47, 0.82), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.72fr);
  gap: 46px;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(2.2rem, 4vw, 3.9rem);
}

.hero-copy .lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  margin-top: 30px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.badge i {
  color: var(--gold);
}

.hero-panel {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
  animation: floatPanel 7s var(--ease-luxury) infinite alternate;
}

.hero-panel img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.hero-stat-strip {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
}

.hero-stat-strip div {
  padding: 12px 8px;
  border-radius: 6px;
  text-align: center;
  background: rgba(7, 26, 47, 0.88);
}

.hero-stat-strip strong {
  display: block;
  color: var(--gold);
  font-size: 1.25rem;
}

.hero-stat-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
}

.admission-card,
.lead-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 232, 0.88));
  color: var(--charcoal);
  box-shadow: var(--shadow-luxury);
}

.admission-card::before,
.lead-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(212, 175, 55, 0.18), var(--academic-blue));
}

.hero .admission-card {
  margin-top: 22px;
}

.admission-card h2,
.lead-card h2,
.admission-card h3,
.lead-card h3 {
  color: var(--navy);
  font-size: 1.36rem;
}

.admission-card p,
.lead-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

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

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 23, 42, 0.13);
  border-radius: 6px;
  color: var(--charcoal);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.field-error {
  min-height: 18px;
  margin-top: 5px;
  color: #b42318;
  font-size: 0.77rem;
  font-weight: 800;
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(6, 78, 59, 0.15);
  border-radius: 6px;
  color: #064e3b;
  background: #e8f8ef;
  font-weight: 800;
}

.form-success.show {
  display: block;
  animation: successPop 0.35s ease;
}

.grid {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.grid > * {
  min-width: 0;
}

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

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

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

.card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 18px 45px rgba(7, 26, 47, 0.055);
  transform-style: preserve-3d;
  transition: transform 0.42s var(--ease-luxury), box-shadow 0.42s var(--ease-luxury), border-color 0.42s var(--ease-luxury);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: transform 0.42s var(--ease-luxury);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-28%);
  background: linear-gradient(115deg, transparent 0 35%, rgba(212, 175, 55, 0.16) 50%, transparent 65% 100%);
  transition: opacity 0.42s var(--ease-luxury), transform 0.9s var(--ease-luxury);
}

.card:hover {
  transform: translateY(-9px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 24px 70px rgba(7, 26, 47, 0.14);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover::after {
  opacity: 1;
  transform: translateX(28%);
}

.card.is-tilting {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-8px);
  box-shadow: 0 28px 78px rgba(7, 26, 47, 0.16);
}

.icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.12), 0 12px 26px rgba(212, 175, 55, 0.12);
  transition: transform 0.42s var(--ease-luxury), background 0.42s var(--ease-luxury);
}

.card:hover .icon,
.contact-item:hover i {
  transform: translateY(-3px) rotate(-3deg);
  background: rgba(212, 175, 55, 0.18);
}

.card p {
  margin-top: 10px;
  color: var(--muted);
}

.card .mini {
  display: block;
  margin-top: 16px;
  color: var(--academic-blue);
  font-size: 0.86rem;
  font-weight: 900;
}

.course-card {
  display: flex;
  flex-direction: column;
  min-height: 285px;
}

.course-card .stream-tag {
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(212, 175, 55, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
}

.course-card .btn {
  width: fit-content;
  margin-top: auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-frame img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.image-frame:hover img {
  transform: scale(1.05);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 26, 47, 0.48));
  pointer-events: none;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--charcoal);
  font-weight: 750;
}

.feature-list i {
  flex: 0 0 auto;
  margin-top: 4px;
  color: var(--gold);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 22px;
  width: 2px;
  background: rgba(212, 175, 55, 0.35);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.timeline-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.25);
}

.timeline-content {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

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

.stat-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.stat-number {
  display: block;
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1;
}

.stat-card p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.media-card:hover img {
  transform: scale(1.06);
}

.media-card-body {
  padding: 22px;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: var(--radius);
  background: var(--navy);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.55s ease, opacity 0.55s ease;
}

.gallery-item span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  color: var(--white);
  font-weight: 900;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(7, 26, 47, 0.86));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 0.9;
}

.gallery-item:hover::after,
.gallery-item:hover span {
  opacity: 1;
}

.gallery-item:hover span {
  transform: translateY(0);
  z-index: 1;
}

.testimonial {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 300px;
  isolation: isolate;
}

.testimonial blockquote {
  position: relative;
  z-index: 1;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  color: var(--charcoal);
  font-size: 1rem;
  overflow-wrap: break-word;
  white-space: normal;
}

.testimonial::after {
  opacity: 0.55;
}

.testimonial.is-tilting {
  transform: none;
  box-shadow: 0 24px 70px rgba(7, 26, 47, 0.14);
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 74px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.person > div {
  min-width: 0;
}

.avatar {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(7, 26, 47, 0.18);
}

.avatar-face {
  border: 3px solid var(--white);
  outline: 1px solid rgba(212, 175, 55, 0.55);
  background-image: url("../images/testimonial-faces.png");
  background-repeat: no-repeat;
  background-size: 306% 204%;
}

.face-1 {
  background-position: 0% 0%;
}

.face-2 {
  background-position: 50% 0%;
}

.face-3 {
  background-position: 100% 0%;
}

.face-4 {
  background-position: 0% 100%;
}

.face-5 {
  background-position: 50% 100%;
}

.face-6 {
  background-position: 100% 100%;
}

.person strong {
  display: block;
  color: var(--navy);
  overflow-wrap: break-word;
}

.person span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  overflow-wrap: break-word;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0 76px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 26, 47, 0.94), rgba(7, 26, 47, 0.72)),
    var(--page-image, url("https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=1700&q=82")) center/cover;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(1.95rem, 3.4vw, 3.35rem);
}

.page-hero .lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--gold);
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 62px;
  border-radius: var(--radius);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 26, 47, 0.96), rgba(30, 58, 95, 0.92)),
    url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1500&q=82") center/cover;
  box-shadow: var(--shadow);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.76;
  background:
    linear-gradient(110deg, transparent 0 30%, rgba(212, 175, 55, 0.14) 48%, transparent 64% 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 220% 100%, 70px 70px;
  animation: academicSheen 10s var(--ease-luxury) infinite alternate;
}

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

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

.cta-band p {
  max-width: 760px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.cta-band .btn-row {
  margin-top: 26px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 30px;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(7, 26, 47, 0.06);
  transition: transform 0.35s var(--ease-luxury), box-shadow 0.35s var(--ease-luxury), border-color 0.35s var(--ease-luxury);
}

.contact-item:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.36);
  box-shadow: var(--shadow-soft);
}

.contact-item i {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
}

.map-placeholder {
  display: grid;
  min-height: 280px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(7, 26, 47, 0.92), rgba(30, 58, 95, 0.88)),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(255,255,255,0.08) 16px 17px);
  text-align: center;
  font-weight: 850;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #061321;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 0.8fr 1fr;
  gap: 26px;
  padding: 46px 0 28px;
}

.site-footer h3,
.site-footer h4 {
  color: var(--white);
}

.site-footer p {
  margin-top: 10px;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.footer-links a {
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.socials a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, background 0.2s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.14);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
}

.whatsapp-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
}

.wa-button {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: #25d366;
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.38);
  cursor: pointer;
}

.wa-button::before,
.wa-button::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(37, 211, 102, 0.45);
  border-radius: 50%;
  animation: pulse 2.2s infinite;
}

.wa-button::after {
  animation-delay: 1.1s;
}

.wa-button i {
  position: relative;
  z-index: 1;
  font-size: 1.9rem;
}

.wa-popup {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(355px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(7, 26, 47, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.whatsapp-widget.open .wa-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wa-header {
  padding: 18px;
  color: var(--white);
  background: linear-gradient(135deg, #075e54, #128c7e);
}

.wa-header strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
}

.wa-header span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.wa-options {
  display: grid;
  gap: 9px;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
}

.wa-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  color: var(--charcoal);
  background: var(--soft-grey);
  cursor: pointer;
  font-weight: 850;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wa-option:hover {
  transform: translateX(-2px);
  border-color: rgba(37, 211, 102, 0.4);
  background: #effdf4;
}

.wa-option i {
  color: #128c7e;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: rgba(212, 175, 55, 0.16);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.55);
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(32px) scale(0.985);
  transition: opacity 0.86s var(--ease-luxury), transform 0.86s var(--ease-luxury), filter 0.86s var(--ease-luxury);
  will-change: transform, opacity, filter;
}

.reveal.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.hero .reveal {
  transition-delay: 0.08s;
}

.hero-panel.reveal.visible,
.lead-card.reveal.visible,
.admission-card.reveal.visible {
  animation: floatPanel 7s var(--ease-luxury) infinite alternate;
}

.parallax-ready .page-hero,
.parallax-ready .hero {
  background-position: center var(--hero-y, 0px);
}

@keyframes academicSheen {
  0% {
    background-position: 0% 0%, 0 0;
  }
  100% {
    background-position: 100% 0%, 82px 0;
  }
}

@keyframes floatPanel {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.82);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

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

@media (max-width: 1100px) {
  .nav-links a {
    padding-inline: 7px;
    font-size: 0.86rem;
  }

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

  .hero h1,
  .hero-copy {
    max-width: 760px;
  }

  .hero-panel {
    max-width: 640px;
  }

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

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

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

@media (max-width: 900px) {
  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: 78px;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 22px;
    background: rgba(7, 26, 47, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
  }

  .nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 15px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 1rem;
  }

  .nav-cta {
    margin: 18px 0 0;
    justify-content: center;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 36px, var(--max-width));
  }

  .section {
    padding: 70px 0;
  }

  .section.compact {
    padding: 56px 0;
  }

  .nav {
    min-height: 70px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .nav-links {
    top: 70px;
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding: 108px 0 58px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.55rem);
  }

  h2 {
    font-size: clamp(1.35rem, 5.4vw, 1.9rem);
    line-height: 1.16;
  }

  .section-title h2 {
    font-size: clamp(1.35rem, 5.8vw, 1.85rem);
  }

  .lead,
  .testimonial blockquote {
    font-size: 0.96rem;
  }

  .testimonial {
    min-height: auto;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(7, 26, 47, 0.96), rgba(7, 26, 47, 0.78)),
      url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1200&q=80") center/cover;
  }

  .btn-row,
  .hero-actions {
    align-items: stretch;
  }

  .btn-row .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .form-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .stats-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero-stat-strip {
    position: static;
    grid-template-columns: 1fr;
    padding: 10px 0 0;
  }

  .hero-panel {
    padding: 14px;
  }

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

  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .cta-band {
    padding: 34px 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .whatsapp-widget {
    right: 16px;
    bottom: 16px;
  }

  .wa-button {
    width: 56px;
    height: 56px;
  }
}

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

  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }

}
