/* =====================================================================
   beyond-academics.css — "Beyond Academics" page
   3 sections: Impact Beyond Campus (metric cards) → Spotlight (3 featured
   stories, photo + write-up) → Achievements & Events. Maroon + cream,
   icon-led. Scoped under .ba
   ===================================================================== */

.ba {
  --a-maroon: var(--maroon, #8D2130);
  --a-maroon-deep: var(--maroon-900, #5F141C);
  --a-green: var(--green, #085B4A);
  --a-paper: #FBF7EF; --a-sand: #F4ECDD; --a-card: #fff;
  --a-ink: #241E1C; --a-muted: #6B655F; --a-line: #E4DCCE;
  --a-pad: clamp(56px, 6.6vw, 88px);
  background: var(--a-paper); color: var(--a-ink); font-family: var(--font-sans);
}
/* base.css colours all headings — let our own rules decide instead */
.ba :where(h1, h2, h3, h4) { color: inherit; font-family: var(--font-display); }
.ba .wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.ba .eyebrow { display: inline-flex; align-items: center; gap: .7em; font-size: 11.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--a-maroon); }
.ba .eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--a-maroon); }
.ba .sec { padding-block: var(--a-pad); }
.ba .sec--tint { background: var(--a-sand); }
/* first section on the page carries the fixed-header clearance the hero used to provide */
.ba .sec--first { padding-top: calc(var(--topbar-h, 38px) + var(--nav-h, 74px) + var(--a-pad)); }

/* section heading (centered — single-purpose page, no asymmetric split needed) */
.ba .shead { text-align: center; max-width: 620px; margin: 0 auto clamp(36px, 4.2vw, 54px); }
.ba .shead h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(27px, 3.6vw, 40px); line-height: 1.1; color: var(--a-ink); margin: 12px 0 0; }
.ba .shead h2 em { font-style: italic; color: var(--a-maroon); }
.ba .shead p { font-size: 15.5px; line-height: 1.7; color: var(--a-muted); margin-top: 12px; }

/* The page has no separate hero header — Section 1 (Alumni Impact) doubles
   as it, so its heading/badge match academic-journey.css's .ac10 .hero h1 scale
   (client request: same size as academic-journey.php's "Academic Journey" banner
   heading). Impact numbers below already matched .hstat b's size already. */
/* left-aligned like academic-journey.php's hero — the base .shead rule above
   centers everything, which only applies to the OTHER (real) section
   headings on this page; this first section doubles as the page's hero
   so it breaks from that pattern intentionally. */
.ba .sec--first .shead { max-width: none; text-align: left; }
.ba .sec--first .shead h2 { font-size: clamp(44px, 7vw, 88px); line-height: .98; letter-spacing: -.02em; color: var(--a-maroon-deep); margin-top: 20px; }
.ba .sec--first .shead .badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--a-maroon); background: rgba(141,33,48,.08); border: 1px solid rgba(141,33,48,.18); border-radius: 999px; padding: 6px 16px; margin-top: 14px; }

/* ---------- 1. Impact Beyond Campus — quote-style alumni stat cards ---------- */
.ba .impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 24px; border-top: 1.5px solid var(--a-ink); }
.ba .impact__card { text-align: left; padding: 6px 12px 6px 0; }
.ba .impact__num { display: flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); color: var(--a-maroon); line-height: 1; }
.ba .impact__num span { font-size: .55em; }
.ba .impact__q { font-family: var(--font-display); font-weight: 600;  font-size: 15.5px; color: var(--a-ink); margin: 10px 0 8px; line-height: 1.3; }
.ba .impact__d { font-size: 12.5px; line-height: 1.55; color: var(--a-muted); margin: 0; }

/* ---------- 2. Spotlight — 3 featured stories with photo + write-up ---------- */
.ba .spotlight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ba .spotlight--pair { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }
.ba .spot { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 20px; overflow: hidden; transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s; }
.ba .spot:hover { transform: translateY(-6px); box-shadow: 0 26px 52px -30px rgba(43,36,32,.4); }
.ba .spot__media { aspect-ratio: 4/3; background: var(--a-sand); }
.ba .spot__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* photo not supplied yet — clearly-labelled placeholder slot */
.ba .spot__placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--a-maroon); background: repeating-linear-gradient(135deg, var(--a-sand), var(--a-sand) 10px, #efe3cd 10px, #efe3cd 20px); border-bottom: 1px dashed var(--a-line); }
.ba .spot__placeholder svg { width: 30px; height: 30px; opacity: .7; }
.ba .spot__placeholder span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--a-maroon); opacity: .75; }
.ba .spot__body { padding: 22px 24px 26px; }
.ba .spot__tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--a-green); background: rgba(8,91,74,.08); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.ba .spot__name { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--a-ink); margin: 0 0 2px; }
.ba .spot__role { display: block; font-size: 12.5px; color: var(--a-muted); margin-bottom: 12px; }
.ba .spot p.spot__text { font-size: 14px; line-height: 1.7; color: var(--a-muted); margin: 0 0 16px; }
.ba .spot__more { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-sans); font-weight: 600; font-size: 13px; color: var(--a-maroon); background: none; border: none; padding: 0; cursor: pointer; }
.ba .spot__more svg { width: 14px; height: 14px; transition: transform .25s; }
.ba .spot__more:hover { color: var(--a-maroon-deep); }
.ba .spot__more:hover svg { transform: translateX(3px); }

/* ---- Spotlight "View More" popup (native <dialog>) ----
   base.css resets `* { margin: 0 }`, which kills the UA stylesheet's
   `dialog:modal { margin: auto }` auto-centering — so centre it explicitly. */
/* display:none by default — explicit, so it never depends on the UA
   stylesheet's dialog:not([open]) rule (which our own `display: flex`
   below would otherwise permanently override, leaving it visible even
   after .close() runs). Only [open] switches it to a visible flex box. */
.ba .spot-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: var(--z-modal, 1200); margin: 0; border: none; padding: 0; border-radius: 22px; overflow: hidden; max-width: 640px; width: min(92vw, 640px); max-height: 86vh; box-shadow: 0 40px 80px -30px rgba(20,14,12,.45); }
.ba .spot-modal[open] { display: flex; flex-direction: column; }
.ba .spot-modal::backdrop { background: rgba(24,16,14,.6); backdrop-filter: blur(2px); }
.ba .spot-modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,.35); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.ba .spot-modal__close:hover { background: rgba(0,0,0,.55); }
/* flex:none so the photo keeps its natural aspect-ratio height instead of
   being squashed, leaving the body to flex into whatever space remains */
.ba .spot-modal__media { flex: none; aspect-ratio: 16/9; background: var(--a-sand); }
.ba .spot-modal__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* min-height:0 lets a flex child shrink below its content size — without it
   the body refuses to shrink and pushes past the dialog's max-height, which
   silently hid the tail end of long stories behind the outer overflow:hidden
   instead of making it reachable by scrolling. */
.ba .spot-modal__body { padding: 26px 30px 34px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.ba .spot-modal__body h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2.6vw, 24px); line-height: 1.25; color: var(--a-ink); margin: 12px 0 6px; }
.ba .spot-modal__by { display: block; font-size: 12.5px; font-weight: 600; color: var(--a-maroon); margin-bottom: 16px; }
.ba .spot-modal__body p { font-size: 14.5px; line-height: 1.75; color: var(--a-muted); margin: 0 0 14px; }
.ba .spot-modal__body p:last-child { margin-bottom: 0; }
em{
   
}
/* ---------- 3. Achievements & Events — continuous marquee ---------- */
.ba .marquee { position: relative; overflow: hidden; width: 100%; margin-top: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ba .mtrack { display: flex; align-items: stretch; gap: 20px; width: max-content; animation: baMarquee 42s linear infinite; }
.ba .marquee:hover .mtrack { animation-play-state: paused; }
@keyframes baMarquee { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }

.ba .event { flex: 0 0 260px; text-align: center; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 18px; padding: 34px 22px 28px; transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s; }
.ba .event:hover { transform: translateY(-4px); box-shadow: 0 20px 42px -26px rgba(43,36,32,.35); }
.ba .event__ic { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--a-maroon); color: #fff; margin: 0 auto 18px; }
.ba .event__ic svg { width: 34px; height: 34px; }
.ba .event__cat { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--a-green); margin-bottom: 6px; }
.ba .event h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.2; margin: 0 0 8px; color: var(--a-ink); }
.ba .event p { font-size: 13px; line-height: 1.5; color: var(--a-muted); margin: 0 0 4px; }
.ba .event__more { display: inline-flex; align-items: center; gap: .5em; font-family: var(--font-sans); font-weight: 600; font-size: 12.5px; color: var(--a-maroon); background: none; border: none; padding: 6px 0 0; cursor: pointer; }
.ba .event__more svg { width: 13px; height: 13px; transition: transform .25s; }
.ba .event__more:hover { color: var(--a-maroon-deep); }
.ba .event__more:hover svg { transform: translateX(3px); }

.ba .event-modal__ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--a-maroon); color: #fff; margin-bottom: 16px; }
.ba .event-modal__ic svg { width: 24px; height: 24px; }
.ba .event-modal__body { padding-top: 30px; }

/* ---------- CTA ---------- */
.ba .cta { text-align: center; }
.ba .cta__in { background: var(--a-maroon-deep); color: #fff; border-radius: 22px; padding: clamp(38px, 5vw, 62px) 24px; }
.ba .cta .eyebrow { color: #EEBEC4; justify-content: center; }
.ba .cta .eyebrow::before { background: #EEBEC4; }
.ba .cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); margin: 14px 0 12px; }
.ba .cta p { color: rgba(255,255,255,.86); font-size: 16.5px; line-height: 1.7; max-width: 54ch; margin: 0 auto; }
.ba .cta__btns { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.ba .btn { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: 14px; padding: 13px 28px; border-radius: 999px; border: 1.5px solid transparent; transition: background .25s, color .25s, transform .25s; }
.ba .btn svg { width: 17px; height: 17px; }
.ba .btn--solid { background: #fff; color: var(--a-maroon-deep); }
.ba .btn--solid:hover { transform: translateY(-2px); }
.ba .btn--line { border-color: rgba(255,255,255,.55); color: #fff; }
.ba .btn--line:hover { background: #fff; color: var(--a-maroon-deep); }

@media (max-width: 900px) {
  .ba .impact { grid-template-columns: 1fr 1fr; }
  .ba .spotlight { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .ba .event { flex-basis: 210px; padding: 28px 18px 22px; }
  .ba .event__ic { width: 60px; height: 60px; border-radius: 17px; }
  .ba .event__ic svg { width: 28px; height: 28px; }
  .ba .event h3 { font-size: 18px; }
}
