/* ============================== VENUS STAR HIGH SCHOOL — DESIGN SYSTEM============================= */

:root {
  --ink: #12161C;
  --slate: #5B6472;
  --paper: #FFFFFF;
  --paper-dim: #F6F7F9;
  --line: #E3E6EB;
  --royal: #1B3A6B;
  --royal-deep: #0B1B33;
  --accent-sky: #3EC1F3;
  --navy: #0B1B33;
  --text: #0a0b10;
  --page-bg: #f3f3f3;
  --white: #ffffff;
  --orange: #457f8d;
  --purple: #34206f;
  --shadow: 0 9px 22px rgba(0, 0, 0, 0.08);
  --max-width: 1297px;

  /* Type scale */
  --serif: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.vshs-cookie-panel {
  font-family: "Segoe UI", sans-serif;
}

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


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

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

.wrap {
  padding: 0 40px;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal);
}

.lede {
  font-size: 18px;
  color: var(--slate);
  max-width: 62ch;
}

.lede--spaced {
  margin-top: 16px;
}

.eyebrow--on-dark {
  color: #9db3d6;
}

/* Buttons — one shape, one accent, no gradients ------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary {
  background: var(--royal);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--royal-deep);
}

.btn-outline {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  border-color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--royal);
  border-color: var(--royal);
}

.btn-outline-dark:hover {
  background: var(--royal);
  color: var(--paper);
}

.btn-white {
  background: #fff;
  color: var(--royal-deep);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.85);
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--royal);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}

.text-link--spaced {
  display: inline-block;
  margin-top: 32px;
}

.text-link:hover {
  border-color: var(--royal);
}

.text-link--on-dark {
  color: var(--accent-sky);
}

.text-link--on-dark:hover {
  border-color: var(--accent-sky);
}

/* ===================================SITE HEADER — ========= */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  transition: background-color .2s ease;
}

.site-header--panel-open {
  background: var(--royal-deep);
}

/* =============================SUB-NAV ============================ */

.subnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 199;
  background: var(--royal-deep);
  color: #fff;
  transform: translateY(-100%);
  transition: transform .28s ease;
}

.subnav.visible {
  transform: translateY(0);
}

/* Row 1 — breadcrumb trail */
.subnav-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 9px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.subnav-crumbs::-webkit-scrollbar {
  display: none;
}

.subnav-crumbs a {
  color: rgba(255, 255, 255, 0.6);
}

.subnav-crumbs a:hover {
  color: #fff;
}

.subnav-crumbs .crumb-sep {
  color: rgba(255, 255, 255, 0.3);
}

.subnav-crumbs .crumb-current {
  color: #fff;
  font-weight: 600;
}

/* Row 2 — quick links, "Back to top" always first */
.subnav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 10px;
  padding-bottom: 10px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.subnav-links::-webkit-scrollbar {
  display: none;
}

.subnav-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.subnav-top:hover {
  color: var(--accent-sky);
}

.subnav-top svg {
  transition: transform .15s ease;
}

.subnav-top:hover svg {
  transform: translateY(-2px);
}

.subnav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.subnav-links a:hover {
  color: var(--accent-sky);
}

.subnav-links .link-sep {
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.site-header-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px 40px;
  min-height: 100px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-brand img {
  height: clamp(66px, 12vw, 66px);
  width: auto;
}

.header-nav-box {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-box {
  background: var(--royal);
  border-radius: 4px;
  height: 40px;
  display: flex;
  align-items: center;
}

.quick-links {
  gap: 24px;
  padding: 0 22px;
}

.quick-links a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.quick-links a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.header-action {
  gap: 8px;
  border: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 0 18px;
  cursor: pointer;
  white-space: nowrap;
}

.header-action .icon-close {
  display: none;
}

.header-action[aria-expanded="true"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-action[aria-expanded="true"] .icon-search,
.header-action[aria-expanded="true"] .icon-menu {
  display: none;
}

.header-action[aria-expanded="true"] .icon-close {
  display: block;
}

/* ===============================DROP PANELS — ================================= */

.drop-panel {
  position: absolute;
  top: var(--header-h, 92px);
  left: 0;
  right: 0;
  background: var(--royal-deep);
  color: #fff;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  scrollbar-gutter: stable;
  transition: opacity .22s ease, height .22s ease;
}

.drop-panel.open {
  height: calc(100vh - var(--header-h, 92px));
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}

.search-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('images/venus-institution.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  opacity: 0.1;
  pointer-events: none;
}

.search-panel-intro,
.search-panel-form,
.search-results {
  position: relative;
  z-index: 1;
}

/* Search panel ---------------------------------------------------------- */

.search-panel-intro {
  text-align: center;
  padding: 20px 40px;
}

.search-panel-intro h2 {
  font-family: var(--serif);
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.search-panel-intro p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 46ch;
  margin: 0 auto 32px;
}

.panel-pills {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.pill-btn-solid {
  background: var(--accent-sky);
  color: var(--royal-deep);
}

.pill-btn-solid:hover {
  background: #5cd0f2;
}

.pill-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.pill-btn-outline:hover {
  border-color: #fff;
}

.search-panel-form {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.search-panel-form[hidden] {
  display: none;
}

.search-panel-form svg {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.search-panel-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 20px;
  padding: 10px 0;
}

.search-panel-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-results {
  max-width: 720px;
  margin: 0 auto;
  max-height: 260px;
  overflow-y: auto;
  padding: 0 40px;
}

.search-result {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  color: #fff;
}

.search-result:hover,
.search-result.active {
  color: var(--accent-sky);
}

.search-result .tag {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  margin-top: 3px;
}

.search-empty {
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  text-align: center;
}

/* Menu panel -------------------------------------------------------------- */

.menu-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: 480px;
}

.menu-nav {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 40px;
  height: 100%;
}

.menu-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('images/venus-institution.png');
  background-repeat: no-repeat;
  background-position: 62% 30%;
  background-size: cover;
  opacity: 0.13;
  pointer-events: none;
}

.menu-nav>* {
  position: relative;
  z-index: 1;
}

/* "Go back" row — only shown once a section has been drilled into */
.menu-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 28px;
  transition: color .15s ease;
}

.menu-back:hover {
  color: var(--accent-sky);
}

.menu-back-icon {
  display: flex;
  color: var(--accent-sky);
  transition: transform .2s ease;
}

.menu-back:hover .menu-back-icon {
  transform: translateX(-4px);
}

.menu-drill-heading {
  font-family: var(--serif);
  color: #fff;
  font-size: 32px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.menu-list {
  list-style: none;
}

.menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.menu-list li:last-child {
  border-bottom: none;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}

.menu-item-label {
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.menu-item-arrow {
  flex-shrink: 0;
  display: flex;
  color: var(--accent-sky);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}

.menu-item:hover .menu-item-arrow,
.menu-item:focus-visible .menu-item-arrow {
  transform: translateX(6px);
}

.menu-item:hover .menu-item-label,
.menu-item:focus-visible .menu-item-label,
.menu-item.is-current .menu-item-label {
  border-bottom-color: currentColor;
}

/* Top-level items — large serif, matches the section headings elsewhere */
.menu-item--top {
  padding: 17px 0;
  font-family: var(--serif);
  font-size: 26px;
}

.menu-item--top .menu-item-arrow svg {
  width: 24px;
  height: 24px;
}

/* Child items — smaller sans-serif rows once a section is drilled into */
.menu-item--child {
  display: flex;
  padding: 13px 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.menu-item--child .menu-item-arrow svg {
  width: 18px;
  height: 18px;
}

.menu-item--viewall {
  color: var(--accent-sky);
  font-weight: 600;
}

.menu-photo {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.menu-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Bottom gradient so the promo text/button stay legible over the photo */
.menu-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(6, 15, 29, 0.88) 0%, rgba(6, 15, 29, 0.5) 32%, rgba(6, 15, 29, 0) 62%);
  pointer-events: none;
}

.menu-photo-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
}

.menu-photo-content h2 {
  font-family: var(--serif);
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.menu-photo-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 40ch;
}

@media (max-width: 640px) {
  .menu-photo-content {
    padding: 24px 22px;
  }
  .menu-photo-content h2 {
    font-size: 20px;
  }
  .menu-photo-content p {
    font-size: 13px;
  }
}

/* ============================================================================
   HERO — full-bleed photograph, minimal overlay caption
   ============================================================================ */

.hero {
  position: relative;
  height: 78vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--royal-deep);
  /* shows instantly, before video/image paints */
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}


.hero-media video {
  z-index: 1;
}

.hero-media img {
  z-index: 0;
}

/* fallback layer; only visible once JS hides the video */

/* If the video fails to load, JS adds this class so the fallback image shows instead. */
.hero-media--no-video video {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(6, 15, 29, 0.92) 0%, rgba(6, 15, 29, 0.62) 28%, rgba(6, 15, 29, 0.15) 55%, rgba(6, 15, 29, 0) 75%);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 40px 56px;
  z-index: 2;
}

.hero-date {
  display: inline-block;
  background: var(--accent-sky);
  color: var(--royal-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.hero-caption h1,
.hero-caption h2 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  max-width: 16ch;
  margin-bottom: 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 28px;
  max-width: 46ch;
}

.hero-cta {
  margin-top: 4px;
}

.hero-controls {
  position: absolute;
  right: 40px;
  bottom: 44px;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ===========================================================PROGRAM SEARCH BAND ==================================================== */

.home-intro-band {
  background: linear-gradient(180deg, #0B1420 0%, #0B1B33 100%);
  padding: 56px 0 48px;
}

.program-search-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.program-search-wrap h2 {
  font-family: var(--sans);
  font-weight: 600;
  color: #fff;
  font-size: 17px;
  max-width: 320px;
  padding-top: 10px;
}

.program-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.stream-toggle {
  display: flex;
  gap: 20px;
  padding-top: 12px;
}

.stream-toggle label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.stream-toggle input[type="radio"] {
  accent-color: var(--accent-sky);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.program-search-box-wrap {
  position: relative;
}

.program-search-box {
  display: flex;
  align-items: stretch;
}

.program-search-box input[type="text"] {
  border: none;
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 14px;
  width: 260px;
  max-width: 60vw;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.program-search-box input[type="text"]:focus {
  outline: 2px solid var(--accent-sky);
  outline-offset: -2px;
}

.program-search-box button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-sky);
  color: var(--royal-deep);
  border: none;
  padding: 0 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color .15s ease;
}

.program-search-box button:hover {
  background: #5cd0f2;
}

.program-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 46px;
  margin-top: 2px;
  background: #fff;
  border-radius: 0 0 4px 4px;
  list-style: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
}

.program-suggestions li {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}

.program-suggestions li:last-child {
  border-bottom: none;
}

.program-suggestions li:hover,
.program-suggestions li.active {
  background: var(--paper-dim);
  color: var(--royal);
}

.program-suggestions li mark {
  background: #cfe8fa;
  color: inherit;
  border-radius: 2px;
}

.program-search-feedback {
  margin-top: 8px;
  font-size: 12px;
  color: #ffb3b3;
  min-height: 16px;
  max-width: 480px;
}

.program-search-feedback.ok {
  color: #a9e8b8;
}

/* ==============================================================QUICK-LINKS TILE GRID —====================================== */

.quick-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 40px;
  margin-top: 48px;
}

.quick-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
}

.quick-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-tile-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 18px 16px;
  background: linear-gradient(to top, rgba(6, 15, 29, 0.92) 0%, rgba(6, 15, 29, 0.8) 35%, rgba(6, 15, 29, 0.5) 65%, rgba(6, 15, 29, 0) 100%);
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color .25s ease;
}

.quick-tile:hover .quick-tile-label {
  text-decoration-color: var(--royal-deep);
}

/* ============================================================================
   SECTIONS — shared rhythm
   ============================================================================ */

section {
  padding: 96px 0;
}

section.tight {
  padding: 72px 0;
}

.section-dim {
  background: var(--paper-dim);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head--left {
  text-align: left;
  margin: 0 0 40px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 10px 0 14px;
}

/* ============================================================================
   MISSION — centered statement
   ============================================================================ */

.mission {
  text-align: center;
}

.mission .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.mission h2 {
  font-size: clamp(30px, 4vw, 44px);
  max-width: 16ch;
  margin: 0 auto 22px;
}

.mission p {
  max-width: 62ch;
  margin: 0 auto 32px;
  color: var(--slate);
  font-size: 17px;
}

.mission-photo {
  position: relative;
  margin-top: 64px;
  border-radius: 4px;
  overflow: hidden;
}

.mission-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 15, 29, 0.35) 0%, rgba(6, 15, 29, 0) 40%);
  pointer-events: none;
}

/* ============================================================================
   NEWS — asymmetric grid, editorial cards
   ============================================================================ */

.news-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}

.news-intro .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.news-intro h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 16px;
}

.news-intro p {
  color: var(--slate);
  margin-bottom: 28px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.news-card {
  background: var(--paper);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.news-thumb {
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 4/3;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 8px;
}

.news-tag span {
  color: var(--line);
  margin: 0 6px;
}

.news-tag .cat {
  color: var(--slate);
}

.news-card h3 {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.news-card h3 a:hover {
  color: var(--royal);
}

.news-card p {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 16px;
  flex: 1;
}

.news-foot {
  font-size: 12px;
  color: var(--slate);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.news-foot span {
  margin: 0 6px;
  color: var(--line);
}

/* ============================================================================
   STATS — dark band, four figures, no cards/gradients
   ============================================================================ */

.stats {
  background: var(--royal-deep);
  color: #fff;
}

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

.stat {
  padding: 40px 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

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

.stat .num {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 600;
  margin-bottom: 10px;
}

.stat .cap {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* ============================================================================
   FEATURE — image + pull quote, left border accent
   ============================================================================ */

.feature-head {
  margin-bottom: 48px;
}

.feature-head .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.feature-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  max-width: 18ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.feature-grid .photo {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}

.feature-grid .photo img {
  aspect-ratio: 3/4;
  object-fit: cover;
}

.feature-grid .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 15, 29, 0.4) 0%, rgba(6, 15, 29, 0) 45%);
  pointer-events: none;
}

blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--royal);
  padding-left: 28px;
  margin-bottom: 36px;
}

.feature-grid p.attribution {
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 40px;
  padding-left: 31px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-left: 31px;
}

.mini-grid .mini-card {
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.mini-grid img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.mini-grid .mini-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.mini-grid .mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 27, 51, 0.55), rgba(11, 27, 51, 0) 55%);
}

/* ============================================================================
   PROGRAMS — horizontal scroller over a photograph, like a campus map rail
   ============================================================================ */

.programs {
  position: relative;
  background: #f1efe9;
  color: var(--ink);
  padding-top: 72px;
}

.programs-top {
  padding-bottom: 40px;
}

.programs-top .eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #9a6c28;
}

.programs-top h2 {
  color: #173b3a;
  font-size: 24px;
  max-width: 16ch;
  margin-bottom: 14px;
  line-height: 1.04;
}

.programs-top p {
  color: #5d625d;
  max-width: 52ch;
  font-size: 15px;
}

.programs-photo {
  position: relative;
  height: 390px;
  margin: 0 40px;
  overflow: hidden;
  border-radius: 6px;
  background: #173b3a;
}

.programs-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.programs-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(23, 59, 58, 0.04) 20%, rgba(23, 59, 58, 0.58) 100%);
  pointer-events: none;
}

.programs-rail {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  max-width: 1240px;
  margin: -54px auto 0;
  background: #d7d1c6;
  scrollbar-width: none;
}

.programs-rail::-webkit-scrollbar {
  display: none;
}

.program-card {
  min-width: 0;
  min-height: 194px;
  background: #fffdf8;
  padding: 24px 22px 26px;
  border-top: 4px solid transparent;
  transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
}

.program-card:hover {
  background: #ffffff;
  border-top-color: #c8953f;
  transform: translateY(-5px);
}

.program-card h4 {
  color: #173b3a;
  font-size: 17px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.program-card p {
  color: #68706b;
  font-size: 13px;
  line-height: 1.6;
}

/* ============================================================================
   ADMISSIONS — simple three-column facts, no icon soup
   ============================================================================ */

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.facts-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--royal);
  margin-bottom: 18px;
}

.facts-col ul {
  list-style: none;
}

.facts-col li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.facts-col li span {
  color: var(--slate);
}

.admissions-cta {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.admissions-cta h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.admissions-cta p {
  color: var(--slate);
  font-size: 14px;
}

/* ============================================================================
   CONTACT
   ============================================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-card {
  background: var(--paper);
  padding: 28px;
}

.contact-card h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--royal);
  margin-bottom: 12px;
  font-weight: 700;
}

.contact-card p {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

.contact-card p.dim {
  color: var(--slate);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer-band {
  height: 260px;
  position: relative;
  overflow: hidden;
}

.footer-band video { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.footer-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 27, 51, 0) 0%, rgba(11, 27, 51, 0.85) 100%);
  opacity: 80%;
  pointer-events: none;
}

.footer-band-controls {
  position: absolute;
  z-index: 1;
  right: 40px;
  bottom: 20px;
}

.footer-band-controls button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.footer {
  position: relative;
  overflow: hidden;
  background: var(--royal-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 88px 0 0;
}

/* Full-bleed decorative banner, sitting after the copyright line — same
   idea as Three.co.uk's oversized wordmark: spans edge-to-edge with no
   side padding, only the top portion is visible, and the bottom gets
   clipped by the container's fixed height rather than shown in full.
   background-size:cover on a box this much wider than it is tall always
   crops top/bottom (never left/right), so the image reaches both edges
   at every screen size without needing separate breakpoint rules. */
/* No min/max-height clamp on purpose: height must stay a fixed ratio of
   width (20vw) at every screen size, or the crop point shifts device to
   device — a fixed px floor/ceiling would show more of the image on
   narrow screens and less on wide ones, breaking the consistent framing. */
.footer-banner-image {
  position: relative;
  width: 100%;
  height: 32vw;
  overflow: hidden;
  background-image: url('images/venus-institution.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
}

.footer-banner-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 27, 51, 0.72);
  /* var(--royal-deep) at partial opacity */
  pointer-events: none;
}

.footer-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 56px;
  padding-bottom: 64px;
}

.footer-brand {
  flex-shrink: 0;
}

.footer-brand img {
  height: 84px;
  width: auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  flex: 1;
  max-width: 720px;
}

.footer-col h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 1px 12px rgba(6, 15, 29, 0.9);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 14px;
  text-shadow: 0 1px 10px rgba(6, 15, 29, 0.85);
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-connect {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

.footer-connect h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 1px 12px rgba(6, 15, 29, 0.9);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--royal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease, transform .15s ease;
}

.social-icon:hover {
  background: var(--accent-sky);
  color: var(--royal-deep);
  transform: translateY(-2px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  margin-left: 18px;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ============================================================================
   SUBPAGES — page intro band + stacked content sections
   ============================================================================ */

.page-intro {
  background: var(--royal-deep);
  color: #fff;
  padding: 168px 0 64px;
}

.breadcrumb {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a:hover {
  color: var(--accent-sky);
}

.page-intro h1 {
  color: #fff;
  font-size: clamp(32px, 4.2vw, 48px);
  max-width: 18ch;
  margin-bottom: 16px;
}

.page-intro p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
  max-width: 60ch;
}

.page-intro--photo h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.page-intro--photo p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.page-intro--photo .breadcrumb {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.page-intro--compact {
  min-height: clamp(360px, 48vh, 520px);
}

.page-intro--compact .wrap {
  padding-bottom: 44px;
}

.resource-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: stretch;
  width: calc(100% - 80px);
  max-width: none;
  margin: 0 40px;
  padding: 56px 40px;
  gap: 0;
}

.resource-feature-image {
  min-height: 330px;
  overflow: hidden;
  border-radius: 6px 0 0 6px;
  background: var(--paper-dim);
}

.resource-feature-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.resource-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px);
  border-radius: 0 6px 6px 0;
  background: var(--royal-deep);
  color: #fff;
}

.resource-feature-copy .eyebrow {
  margin-bottom: 16px;
  color: var(--accent-sky);
}

.resource-feature-copy h2 {
  max-width: 12ch;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
}

.resource-feature-copy p {
  max-width: 42ch;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
}

.resource-feature-link {
  color: var(--accent-sky);
  font-size: 13px;
  font-weight: 700;
}

.resource-feature--discounts .resource-feature-copy,
.resource-feature--payments .resource-feature-copy {
  background: var(--royal);
}

.resource-feature--scholarships .resource-feature-copy,
.resource-feature--boarding .resource-feature-copy {
  background: #174b63;
}

.admissions-hero h1 {
  font-size: 24px;
}

.admissions-hero > .wrap > p {
  font-size: 15px;
}

.about-hero h1 {
  font-size: 24px;
}

.about-hero > .wrap > p {
  font-size: 15px;
}

.news-hero h1 {
  font-size: 24px;
}

.news-hero > .wrap > p {
  font-size: 15px;
}

.academics-hero h1 {
  font-size: 24px;
}

.academics-hero > .wrap > p {
  font-size: 15px;
}

.normalized-resource-hero h1 {
  font-size: 24px;
}

.normalized-resource-hero > .wrap > p {
  font-size: 15px;
}

.page-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-h, 92px);
  /* keeps anchor targets clear of the fixed header */
}

.page-section:last-of-type {
  border-bottom: none;
}

.page-section.section-dim {
  border-bottom: none;
}

.page-section h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 18px;
}

.page-section .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.page-section p {
  color: var(--slate);
  font-size: 16px;
  max-width: 68ch;
  margin-bottom: 16px;
}

.bursar-contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 30px;
  padding: 26px 28px;
  border-left: 4px solid var(--accent-sky);
  background: #edf5fa;
}

.bursar-contact-label {
  display: block;
  margin-bottom: 8px;
  color: var(--royal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bursar-contact-panel h3 {
  margin-bottom: 8px;
  color: var(--royal-deep);
  font-size: 24px;
}

.bursar-contact-panel p {
  max-width: 58ch;
  margin-bottom: 0;
  font-size: 15px;
}

.bursar-contact-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--royal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background-color .2s ease, transform .2s ease;
}

.bursar-contact-action:hover {
  background: var(--royal-deep);
  transform: translateY(-2px);
}

.page-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-fact {
  min-width: 0;
  padding: 20px 20px 20px 0;
  border-bottom: 1px solid var(--line);
}

.page-fact:nth-child(odd) {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.page-fact:nth-child(even) {
  padding-left: 28px;
}

.page-fact:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.page-fact .num {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--royal);
  margin-bottom: 6px;
}

.page-fact .cap {
  font-size: 13px;
  color: var(--slate);
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.leader-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.leader-card p {
  color: var(--royal);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.leader-card small {
  color: var(--slate);
  font-size: 13px;
}

/* ================================PREMIUM PHOTO INTRO ========================= */

.page-intro--photo {
  position: relative;
  min-height: 78vh;
  padding: 0;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* DARK BLUE LINEAR GRADIENT */
.page-intro--photo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background: linear-gradient(
    to top,
    rgba(5, 35, 75, 0.85) 0%,
    rgba(5, 35, 75, 0.68) 20%,
    rgba(5, 35, 75, 0.45) 40%,
    rgba(5, 35, 75, 0.20) 65%,
    rgba(5, 35, 75, 0.05) 85%,
    rgba(5, 35, 75, 0) 100%
  ) !important;

  z-index: 1;
  pointer-events: none;
}

/* CONTENT ABOVE THE GRADIENT */
.page-intro--photo .wrap {
  position: relative;
  z-index: 2;

  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 56px;
}

.intro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 36px;
}

.intro-stats .stat-item {
  display: flex;
  flex-direction: column;
  padding-right: 40px;
  margin-right: 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.intro-stats .stat-item:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.intro-stats .num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.intro-stats .cap {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* ============================================================================
   ACADEMIC STREAMS — card grid
   ============================================================================ */

.streams-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.stream-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  scroll-margin-top: var(--header-h, 92px);
  transition: box-shadow .2s ease, transform .2s ease;
}

.stream-card:hover {
  box-shadow: 0 14px 30px rgba(11, 27, 51, 0.09);
  transform: translateY(-3px);
}

.stream-card .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.stream-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.stream-card p {
  color: var(--slate);
  font-size: 14px;
  margin-bottom: 20px;
}

.stream-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stream-subject-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--royal);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 5px;
}

/* ====================================================PROGRAM FEATURE ============================ */

.program-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.program-feature--reverse .program-feature-photo {
  order: 2;
}

.program-feature-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.program-feature-photo img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.program-feature-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 15, 29, 0.35) 0%, rgba(6, 15, 29, 0) 45%);
  pointer-events: none;
}

.program-feature-content .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.program-feature-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
}

.program-feature-content p {
  color: var(--slate);
  font-size: 15px;
  margin-bottom: 20px;
}

.program-feature-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==============================================================PROGRAM SPOTLIGHT —====================== */

.program-spotlight-dark {
  background: var(--ink);
  color: #fff;
}

.program-spotlight-dark .program-feature-content .eyebrow {
  color: #9db3d6;
}

.program-spotlight-dark .program-feature-content h2 {
  color: #fff;
}

.program-spotlight-dark .program-feature-content p {
  color: rgba(255, 255, 255, 0.68);
}

.program-spotlight-dark .stream-subject-chip {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.program-big-stat {
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 600;
  line-height: 0.9;
  color: var(--accent-sky);
  margin-bottom: 16px;
}

/* ============================================PROGRAM BANNER ================================= */

.program-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.program-mini-stats .num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--royal);
}

.program-mini-stats .cap {
  font-size: 13px;
  color: var(--slate);
  margin-top: 2px;
}

.program-banner {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 40px;
}

.program-banner img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.program-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 15, 29, 0.5) 0%, rgba(6, 15, 29, 0) 40%);
  pointer-events: none;
}

/* =====PAGES IN THIS SECTION ================== */

.pages-in-section {
  background: #eef4f8;
  padding: 54px 0 58px;
}

.pages-in-section h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 26px;
}

.pages-in-section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 40px;
}

.pages-in-section-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(27, 58, 107, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.pages-in-section-link .arrow-icon {
  flex-shrink: 0;
  display: flex;
  color: var(--royal);
  transition: transform 0.2s ease;
}

.pages-in-section-link:hover {
  color: var(--royal);
  border-color: var(--royal);
  background: #fff;
  transform: translateY(-2px);
}

.pages-in-section-link:hover .arrow-icon {
  transform: translateX(3px);
}

/* ============================================================================
   RELATED PAGES — light-blue photo card grid beneath the quick-link band.
   ============================================================================ */

.related-pages {
  background: #f7f9fb;
  padding: 68px 0 76px;
  border-top: 1px solid #dfe7ef;
}

.related-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-page-card {
  display: block;
  padding: 12px 12px 20px;
  border: 1px solid #dbe4ec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 27, 51, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.related-page-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  background: var(--paper-dim);
}

.related-page-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-page-card:hover .related-page-photo img {
  transform: scale(1.05);
}

.related-page-card:hover {
  border-color: rgba(27, 58, 107, 0.38);
  box-shadow: 0 16px 34px rgba(10, 27, 51, 0.11);
  transform: translateY(-4px);
}

.related-page-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--royal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.related-page-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--royal);
  margin-bottom: 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.related-page-card:hover h3 {
  border-bottom-color: var(--royal);
}

.related-page-card p {
  font-size: 14px;
  color: var(--slate);
}

/* ============================================================================
   EXAM RESULTS — comparison bars
   ============================================================================ */

.results-compare {
  margin-top: 40px;
  max-width: 520px;
}

.result-bar-row:not(:last-child) {
  margin-bottom: 22px;
}

.result-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 8px;
}

.result-bar-label strong {
  color: var(--ink);
  font-weight: 600;
}

.result-bar-track {
  height: 10px;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.result-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.result-bar-fill.is-current {
  background: var(--royal);
}

.result-bar-fill.is-prior {
  background: #9db3d6;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

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

  .pages-in-section-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-pages-grid {
    grid-template-columns: 1fr 1fr;
  }

  .resource-feature {
    grid-template-columns: 1fr 1fr;
  }

  .programs-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: 40px;
    margin-right: 40px;
  }

  .feature-grid p.attribution,
  .mini-grid,
  blockquote {
    padding-left: 0;
    border-left: none;
  }

  blockquote {
    border-left: 3px solid var(--royal);
    padding-left: 20px;
  }

  .program-feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .program-feature--reverse .program-feature-photo {
    order: 0;
  }

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

  .stat:nth-child(3) {
    border-left: none;
  }

  .stat:nth-child(2n) {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .facts-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .quick-tiles {
    grid-template-columns: 1fr 1fr;
    padding: 0 22px;
  }

  .quick-tile:nth-child(3) {
    grid-column: span 2;
  }

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

  .stream-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .quick-links {
    display: none;
  }

  /* full nav lives in the Menu panel on smaller screens */
  .menu-panel-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100%;
  }

  .menu-photo {
    min-height: 260px;
  }

  .menu-nav {
    height: auto;
    padding: 28px 24px;
  }

  .menu-item--top {
    font-size: 18px;
    padding: 12px 0;
  }

  .menu-drill-heading {
    font-size: 26px;
  }

  .menu-photo::after {
    background: linear-gradient(to top, rgba(6, 15, 29, 0.9) 0%, rgba(6, 15, 29, 0.6) 28%, rgba(6, 15, 29, 0.18) 55%, rgba(6, 15, 29, 0) 75%);
  }

  .menu-photo-content h2,
  .menu-photo-content p {
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  }

  .menu-photo-content p {
    opacity: 0.9;
  }

  .program-search-wrap {
    flex-direction: column;
  }

  .program-search-wrap h2 {
    max-width: none;
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .bursar-contact-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
  }

  .bursar-contact-action {
    width: 100%;
    justify-content: center;
  }

  .wrap {
    padding: 0 22px;
  }

  .menu-photo-content {
    padding: 24px 22px;
  }

  .pages-in-section-grid {
    grid-template-columns: 1fr;
  }

  .related-pages-grid {
    grid-template-columns: 1fr;
  }

  .page-section-grid {
    grid-template-columns: 1fr;
  }

  .page-fact,
  .page-fact:nth-child(odd),
  .page-fact:nth-child(even) {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .page-fact:last-child {
    border-bottom: 0;
  }

  .resource-feature {
    grid-template-columns: 1fr;
    width: calc(100% - 44px);
    margin: 0 22px;
    padding: 40px 0;
  }

  .programs {
    padding-top: 52px;
  }

  .programs-photo {
    height: 280px;
    margin-left: 22px;
    margin-right: 22px;
  }

  .programs-rail {
    display: flex;
    max-width: none;
    margin: -36px 22px 0;
    overflow-x: auto;
  }

  .program-card {
    flex: 0 0 250px;
  }

  .resource-feature-image {
    min-height: 240px;
    border-radius: 6px 6px 0 0;
  }

  .resource-feature-copy {
    border-radius: 0 0 6px 6px;
    padding: 32px 26px 36px;
  }

  .site-header-wrap {
    padding: 18px 22px;
    min-height: 78px;
  }

  /* .nav-brand img no longer needs a mobile override — the clamp() rule
     above already scales it correctly at every width. */
  .subnav-crumbs {
    display: none;
  }

  /* saves vertical space; "Back to top" is the essential action on mobile */
  .subnav-links {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .subnav-top {
    margin-left: auto;
  }

  .header-nav-box {
    top: 50%;
    transform: translateY(-50%);
    right: 22px;
    gap: 0;
    background: var(--royal);
    border-radius: 8px;
    overflow: hidden;
    /* clips the buttons' own corners so only the shared outer radius shows */
  }

  /* Once quick-links are hidden (see 900px breakpoint above), only Search and
     Menu remain — they merge into the one shared box above instead of each
     carrying its own background, matching ox.ac.uk's mobile header. */
  .pill-box {
    height: 44px;
    background: transparent;
    border-radius: 0;
  }

  /* .drop-panel top/height no longer need a mobile override — --header-h
     is measured live via JS and already reflects whatever the header's
     actual height is at this breakpoint. */
  .header-action {
    padding: 10px 14px;
  }

  .page-intro {
    padding: 130px 0 48px;
  }

  .page-intro--photo {
    padding: 0;
    min-height: 64vh;
  }

  .page-intro--photo .wrap {
    padding-left: 22px;
    padding-right: 22px;
    padding-bottom: 40px;
  }

  .page-section {
    padding: 48px 0;
  }

  /* scroll-margin-top now inherited from the base rule, which uses --header-h */
  .streams-grid {
    grid-template-columns: 1fr;
  }

  .stream-card:last-child {
    grid-column: span 1;
  }

  .intro-stats .stat-item {
    padding-right: 24px;
    margin-right: 24px;
  }

  .intro-stats .num {
    font-size: 22px;
  }

  .search-panel-intro {
    padding: 48px 22px 40px;
  }

  .panel-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .search-panel-form {
    padding: 0 22px 20px;
  }

  .search-results {
    padding: 0 22px;
  }

  .hero-caption {
    padding: 0 22px 40px;
  }

  .hero-caption h1 {
    max-width: none;
  }

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

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

  section {
    padding: 64px 0;
  }

  .admissions-cta {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-connect {
    padding-bottom: 32px;
  }

  .hero {
    height: 74vh;
    min-height: 460px;
  }

  .home-intro-band {
    padding: 32px 0 24px;
  }

  .program-search-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .stream-toggle {
    padding-top: 0;
    flex-wrap: wrap;
  }

  .program-search-box-wrap {
    width: 100%;
  }

  .program-search-box input[type="text"] {
    width: 100%;
    max-width: none;
    flex: 1;
  }

  .program-suggestions {
    right: 0;
  }

  .quick-tiles {
    grid-template-columns: 1fr;
    padding: 0 22px;
  }

  .quick-tile:nth-child(3) {
    grid-column: span 1;
  }
}

/* On very small screens, drop the logo entirely rather than let it crowd
   or force the Search/Menu box to wrap — the wordmark isn't essential once
   there's this little horizontal room, and the header stays clean instead
   of cramming both elements onto one shrinking line. */
@media (max-width: 420px) {
  .header-action {
    padding: 15px 15px;
    font-size: 15px;
  }

  .header-action-label {
    font-size: 13px;
  }

  .program-search-wrap h2 {
    font-size: 15px;
  }

  .quick-tile-label {
    font-size: 15px;
    padding: 24px 14px 12px;
  }
}

/* ============================================================================
   SCROLL REVEAL — sections fade and rise into place as the user scrolls
   down to them. Applied via the [data-reveal] attribute rather than a
   class, and set by app.js at runtime (see the bottom of that file) —
   meaning this works across every page automatically without needing to
   hand-edit any HTML. One-time reveal per element, not a repeating
   scroll-up/scroll-down toggle. Fully disabled for anyone with
   prefers-reduced-motion set, since this is decorative, not functional.
   ============================================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2, .65, .2, 1), transform .7s cubic-bezier(.2, .65, .2, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.division-2 {
  height: 80px;
  /* controls the gap */
  width: 100%;
}

/* ==========================================================
   VSHS APPLICATION + USEFUL LINKS
   FULLY ISOLATED STYLES
   ========================================================== */

/* ----------------------------------------------------------
   1. APPLICATION SECTION
   ---------------------------------------------------------- */

.vshs-cards-application {
  display: block;
  position: relative;

  width: 100%;
  max-width: none;

  margin: 0;
  padding: 17px 42px 31px;

  background: #f3f3f3;

  box-sizing: border-box;

  overflow: hidden;

  /* Prevent inherited positioning from affecting this section */
  left: auto;
  right: auto;
  transform: none;
}


/* ----------------------------------------------------------
   2. SHARED INNER AREA
   ---------------------------------------------------------- */

.vshs-cards-container {
  display: block;
  position: relative;

  width: 100%;
  max-width: none;

  margin: 0;
  padding: 0;

  box-sizing: border-box;

  left: auto;
  right: auto;
  top: auto;

  transform: none;
}


/* ----------------------------------------------------------
   3. APPLICATION HEADING
   ---------------------------------------------------------- */

.vshs-cards-application-title {
  display: block;

  width: 100%;
  max-width: none;

  margin: 0 0 17px;
  padding: 0;

  color: #11145f;

  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;

  letter-spacing: -0.8px;

  text-align: left;

  box-sizing: border-box;
}


/* ----------------------------------------------------------
   4. MAIN CARD GRID
   ---------------------------------------------------------- */

.vshs-cards-grid {
  display: grid;

  width: 100%;
  max-width: none;

  margin: 0;
  padding: 0;

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

  gap: 23px;

  box-sizing: border-box;
}


/* ----------------------------------------------------------
   5. MAIN ACTION CARD
   ---------------------------------------------------------- */

.vshs-cards-action {
  display: flex;
  flex-direction: column;

  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;

  margin: 0;
  padding: 0;

  background: #ffffff;

  border-radius: 10px;

  overflow: hidden;

  box-shadow:
    0 8px 24px rgba(11, 27, 51, 0.08);

  box-sizing: border-box;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


/* ----------------------------------------------------------
   6. CARD HOVER
   ---------------------------------------------------------- */

.vshs-cards-action:hover {
  transform: translateY(-3px);

  box-shadow:
    0 14px 30px rgba(11, 27, 51, 0.09);
}


/* ----------------------------------------------------------
   7. CARD IMAGE
   ---------------------------------------------------------- */

.vshs-cards-action-image {
  display: block;

  width: calc(100% - 16px);
  max-width: calc(100% - 16px);

  height: 300px;

  margin: 8px 8px 0;
  padding: 0;

  object-fit: cover;

  border: 0;
  border-radius: 10px;

  box-sizing: border-box;
}


/* ----------------------------------------------------------
   8. CARD CONTENT
   ---------------------------------------------------------- */

.vshs-cards-action-content {
  display: flex;
  flex-direction: column;
  flex: 1;

  width: 100%;
  min-width: 0;

  margin: 0;
  padding: 11px 16px 16px;

  box-sizing: border-box;
}


/* ----------------------------------------------------------
   9. CARD TITLE
   ---------------------------------------------------------- */

.vshs-cards-action-title {
  display: block;

  margin: 0 0 7px;
  padding: 0;

  color: #11145f;

  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;

  letter-spacing: -0.25px;

  box-sizing: border-box;
}


/* ----------------------------------------------------------
   10. CARD TEXT
   ---------------------------------------------------------- */

.vshs-cards-action-text {
  display: block;

  margin: 0;
  padding: 0;

  color: #111111;

  font-size: 16px;
  line-height: 1.47;

  box-sizing: border-box;
}


/* ----------------------------------------------------------
   11. BUTTON
   ---------------------------------------------------------- */

.vshs-cards-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  align-self: flex-start;

  min-height: 44px;

  margin-top: 22px;
  padding: 9px 17px;

  color: #11145f;

  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(
      90deg,
      #34158f,
      #ff4d16
    ) border-box;

  border: 2px solid transparent;
  border-radius: 10px;

  text-decoration: none;

  font-size: 14px;
  line-height: 1.2;
  font-weight: 400;

  white-space: nowrap;

  box-sizing: border-box;

  transition: 0.2s ease;
}


/* ----------------------------------------------------------
   12. BUTTON HOVER
   ---------------------------------------------------------- */

.vshs-cards-button:hover {
  color: #11145f;

  background:
    linear-gradient(#fafafa, #fafafa) padding-box,
    linear-gradient(
      90deg,
      #ff4d16,
      #34158f
    ) border-box;
}


/* ==========================================================
   USEFUL LINKS
   ========================================================== */

.vshs-cards-useful {
  display: block;
  position: relative;

  width: 100%;
  max-width: none;

  margin: 0;

  padding: 32px 42px 60px;

  background: #f3f3f3;

  border-top: 32px solid #ffffff;

  box-sizing: border-box;

  overflow: hidden;

  left: auto;
  right: auto;

  transform: none;
}


/* ----------------------------------------------------------
   USEFUL LINKS HEADING
   ---------------------------------------------------------- */

.vshs-cards-useful-title {
  display: block;

  width: 100%;

  margin: 0 0 16px;
  padding: 0;

  color: #11145f;

  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;

  letter-spacing: -0.7px;

  text-align: left;

  box-sizing: border-box;
}


/* ----------------------------------------------------------
   USEFUL LINKS GRID
   ---------------------------------------------------------- */

.vshs-cards-link-grid {
  display: grid;

  width: 100%;
  max-width: none;

  margin: 0;
  padding: 0;

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

  gap: 23px;

  box-sizing: border-box;
}


/* ----------------------------------------------------------
   USEFUL LINK CARD
   ---------------------------------------------------------- */

.vshs-cards-link {
  display: flex;
  flex-direction: column;

  width: 100%;
  min-width: 0;
  max-width: none;

  min-height: 221px;

  margin: 0;
  padding: 19px 16px 15px;

  background: #ffffff;

  border-radius: 15px;

  box-shadow:
    0 8px 24px rgba(11, 27, 51, 0.08);

  box-sizing: border-box;
}


/* ----------------------------------------------------------
   USEFUL LINK TITLE
   ---------------------------------------------------------- */

.vshs-cards-link-title {
  display: block;

  margin: 0 0 9px;
  padding: 0;

  color: #11145f;

  font-size: 20px;
  line-height: 1.42;
  font-weight: 800;

  letter-spacing: -0.25px;

  box-sizing: border-box;
}


/* ----------------------------------------------------------
   USEFUL LINK TEXT
   ---------------------------------------------------------- */

.vshs-cards-link-text {
  display: block;

  margin: 0;
  padding: 0;

  color: #111111;

  font-size: 16px;
  line-height: 1.47;

  box-sizing: border-box;
}


/* Button goes to bottom of useful card */

.vshs-cards-link .vshs-cards-button {
  margin-top: auto;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1000px) {

  .vshs-cards-application {
    padding-left: 32px;
    padding-right: 32px;
  }

  .vshs-cards-useful {
    padding-left: 32px;
    padding-right: 32px;
  }


  .vshs-cards-application-title,
  .vshs-cards-useful-title {
    font-size: 32px;
  }


  .vshs-cards-grid,
  .vshs-cards-link-grid {
    gap: 18px;
  }


  .vshs-cards-action-image {
    height: 180px;
  }


  .vshs-cards-action-title,
  .vshs-cards-link-title {
    font-size: 18px;
  }


  .vshs-cards-action-text,
  .vshs-cards-link-text {
    font-size: 15px;
  }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

  /*
    THE IMPORTANT PART

    The section itself controls the horizontal alignment.
    No .container / max-width / auto-margin is involved.

    This gives:
        18px left
        18px right

    on a normal mobile viewport.
  */

  .vshs-cards-application {
    width: 100%;
    max-width: 100%;

    margin: 0;

    padding: 24px 18px 28px;

    overflow: hidden;

    box-sizing: border-box;
  }


  .vshs-cards-useful {
    width: 100%;
    max-width: 100%;

    margin: 0;

    padding: 28px 18px 45px;

    border-top-width: 22px;

    overflow: hidden;

    box-sizing: border-box;
  }


  /*
    Container is deliberately 100%.

    This is critical.
    It cannot become a 1200px centered container.
  */

  .vshs-cards-container {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
  }


  /* --------------------------------------------------------
     HEADINGS
     -------------------------------------------------------- */

  .vshs-cards-application-title,
  .vshs-cards-useful-title {
    width: 100%;

    font-size: 29px;
    line-height: 1.15;

    letter-spacing: -0.5px;

    text-align: left;
  }


  .vshs-cards-application-title {
    margin-bottom: 18px;
  }


  /* --------------------------------------------------------
     ONE COLUMN
     -------------------------------------------------------- */

  .vshs-cards-grid,
  .vshs-cards-link-grid {
    display: grid;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    grid-template-columns: minmax(0, 1fr);

    gap: 18px;

    box-sizing: border-box;
  }


  /* --------------------------------------------------------
     ACTION CARD
     -------------------------------------------------------- */

  .vshs-cards-action {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    margin: 0;

    box-sizing: border-box;
  }


  /* --------------------------------------------------------
     IMAGE
     -------------------------------------------------------- */

  .vshs-cards-action-image {
    display: block;

    width: calc(100% - 14px);
    max-width: calc(100% - 14px);

    height: 215px;

    margin: 7px;

    object-fit: cover;

    box-sizing: border-box;
  }


  /* --------------------------------------------------------
     CONTENT
     -------------------------------------------------------- */

  .vshs-cards-action-content {
    width: 100%;

    padding: 13px 16px 17px;

    box-sizing: border-box;
  }


  .vshs-cards-action-title,
  .vshs-cards-link-title {
    font-size: 20px;
  }


  .vshs-cards-action-text,
  .vshs-cards-link-text {
    font-size: 16px;
    line-height: 1.5;
  }


  /* --------------------------------------------------------
     BUTTON
     -------------------------------------------------------- */

  .vshs-cards-button {
    min-height: 44px;
  }


  /* --------------------------------------------------------
     USEFUL CARD
     -------------------------------------------------------- */

  .vshs-cards-link {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    min-height: 210px;

    box-sizing: border-box;
  }

}


/* ==========================================================
   SMALL PHONES
   ========================================================== */

@media (max-width: 430px) {

  .vshs-cards-application {
    padding-left: 14px;
    padding-right: 14px;
  }


  .vshs-cards-useful {
    padding-left: 14px;
    padding-right: 14px;
  }


  .vshs-cards-application-title,
  .vshs-cards-useful-title {
    font-size: 26px;
  }


  .vshs-cards-action-image {
    height: 190px;
  }


  .vshs-cards-action-title,
  .vshs-cards-link-title {
    font-size: 18px;
  }


  .vshs-cards-action-text,
  .vshs-cards-link-text {
    font-size: 15px;
  }


  .vshs-cards-button {
    max-width: 100%;

    white-space: normal;

    text-align: center;
  }

}


/* ==========================================================
   EXTRA SMALL PHONES
   ========================================================== */

@media (max-width: 360px) {

  .vshs-cards-application {
    padding-left: 12px;
    padding-right: 12px;
  }


  .vshs-cards-useful {
    padding-left: 12px;
    padding-right: 12px;
  }


  .vshs-cards-application-title,
  .vshs-cards-useful-title {
    font-size: 24px;
  }


  .vshs-cards-action-content {
    padding-left: 14px;
    padding-right: 14px;
  }

}

@media (max-width: 400px) {
  .nav-brand img { height: clamp(30px, 11vw, 40px); }
}

/* ================= COOKIE CONSENT PANEL ================= */

.vshs-cookie-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 99997;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0.25s ease;
  pointer-events: none;
}

.vshs-cookie-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.vshs-cookie-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: #0f1a4d;
  color: #fff;
  z-index: 99998;
  overflow-y: auto;
  padding: 40px 32px 100px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.vshs-cookie-overlay.open .vshs-cookie-panel {
  transform: translateX(0);
}

.vshs-cookie-trigger {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 48px;
  border: none;
  padding: 0;
  background: #0f1a4d;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  cursor: pointer;
  z-index: 9998;
  transition: background 0.2s ease;
}

.vshs-cookie-trigger:hover {
  background: #0a1338;
}

.vshs-cookie-trigger svg {
  position: absolute;
  left: 33%;
  color: #FFFFFF;
  top: 67%;
  transform: translate(-50%, -50%);
}

.vshs-cookie-panel h2 {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 20px;
  color: #fff;
}

.vshs-cookie-panel > p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 20px;
}

.vshs-cookie-panel a {
  color: #ffcc4d;
}

.vshs-cookie-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.vshs-cookie-btn {
  flex: 1;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.vshs-cookie-btn.solid {
  background: #fff;
  color: #0f1a4d;
  border: 2px solid #fff;
}

.vshs-cookie-btn.solid:hover { background: #e8e8e8; }

.vshs-cookie-btn.outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.vshs-cookie-btn.outline:hover { background: rgba(255, 255, 255, 0.1); }

.vshs-cookie-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 24px 0;
}

.vshs-cookie-row {
  margin-bottom: 20px;
}

.vshs-cookie-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vshs-cookie-row-head h3 {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
  color: #fff;
}

.vshs-cookie-panel h2,
.vshs-cookie-panel h3 {
  color: #fff !important;
}

.vshs-cookie-row p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.vshs-cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.vshs-cookie-toggle input {
  display: none;
}

.vshs-cookie-toggle .switch-track {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  position: relative;
  transition: background 0.2s ease;
}

.vshs-cookie-toggle .switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.vshs-cookie-toggle input:checked + .switch-track {
  background: #ffcc4d;
}

.vshs-cookie-toggle input:checked + .switch-track::after {
  transform: translateX(20px);
}

.vshs-cookie-toggle.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vshs-cookie-close-btn {
  width: 100%;
  background: #fff;
  color: #0f1a4d;
  border: none;
  padding: 15px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.vshs-cookie-close-btn:hover { background: #e8e8e8; }

@media (max-width: 480px) {
  .vshs-cookie-panel {
    width: 100%;
    max-width: 100vw;
    padding: 32px 20px 80px;
  }
}