/*
Theme Name: BVVM Crimson & Wine Editorial
Theme URI: https://bvvmhs.co.in
Description: B.V.V.M. High School child theme. Crimson #9D2235 & Wine #641320 editorial design system over GeneratePress.
Author: BVVM
Template: generatepress
Version: 2.1.0
Text Domain: bvvm
*/

/* ── Design Tokens & Color Palette ───────────────────────────────────────
   Crimson (#9D2235), Wine (#641320), Ink (#141B22), Warm Paper Ground (#F7F4F2),
   and Warm Neutral scale. Remapped across GeneratePress custom properties;
   Prata serif display + Inter body. Sharp corners, soft ink shadows.
   ─────────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
:root {
  /* ── Eudaimonia-matched editorial system: crimson / wine / ink ──
     Crimson #9D2235 primary action, wine #641320 deep, ink #141B22 text.
     Serif display (Prata) + Inter body. Sharp corners, soft ink shadows. ── */
  --color-bg: #F7F4F2;              /* warm paper ground */
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;            /* near-black ink */
  --color-text-soft: #5A5550;
  --color-accent: #9D2235;          /* crimson — primary action */
  --color-accent-dark: #641320;     /* wine — deep / hover */
  --color-accent-soft: #E9C4CC;     /* light-crimson secondary label */
  --color-divider: #E5DEDA;
  --color-footer: #4A0F1C;          /* deep wine footer */
  --color-footer-text: #F2D9DE;
  --color-footer-accent: #E8A6B2;

  /* heading/ink color (kept var name for compatibility) */
  --color-navy: #141B22;            /* ink — headings & dark text */
  --color-navy-dark: #0D1117;
  --color-navy-light: #3A3A3A;
  --color-silver: #6B6B6B;
  --color-silver-light: #F2EEEC;

  /* Warm-neutral scale */
  --color-neutral-100: #F7F4F2;
  --color-neutral-200: #ECE7E4;
  --color-neutral-300: #DDD6D2;
  --color-neutral-400: #BCB4AE;
  --color-neutral-500: #8A8A8A;
  --color-neutral-600: #5A5550;
  --color-neutral-700: #3A3A3A;
  --color-neutral-800: #2A2A2A;
  --color-neutral-900: #1A1A1A;

  /* Accent scale (crimson) */
  --color-accent-100: #FBEAEE;
  --color-accent-200: #F4D2D9;
  --color-accent-300: #E8A6B2;
  --color-accent-400: #D2607A;
  --color-accent-500: #B32A44;
  --color-accent-600: #9D2235;
  --color-accent-700: #8A1E2F;
  --color-accent-800: #641320;
  --color-accent-900: #4A0F1C;

  /* Silver scale (warm gray) */
  --color-silver-100: #F7F4F2;
  --color-silver-200: #ECE7E4;
  --color-silver-300: #DDD6D2;
  --color-silver-400: #BCB4AE;
  --color-silver-500: #8A8A8A;
  --color-silver-600: #6B6B6B;
  --color-silver-700: #4A4A4A;
  --color-silver-800: #2A2A2A;
  --color-silver-900: #1A1A1A;

  /* Typography — Prata (serif display) + Inter (body/UI) */
  --font-heading: "Prata", "Marcellus", Georgia, serif;
  --font-display: "Prata", "Marcellus", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Sharp / editorial radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  /* Soft, ink-tinted shadows only */
  --shadow-sm: 0 1px 3px rgba(20, 27, 34, 0.08);
  --shadow-md: 0 4px 14px rgba(20, 27, 34, 0.10);
  --shadow-lg: 0 10px 30px rgba(20, 27, 34, 0.14);

  --wrap: 1240px;
  --gutter: clamp(24px, 5vw, 64px);

  /* GeneratePress Custom Properties Remapped (crimson/ink) */
  --contrast: #1A1A1A;
  --contrast-2: #5A5550;
  --contrast-3: #8A8A8A;
  --base: #F7F4F2;
  --base-2: #FBF9F8;
  --base-3: #FFFFFF;
  --accent: #9D2235;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .bv-display {
  font-family: var(--font-heading);
  color: var(--color-navy);
}
/* Serif display: tighter line-height, gentle tracking, optical sizes */
h1 { font-weight: 600; font-size: clamp(34px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.01em; margin: 0 0 20px; }
h2 { font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.14; letter-spacing: 0; margin: 0 0 16px; }
h3 { font-weight: 600; font-size: clamp(19px, 2vw, 26px); line-height: 1.26; letter-spacing: 0; margin: 0 0 8px; }
h4 { font-weight: 600; font-size: 19px; line-height: 1.35; margin: 0 0 6px; }
h5 { font-weight: 600; font-size: 16px; }
h6 {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 12px; color: var(--color-navy); font-weight: 600;
}
p { margin: 0 0 14px; text-wrap: pretty; line-height: 1.6; }
a { color: var(--color-accent); text-underline-offset: 3px; transition: color 0.15s ease; }
a:hover, a:focus { color: var(--color-navy); }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: rgba(157, 34, 53, 0.16); color: var(--color-navy); }

.bv-kicker {
  display: block; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
  color: var(--color-accent); margin-bottom: 12px;
}
/* Eudaimonia-style crimson marker highlight — solid block behind keyword, white text */
.bv-mark {
  position: relative;
  color: #fff !important;              /* white on crimson for AA contrast */
  background: var(--color-accent);     /* solid crimson block */
  box-decoration-break: clone;         /* split across lines cleanly */
  padding: 0.08em 0.25em;              /* tighter to text */
  border-radius: 1px;
  line-height: 1.3;                    /* ensure full ascender/descender coverage */
}
@media (max-width: 700px) {
  .bv-mark { display: inline; }
}

/* Force white text inside any crimson highlight context */
.bv-mark,
h1 .bv-mark,
h2 .bv-mark,
h3 .bv-mark,
.bv-banner .bv-mark,
.bv-hero .bv-mark { color: #fff !important; }
.bv-lede { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; color: var(--color-neutral-700); max-width: 62ch; }
.text-muted { color: var(--color-neutral-600); }

/* ── Top Utility Bar ──────────────────────────────────────────────── */
.bv-topbar {
  background: var(--color-accent);          /* solid crimson */
  color: #fff;
  font-size: 13px;
  font-family: var(--font-body);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.bv-topbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 7px var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.bv-topbar__item { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; transition: color .15s ease; opacity: .92; }
.bv-topbar__item:hover { color: #fff; opacity: 1; }
.bv-topbar__est { font-weight: 700; letter-spacing: .01em; }
.bv-topbar__open { color: #FFFFFF; font-weight: 700; }   /* white, AA on crimson */
.bv-topbar__spacer { flex: 1 1 auto; }
@media (max-width: 768px) {
  .bv-topbar__inner { gap: 10px; font-size: 12px; justify-content: center; }
  .bv-topbar__est { display: none; }
  .bv-topbar__spacer { display: none; }
}

/* ── Solid White Header (KSMS flat style) ──────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--color-divider);
  box-shadow: 0 2px 10px rgba(20, 27, 34, 0.06);  /* ink-tinted, not blue */
}
.site-header .inside-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px var(--gutter) !important;  /* reduced from 40px */
  flex-wrap: wrap !important;
}
/* Order 1: Crest logo on LEFT — prominent, with solid background to kill checkerboard */
.site-header .site-logo {
  order: 1 !important;
  margin-right: 12px !important;
  flex: none !important;
  display: flex !important;
  align-items: center;
  background: #fff;                     /* solid white behind logo — kills checkerboard */
  padding: 4px 8px;                     /* breathing room */
  border-radius: 2px;                   /* sharp corner, matches system */
}
.site-header .site-logo img, .site-header .header-image {
  width: 72px !important;
  height: 72px !important;
  max-width: none !important; max-height: none !important;
  padding: 0 !important;      /* remove padding */
  background: transparent !important;  /* remove white box */
  border-radius: 50% !important;  /* embossed-coin crest, matches mobile */
  object-fit: contain !important;
  border: 2px solid #fff !important;
  box-shadow: 0 4px 10px rgba(20, 27, 34, 0.28), inset 0 2px 3px rgba(255, 255, 255, 0.55), inset 0 -3px 6px rgba(20, 27, 34, 0.22) !important;
}
.site-logo img:hover, .site-header .header-image:hover {
  transform: none !important;
  box-shadow: 0 6px 14px rgba(20, 27, 34, 0.32), inset 0 2px 3px rgba(255, 255, 255, 0.55), inset 0 -3px 6px rgba(20, 27, 34, 0.22) !important;
}

/* Order 2: School Title next to logo (KSMS lockup) */
.site-branding {
  order: 2 !important;
  margin-right: auto !important;
  text-align: left;
}
.site-branding .main-title {
  font-family: var(--font-heading) !important;
  font-weight: 800 !important;
  font-size: clamp(20px, 2.4vw, 28px) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 1px !important;
}
.site-branding .main-title a { color: var(--color-navy) !important; text-decoration: none !important; }
.site-branding .site-description {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--color-neutral-600) !important;
  margin: 0 !important;
}

/* Order 3: Nav last (tablet) — flex defaults it to order:0, which paints
   it first and wraps the school title onto a second row. */
.main-navigation {
  order: 3 !important;
}

/* Desktop (>1180px): ONE row everywhere — nav left, brand lockup (logo +
   title) right of APPLY NOW. 1181–1279px uses the compact sizes below, so
   the header never splits into the old two-row layout. <=1180px = drawer. */
@media (min-width: 1181px) {
  .main-navigation {
    order: 1 !important;
    margin-right: auto !important;
  }
  /* Slim the nav links so nav + logo + title fit one row. CTA keeps its own padding. */
  .main-navigation .main-nav ul li a {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .site-header .site-logo {
    order: 2 !important;
  }
  .site-branding {
    order: 3 !important;
    margin-right: 0 !important;
  }
}
@media (min-width: 1181px) and (max-width: 1279px) {
  .site-header .site-logo { margin-right: 8px !important; padding: 2px 4px; }
  .site-header .site-logo img, .site-header .header-image { width: 56px !important; height: 56px !important; }
  .site-branding .main-title { font-size: 22px !important; }
  .site-branding .site-description { display: none !important; }
  .main-navigation .main-nav ul li:not(.nav-cta) > a { padding-left: 7px !important; padding-right: 7px !important; font-size: 15px; }
  .main-navigation .main-nav ul li.nav-cta > a { margin-left: 8px; padding: 10px 14px !important; }
}

/* Mobile: center the logo + title, hamburger on right */
@media (max-width: 768px) {
  .site-header .inside-header {
    justify-content: center !important;
    gap: 8px !important;
    padding: 6px var(--gutter) !important;
  }
  .site-header .site-logo {
    order: 1 !important;
    margin-right: 10px !important;
  }
  .site-header .site-logo img {
    width: 50px !important;
    height: 50px !important;
  }
  .site-branding {
    order: 2 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    flex: 1 1 auto;
    text-align: center;
  }
  .site-branding .main-title {
    font-size: clamp(18px, 2.2vw, 24px) !important;
  }
  .site-branding .site-description {
    font-size: 11px !important;
  }
  .main-navigation {
    order: 3 !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
}
.main-navigation .main-nav ul li:hover > a { color: var(--color-accent); }
.main-navigation .main-nav ul li:hover > a::after { transform: scaleX(1); }
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a { color: var(--color-accent); }
.main-navigation .main-nav ul li.current-menu-item > a::after,
.main-navigation .main-nav ul li.current_page_item > a::after { transform: scaleX(1); }

/* Nav CTA button — crimson solid to stand apart, sharp radius */
.main-navigation .main-nav ul li.nav-cta > a {
  background: var(--color-accent) !important;
  color: #ffffff !important;
  border-radius: 0 !important;
  margin-left: 12px;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(20, 27, 34, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}
.main-navigation .main-nav ul li.nav-cta > a::after { display: none; }
.main-navigation .main-nav ul li.nav-cta:hover > a {
  background: var(--color-navy) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(20, 27, 34, 0.28);
}

/* Mobile Responsive Drawer (tablets + small laptops too: <=1180px) */
@media (max-width: 1180px) {
  .main-navigation .main-nav > ul {
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px;
    width: 100%;
    padding: 10px 0 4px;
  }
  .main-navigation.toggled .main-nav > ul { display: flex !important; }
  .main-navigation .main-nav > ul > li { display: block; width: 100%; }
  .main-navigation .main-nav ul li a { display: block; padding: 12px 16px; font-size: 16px; }
  /* GP's parent CSS sets the same selector to line-height:60px and loads
     later, so equal specificity loses — .toggled outranks it. */
  .main-navigation.toggled .main-nav ul li a { line-height: 1.4; }
  .main-navigation .main-nav ul li a::after { left: 16px; right: auto; width: 28px; bottom: 6px; }
  .main-navigation .main-nav ul li.nav-cta > a { margin: 8px 16px 0; text-align: center; }
  .site-header .inside-header { flex-wrap: wrap !important; }
  .main-navigation { width: 100%; margin-top: 8px; margin-left: 0 !important; }
  .menu-toggle {
    display: inline-flex !important; align-items: center; gap: 8px;
    background: var(--color-accent); color: #fff; border: none; cursor: pointer;
    font-family: var(--font-body); font-weight: 700; font-size: 15px;
    padding: 10px 18px; border-radius: 0; margin-left: auto;
  }
  .menu-toggle .mobile-menu { color: #fff; }
  /* collapse the orphaned hamburger gap — dock it inline with logo row */
  .site-header .inside-header {
    align-items: center !important;
    gap: 12px !important;
    padding: 10px var(--gutter) !important;
    justify-content: space-between !important;  /* logo left, hamburger right */
  }
  .menu-toggle { order: 3 !important; border-radius: 0; margin-left: auto !important; }
}

/* <=1180px: one compact row — logo + title left, hamburger right */
@media (max-width: 1180px) {
  .site-header .inside-header {
    flex-wrap: nowrap !important;  /* the 960 block wraps; that strands the toggle on row 3 */
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 6px var(--gutter) !important;  /* compact: header is sticky on phones */
  }
  .site-header .site-logo {
    order: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto;
  }
  .site-header .site-logo img {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;  /* the crest is round — embossed-coin look */
    border: 2px solid #fff !important;
    box-shadow: 0 4px 10px rgba(20, 27, 34, 0.28), inset 0 2px 3px rgba(255, 255, 255, 0.55), inset 0 -3px 6px rgba(20, 27, 34, 0.22) !important;
  }
  .site-branding {
    order: 1 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    flex: 1 1 auto;
    min-width: 0;  /* lets long titles shrink instead of pushing the toggle off */
    text-align: left;  /* left-align, not center */
    margin-bottom: 0 !important;
  }
  /* GeneratePress gives the toggle a 60px line-height and wide padding (108x80),
     which set the header height. 44px keeps the tap target and a slim row. */
  .main-navigation .menu-toggle {
    line-height: 44px !important; height: 44px; padding: 0 12px !important;
  }
  /* The invisible "Menu" label took 45px from the school name; keep it for
     screen readers only (it is still the button's accessible name). */
  .main-navigation .menu-toggle .mobile-menu {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
  .site-header .site-logo { padding: 0 !important; }
  .site-branding .main-title {
    font-size: 18px !important;  /* one line beside the 46px crest */
    line-height: 1.2 !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* The sticky header covered ~20% of a phone screen; the tagline is also in
     the page copy, so it is dropped here to keep the header one slim row. */
  .site-branding .site-description {
    display: none !important;
  }
  .main-navigation {
    order: 2 !important;
    width: auto !important;  /* the 960 block sets 100%, forcing its own row */
    margin-left: 0 !important;
    margin-top: 0 !important;
    flex: 0 0 auto;
    position: relative;  /* anchors the open dropdown below */
  }
  /* Open menu overlays below the header instead of squeezing into the row */
  .main-navigation.toggled .main-nav > ul {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: min(78vw, 300px) !important;
    background: var(--color-surface) !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: 2px !important;
    padding: 6px 0 !important;
    z-index: 200 !important;
  }
}
@media (max-width: 768px) {
  /* Kill GeneratePress 40px padding on mobile */
  .inside-top-bar,
  .inside-header,
  .site-main .wp-block-group__inner-container {
    padding: 6px var(--gutter) !important;
  }
  .entry-content .alignwide,
  body:not(.no-sidebar) .entry-content .alignfull {
    margin-left: -6px !important;
    width: calc(100% + 12px) !important;
    max-width: calc(100% + 12px) !important;
  }
}

/* ── Modern Buttons (eudaimonia: sharp, uppercase, crimson) ──────────────── */
.wp-block-button__link, .btn, .bv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; line-height: 1.2;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  padding: 16px 30px; border-radius: 0;
  background: var(--color-accent); color: #ffffff;
  border: 1px solid var(--color-accent);
  box-shadow: 0 4px 14px rgba(20, 27, 34, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}
.wp-block-button__link:hover, .btn:hover, .bv-btn:hover {
  background: var(--color-navy); border-color: var(--color-navy); color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(20, 27, 34, 0.22);
}
.is-style-outline .wp-block-button__link, .btn-secondary, .bv-btn--secondary {
  background: #ffffff !important; color: var(--color-accent) !important;
  border: 1px solid var(--color-navy) !important;
  box-shadow: none !important;
}
.is-style-outline .wp-block-button__link:hover, .btn-secondary:hover, .bv-btn--secondary:hover {
  background: var(--color-navy) !important; color: #ffffff !important;
  border-color: var(--color-navy) !important;
  transform: translateY(-2px);
}

/* ── Layout ───────────────────────────────────────────────────────────── */
.site-content, .inside-article, .entry-content > * { margin-inline: auto; }
.grid-container { max-width: var(--wrap); }
.separate-containers .site-main { margin: 0; }
.separate-containers .inside-article,
.separate-containers .paging-navigation,
.separate-containers .comments-area { padding: 0; }
.entry-content p:not([class]) { max-width: 70ch; }
.page .entry-header { display: none; }

/* ── Sections & Blobs ─────────────────────────────────────────────────── */
.bv-section { padding: clamp(40px, 6vw, 84px) 0; }
.bv-section--tight { padding-block: clamp(24px, 4vw, 48px); }
.bv-hero { padding: clamp(36px, 6vw, 88px) 0 clamp(28px, 4vw, 56px); position: relative; }
/* Inner-page banner: KSMS-style left-accent bar + kicker + title on light bg */
.bv-banner {
  position: relative; padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
  background: var(--color-surface); border-left: 5px solid var(--color-accent);
  box-shadow: var(--shadow-sm); border-radius: 2px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.bv-banner .bv-kicker { display: block; margin-bottom: 8px; }
.bv-banner h1 { margin: 0; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; color: var(--color-navy); }
.bv-banner .bv-lede { margin: 14px 0 0; max-width: 60ch; }

.bv-section > *, .bv-hero > * { max-width: var(--wrap); margin-inline: auto; }
.bv-section .alignwide, .bv-hero .alignwide,
.bv-section .alignfull, .bv-hero .alignfull {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: 0;
}
.bv-blob {
  position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
  width: clamp(200px, 30vw, 360px); aspect-ratio: 1; opacity: 0.6;
  display: none; /* removed — blob is generic decoration, not editorial photography */
}
.bv-blob--right { right: -12%; top: -30%; background: var(--color-accent-100); }
.bv-blob--left  { left: -12%;  top: -28%; background: var(--color-silver-200); }
.bv-section, .bv-hero { overflow-x: clip; }
.bv-section > *, .bv-hero > * { position: relative; z-index: 1; }
/* ...but not the blobs. That rule and .bv-blob above have equal specificity,
   so the later one was winning and every decorative circle was sitting in the
   flow as a 360px-tall empty block, pushing each page's headline that far down.
   One extra class outranks it and puts them back in the background. */
.bv-hero > .bv-blob, .bv-section > .bv-blob { position: absolute; z-index: 0; }

/* ── Learning journey ─────────────────────────────────────────────────── */
/* An SVG-path marquee without the marquee library. offset-path pins each chip
   to the curve and offset-distance walks it along; a negative, staggered
   animation-delay spreads them out. Those are the same two properties a JS
   implementation animates — the browser can do it alone, so it does. */
.bv-journey {
  --dur: 36s;
  --n: 7;    /* chips on the curve; the delay stagger divides by this */
  --s: 1;    /* path coordinates are fixed px, so responsiveness is a scale */
  position: relative;
  width: 100%;
  color: var(--color-neutral-600);
}
.bv-journey__caption {
  margin: 0 0 2px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--color-neutral-600);
}
.bv-journey__track { display: flex; flex-wrap: wrap; gap: 8px; }
.bv-journey__stop {
  display: inline-block; white-space: nowrap;
  padding: 7px 15px; border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid rgba(161, 161, 166, 0.35);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font-size: 13.5px; font-weight: 700; color: var(--color-navy);
}
.bv-journey__stop:last-child {
  background: var(--color-navy); border-color: var(--color-navy); color: #ffffff;
}
.bv-journey__path { display: none; }

/* The animated version is the enhancement. Everything above already reads as a
   Nursery-to-Class-10 list, which is what a narrow screen, an older browser or
   a visitor who asked for less motion gets. */
@supports (offset-path: path("M0 0")) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .bv-journey { height: calc(250px * var(--s)); }
    .bv-journey__stage {
      position: absolute; top: 22px; left: 0;
      width: 1100px; height: 240px;
      transform: scale(var(--s)); transform-origin: top left;
    }
    .bv-journey__path {
      display: block; position: absolute; inset: 0;
      width: 1100px; height: 240px; overflow: visible;
      color: rgba(161, 161, 166, 0.65);
    }
    .bv-journey__track { display: block; }
    .bv-journey__stop {
      position: absolute; top: 0; left: 0;
      offset-path: path("M40 180 C 220 40, 380 40, 550 140 S 880 235, 1060 58");
      offset-rotate: 0deg;          /* default is auto — chips would tumble */
      offset-distance: 0%;
      will-change: offset-distance;
      animation: bv-journey-run var(--dur) linear infinite;
      animation-delay: calc(var(--i) * (var(--dur) / var(--n)) * -1);
    }
    /* The library calls this slowdownOnHover; a full stop is easier to read. */
    .bv-journey:hover .bv-journey__stop,
    .bv-journey:focus-within .bv-journey__stop { animation-play-state: paused; }
  }
  @media (min-width: 900px) { .bv-journey { --s: 0.78; } }
  @media (min-width: 1120px) { .bv-journey { --s: 0.92; } }
  @media (min-width: 1260px) { .bv-journey { --s: 1; } }
}
@keyframes bv-journey-run { to { offset-distance: 100%; } }

.bv-split {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
@media (min-width: 782px) {
  .bv-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bv-split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}

/* ── Full-bleed hero band (KSMS-style: real photo + overlay card) ──────── */
.bv-hero--bleed { padding: 0; }
.bv-hero--bleed .bv-hero__media {
  position: relative; width: 100%; aspect-ratio: 16/7; min-height: 380px;
  overflow: hidden; background: var(--color-accent);
}
.bv-hero--bleed .bv-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bv-hero--bleed .bv-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(74,15,28,.74) 0%, rgba(74,15,28,.32) 55%, rgba(74,15,28,0) 100%);
}
.bv-hero--bleed .bv-hero__inner {
  position: absolute; inset: 0; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; padding: var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
}
.bv-hero--bleed .bv-hero__card {
  max-width: 620px; color: #fff;
  /* constrain so headline never orphans 'is' or 'Jamshedpur' */
  max-width: min(620px, 58ch);
  /* full scrim behind text block for contrast guarantee */
  position: relative;
}
.bv-hero--bleed .bv-hero__card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,27,34,.92) 0%, rgba(20,27,34,.78) 40%, rgba(20,27,34,.12) 100%);
  z-index: -1; border-radius: 2px;
}
@media (max-width: 700px) {
  .bv-hero--bleed .bv-hero__card { padding-bottom: 72px; } /* clear the sticky call bar */
}
/* Eyebrow line — crimson, tracked, uppercase, sits above H1 */
.bv-hero__eyebrow-row { margin-bottom: 10px; }
.bv-hero__eyebrow-row .bv-kicker {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent);
  border-left: 3px solid var(--color-accent); padding-left: 8px; margin-bottom: 8px;
}
.bv-hero--bleed h1 {
  color: #fff; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08;
  margin: 0 0 16px; text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
.bv-hero--bleed .bv-lede { color: #F6ECEE; max-width: 56ch; font-size: clamp(15px, 1.6vw, 18px); margin: 0 0 24px; }
.bv-hero--bleed .bv-btn-row { gap: 12px; }
.bv-hero--bleed .bv-btn { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.bv-hero--bleed .bv-btn:hover { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.bv-hero--bleed .bv-btn--ghost { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,.85); }
.bv-hero--bleed .bv-btn--ghost:hover { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
@media (max-width: 700px) {
  .bv-hero--bleed .bv-hero__media { aspect-ratio: 4/5; min-height: 430px; }
  .bv-hero--bleed .bv-hero__media::after {
    background: linear-gradient(0deg, rgba(74,15,28,.82) 0%, rgba(74,15,28,.30) 72%);
  }
}

/* ── Gradient & Rich Visual Polish ────────────────────────────────────── */
.bv-text-gradient {
  background: linear-gradient(135deg, #9D2235 0%, #641320 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.bv-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px; border-radius: 2px;
  background: var(--color-surface);
  border: 1.5px solid rgba(157,34,53,0.2);
  box-shadow: 0 10px 28px rgba(20,27,34,0.12), 0 2px 6px rgba(20,27,34,0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.bv-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 48px rgba(157, 34, 53, 0.18), 0 4px 12px rgba(157, 34, 53, 0.06); /* crimson, not navy blue */
}
.bv-card h3 { margin: 0; color: var(--color-navy); }
.bv-card p { font-size: 14.5px; color: var(--color-neutral-700); margin: 0; flex: 1; }
.bv-card__meta {
  font-size: 12px; margin-top: 4px; font-weight: 600;
  color: var(--color-neutral-600);
}
.bv-card--accent   { background: var(--color-accent-100); border-color: rgba(157,34,53,0.22); }
.bv-card--accent-2 { background: var(--color-neutral-100); border-color: rgba(107,107,107,0.30); }
.bv-card--sand     { background: var(--color-accent-100); border-color: rgba(157,34,53,0.24); }
.bv-card--moss     { background: var(--color-neutral-100); border-color: rgba(157,34,53,0.20); }
.bv-card__step {
  font-family: var(--font-heading); font-size: 32px; font-weight: 800; line-height: 1;
  color: var(--color-navy); margin: 0 0 10px;
}

/* ── Feature rows ─────────────────────────────────────────────────────── */
.bv-feature {
  display: grid; grid-template-columns: 1fr; gap: 6px 48px;
  padding: 18px 0; align-items: baseline;
  border-top: 1px solid rgba(161, 161, 166, 0.25);
}
.bv-feature:first-of-type { border-top: 0; }
@media (min-width: 782px) { .bv-feature { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); } }
.bv-feature h3 {
  position: relative; padding-left: 28px; margin: 0;
  font-family: var(--font-heading); font-weight: 700; font-size: clamp(20px, 2.2vw, 24px);
  color: var(--color-navy);
}
.bv-feature h3::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 14px; height: 14px; border-radius: 50%; background: var(--color-accent);
}
.bv-feature p { margin: 0; color: var(--color-neutral-700); max-width: 56ch; font-size: 15.5px; }

/* ── Tags & Pill Badges ────────────────────────────────────────────────── */
.bv-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.bv-tag {
  display: inline-flex; align-items: center; font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 2px; letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bv-tag:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(157, 34, 53, 0.12); } /* crimson tint, not navy */
.bv-tag--accent   { background: var(--color-accent-100); color: var(--color-navy); }
.bv-tag--silver   { background: var(--color-neutral-200); color: var(--color-neutral-800); }
.bv-tag--accent-2 { background: var(--color-neutral-200); color: var(--color-neutral-800); }
.bv-tag--neutral  { background: var(--color-neutral-200); color: var(--color-neutral-800); }
.bv-tag--outline  { border: 1px solid var(--color-silver); color: var(--color-navy); }

/* ── Media ────────────────────────────────────────────────────────────── */
.bv-media { border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(161, 161, 166, 0.2); }
.bv-media img { width: 100%; height: 100%; object-fit: cover; }
.bv-media--flat { box-shadow: none; }
.washed { filter: saturate(0.85) contrast(0.95); }

.bv-grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 782px) { .bv-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── Quote ────────────────────────────────────────────────────────────── */
.bv-quote {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4;
  color: var(--color-navy); margin: 0 0 14px; max-width: 46ch;
}
.bv-quote-cite { font-size: 14px; color: var(--color-neutral-600); font-style: normal; }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.bv-cta {
  background: var(--color-navy);
  color: #ffffff;
  border-radius: 2px;
  padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 56px);
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
.bv-cta h2, .bv-cta h3 { color: #ffffff; margin: 0 0 8px; }
.bv-cta p { margin: 0; opacity: 0.9; max-width: 52ch; }

/* ── CTA Buttons & Micro-Interactions (eudaimonia: sharp, uppercase) ──── */
.bv-btn, .wp-block-button__link, .wpcf7-submit, .main-navigation .main-nav ul li.nav-cta > a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; line-height: 1.2;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 0; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  background: var(--color-accent); color: #ffffff;
  box-shadow: 0 4px 14px rgba(20, 27, 34, 0.12);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
}
.bv-btn:hover, .wp-block-button__link:hover, .wpcf7-submit:hover {
  background: var(--color-navy); color: #ffffff;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(20, 27, 34, 0.22);
}
.bv-btn:active, .wpcf7-submit:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 2px 8px rgba(20, 27, 34, 0.2);
}

.bv-btn--secondary, .is-style-outline > .wp-block-button__link {
  background: transparent; color: var(--color-accent); border: 1px solid var(--color-navy);
  box-shadow: none;
}
.bv-btn--secondary:hover, .is-style-outline > .wp-block-button__link:hover {
  background: var(--color-navy); color: #ffffff;
  border-color: var(--color-navy);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 18px rgba(20, 27, 34, 0.12);
}
.bv-btn--ghost {
  background: transparent; color: var(--color-navy); padding-inline: 12px; box-shadow: none;
}
.bv-btn--ghost:hover {
  background: rgba(20, 27, 34, 0.06); color: var(--color-navy-dark);
  transform: translateY(-1px);
}
.bv-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Forms (Contact Form 7 & Controls) ────────────────────────────────── */
.bv-form-card, .wpcf7 form {
  background: #FFFFFF !important;
  border-radius: 2px;
  border: 2px solid rgba(157,34,53,0.2) !important;
  box-shadow: 0 12px 36px rgba(20,27,34,0.08), 0 2px 6px rgba(20,27,34,0.04) !important;
  padding: clamp(24px, 4vw, 44px);
}
.bv-form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 600px) { .bv-form-grid { grid-template-columns: 1fr 1fr; } }
.bv-form-grid .bv-span-2 { grid-column: 1 / -1; }
.bv-field > label, .wpcf7 label {
  display: block; font-size: 13.5px; font-weight: 700;
  margin-bottom: 6px; color: #1E293B;
}
.bv-field .required, .wpcf7 .required { color: var(--color-accent); font-weight: 800; }

.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 input[type="date"], .wpcf7 select, .wpcf7 textarea,
.bv-field input, .bv-field select, .bv-field textarea {
  width: 100%; min-height: 48px; padding: 12px 18px;
  font: inherit; font-size: 15px; font-weight: 500; color: #0F172A;
  caret-color: var(--color-accent);
  background: #F8FAFC !important;
  border: 2px solid #94A3B8 !important;
  border-radius: 2px !important;  /* sharp 2px — matches system */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.wpcf7 textarea, .bv-field textarea { min-height: 120px; border-radius: 2px !important; resize: vertical; }
.wpcf7 input:hover, .wpcf7 textarea:hover, .wpcf7 select:hover,
.bv-field input:hover, .bv-field select:hover, .bv-field textarea:hover {
  border-color: var(--color-accent) !important; background: #FFFFFF !important;
}
.wpcf7 input:focus-visible, .wpcf7 textarea:focus-visible, .wpcf7 select:focus-visible,
.bv-field input:focus, .bv-field select:focus, .bv-field textarea:focus {
  border-color: var(--color-accent) !important; background: #FFFFFF !important; outline: none;
  box-shadow: 0 0 0 4px rgba(157, 34, 53, 0.15) !important;  /* crimson tint, not blue */
}
.wpcf7 .wpcf7-submit { width: 100%; }
.wpcf7-not-valid-tip { font-size: 13px; color: #a02c1f; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output {
  border-radius: 2px; border-width: 1px;
  font-size: 14.5px; padding: 12px 16px; margin: 16px 0 0;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--color-navy); background: var(--color-accent-100); color: var(--color-navy); }
.wpcf7-spinner { display: block; margin: 8px auto 0; }

/* ── Trust Metrics Bar ────────────────────────────────────────────────── */
.bv-trust-bar {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; margin: clamp(24px, 4vw, 40px) 0;
  background: var(--color-surface); border-radius: 2px;
  border: 1px solid rgba(161, 161, 166, 0.2);
  padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-sm);
}
@media (min-width: 782px) {
  .bv-trust-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bv-trust-metric:not(:last-child) {
    border-right: 1px solid rgba(161, 161, 166, 0.2);
  }
}
.bv-trust-metric { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; }
.bv-trust-metric:not(:last-child) { border-right: 1px solid rgba(161, 161, 166, 0.22); }
@media (max-width: 781px) {
  .bv-trust-metric:nth-child(odd):not(:last-child) { border-right: 1px solid rgba(161, 161, 166, 0.22); }
  .bv-trust-metric:nth-child(even) { border-right: 0; }
}
.bv-trust-metric__value {
  font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  line-height: 1.1; color: var(--color-navy); margin-bottom: 4px;
}
.bv-trust-metric__label {
  font-size: 13.5px; font-weight: 600; color: var(--color-neutral-700);
}

/* ── Urgency Banner ────────────────────────────────────────────────────── */
.bv-urgency-banner {
  background: var(--color-surface);
  border: 2px solid var(--color-navy);
  border-radius: 2px;
  padding: clamp(28px, 5vw, 44px) clamp(24px, 5vw, 52px);
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-md);
  margin-top: clamp(24px, 4vw, 48px);
}
.bv-urgency-banner__content { max-width: 580px; }
.bv-urgency-banner h2 { font-size: clamp(22px, 3vw, 28px); margin: 6px 0 10px; color: var(--color-navy); }
.bv-urgency-banner p { font-size: 15.5px; color: var(--color-neutral-700); margin: 0; }

/* Kept for any wide block that still needs to scroll on a phone. The fee-table
   rules that used to live here went with the fee content itself. */
.bv-table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0; }

/* ── Admissions FAQ ───────────────────────────────────────────────────── */
/* Native <details>/<summary>: keyboard and screen-reader support for free, and
   browsers open a closed <details> to reveal a find-in-page match inside it. */
.bv-faq { display: grid; gap: 10px; margin-top: 20px; }
.bv-faq__item {
  background: var(--color-surface); border: 1px solid rgba(161, 161, 166, 0.28);
  border-radius: var(--radius-md); padding: 0 18px;
}
.bv-faq__item summary {
  cursor: pointer; list-style: none; padding: 16px 28px 16px 0; position: relative;
  font-family: var(--font-heading); font-weight: 700; font-size: 16px;
  color: var(--color-navy);
}
.bv-faq__item summary::-webkit-details-marker { display: none; }
.bv-faq__item summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; line-height: 1; color: var(--color-neutral-600);
}
.bv-faq__item[open] summary::after { content: "\2013"; }
.bv-faq__item summary:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 3px; }
.bv-faq__item > p {
  margin: 0; padding: 0 0 18px; font-size: 14.5px; line-height: 1.6;
  color: var(--color-neutral-700); max-width: 72ch;
}

/* ── Campus Facilities Grid ───────────────────────────────────────────── */
.bv-facilities-grid {
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.bv-facility-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border-radius: 2px; background: var(--color-surface);
  border: 1px solid rgba(161, 161, 166, 0.2);
  box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bv-facility-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(161, 161, 166, 0.4); }
.bv-facility-card__icon {
  width: 48px; height: 48px; border-radius: 2px;
  background: var(--color-accent-100); color: var(--color-navy);
  display: grid; place-content: center;
}
.bv-facility-card h3 { margin: 0; font-size: 18px; color: var(--color-navy); }
.bv-facility-card p { font-size: 14px; color: var(--color-neutral-700); margin: 0; }

/* ── Form Alerts & Validation States ─────────────────────────────────── */
.form-alert-error {
  background: #fdf2f2; border: 1px solid #f8b4b4; color: #9b1c1c;
  padding: 14px 18px; border-radius: 2px; font-size: 14px;
  margin-bottom: 20px; display: flex; align-items: flex-start; gap: 10px;
}
.form-success-card {
  background: var(--color-accent-100); border: 1px solid var(--color-accent-200);
  border-radius: 2px; padding: clamp(24px, 4vw, 40px); text-align: center;
}
.form-success-card h3 { color: var(--color-navy); margin-bottom: 8px; }
.form-success-card p { font-size: 15px; color: var(--color-neutral-800); margin-bottom: 16px; }
.form-success-card .ticket-id {
  display: inline-block; font-family: monospace; font-weight: 700; font-size: 16px;
  background: var(--color-surface); padding: 8px 16px; border-radius: 2px;
  color: var(--color-navy); border: 1px solid var(--color-silver); margin-bottom: 20px;
}

/* ── Contact detail rows ──────────────────────────────────────────────── */
.bv-contact-list { display: flex; flex-direction: column; gap: 16px; }
.bv-contact-row {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--color-surface); border-radius: 2px;
  border: 1px solid rgba(161, 161, 166, 0.2);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.bv-contact-row:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.bv-contact-row svg { flex: none; color: var(--color-navy); margin-top: 3px; }
.bv-contact-row h3 { margin: 0 0 2px; font-size: 16px; color: var(--color-navy); }
.bv-contact-row p, .bv-contact-row a { margin: 0; font-size: 14.5px; color: var(--color-neutral-700); }

/* Non-clickable address row stays flat */
.bv-contact-row:not(:has(a[href^="tel:"], a[href^="mailto:"])) {
  pointer-events: none;
}
.bv-contact-row:not(:has(a[href^="tel:"], a[href^="mailto:"])):hover {
  border-color: rgba(161, 161, 166, 0.2);
  box-shadow: var(--shadow-sm);
  transform: none;
}

/* ── Gallery ──────────────────────────────────────────────────────────── */
.bv-gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 782px) { .bv-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bv-gallery figure, .bv-gallery .bv-media { margin: 0; border-radius: 2px; overflow: hidden; }
.bv-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 782px) {
  .bv-gallery .bv-g-hero { grid-column: span 2; grid-row: span 2; }
  .bv-gallery .bv-g-hero img { aspect-ratio: auto; height: 100%; }
  .bv-gallery .bv-g-wide { grid-column: span 2; }
  .bv-gallery .bv-g-wide img { aspect-ratio: 2/1; }
}

/* ── Album filter pills — sharp 2px, uppercase, crimson active (Eudaimonia) ── */
.bv-album-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.bv-album-btn {
  font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
  padding: 9px 18px; border-radius: 2px;          /* sharp 2px — matches button system */
  background: var(--color-surface); color: var(--color-navy);
  border: 1.5px solid rgba(107,107,107,.35);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase; letter-spacing: 0.04em;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.bv-album-btn span { opacity: .6; font-weight: 600; margin-left: 4px; }
.bv-album-btn:hover { transform: translateY(-1px); border-color: var(--color-navy); }
.bv-album-btn.is-active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.bv-album-btn.is-active span { opacity: .8; }

.bv-album-notes { margin: 4px 0 12px; }
.bv-album-note { color: var(--color-neutral-700); }
.bv-album-note h3 { margin: 0 0 4px; color: var(--color-navy); font-size: 19px; }
.bv-album-note p { margin: 0; max-width: 70ch; font-size: 15px; }

/* ── Footer (KSMS dark-blue system) ─────────────────────────────────────── */
.site-footer, .bv-footer {
  border-top: 1px solid rgba(184, 204, 232, 0.18);
  background: var(--color-footer);
  color: var(--color-footer-text);
}
.bv-footer__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) var(--gutter) 28px;
  display: grid; gap: 32px;
  grid-template-columns: 1.4fr 1fr 1.3fr 0.8fr;
}
@media (max-width: 980px) { .bv-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bv-footer__inner { grid-template-columns: 1fr; } }
.bv-footer h6 {
  margin: 0 0 16px; color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: 16px;
  letter-spacing: .02em; position: relative; padding-bottom: 10px;
}
/* underline header (KSMS signal) */
.bv-footer h6::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 42px; height: 3px; border-radius: 999px; background: var(--color-footer-accent);
}
.bv-footer a { color: var(--color-footer-text); text-decoration: none; transition: color 0.15s ease; }
.bv-footer a:hover { color: #fff; }
.bv-footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.bv-footer__links a { display: inline-flex; align-items: center; gap: 8px; }
.bv-footer__links a::before {
  content: ""; width: 6px; height: 6px; border-radius: 2px;
  background: var(--color-footer-accent); flex: none;
}
.bv-footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.bv-footer__brand img { width: 64px; height: 64px; border-radius: 2px; object-fit: cover; background: #fff; padding: 4px; border: 1px solid var(--color-accent); }
.bv-footer__brand span { font-family: var(--font-heading); font-size: 19px; line-height: 1.15; color: #fff; font-weight: 700; }
.bv-footer__motto {
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  font-weight: 700; color: var(--color-footer-text); margin: 0 0 14px;
}
/* icon contact rows (KSMS style) */
.bv-footer__contact { display: flex; flex-direction: column; gap: 12px; }
.bv-footer__row {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: var(--color-footer-text); line-height: 1.5;
}
.bv-footer__row svg {
  flex: none; width: 18px; height: 18px; margin-top: 2px;
  color: var(--color-footer-accent);
}
.bv-footer__row a { color: var(--color-footer-text); }
.bv-footer__row a:hover { color: #fff; }
.bv-footer__bottom {
  max-width: var(--wrap); margin: 0 auto;
  padding: 16px var(--gutter); border-top: 1px solid rgba(184, 204, 232, 0.18);
  font-size: 12.5px; color: var(--color-footer-text);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}
.site-info { display: none; }

/* ── Mobile contact bar ───────────────────────────────────────────────── */
.bv-callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--color-surface);
  border-top: 1px solid rgba(161, 161, 166, 0.25);
  box-shadow: 0 -2px 12px rgba(0, 30, 64, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.bv-callbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 8px; height: 46px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  text-decoration: none; color: var(--color-text);
}
.bv-callbar a + a { border-left: 1px solid rgba(161, 161, 166, 0.25); }
.bv-callbar a:first-child { 
  color: var(--color-navy); 
  background: transparent;
}
.bv-callbar a:last-child { 
  background: var(--color-accent); 
  color: #fff; 
  border-radius: 0;
}
.bv-callbar a:last-child svg { fill: #fff; } /* white glyph on crimson — NO green fill */
@media (min-width: 769px) { .bv-callbar { display: none; } }
@media (max-width: 768px) { body { padding-bottom: 47px; } }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto;
  clip: auto; clip-path: none; padding: 12px 20px; border-radius: 999px;
  background: var(--color-navy); color: #ffffff;
}

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

/* ── Gallery enhancements: album filter, captions, lightbox, home teaser ── */
.bv-gallery-page .bv-lede { max-width: 70ch; }
.bv-album-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.bv-album-btn {
  font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
  padding: 9px 18px; border-radius: 2px;          /* sharp 2px — matches button system */
  background: var(--color-surface); color: var(--color-navy);
  border: 1.5px solid rgba(107,107,107,.35);
  box-shadow: var(--shadow-sm);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.bv-album-btn span { opacity: .6; font-weight: 600; margin-left: 4px; }
.bv-album-btn:hover { transform: translateY(-1px); border-color: var(--color-navy); }
.bv-album-btn.is-active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.bv-album-btn.is-active span { opacity: .8; }

.bv-album-notes { margin: 4px 0 12px; }
.bv-album-note { color: var(--color-neutral-700); }
.bv-album-note h3 { margin: 0 0 4px; color: var(--color-navy); font-size: 19px; }
.bv-album-note p { margin: 0; max-width: 70ch; font-size: 15px; }

.bv-gallery { margin-top: 4px; }
/* Pull the first photo row up so the gallery payoff is visible without a long scroll */
.bv-gallery-page .bv-section--tight { padding-top: clamp(16px, 2.5vw, 32px); }
.bv-g-item { position: relative; margin: 0; display: flex; flex-direction: column; }
.bv-g-trigger {
  padding: 0; border: 0; background: var(--color-surface); cursor: zoom-in;
  border-radius: 2px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease;
}
.bv-g-trigger:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bv-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.bv-g-item figcaption { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--color-neutral-600); }

/* Home teaser band */
.bv-teaser { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 782px) { .bv-teaser { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.bv-teaser__item {
  border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.bv-teaser__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bv-teaser__item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

/* Lightbox (vanilla, no library) */
.bv-lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; gap: 8px; padding: 4vmin;
  background: rgba(15,23,42,.92); backdrop-filter: blur(4px);
}
.bv-lightbox.is-open { display: flex; }
.bv-lb-stage { margin: 0; max-width: min(1100px, 92vw); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bv-lb-stage img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.bv-lb-stage figcaption { color: #fff; font-size: 14px; opacity: .85; text-align: center; }
.bv-lb-close, .bv-lb-prev, .bv-lb-next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1;
  cursor: pointer; display: grid; place-content: center; transition: background .15s ease;
}
.bv-lb-close:hover, .bv-lb-prev:hover, .bv-lb-next:hover { background: rgba(255,255,255,.28); }
.bv-lb-close { top: 18px; right: 18px; }
.bv-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.bv-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: reduce) {
  .bv-lb-close, .bv-lb-prev, .bv-lb-next, .bv-g-trigger, .bv-album-btn { transition: none; }
}

/* ── Motion layer (ksms-inspired, native, zero-dependency) ─────────────── */
/* Scroll-reveal — FAIL-OPEN: hidden state only applies when <html> has .js
   (set by motion.js). No JS? Content stays fully visible. */
.js .bv-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.js .bv-reveal.is-in { opacity: 1; transform: none; }

/* Gallery image zoom — competitor-style gentle scale + lift on hover/focus. */
.bv-g-trigger img {
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  backface-visibility: hidden;
}
.bv-g-trigger:hover img, .bv-g-trigger:focus-visible img { transform: scale(1.06); }
.bv-g-trigger:hover, .bv-g-trigger:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.bv-g-trigger:focus-visible { outline: 3px solid var(--color-accent-400); outline-offset: 2px; }

/* Home teaser tiles zoom too, for parity. */
.bv-teaser__item img { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.bv-teaser__item:hover img, .bv-teaser__item:focus-visible img { transform: scale(1.07); }

/* Lightbox fade-in (motion.js toggles .is-fade alongside .is-open). */
.bv-lightbox { opacity: 0; transition: opacity .28s ease; }
.bv-lightbox.is-open { opacity: 1; }
.bv-lightbox.is-fade .bv-lb-stage img { animation: bv-lb-pop .32s cubic-bezier(.16,1,.3,1); }
@keyframes bv-lb-pop { from { opacity:.4; transform: scale(.96); } to { opacity:1; transform: none; } }

/* Hero/section headings rise subtly on load. */
.bv-hero h1, .bv-hero .bv-lede { animation: bv-rise .7s cubic-bezier(.16,1,.3,1) both; }
.bv-hero .bv-lede { animation-delay: .08s; }
@keyframes bv-rise { from { opacity:0; transform: translateY(18px); } to { opacity:1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .bv-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bv-g-trigger img, .bv-teaser__item img, .bv-g-trigger, .bv-teaser__item,
  .bv-hero h1, .bv-hero .bv-lede, .bv-lightbox { transition: none !important; animation: none !important; transform: none !important; }
  .bv-lightbox.is-open { opacity: 1; }
}

/* ═══ Design-system extensions — M3 visual polish pass ═══════════════════
   Patterns borrowed from competitor ksms.ac.in are LAYOUT/IA ONLY
   (clean card hierarchy, generous rhythm, sticky social-contact bar,
   stronger hero↔section separation). No competitor content, text or
   assets were copied. Hard rules honoured:
     • never use `.alignfull` (WordPress → calc(50% - 50vw) ≈ 15px h-scroll)
     • existing tokens (--color-navy …) + .bv-gallery/.bv-g-* untouched
     • accent TEXT uses #8c491a (WCAG AA); #c67139 is decorative only
     • all rules are mobile-responsive and respect prefers-reduced-motion
   ═══════════════════════════════════════════════════════════════════════ */

/* ── New tokens (existing tokens kept intact) ─────────────────────────── */
:root {
  --color-accent-text: #8A1E2F;             /* WCAG-AA accent for TEXT (crimson) */
  --color-accent-decor: #9D2235;           /* decorative (lines/fills) — crimson */
  --space-section: clamp(56px, 8vw, 112px);/* generous vertical rhythm */
  --radius-xl: 24px;
}

/* ── Accent text helpers ──────────────────────────────────────────────── */
.bv-accent { color: var(--color-accent-text); }
.bv-kicker--accent { color: var(--color-accent-text); }
.bv-title-accent { color: var(--color-accent-text); }
.bv-accent-underline {
  position: relative; display: inline-block; padding-bottom: 5px;
  color: var(--color-accent-text);
}
.bv-accent-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; border-radius: 999px;
  background: var(--color-accent-decor);
}

/* ── Vertical rhythm utilities ────────────────────────────────────────── */
.bv-stack { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); }
.bv-stack--lg { gap: clamp(28px, 4vw, 48px); }
.bv-section--rhythm { padding-block: var(--space-section); }

/* ── Stronger hero / section separation ──────────────────────────────── */
/* Centred, contained seam — never full-bleed, so it cannot trigger
   horizontal scroll (unlike .alignfull / 100vw tricks). */
.bv-section-seam {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(28px, 4vw, 52px) var(--gutter);
}
.bv-section-seam::before,
.bv-section-seam::after {
  content: ""; height: 1px; flex: 1 1 auto; max-width: 240px;
  background: linear-gradient(90deg, transparent, rgba(161,161,166,.55), transparent);
}
.bv-section-seam span {                                        /* decorative dot */
  flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--color-accent-decor);
  box-shadow: 0 0 0 5px rgba(157,34,53,.16);
}
.bv-hero--seam { position: relative; }
.bv-hero--seam::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: min(900px, 92%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(161,161,166,.55) 18%,
              rgba(161,161,166,.55) 82%, transparent);
}

/* Contained tinted "band" — alternating background for section rhythm.
   Rounded + max-width via parent, so no full-bleed overflow. */
.bv-band {
  background: var(--color-neutral-100);
  border: 1px solid rgba(161,161,166,.22);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 64px);
  box-shadow: var(--shadow-sm);
}
.bv-band--accent {
  background: linear-gradient(135deg, var(--color-accent-100) 0%, var(--color-neutral-100) 100%);
  border-color: rgba(157,34,53,.14);
}
.bv-band--decor { border-top: 3px solid var(--color-accent-decor); }  /* decorative */

/* ── Cleaner card hierarchy ───────────────────────────────────────────── */
.bv-card-grid {
  display: grid; gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.bv-card-grid--tight { gap: clamp(14px, 1.8vw, 20px); }
.bv-card__icon {
  width: 52px; height: 52px; border-radius: 2px; margin-bottom: 4px;
  display: grid; place-content: center;
  background: var(--color-accent-100); color: var(--color-navy);
  box-shadow: inset 0 0 0 1px rgba(0,30,64,.06);
}
.bv-card__title {
  font-family: var(--font-heading); font-weight: 700; color: var(--color-navy);
  margin: 0 0 6px; font-size: clamp(18px, 2vw, 22px);
}
.bv-card__body { font-size: 14.5px; color: var(--color-neutral-700); margin: 0; }
.bv-card--feature {
  border: 0; color: #ffffff;
  background: linear-gradient(160deg, var(--color-accent-800) 0%, var(--color-accent-900) 100%);
  border-top: 4px solid var(--color-accent-decor);              /* decorative */
}
.bv-card--feature .bv-card__title,
.bv-card--feature h3 { color: #ffffff; }
.bv-card--feature p,
.bv-card--feature .bv-card__body { color: rgba(255,255,255,.82); }
.bv-card--feature .bv-card__icon {
  background: rgba(255,255,255,.12); color: #ffffff;
}
.bv-card--link { cursor: pointer; }
.bv-card--link:hover {
  transform: translateY(-5px); border-color: var(--color-navy); box-shadow: var(--shadow-lg);
}

/* ── Sticky social-contact rail (ksms-style, desktop) ─────────────────── */
/* Fixed side rail: always visible (sticky by position), holds contact +
   social links. Decorative accent tick only; body text stays navy/white.
   Hidden on phones where .bv-callbar already covers contact. */
.bv-socialrail {
  position: fixed;
  right: clamp(8px, 1.4vw, 18px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 8px;
  background: var(--color-surface);
  border: 1px solid rgba(161,161,166,.3);
  border-radius: 2px;
  box-shadow: var(--shadow-md);
}
.bv-socialrail::before {
  content: ""; display: block; width: 22px; height: 3px; margin: 2px auto 6px;
  border-radius: 1px; background: var(--color-accent-decor);   /* decorative */
}
.bv-socialrail__link {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-content: center;
  background: var(--color-neutral-100); color: var(--color-navy);
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.bv-socialrail__link svg { width: 20px; height: 20px; display: block; }
.bv-socialrail__link:hover,
.bv-socialrail__link:focus-visible {
  background: var(--color-navy); color: #ffffff; transform: translateY(-2px);
}
@media (max-width: 768px) { .bv-socialrail { display: none; } }

/* ── prefers-reduced-motion: neutralise all new + existing motion ──────── */
@media (prefers-reduced-motion: reduce) {
  .bv-card,
  .bv-card:hover,
  .bv-card--link, .bv-card--link:hover,
  .bv-card--feature,
  .bv-socialrail__link, .bv-socialrail__link:hover {
    transition: none !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Notices (Classroom-fed list; divider rows, not cards) ─────────────── */
.bv-notices { background: var(--color-surface); border-radius: 2px; padding: 26px; box-shadow: var(--shadow-sm); }
.bv-notices__item { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--color-divider); align-items: flex-start; }
.bv-notices__item:first-of-type { border-top: none; }
.bv-notices__date { flex: 0 0 72px; background: var(--color-silver-100); border-radius: 2px; padding: 8px 4px; text-align: center; color: var(--color-accent-800); font-family: var(--font-body); font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }
.bv-notices__date b { display: block; font-size: 22px; letter-spacing: 0; }
.bv-notices__title { font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--color-navy); }
.bv-notices__new { display: inline-block; background: var(--color-accent-600); color: #fff; border-radius: 2px; padding: 2px 7px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-left: 8px; vertical-align: 1px; }
.bv-notices__excerpt { font-size: 15px; line-height: 1.6; color: var(--color-text-soft); margin-top: 2px; }
.bv-notices__empty { color: var(--color-text-soft); margin: 0; }
.bv-notices__item > div:last-child { min-width: 0; flex: 1; }
@media (max-width: 640px) { .bv-notices { padding: 18px; } .bv-notices__item { flex-direction: column; gap: 8px; } .bv-notices__item > div:last-child { min-width: 0; } .bv-notices__title { overflow-wrap: anywhere; } .bv-notices__date { flex: none; width: 72px; } }

/* ── Mobile: cancel the alignwide edge-bleed inside page sections ──────── */
/* The theme stretches .alignwide 12px wider than its container for edge-to-
   edge color bands; on phones that pushes headings and panels off the left
   edge (clipped kickers, flush panels). Desktop keeps the bleed. */
@media (max-width: 781px) {
  .entry-content .alignwide {
    margin-left: 0 !important; margin-right: 0 !important;
    width: auto !important; max-width: 100% !important;
  }
  .bv-section { padding-inline: var(--gutter); }
}

/* ── Policy pages (Privacy, Terms) + DPDP consent ─────────────────────── */
.bv-policy { max-width: 860px; }
.bv-policy section { scroll-margin-top: 110px; padding-top: 12px; }
.bv-policy h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 36px 0 12px; }
.bv-policy h3 { font-size: 17px; margin: 0; color: var(--color-navy); }
.bv-policy p, .bv-policy li { font-size: 15.5px; line-height: 1.7; color: var(--color-neutral-700); }
.bv-policy ul { padding-left: 1.2em; }
.bv-policy li { margin-bottom: 6px; }
.bv-policy .bv-card { padding: 20px; }
.bv-policy .bv-card p { margin: 0; font-size: 14.5px; }
.bv-policy__meta { font-size: 13px; color: var(--color-neutral-600); margin: 14px 0 0; }
.bv-policy__glance { margin: 8px 0 28px; }
.bv-policy__toc {
  background: var(--color-surface); border-left: 4px solid var(--color-accent);
  padding: 18px 22px; border-radius: 2px; margin: 8px 0 12px;
}
.bv-policy__toc ol { margin: 8px 0 0; padding-left: 1.3em; columns: 2 220px; column-gap: 32px; }
.bv-policy__toc li { font-size: 14.5px; margin-bottom: 4px; break-inside: avoid; }
.bv-policy__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bv-policy__table th, .bv-policy__table td {
  text-align: left; vertical-align: top; padding: 12px 14px;
  border-bottom: 1px solid rgba(161, 161, 166, 0.3);
}
.bv-policy__table th { background: var(--color-accent-100); color: var(--color-navy); font-weight: 700; }
.bv-policy__contact p + p { margin-top: 6px; }
.bv-footer__legal { display: inline-flex; gap: 16px; }
.bv-footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bv-footer__legal a:hover { color: #fff; }
.wpcf7 .bv-consent { font-size: 13.5px; line-height: 1.55; color: var(--color-neutral-700); }
.wpcf7 .bv-consent .wpcf7-list-item { margin: 0; }
.wpcf7 .bv-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13.5px; }
.wpcf7 .bv-consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--color-accent); }
.wpcf7 .bv-consent a { text-decoration: underline; }
.bv-policy__glance { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
@media (max-width: 640px) { .bv-policy__table thead { display: none; } .bv-policy__table, .bv-policy__table tbody, .bv-policy__table tr, .bv-policy__table td { display: block; width: 100%; } .bv-policy__table tr { border: 1px solid rgba(161,161,166,.3); border-radius: 2px; margin-bottom: 12px; background: var(--color-surface); } .bv-policy__table td { border: 0; padding: 8px 14px; } .bv-policy__table td:first-child { background: var(--color-accent-100); color: var(--color-navy); font-weight: 700; } .bv-policy__table td:nth-child(3)::before { content: "Required? "; font-weight: 700; color: var(--color-navy); } }
@media (max-width: 640px) { .bv-policy__table td, .bv-policy__table tr { box-sizing: border-box; } }

/* ── Achievers page: board toppers ─────────────────────────────────────
   Cut-out portraits (transparent PNG) stand on a wine "stage" and break
   out of its top edge, with a drop-shadow, so they read as 3D.
   Medal colours carry the rank (gold/silver/bronze), not decoration.
   Stacked on mobile; 3-up from 782px. */
.bv-toppers { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.bv-topper {
  --medal: linear-gradient(145deg, #F3D57A, #B8891E);
  display: flex; flex-direction: column; gap: 18px; text-align: center;
  margin: 0; padding: 0 0 22px; background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 2px;
  box-shadow: 0 1px 0 rgba(20,27,34,.04), 0 14px 30px -18px rgba(74,15,28,.35);
}
.bv-topper--2 { --medal: linear-gradient(145deg, #F1F1F3, #9A9CA3); }
.bv-topper--3 { --medal: linear-gradient(145deg, #E7B48A, #9A5A2C); }

.bv-topper__stage {
  position: relative; height: 220px; margin: 56px 16px 0; border-radius: 2px;
  background: radial-gradient(120% 90% at 50% 100%, #B32A44 0%, #641320 62%, #3E0B16 100%);
  box-shadow: inset 0 -18px 30px rgba(0,0,0,.28), 0 10px 18px -10px rgba(74,15,28,.6);
}
/* Portrait is 44px taller than the stage and sits on its floor, so the head
   breaks the top edge. Fixed px heights (no aspect-ratio / % height) so older
   phone browsers can't collapse the photo and crop the face. */
.bv-topper__stage img {
  display: block; width: 100%; height: 264px; margin-top: -44px;
  object-fit: contain; object-position: bottom center;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.35)) drop-shadow(0 2px 2px rgba(0,0,0,.25));
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.bv-topper__rank {
  position: absolute; z-index: 2; top: -30px; left: -12px;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: var(--medal); color: #2A1A0A;
  box-shadow: 0 6px 12px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 3px rgba(0,0,0,.18);
  border: 2px solid #fff;
}
.bv-topper__rank b { font-family: var(--font-heading); font-size: 23px; line-height: 1; font-weight: 400; }
.bv-topper__rank sup { font-size: .5em; }
.bv-topper__rank small { font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; }

.bv-topper__body { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 16px; }
.bv-topper__score {
  margin: 0; order: -1; font-family: var(--font-heading); line-height: 1; white-space: nowrap;
  font-size: 48px; color: var(--color-accent);
}
.bv-topper__score span { font-size: .5em; margin-left: 2px; vertical-align: .55em; }
.bv-topper h3 { margin: 8px 0 2px; font-family: var(--font-heading); font-size: 25px; line-height: 1.15; color: var(--color-navy); }
.bv-topper__meta { margin: 0; font-size: 14px; color: var(--color-neutral-600); }
.bv-topper__meta strong { color: var(--color-navy); font-weight: 600; }

@media (min-width: 782px) {
  .bv-toppers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
  .bv-topper { gap: 20px; padding-bottom: 24px; }
  .bv-topper__stage { height: 250px; margin: 62px 18px 0; }
  .bv-topper__stage img { height: 300px; margin-top: -50px; }
  .bv-topper__rank { width: 72px; height: 72px; top: -26px; left: -14px; }
  .bv-topper__rank b { font-size: 28px; }
  .bv-topper__rank small { font-size: 10px; }
  .bv-topper__body { padding: 0 20px; }
  .bv-topper__score { font-size: clamp(42px, 4.1vw, 56px); }
  .bv-topper h3 { font-size: 27px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bv-topper:hover .bv-topper__stage img { transform: translateY(-6px) scale(1.03); }
}

/* 9 nav items (Achievers added): tighten link padding below 1366px so the
   header keeps its pre-Achievers height; >=1366px is untouched. */
@media (min-width: 769px) and (max-width: 1365px) {
  .main-navigation .main-nav ul li:not(.nav-cta) > a { padding-left: 8px !important; padding-right: 8px !important; }
}

/* Gallery filter (8 events): one swipeable row on phones instead of a
   ~500px stack of buttons before the first photo. Wraps as before >=782px. */
@media (max-width: 781px) {
  .bv-album-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--gutter, 20px)); padding: 2px var(--gutter, 20px) 6px; scroll-padding-inline: var(--gutter, 20px); }
  .bv-album-bar::-webkit-scrollbar { display: none; }
  .bv-album-btn { flex: 0 0 auto; white-space: nowrap; font-size: 13px; padding: 8px 14px; }
}

/* Photo protection: block iOS/Android long-press "Save image", text-select
   and drag on school photos (pairs with the guard in motion.js). */
.bv-gallery img, .bv-lightbox img, .bv-toppers img, .bv-teaser img {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}

/* About › What We Stand For: crest film beside the three value cards.
   The film is the source of the values (the crest spells them), so it
   earns the space. Phone: film on top, cards below. >=900px: film sticky
   on the right while the cards scroll on the left. Plays once, muted. */
.bv-values { display: grid; gap: 22px; }
.bv-values__film { margin: 0; }
.bv-crest-video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: #111317 url(/wp-content/uploads/2026/09/bvvm-brand/bvvm-crest-poster.jpg) center / cover;
  border-radius: 2px; box-shadow: var(--shadow-lg);
}
.bv-values__film figcaption { margin-top: 10px; font-size: 14px; color: var(--color-neutral-600); }
.bv-values__film figcaption strong { color: var(--color-accent); font-weight: 600; letter-spacing: .02em; }
@media (min-width: 900px) {
  .bv-values { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: start; }
  .bv-values__film { order: 2; position: sticky; top: 124px; }
}
