/* Uppingham Hung Yen — landing page stylesheet
   Source: General Enrolment v2 (uph-landing-v2.vercel.app), font and image paths made relative. */

@font-face {
  font-family: 'TT Norms Pro Trial';
  src: url('../fonts/TT_Norms_Pro_Trial_Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Norms Pro Trial';
  src: url('../fonts/TT_Norms_Pro_Trial_Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Norms Pro Trial';
  src: url('../fonts/TT_Norms_Pro_Trial_Regular.woff2') format('woff2');
  font-weight: 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TT Norms Pro Trial';
  src: url('../fonts/TT_Norms_Pro_Trial_Medium.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Domaine Text';
  src: url('../fonts/DomaineText-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #00003c;
  --navy-deep: #00001f;
  --cream: #f0f0e6;
  --stone: #dedec9;
  --stone-line: #c9c9ac;
  --coral: #e13246;
  --coral-deep: #a8253a;
  --white: #ffffff;
  --display: 'TT Norms Pro Trial', Arial, Helvetica, sans-serif;
  --body-font: 'TT Norms Pro Trial', Arial, Helvetica, sans-serif;
  --heritage: 'Domaine Text', Georgia, serif;
  --max: 1180px;
  --page-pad: 28px;
  --border: rgb(222, 222, 201);
  --page-cols: minmax(0, 1.5fr) minmax(0, 1fr);
  --page-gap: 64px;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: auto;
  font-synthesis: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
}
@media (max-width: 1280px) {
  .wrap {
    padding: 0 var(--page-pad);
  }
}

.eyebrow {
  font-family: var(--heritage);
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: 0.02em;
  /* text-transform: uppercase; */
}

/* ---------- Buttons (production CTA) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 450;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 30px;
  letter-spacing: normal;
  text-decoration: none;
  padding: 10px 12px;
  height: 58px;
  min-width: min(300px, 100%);
  border-radius: 0;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease;
  line-height: 1.25;
}
@media (min-width: 1024px) {
  .btn {
    height: 70px;
    padding: 10px 24px;
  }
}
.btn:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}
.btn-primary:hover {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(240, 240, 230, 0.4);
}
.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(240, 240, 230, 0.08);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  padding: 22px 0;
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;

  align-items: center;
  column-gap: 12px;
}
.header-contact {
  justify-self: start;
  font-family: var(--display);
  font-weight: 450;
  font-size: clamp(13px, 1.2vw, 14px);
  letter-spacing: 0.04em;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.header-contact:hover {
  color: var(--coral);
}
.header-contact:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.brand-text {
  justify-self: center;
  line-height: 1.15;
}
.brand-text .b1 img {
  width: clamp(112px, 18vw, 164px);
  height: auto;
}
.brandmark {
  justify-self: end;
  display: inline-block;
  align-items: center;
}
.brandmark a {
  display: inline-block;
}
.brandmark .a-logo svg {
  width: clamp(34px, 3vw, 60px);
  height: auto;
  flex: none;
}
@media (max-width: 520px) {
  .site-header {
    padding: 16px 0;
  }
  .site-header .wrap {
    column-gap: 8px;
  }
}

/* ---------- Hero banner + floating card ---------- */
.hero2 {
  position: relative;
  background: var(--navy);
  height: clamp(480px, 58vw, 700px);
  overflow: hidden;
}
.hero2-slides {
  position: absolute;
  inset: 0;
}
.hero2-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transition: opacity 1.1s ease;
  z-index: 0;
  pointer-events: none;
}
.hero2-photo.is-active {
  opacity: 1;
  z-index: 1;
}
.hero2-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 60, 0.3) 0%,
    rgba(0, 0, 60, 0.05) 30%,
    rgba(0, 0, 60, 0.1) 58%,
    rgba(0, 0, 60, 0.45) 100%
  );
}
.hero2-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(112px, 15vw, 172px);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero2-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(240, 240, 230, 0.45);
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}
.hero2-dots button:hover {
  background: rgba(240, 240, 230, 0.8);
}
.hero2-dots button.is-active {
  background: var(--cream);
  transform: scale(1.25);
}
.hero2-dots button:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
.hero-card-wrap {
  position: relative;
  z-index: 3;
  margin-top: clamp(-140px, -12vw, -100px);
  padding-bottom: 24px;
}
.hero-card {
  /* background: var(--cream); */
  background: #f8f8f3;
  border-top: 4px solid var(--coral);
  /* box-shadow: 0 26px 60px rgba(0, 0, 60, 0.28); */
  padding: clamp(24px, 3vw, 60px);
  max-width: 100%;
  text-align: center;
}
.hero-card .eyebrow {
  color: var(--coral);
  margin-bottom: 20px;
}
.hero-card h1 {
  font-size: clamp(30px, 4.4vw, 40px);
  line-height: 1.14;
  color: var(--navy);
  text-transform: uppercase;
}
.hero-card .lede {
  margin-top: 20px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.45;
  color: var(--navy);
  /* max-width: 56ch; */
}
.hero-card .btn {
  margin-top: 30px;
}

/* ---------- Credentials stats (Option 1: heritage serif) ---------- */
.cred-section {
  padding: clamp(12px, 1.5vw, 20px) 0 0;
}
.cred-section + .split-section {
  padding-top: clamp(36px, 4vw, 56px);
}
.cred-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 48px);
}
.cred-item {
  border-top: 3px solid var(--coral);
  padding-top: clamp(14px, 1.6vw, 20px);
  position: relative;
}
/* .cred-item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--coral);
} */
.cred-num {
  font-family: var(--heritage);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--navy);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.cred-num.is-word {
  font-style: italic;
}
.cred-label {
  margin-top: 10px;
  font-size: clamp(13px, 1vw, 14px);
  line-height: 1.45;
  color: var(--navy);
  max-width: 24ch;
}
@media (max-width: 860px) {
  .cred-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
}

/* ---------- Split layout ---------- */
.split-section {
  padding: clamp(60px, 6vw, 100px) 0;
  /* background: url('https://www.uppingham.edu.vn/assets/images/home/admissions-bg.png')
no-repeat bottom center;
    background-size: contain; */
}
.split-layout {
  display: grid;
  grid-template-columns: var(--page-cols);
  column-gap: var(--page-gap);
  row-gap: 64px;
  align-items: start;
}
.split-content,
.split-form-col {
  min-width: 0;
}
@media (max-width: 960px) {
  .split-layout {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 961px) {
  .split-form-col {
    position: sticky;
    top: 28px;
  }
}

.block-head {
  max-width: 100%;
  margin-bottom: 44px;
}
.block-head .eyebrow {
  color: var(--coral);
  margin-bottom: 14px;
}
.block-head h2 {
  font-size: clamp(26px, 2.6vw, 30px);
  color: var(--navy);
  text-transform: uppercase;
}
.block-head p {
  margin-top: 14px;
  /* font-size: 16px; */
  color: rgba(0, 0, 60, 0.72);
}

.content-block {
  margin-bottom: clamp(60px, 6vw, 100px);
}
.content-block:last-child {
  margin-bottom: 0;
}

/* Leadership */
.leader-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 680px) {
  .leader-grid {
    grid-template-columns: 1fr;
  }
}
.form-card,
.curriculum-card,
.leader-card {
  background: rgba(255, 255, 255, 0.5);
}
.leader-card {
  padding: 28px;
  border-top: 3px solid var(--coral);
}
.leader-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.leader-avatar {
  width: 72px;
  height: 72px;
  /* border-radius: 2px; */
  object-fit: cover;
  flex: none;
}
.leader-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 6px;
}
.leader-title {
  margin-top: 2px;
  font-size: 12px;
  color: var(--coral);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.leader-quote {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.62;
  color: rgba(0, 0, 60, 0.82);
  padding-left: 16px;
  border-left: 1px solid var(--stone-line);
}

/* Curriculum */
.curriculum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 680px) {
  .curriculum-grid {
    grid-template-columns: 1fr;
  }
}
.curriculum-card {
  /* background: var(--white); */
  padding: 30px;
  border-top: 3px solid var(--navy);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.curriculum-card .eyebrow {
  color: var(--coral);
  font-size: 16px;
  margin-bottom: 10px;
}
.curriculum-card h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 12px;
}
.curriculum-card p {
  font-size: 14.5px;
  color: rgba(0, 0, 60, 0.72);
  flex-grow: 1;
}
.curriculum-card .btn {
  margin-top: 22px;
  align-self: flex-start;
  font-size: 16px;
  padding: 4px 10px;
  line-height: 1.3;
  height: 56px;
}

/* Gallery */
.gallery-slider {
  --gallery-gap: 16px;
  display: flex;
  gap: var(--gallery-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--stone-line) transparent;
}
.gallery-slide {
  flex: 0 0 calc((100% - var(--gallery-gap) * 2) / 2.33);
  scroll-snap-align: start;
  background: var(--navy);
  color: var(--cream);
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.gallery-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 60, 0) 55%,
    rgba(0, 0, 60, 0.75) 100%
  );
}
.gallery-slide .gname {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  margin-top: auto;
  padding: 16px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.3;
}
.gallery-slide {
  display: flex;
  flex-direction: column;
}
@media (max-width: 520px) {
  .gallery-slide {
    flex-basis: calc((100% - var(--gallery-gap)) / 1.2);
  }
}
@media (max-width: 960px) {
  .split-section {
    overflow-x: clip;
  }
  .gallery-slider {
    width: calc(100vw - var(--page-pad));
    max-width: none;
  }
  .gallery-slider.reveal,
  .gallery-slider.reveal.in {
    transform: none;
  }
}
.gallery-nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.gallery-nav button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.gallery-nav button:hover {
  color: var(--coral);
}
.gallery-nav button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
.gallery-caption {
  margin-top: 20px;
  font-size: 14.5px;
  color: rgba(0, 0, 60, 0.68);
  max-width: 60ch;
}
.gallery-caption b {
  color: var(--navy);
}

/* ---------- Sticky form ---------- */
.form-card {
  /* background: var(--white); */
  border-radius: 0;
  padding: clamp(26px, 3vw, 34px);
  /* box-shadow: 0 18px 40px rgba(0, 0, 60, 0.12); */
  transition:
    background-color 1.5s ease,
    box-shadow 0.35s ease;
}
.form-card.pulse {
  box-shadow:
    0 0 0 5px rgba(225, 50, 70, 0.28),
    0 18px 40px rgba(0, 0, 60, 0.12);
}
@media (min-width: 961px) {
  .form-card.is-highlight {
    background: rgba(255, 255, 255, 0.8);
  }
}
@media (max-width: 960px) {
  #enrolForm {
    scroll-margin-top: 50px;
  }
}
.form-heading {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 20px);
  color: var(--navy);
  margin-bottom: 10px;
  text-wrap: balance;
  text-transform: uppercase;
}
.form-sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(0, 0, 60, 0.68);
  margin-bottom: 24px;
}
.form-sub a {
  color: var(--navy);
  font-weight: 400;
  text-decoration: underline;
}

.field {
  margin-bottom: 25px;
}
.field label {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.1px;
  color: var(--navy);
  margin-bottom: 5px;
}
.field label .req {
  color: var(--coral);
}
.field select,
.field input[type='text'],
.field input[type='email'],
.field input[type='tel'] {
  width: 100%;
  font-family: var(--body-font);
  font-size: clamp(16px, 1.5vw, 16px);
  font-weight: 400;
  line-height: 30px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid #303050;
  border-radius: 0;
  background-color: transparent;
  color: var(--navy);
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder {
  color: #b7b7b7;
  opacity: 1;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8' fill='none'%3E%3Cpath d='M1 1l7 6 7-6' stroke='%2300003C' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 top 8px;
  background-size: 12px 12px;
  padding-right: 24px;
  color: var(--navy);
}
.field select:required:invalid {
  color: #b7b7b7;
}
.field select option {
  color: var(--navy);
  background: var(--white);
}
.field select:focus-visible,
.field input:focus-visible {
  outline: none;
  border-bottom-color: var(--coral);
  box-shadow: none;
}
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active,
.field input:-internal-autofill-selected,
.field input:-internal-autofill-previewed,
.field input:autofill {
  -webkit-text-fill-color: var(--navy);
  caret-color: var(--navy);
  color: var(--navy);
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  transition: background-color 99999s ease-out 0s;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tel-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: end;
}
.tel-row select {
  background-position: right 0 top 8px;
  padding-right: 20px;
}

.field-select {
  position: relative;
}
.field-select > select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  background: none;
}
.custom-select-trigger {
  display: block;
  width: 100%;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid #303050;
  border-radius: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--body-font);
  font-size: clamp(16px, 1.5vw, 16px);
  font-weight: 400;
  line-height: 30px;
  text-align: left;
  color: var(--navy);
  cursor: pointer;
}
.custom-select-trigger.is-placeholder {
  color: #b7b7b7;
}
.custom-select-trigger:focus-visible {
  outline: none;
  border-bottom-color: var(--coral);
}
.custom-select.is-open .custom-select-trigger {
  border-bottom-color: var(--navy);
}
.custom-select-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 8;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--cream);
  border: 1px solid #c9c9ac;
  border-radius: 8px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 10px 24px rgba(0, 0, 60, 0.08);
}
.custom-select.is-open .custom-select-menu {
  display: block;
}
.custom-select.is-drop-up .custom-select-menu {
  top: auto;
  bottom: calc(100% + 2px);
}
.custom-select-menu li {
  padding: 14px 22px;
  font-family: var(--body-font);
  font-size: clamp(16px, 1.5vw, 16px);
  font-weight: 400;
  line-height: 30px;
  color: var(--navy);
  cursor: pointer;
}
.custom-select-menu li:hover,
.custom-select-menu li.is-active {
  background: rgba(0, 0, 60, 0.04);
}
.only-mobile {
  display: none;
}
@media (max-width: 420px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .only-mobile {
    display: block;
  }
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 28px;
}
.consent input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  margin: 5px 0 0;
  flex: none;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1.5px solid var(--navy);
  background: var(--white);
  border-radius: 0;
  cursor: pointer;
}
.consent input[type='checkbox']:checked {
  background-color: var(--navy);
  border-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.8 10.4l3.3 3.3 7.2-7.4' stroke='%23ffffff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
.consent input[type='checkbox']:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
.consent label {
  font-size: 16px;
  line-height: 24px;
  color: var(--navy);
}

.form-submit {
  width: 100%;
  justify-content: center;
}
@media (min-width: 768px) and (max-width: 1024px) {
  button.form-submit {
    width: auto;
  }
  .req-note {
    text-align: left !important;
  }
}
.req-note {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(0, 0, 60, 0.55);
  text-align: center;
}

.success-panel {
  text-align: center;
  padding: 30px 8px;
  display: none;
  outline: none;
}
.success-panel.show {
  display: block;
}
.form-card.submitted .form-fields {
  display: none;
}
.success-panel svg {
  margin: 0 auto 16px;
  width: 40px;
  height: 40px;
  color: var(--coral);
}
.success-panel h3 {
  font-family: var(--display);
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 8px;
}
.success-panel p {
  font-size: 14px;
  color: rgba(0, 0, 60, 0.7);
  max-width: 34ch;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  color: var(--navy);
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: var(--page-cols);
  column-gap: var(--page-gap);
  row-gap: 32px;
  align-items: start;
  /* padding-bottom: 32px; */
  /* border-bottom: 1px solid var(--border); */
}
.logo-footer svg {
  /* width: calc(60px * 120 / 164); */
  height: 80px;
  width: auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: calc(12px * 120 / 164);
}
.footer-brand-text {
  line-height: 1.15;
}
.footer-brand .b1 img {
  width: 120px;
  height: auto;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 450;
}
.footer-aside {
  min-width: 0;
  width: 100%;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-contact-item--phone {
  align-items: center;
  gap: 16px;
}
.footer-contact-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 4px;
  box-sizing: border-box;
}
.footer-contact-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}
.footer-contact a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 450;
  transition: opacity 0.2s ease;
}
.footer-contact a:hover {
  opacity: 0.8;
  color: var(--navy);
}
.footer-bottom {
  padding-top: 24px;
  display: grid;
  grid-template-columns: var(--page-cols);
  column-gap: var(--page-gap);
  row-gap: 16px;
  align-items: start;
  font-size: 16px;
  color: var(--navy);
}
@media (max-width: 960px) {
  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
  }
}
.left-fb {
  color: var(--coral);
  font-size: 16px;
  text-wrap: balance;
}

/* ---------- Floating CTA (mobile only) ---------- */
.float-cta {
  display: none;
}
@media (max-width: 960px) {
  .float-cta {
    display: flex;
    position: fixed;
    z-index: 40;
    left: var(--page-pad);
    right: var(--page-pad);
    bottom: 16px;
    width: auto;
    max-width: var(--max);
    min-width: 0;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      background-color 0.2s ease,
      color 0.2s ease,
      border-color 0.2s ease;
  }
  .float-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.footer-slogan {
  padding: clamp(32px, 3vw, 50px) 0;
  background-image: url('../images/red-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--cream);
}
.footer-slogan-inner {
  text-align: center;
  /* display: grid; */
  /* grid-template-columns: var(--page-cols);
    column-gap: var(--page-gap); */
}
.footer-slogan h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--cream);
  text-wrap: balance;
  margin: 0;
}
.hide-mobile {
  display: inline-block;
}
.brandmark,
.header-contact {
  min-width: 74px;
}
.brandmark {
  text-align: right;
}
@media (max-width: 960px) {
  .footer-slogan-inner {
    /* grid-template-columns: 1fr; */
  }
  .hide-mobile {
    display: none;
  }
  .brandmark,
  .header-contact {
    min-width: 51px;
  }
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--coral);
  color: var(--white);
  font-family: var(--display);
  font-weight: 450;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}
    

/* ==========================================================================
   ADDITIONS — Experience Events + Tuition Privilege landing pages
   Everything above this line is the General Enrolment v2 stylesheet, unchanged.
   Everything below is new, built only from the tokens above.
   ========================================================================== */

/* Header crest: the white-backed crest from the brand assets
   (OVERSEAS_CREST / FOR DARK BACKGROUNDS), same size as v2's inline SVG crest. */
.brandmark .a-logo .crest {
  width: clamp(34px, 3vw, 60px);
  height: auto;
  flex: none;
}

/* CTAs link to #formCard (the top of the form card, heading included).
   On desktop the card is sticky at top: 28px, so it lands exactly there. */
#formCard {
  scroll-margin-top: 28px;
}
@media (max-width: 960px) {
  #formCard {
    scroll-margin-top: 16px;
  }
}

/* Gallery (Tuition Privilege): caption at body size; nav arrows sit on the
   left gutter (the 38px buttons centre a 16px arrow, so pull back the 11px inset). */
.gallery-caption {
  font-size: 16px;
}
.gallery-nav {
  margin-left: -11px;
}
/* Inactive arrow: prev at the start of the gallery, next at the end (set by
   the JS via aria-disabled). The lightbox loops, so it has no inactive state. */
.gallery-nav button[aria-disabled='true'],
.gallery-nav button[aria-disabled='true']:hover {
  color: var(--stone-line);
  cursor: default;
}

/* Gallery thumbnails open the lightbox */
.gallery-slide.is-zoomable {
  cursor: zoom-in;
}
.gallery-slide.is-zoomable img {
  transition: transform 0.5s ease;
}
.gallery-slide.is-zoomable:hover img {
  transform: scale(1.03);
}
.gallery-slide.is-zoomable:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: -3px;
}

/* Lightbox: native <dialog>, built by uph-landing.js from the gallery slides */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--navy-deep);
  color: var(--cream);
  overflow: hidden;
}
.lightbox[open] {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: 72px minmax(0, 1fr) auto;
  animation: lightbox-in 0.25s ease;
}
.lightbox::backdrop {
  background: transparent;
}
@keyframes lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox-figure {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
}
.lightbox-meta {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0 28px;
}
.lightbox-caption {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.4;
}
.lightbox-count {
  font-family: var(--heritage);
  font-size: 16px;
  color: rgba(240, 240, 230, 0.7);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lightbox-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.lightbox-btn:hover {
  color: var(--coral);
}
.lightbox-btn:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}
.lightbox-close {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: center;
}
.lightbox-prev,
.lightbox-next {
  grid-row: 2;
  align-self: center;
  justify-self: center;
}
.lightbox-prev {
  grid-column: 1;
}
.lightbox-next {
  grid-column: 3;
}
@media (max-width: 680px) {
  .lightbox[open] {
    grid-template-columns: 16px minmax(0, 1fr) 16px;
    grid-template-rows: 64px minmax(0, 1fr) auto 72px;
  }
  .lightbox-close {
    grid-column: 2;
    justify-self: end;
  }
  .lightbox-prev,
  .lightbox-next {
    grid-row: 4;
    align-self: start;
  }
  .lightbox-prev {
    grid-column: 2;
    justify-self: start;
    margin-left: -11px;
  }
  .lightbox-next {
    grid-column: 2;
    justify-self: end;
    margin-right: -11px;
  }
  .lightbox-meta {
    padding: 16px 0 8px;
  }
}
html.lightbox-open {
  overflow: hidden;
}

/* Feature list — titled rows. Used for "Experience Uppingham firsthand"
   (plain rows) and the founding privileges (accent cards, same treatment
   as .leader-card: 50% white, 3px red top rule, 28px padding). */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  column-gap: 32px;
  row-gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.feature-item:last-child {
  border-bottom: 1px solid var(--border);
}
.feature-item h3 {
  font-size: 20px;
  line-height: 1.3;
  color: var(--navy);
}
.feature-item p {
  color: rgba(0, 0, 60, 0.72);
}
.feature-list--accent {
  display: grid;
  gap: 16px;
}
.feature-list--accent .feature-item {
  background: rgba(255, 255, 255, 0.5);
  padding: 28px;
  border-top: 3px solid var(--coral);
  border-bottom: 0;
}
.feature-list--accent .feature-item h3 {
  text-transform: uppercase;
}
.feature-item .req {
  color: var(--coral);
}
@media (max-width: 680px) {
  .feature-item {
    grid-template-columns: 1fr;
  }
}

/* Leadership cards one per row (Tuition Privilege). The brief's full quotes
   are too long for v2's two-up grid; this is v2's own <=680px layout at all widths. */
.leader-grid--stacked {
  grid-template-columns: 1fr;
}

/* Terms line under the privileges */
.terms-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: rgba(0, 0, 60, 0.68);
}

/* Copy still to be supplied by the client. Remove the attribute when the
   real copy goes in; the dashed outline makes it impossible to ship by accident. */
[data-copy-pending] {
  outline: 1px dashed var(--coral);
  outline-offset: 6px;
}
