/* ==========================================================
   Oxfordia Educational Group — Main Stylesheet
   Brand: Royal Navy + Heritage Gold (from logo)
   Fonts: Fraunces (headings) + Manrope (body)
   ========================================================== */

/* ==========================================================
   1. DESIGN TOKENS
   Change a value here and it updates across the whole site.
   ========================================================== */
:root {
  /* Colours */
  --navy: #142c6e;
  --navy-deep: #0b1a45;
  --navy-900: #081236;
  --navy-card: #0e1b4a;
  --gold: #c5a046;
  --gold-light: #e3c98a;
  --gold-deep: #9f7d2c;
  --ivory: #faf8f3;
  --ink: #1a2142;
  --muted: #5f6680;
  --line: #e7e3d8;
  --line-dark: rgba(255, 255, 255, 0.1);
  --white: #ffffff;

  /* Fonts */
  --ff-head: "Fraunces", Georgia, serif;
  --ff-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale */
  --fs-display: clamp(2.8rem, 5vw, 5.4rem); /* hero heading */
  --fs-statement: clamp(1.7rem, 3.4vw, 2.8rem); /* large statement */
  --fs-h2: clamp(2rem, 3.8vw, 3.1rem); /* .section-title */
  --fs-h3: clamp(1.45rem, 2.2vw, 1.75rem); /* .title-lg */
  --fs-h4: 1.3rem; /* .title-md */
  --fs-lead: 1.06rem; /* .section-lead */
  --fs-body: 1rem;
  --fs-small: 0.93rem; /* card text */
  --fs-label: 0.74rem; /* .label (sub-heading) */
  --ls-label: 0.22em;
  --lh-body: 1.75;
  --lh-head: 1.15;
  --fw-head: 500;
  --fw-body: 400;

  /* Spacing */
  --section-space: 120px; /* top & bottom padding of EVERY section */
  --head-gap: 60px; /* gap between a section heading and its content */
  --gap: 24px; /* gap between cards / grid items */
  --title-gap: 20px; /* space under a section title */

  /* Buttons */
  --btn-pad-y: 15px;
  --btn-pad-x: 30px;
  --btn-fs: 0.92rem;
  --btn-radius: 6px;

  /* Effects */
  --shadow: 0 24px 60px rgba(11, 26, 69, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 991.98px) {
  :root {
    --section-space: 90px;
    --head-gap: 48px;
  }
}
@media (max-width: 575.98px) {
  :root {
    --section-space: 72px;
    --head-gap: 40px;
    --gap: 20px;
  }
}

/* ==========================================================
   2. BASE
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
}
body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-head);
  font-weight: var(--fw-head);
  line-height: var(--lh-head);
  color: var(--navy-deep);
  font-variant-numeric: lining-nums;
  letter-spacing: -0.015em;
}
a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
a:hover {
  color: var(--gold-deep);
}
img {
  max-width: 100%;
  display: block;
}
::selection {
  background: var(--gold);
  color: var(--white);
}

/* ==========================================================
   3. COMMON SECTION LAYOUT
   ========================================================== */
.section {
  position: relative;
  padding: var(--section-space) 0;
}
.bg-ivory {
  background: var(--ivory);
}
.section--dark {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
}

/* Section heading block — identical spacing everywhere */
.section-head {
  margin-bottom: var(--head-gap);
}
.section-head > :last-child,
.section-head > div > :last-child {
  margin-bottom: 0;
}
.section-head--center {
  text-align: center;
}
.section-head--center .section-lead {
  margin-inline: auto;
}
.section-foot {
  margin-top: var(--head-gap);
  text-align: center;
}
.section-head--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  align-items: end;
}
@media (min-width: 992px) {
  .section-head--split {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

/* ==========================================================
   4. COMMON TYPOGRAPHY
   .label         small gold sub-heading above a title
   .section-title main section heading (h2)
   .section-lead  intro paragraph under a section title
   .title-lg      large block heading (h3)
   .title-md      card / item heading (h4)
   ========================================================== */
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-family: var(--ff-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--gold-deep);
}
.label::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.section-head--center .label::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.label--plain::before {
  display: none;
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--title-gap);
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}

.section-lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 0;
}

.title-lg {
  font-size: var(--fs-h3);
  margin-bottom: 14px;
}
.title-md {
  font-size: var(--fs-h4);
  margin-bottom: 10px;
}

/* Automatic colours on dark sections */
.section--dark .label {
  color: var(--gold-light);
}
.section--dark .section-title,
.section--dark .title-lg,
.section--dark .title-md {
  color: var(--white);
}
.section--dark .section-title em {
  color: var(--gold-light);
}
.section--dark .section-lead {
  color: rgba(255, 255, 255, 0.68);
}

/* ==========================================================
   5. COMMON BUTTONS
   .btn-oxf + one colour: .btn-gold | .btn-navy | .btn-line
   ========================================================== */
.btn-oxf {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: var(--btn-fs);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.4s var(--ease),
    border-color 0.4s,
    background 0.4s;
}
.btn-oxf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}
.btn-oxf:hover::before {
  transform: scaleY(1);
}
.btn-oxf i {
  transition: transform 0.4s var(--ease);
}
.btn-oxf:hover i {
  transform: translateX(4px);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-gold::before {
  background: var(--navy-deep);
}
.btn-gold:hover {
  color: var(--white);
}

.btn-navy {
  background: var(--navy-deep);
  color: var(--white);
}
.btn-navy::before {
  background: var(--gold);
}
.btn-navy:hover {
  color: var(--navy-900);
}

.btn-line {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-line::before {
  background: var(--white);
}
.btn-line:hover {
  color: var(--navy-deep);
  border-color: var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--navy);
}
.link-arrow i {
  transition: transform 0.4s var(--ease);
}
.link-arrow:hover i {
  transform: translateX(5px);
}
.section--dark .link-arrow {
  color: var(--gold-light);
}
.section--dark .link-arrow:hover {
  color: var(--white);
}

/* ==========================================================
   6. PRELOADER
   ========================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-900);
  display: grid;
  place-items: center;
}
.preloader img {
  width: 140px;
}
.preloader__bar {
  width: 140px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 26px auto 0;
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}

/* ==========================================================
   7. HEADER
   ========================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  transition: transform 0.5s var(--ease);
}
.site-header.is-hidden {
  transform: translateY(-100%);
}

/* pushes smooth-content below the fixed header so hero starts beneath it */
.header-clearance {
  height: 126px; /* topbar 40px + navbar 86px */
  pointer-events: none;
}
@media (max-width: 1199.98px) { .header-clearance { height: 86px; } }
@media (max-width: 991.98px)  { .header-clearance { height: 74px; } }
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}
.topbar a {
  color: rgba(255, 255, 255, 0.8);
}
.topbar a:hover {
  color: var(--gold-light);
}
.topbar__list {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar i {
  color: var(--gold);
  margin-right: 7px;
}
.topbar__social {
  display: flex;
  gap: 18px;
}
.topbar__social i {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}
.topbar__social a:hover i {
  color: var(--gold-light);
}

.navbar-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.4s;
}
.site-header.is-scrolled .navbar-wrap {
  box-shadow: 0 10px 30px rgba(11, 26, 69, 0.08);
}
.site-header.is-scrolled .topbar {
  display: none;
}
.navbar-oxf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  transition: height 0.4s var(--ease);
}
.site-header.is-scrolled .navbar-oxf {
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 48px;
  width: auto;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--navy-deep);
  letter-spacing: 0.08em;
}
.brand__sub {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--gold-deep);
  margin-top: 6px;
}
.brand--light .brand__name {
  color: var(--white);
}
.brand--light .brand__sub {
  color: var(--gold-light);
}

.nav-main {
  display: flex;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-main a {
  position: relative;
  font-size: var(--btn-fs);
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
}
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-main a:hover,
.nav-main a.active {
  color: var(--navy);
}
.nav-main a:hover::after,
.nav-main a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 0 0 0 11px;
  box-shadow: 0 2px 10px rgba(8,18,54,0.18);
  transition: background 0.25s;
}
.menu-toggle:hover {
  background: var(--navy);
}
.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-light);
  transition: width 0.2s;
}
.menu-toggle span:nth-child(1) { width: 22px; }
.menu-toggle span:nth-child(2) { width: 16px; }
.menu-toggle span:nth-child(3) { width: 10px; }
.menu-toggle:hover span { width: 22px; }

/* Mobile off-canvas — slides from LEFT to RIGHT */
.offcanvas-oxf {
  width: 320px !important;
  max-width: 86vw;
  background: var(--navy-900);
  color: var(--white);
  border-right: 0 !important;
}
.offcanvas-oxf .offcanvas-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-close-oxf {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--white);
  transition: 0.4s var(--ease);
}
.btn-close-oxf:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: rotate(90deg);
}
.offcanvas-oxf .offcanvas-body {
  padding: 10px 24px 30px;
  display: flex;
  flex-direction: column;
}
.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.mobile-nav li {
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav a {
  display: block;
  padding: 15px 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--ff-head);
  font-size: 1.4rem;
}
.mobile-nav a:hover {
  color: var(--gold-light);
}
.mobile-contact {
  margin-top: auto;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.mobile-contact p {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.mobile-contact i {
  color: var(--gold);
}
.mobile-contact a {
  color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================
   8. HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 87vh;

  display: flex;
  align-items: center;
  padding: 80px 0 150px;
  color: var(--white);
  overflow: hidden;
  background: url('../images/hero-banner.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 18, 54, 0.95) 0%, rgba(8, 18, 54, 0.82) 35%, rgba(8, 18, 54, 0.30) 50%, rgba(8, 18, 54, 0.00) 57%);
}
/* .hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 18, 54, 0.96) 0%,
    rgba(8, 18, 54, 0.86) 38%,
    rgba(8, 18, 54, 0.35) 75%,
    rgba(8, 18, 54, 0.2) 100%
  );
} */
.hero .container {
  position: relative;
  z-index: 2;
}
.hero .label {
  color: var(--gold-light);
}
.hero__title {
  font-size: var(--fs-display);
  color: var(--white);
  line-height: 1.04;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
  margin-right: 0.12em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero__title .line > span {
  display: inline-block;
}
.hero__text {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin-bottom: 30px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-facts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
}
.hero-facts__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  box-shadow: var(--shadow);
}
.fact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 30px;
  color: var(--ink);
}
.fact + .fact {
  border-left: 1px solid var(--line);
}
.fact i {
  font-size: 1.6rem;
  color: var(--gold-deep);
}
.fact strong {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.15rem;
  color: var(--navy-deep);
  font-weight: var(--fw-head);
  line-height: 1.3;
}
.fact span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ==========================================================
   9. STATEMENT (words light up on scroll)
   ========================================================== */
.statement__text {
  font-family: var(--ff-head);
  font-size: var(--fs-statement);
  line-height: 1.38;
  font-weight: 400;
  color: var(--navy-deep);
  text-align: center;
  max-width: 1020px;
  margin: 0 auto;
  letter-spacing: -0.015em;
}
.statement__text em {
  color: var(--gold-deep);
}
.statement__text .w {
  opacity: 0.16;
}
.statement__sign {
  display: flex;
  justify-content: center;
  margin: 34px 0 0;
}
.statement__sign .label {
  margin: 0;
}
.statement__sign .label::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}

/* ==========================================================
   10. ABOUT
   ========================================================== */
.about-visual {
  position: relative;
  padding: 24px 80px 80px 24px;
  max-width: 580px;
}
.about-visual__frame,
.about-visual__main {
  border-radius: 1000px 1000px 0 0;
} /* arch top */
.about-visual__frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 104px;
  bottom: 104px;
  border: 1px solid var(--gold);
}
.about-visual__main {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}
.about-visual__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-visual__small {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 46%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 10px solid var(--white);
  box-shadow: var(--shadow);
}
.about-visual__small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-visual__badge {
  position: absolute;
  left: -10px;
  bottom: 120px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 26px;
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: var(--shadow);
}
.about-visual__badge img {
  width: 50px;
}
.about-visual__badge div {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.about-visual__badge strong {
  display: block;
  font-family: var(--ff-head);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-light);
}
.about-visual__badge span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 30px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--navy-deep);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.check-list i {
  color: var(--gold-deep);
}

/* ==========================================================
   11. SCHOOLS (pinned horizontal scroll on desktop)
   ========================================================== */
.schools {
  overflow: hidden;
}
.schools__track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--track-pad, 16px);
  will-change: transform;
}
.schools__intro {
  flex: 0 0 380px;
  padding-right: 30px;
}
.schools__intro .section-lead {
  margin-bottom: 34px;
}
.schools__progress {
  width: 160px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
}
.schools__progress span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
}

/* Full-image panels: every card is the same height, no empty gaps */
.school {
  position: relative;
  flex: 0 0 420px;
  height: min(64vh, 580px);
  min-height: 500px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  border: 1px solid var(--line-dark);
  transition: border-color 0.5s;
}
.school:hover {
  border-color: rgba(197, 160, 70, 0.6);
}
.school__bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  width: 115%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.school:hover .school__bg {
  transform: scale(1.05);
}
.school::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(8, 18, 54, 0.05) 0%,
    rgba(8, 18, 54, 0.55) 38%,
    rgba(8, 18, 54, 0.96) 72%
  );
}
.school__body {
  padding: 32px;
}
.school .label {
  margin-bottom: 10px;
}
.school ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 22px;
}
.school li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.88);
}
.school li span {
  color: var(--gold-light);
  font-size: 0.8rem;
  white-space: nowrap;
}
@media (min-width: 992px) {
  /* Desktop: the section is pinned full-screen with content centred vertically */
  .schools {
    padding: 0;
    --track-pad: max(24px, calc((100vw - 1320px) / 2 + 12px));
  }
  .schools__pin {
    height: 100vh;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ==========================================================
   12. COURSES
   ========================================================== */
.course-card {
  position: relative;
  height: 100%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(11, 26, 69, 0.05);
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}
.course-card::after {
  /* gold line grows along the bottom on hover */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}
.course-card:hover::after {
  transform: scaleX(1);
}
.course-card__img {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}
.course-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.course-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 18, 54, 0.55));
}
.course-card:hover .course-card__img img {
  transform: scale(1.08);
}
.course-card__badge {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.course-card__badge i {
  color: var(--gold-deep);
}
.course-card__body {
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-card__code {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.course-card__code span {
  color: var(--line);
  margin: 0 4px;
}
.course-card__title {
  transition: color 0.4s;
}
.course-card:hover .course-card__title {
  color: var(--navy);
}
.course-card__text {
  color: var(--muted);
  font-size: var(--fs-small);
  margin-bottom: 24px;
}
.course-card__foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.course-card__foot > span {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.course-card__foot > span i {
  color: var(--gold-deep);
}
.course-card__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--navy-deep);
  transition: all 0.45s var(--ease);
}
.course-card:hover .course-card__btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
  transform: rotate(45deg);
}

/* — Courses section enhancements — */
.courses-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(11, 26, 69, 0.06);
  margin-bottom: var(--head-gap);
  overflow: hidden;
}
.courses-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.courses-stat:last-child {
  border-right: 0;
}
.courses-stat__num {
  display: block;
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 500;
  color: var(--navy-deep);
  line-height: 1;
  margin-bottom: 6px;
}
.courses-stat__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.course-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.course-card__cat i {
  font-size: 0.8rem;
}
.course-card__cat--blue {
  background: #ebf0fb;
  color: #1e3f99;
}
.course-card__cat--teal {
  background: #e4f5f3;
  color: #167a74;
}
.course-card__cat--gold {
  background: #fdf5e4;
  color: var(--gold-deep);
}
.course-card__cat--purple {
  background: #f0eaf8;
  color: #6a3fa0;
}

.course-card__popular {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  padding: 5px 13px;
  background: var(--gold);
  color: var(--navy-900);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ==========================================================
   13. WHY OXFORDIA (divided grid)
   ========================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.why-item {
  position: relative;
  padding: 44px 38px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.5s var(--ease);
}
.why-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.why-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.why-item:hover::before {
  transform: scaleX(1);
}
.why-item i {
  font-size: 1.9rem;
  color: var(--gold-light);
  display: inline-block;
  margin-bottom: 24px;
  transition: transform 0.5s var(--ease);
}
.why-item:hover i {
  transform: translateY(-4px);
}
.why-item p {
  margin: 0;
  font-size: var(--fs-small);
}

/* ==========================================================
   14. ADMISSION STEPS (stacking cards)
   ========================================================== */
.stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.stack-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 420px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(11, 26, 69, 0.08);
  transform-origin: center top;
  will-change: transform;
}
.stack-card__body {
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stack-card__num {
  font-family: var(--ff-head);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
  font-weight: 300;
  margin-bottom: 22px;
}
.stack-card p {
  color: var(--muted);
  margin: 0;
  max-width: 420px;
}
.stack-card__img {
  overflow: hidden;
}
.stack-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stack-card--dark {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}
.stack-card--dark .title-lg {
  color: var(--white);
}
.stack-card--dark p {
  color: rgba(255, 255, 255, 0.7);
}
.stack-card--dark .stack-card__num {
  color: var(--gold-light);
}

/* ==========================================================
   15. GALLERY (3D image hover)
   ========================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: var(--gap);
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
}
.gallery-item--tall {
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 24px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(8, 18, 54, 0.8));
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.gallery-item:hover .gallery-item__caption {
  opacity: 1;
  transform: none;
}
.gallery-item__caption h6 {
  color: var(--white);
  margin: 0;
  font-size: 1.15rem;
}
.gallery-item .glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.28),
    transparent 55%
  );
}
.gallery-item:hover .glare {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 18, 54, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.show {
  display: flex;
}
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 85vh;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: none;
  color: var(--white);
  font-size: 1.1rem;
}

/* ==========================================================
   16. TESTIMONIALS
   ========================================================== */
.t-visual {
  position: relative;
  padding: 0 0 60px 40px;
  max-width: 480px;
}
.t-visual::before {
  content: "";
  position: absolute;
  left: 0;
  top: 40px;
  width: 70%;
  bottom: 20px;
  background: var(--ivory);
  z-index: 0;
}
.t-visual__img {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}
.t-visual__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t-visual__mark {
  position: absolute;
  z-index: 2;
  top: 30px;
  right: -28px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--navy-900);
  font-size: 2.2rem;
  box-shadow: var(--shadow);
}
.t-visual__card {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  max-width: 280px;
  padding: 24px 28px;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
}
.t-visual__card strong {
  display: block;
  font-family: var(--ff-head);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 6px;
}
.t-visual__card strong em {
  color: var(--gold-light);
}
.t-visual__card span {
  font-size: 0.85rem;
}

.t-card {
  position: relative;
  margin: 0;
  min-height: 330px;
  padding: 44px 46px 40px;
  background: var(--ivory);
  border-left: 3px solid var(--gold);
}
.t-card__stars {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 4px;
  margin-bottom: 20px;
}
.t-card blockquote {
  font-family: var(--ff-head);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.5;
  color: var(--navy-deep);
  margin: 0 0 30px;
}
.t-card__author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.t-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--navy-deep);
  color: var(--gold-light);
  font-family: var(--ff-head);
  font-size: 1.15rem;
  box-shadow:
    0 0 0 4px var(--white),
    0 0 0 5px var(--gold);
}
.t-card__author strong {
  display: block;
  color: var(--navy-deep);
  font-weight: 700;
}
.t-card__author small {
  display: block;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.t-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.t-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy-deep);
  display: grid;
  place-items: center;
  transition: all 0.4s var(--ease);
}
.t-arrow:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}
.t-count {
  margin-left: 14px;
  font-family: var(--ff-head);
  color: var(--muted);
  font-variant-numeric: lining-nums;
}
.t-current {
  color: var(--navy-deep);
  font-size: 1.3rem;
}
.t-progress {
  flex: 1;
  max-width: 160px;
  height: 1px;
  background: var(--line);
  margin-left: 14px;
  position: relative;
}
.t-progress span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0.3333);
  transition: transform 0.6s var(--ease);
}

/* ==========================================================
   17. CTA BAND
   ========================================================== */
.cta {
  overflow: hidden;
}
.cta__bg {
  position: absolute;
  inset: -15% 0;
}
.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 54, 0.86);
}
.cta .container {
  position: relative;
  z-index: 1;
}
.cta .section-title {
  margin-bottom: 12px;
}

/* ==========================================================
   18. CONTACT
   ========================================================== */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
}
.contact-list li {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.contact-list i {
  font-size: 1.35rem;
  color: var(--gold-deep);
  width: 28px;
  flex-shrink: 0;
}
.contact-list h6 {
  font-family: var(--ff-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-list p,
.contact-list a {
  margin: 0;
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 1.02rem;
}
.contact-list a:hover {
  color: var(--gold-deep);
}
.contact-form {
  background: var(--white);
  padding: 50px;
  box-shadow: var(--shadow);
}
.form-oxf {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  font-size: 0.98rem;
  color: var(--ink);
}
.form-oxf:focus {
  box-shadow: none;
  border-color: var(--gold);
  background: transparent;
}
.form-floating > .form-oxf ~ label {
  padding-left: 0;
  padding-right: 0;
  color: var(--muted);
}
.form-floating > .form-oxf ~ label::after {
  background: transparent !important;
}
.form-floating > textarea.form-oxf {
  height: 110px;
}
.map-wrap {
  margin-top: var(--head-gap);
  line-height: 0;
}
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  filter: grayscale(0.35);
}

/* ==========================================================
   19. FOOTER
   ========================================================== */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.62);
  padding-top: var(--section-space);
}
.footer h5 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer ul li {
  margin-bottom: 12px;
}
.footer ul a {
  color: rgba(255, 255, 255, 0.62);
}
.footer ul a:hover {
  color: var(--gold-light);
}
.footer__contact li {
  display: flex;
  gap: 12px;
}
.footer__contact i {
  color: var(--gold);
}
.footer__about {
  margin: 24px 0;
  max-width: 330px;
}
.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  transition: all 0.4s var(--ease);
}
.footer__social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  margin-top: var(--head-gap);
  font-size: 0.85rem;
}
.footer__bottom a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.footer__bottom a:hover {
  color: var(--gold-light);
}


/* ==========================================================
   20. FLOATING BUTTONS
   ========================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.4s var(--ease);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: var(--gold);
  color: var(--navy-900);
}
.whatsapp-btn {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s;
}
.whatsapp-btn:hover {
  color: #fff;
  transform: scale(1.06);
}

.js-anim [data-reveal] {
  opacity: 0;
}

/* ==========================================================
   21. RESPONSIVE (layout only — spacing & type come from tokens)
   ========================================================== */
@media (max-width: 1199.98px) {
  .nav-main {
    gap: 26px;
  }
  .fact {
    padding: 24px 20px;
  }
}
@media (max-width: 991.98px) {
  .navbar-oxf,
  .site-header.is-scrolled .navbar-oxf {
    height: 74px;
  }
  .hero {
    min-height: auto;
    padding: 60px 0 0;
    flex-direction: column;
    align-items: stretch;
    background-position: center;
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(8, 18, 54, 0.88) 0%,
      rgba(8, 18, 54, 0.70) 60%,
      rgba(8, 18, 54, 0.92) 100%
    );
  }
  .hero__title {
    font-size: clamp(2rem, 7.5vw, 2.8rem);
  }
  .hero__media::after {
    background: linear-gradient(
      180deg,
      rgba(8, 18, 54, 0.75),
      rgba(8, 18, 54, 0.92)
    );
  }
  .hero-facts {
    position: relative;
    margin-top: var(--head-gap);
  }
  .hero-facts__inner {
    grid-template-columns: 1fr 1fr;
  }
  .fact:nth-child(3) {
    border-left: 0;
  }
  .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .about-visual {
    margin: 0 auto 20px;
  }
  .t-visual {
    margin: 0 auto 20px;
  }
  .schools__track {
    flex-direction: column;
    align-items: stretch;
    gap: var(--gap);
    max-width: 720px;
    margin: 0 auto;
  }
  .schools__intro {
    flex: none;
    padding: 0;
    margin-bottom: calc(var(--head-gap) - var(--gap));
  }
  .schools__progress {
    display: none;
  }
  .school {
    flex: none;
    height: auto;
    min-height: 460px;
  }
  .school__bg {
    width: 100%;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stack-card {
    grid-template-columns: 1fr;
  }
  .stack-card__img {
    order: -1;
    aspect-ratio: 16 / 9;
  }
  .stack-card__body {
    padding: 40px 34px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 230px;
  }
  .contact-form {
    margin-top: 20px;
  }
}
@media (max-width: 575.98px) {
  .courses-stats {
    grid-template-columns: 1fr 1fr;
  }
  .courses-stat:nth-child(2) {
    border-right: 0;
  }
  .courses-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .brand img {
    height: 40px;
  }
  .brand__name {
    font-size: 1.2rem;
  }
  .brand__sub {
    font-size: 0.48rem;
    letter-spacing: 0.26em;
  }
  .hero {
    padding-top: 130px;
  }
  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }
  .hero__ctas .btn-oxf {
    flex: 1 1 100%;
  }
  .hero-facts__inner {
    grid-template-columns: 1fr;
  }
  .fact + .fact {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .fact {
    padding: 20px 22px;
  }
  .about-visual {
    padding: 14px 40px 50px 14px;
  }
  .about-visual__frame {
    right: 54px;
    bottom: 64px;
  }
  .about-visual__small {
    border-width: 6px;
  }
  .about-visual__badge {
    left: 0;
    bottom: 70px;
    padding: 14px 18px;
    gap: 12px;
  }
  .about-visual__badge img {
    width: 36px;
  }
  .about-visual__badge strong {
    font-size: 1.8rem;
  }
  .t-visual {
    padding: 0 0 50px 20px;
  }
  .t-visual__mark {
    right: 10px;
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
  }
  .t-card {
    padding: 30px 24px;
  }
  .school__body {
    padding: 26px 22px;
  }
  .check-list {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-item {
    padding: 34px 26px;
  }
  .stack-card__body {
    padding: 30px 24px;
  }
  .stack-card__num {
    font-size: 3.2rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery-item--tall {
    grid-row: auto;
  }
  .contact-form {
    padding: 34px 22px;
  }
  .back-to-top {
    right: 16px;
    bottom: 16px;
  }
  .whatsapp-btn {
    left: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
