/* ===================================================================
   RAKMHSU — Brand theme on top of Bootstrap 5.3
   Palette + type from the RAKMHSU Design System.
   Load AFTER bootstrap.min.css.
   =================================================================== */

/* Brand palette + the 9 --bs-* COLOUR bridges used to be re-declared here. They now
   live in assets/css/tokens.css (generated from includes/brand-colors.php), which loads
   BEFORE this file — so those names still resolve, at byte-identical values, from one
   source. Only the three NON-colour typography vars stay here; tokens.css is a colour
   file and does not emit them. */
:root {
  /* Bootstrap variable overrides — typography only */
  --bs-body-font-family: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
}

* { box-sizing: border-box; }

body {
  font-family: var(--bs-body-font-family);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--maroon); color: var(--paper); }

a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-deep); }

/* ---- Display / serif type ---- */
.font-display,
h1, h2, h3, .h1, .h2, .h3,
.display-1, .display-2, .display-3, .display-4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.08;
}
h1, .h1 { font-weight: 500; }
.fw-display-light { font-weight: 400; }

.serif { font-family: "Fraunces", Georgia, serif; }
.mono  { font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* ---- Eyebrow (mono label with gold tick) ---- */
.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex: 0 0 auto;
}
.eyebrow.eyebrow-center { justify-content: center; }
.eyebrow.on-dark { color: var(--gold-bright); }
.eyebrow.no-tick::before { display: none; }

/* ---- Surfaces ---- */
.bg-ivory     { background: var(--ivory) !important; }
.bg-paper     { background: var(--paper) !important; }
.bg-maroon    { background: var(--maroon) !important; color: var(--paper); }
.bg-maroon-rich { background: var(--maroon-rich) !important; color: var(--paper); }
.bg-charcoal  { background: var(--charcoal) !important; color: var(--warm-white-200); }
.bg-green     { background: var(--green) !important; color: var(--paper); }
.text-maroon  { color: var(--maroon) !important; }
.text-gold    { color: var(--gold) !important; }
.text-gold-bright { color: var(--gold-bright) !important; }
.text-muted-ink { color: var(--muted) !important; }
.text-ivory   { color: var(--ivory) !important; }

.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
@media (max-width: 768px) { .section { padding: 3.5rem 0; } .section-sm { padding: 2.5rem 0; } }

.hairline-gold { height: 1px; background: var(--gold); border: 0; opacity: 1; }
.rule-soft { border-top: 1px solid var(--line); }

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  border-radius: 7px;
  padding: 0.78rem 1.7rem;
  font-size: 1rem;
  letter-spacing: 0.005em;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1.08rem; }
.btn-maroon {
  background: var(--maroon); color: var(--paper); border-color: var(--maroon);
  box-shadow: 0 6px 18px rgba(var(--maroon-rgb),.26);
}
.btn-maroon:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); color: var(--paper); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); transform: translateY(-1px); }
.btn-outline-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: rgba(var(--paper-rgb),.10); color: var(--paper); border-color: rgba(var(--paper-rgb),.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(var(--paper-rgb),.20); color: var(--paper); }
.btn-on-maroon-light { background: var(--paper); color: var(--maroon); border-color: var(--paper); }
.btn-on-maroon-light:hover { background: var(--ivory); color: var(--maroon-deep); }

/* Inline arrow link */
.link-arrow {
  font-weight: 600; color: var(--maroon); display: inline-flex; gap: .5rem; align-items: center;
}
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover { color: var(--maroon-deep); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow.on-dark { color: var(--gold-bright); }

/* ===================================================================
   HEADER
   =================================================================== */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--paper); border-bottom: 1px solid var(--line-soft); transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 6px 26px rgba(var(--charcoal-rgb),.10); }

.utility-bar { background: var(--maroon-rich); color: var(--peach-200); font-size: 0.8rem; letter-spacing: 0.015em; }
.utility-bar a { color: var(--peach-200); opacity: .85; }
.utility-bar a:hover { color: var(--paper); opacity: 1; }
.utility-bar .util-sep { width: 1px; height: 14px; background: rgba(var(--paper-rgb),.25); display: inline-block; }
.utility-bar .lang-active { font-weight: 700; color: var(--paper); opacity: 1; }

.brand-lockup { display: flex; align-items: center; gap: 0.85rem; }
.brand-lockup img { width: 50px; height: 50px; object-fit: contain; flex: 0 0 auto; }
.brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.32rem; letter-spacing: 0.03em; color: var(--maroon); line-height: 1; }
.brand-sub  { font-size: 0.64rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

.main-nav .nav-link {
  font-family: "Hanken Grotesk", sans-serif; font-weight: 500; font-size: 0.97rem;
  color: var(--neutral-880); padding: 1.55rem 1rem; position: relative; cursor: pointer;
}
.main-nav .nav-link::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 1.1rem; height: 2px;
  background: var(--maroon); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-item.active .nav-link::after { transform: scaleX(1); }
.main-nav .nav-link:hover { color: var(--maroon); }
.main-nav .nav-item.active .nav-link { color: var(--maroon); }

/* Mega panel */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line-soft); box-shadow: 0 22px 40px rgba(var(--charcoal-rgb),.12); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 1040; }
.mega.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-link { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); }
.mega-link .t { font-size: 0.98rem; font-weight: 600; color: var(--ink); }
.mega-link .d { font-size: 0.8rem; color: var(--muted); margin-top: 2px; line-height: 1.4; min-height: 2.24em; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-link:hover .t { color: var(--maroon); }
.mega-feature { background: var(--maroon-rich); border-radius: 12px; padding: 1.7rem; color: var(--paper); height: 100%; display: flex; flex-direction: column; justify-content: space-between; }

.btn-apply-pin { background: var(--maroon); color: var(--paper); padding: 0.7rem 1.5rem; border-radius: 6px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 2px 10px rgba(var(--maroon-rgb),.28); }
.btn-apply-pin:hover { background: var(--maroon-deep); color: var(--paper); }

/* offcanvas mobile nav */
.offcanvas-nav .accordion-button { font-weight: 600; color: var(--ink); }
.offcanvas-nav .accordion-button:not(.collapsed) { color: var(--maroon); background: var(--ivory); box-shadow: none; }
.offcanvas-nav .accordion-button:focus { box-shadow: none; }
.offcanvas-nav a.sub { display: block; padding: .5rem 0; color: var(--muted); font-size: .95rem; }
.offcanvas-nav a.sub:hover { color: var(--maroon); }

/* ===================================================================
   PAGE HERO / BANNERS
   =================================================================== */
.page-hero { position: relative; background: var(--maroon-rich); color: var(--paper); overflow: hidden; }
.page-hero .overlay-grad { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--maroon-950-rgb),.94) 0%, rgba(var(--maroon-black-rgb),.82) 40%, rgba(var(--maroon-rich-rgb),.45) 75%, rgba(var(--maroon-rich-rgb),.18) 100%); }
.page-hero::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 40%; background: radial-gradient(circle at 80% 30%, rgba(var(--gold-rgb),.22), transparent 60%); pointer-events: none; }

.breadcrumb-bar { background: var(--ivory); border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.breadcrumb-bar a { color: var(--muted); }
.breadcrumb-bar a:hover { color: var(--maroon); }
.breadcrumb-bar .sep { color: var(--gold); margin: 0 .5rem; }
.breadcrumb-bar .current { color: var(--ink); font-weight: 600; }

/* ===================================================================
   STAT / PRESTIGE
   =================================================================== */
.prestige-strip { background: var(--maroon-rich); color: var(--paper); }
.stat { padding: 0.4rem 1.4rem; border-left: 1px solid rgba(var(--gold-rgb),.32); }
.stat .num { font-family: "Fraunces", serif; font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--gold-bright); }
.stat .num.ink { color: var(--ink); }
.stat .num.maroon { color: var(--maroon); }
.stat .lbl { font-size: 0.82rem; color: var(--peach-400); margin-top: 0.6rem; line-height: 1.4; }
.stat .lbl.dark { color: var(--muted); }

.badge-pill { display: inline-flex; align-items: center; gap: 0.55rem; background: rgba(var(--paper-rgb),.06); border: 1px solid rgba(var(--gold-rgb),.35); padding: 0.55rem 1rem; border-radius: 30px; font-size: 0.82rem; font-weight: 500; color: var(--peach-100); }
.badge-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.badge-pill.light { background: var(--ivory); border-color: var(--line); color: var(--ink); }
.badge-pill.light .dot { background: var(--maroon); }

.chip { border: 1px solid var(--line); background: var(--cream-25); padding: 0.6rem 1rem; border-radius: 30px; font-size: 0.85rem; font-weight: 500; color: var(--neutral-800); }

/* ===================================================================
   CARDS
   =================================================================== */
.card-college { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 100%; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-college:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(var(--charcoal-rgb),.14); border-color: var(--line-strong); }
.card-college .media { position: relative; height: 180px; }
.card-college .dur-tag { position: absolute; top: 14px; left: 14px; background: rgba(var(--maroon-rich-rgb),.92); color: var(--gold-bright); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4rem 0.8rem; border-radius: 20px; }
.card-college .bar { height: 4px; background: var(--gold); }

.deg-tag { background: var(--maroon-100); color: var(--maroon); font-weight: 600; font-size: 0.8rem; padding: 0.32rem 0.7rem; border-radius: 5px; }

.feature-icon { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.feature-icon .dot { width: 12px; height: 12px; background: var(--maroon); border-radius: 3px; }
.feature-icon.on-dark { background: rgba(var(--paper-rgb),.05); border-color: rgba(var(--gold-rgb),.4); }
.feature-icon.on-dark .dot { background: var(--gold); }

.card-soft { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.card-dark { background: var(--neutral-850); border: 1px solid var(--neutral-800); border-radius: 12px; color: var(--warm-white-200); }

/* dashed ledger rows */
.ledger-row { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0; border-bottom: 1px dashed rgba(var(--paper-rgb),.14); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row .v { font-family: "Fraunces", serif; font-size: 1.7rem; color: var(--paper); }

/* image slot defaults */
image-slot { display: block; width: 100%; height: 100%; }

/* ===================================================================
   IMAGE PLACEHOLDER  (theme-style: diagonal cross + drawn dimensions)
   =================================================================== */
.img-ph {
  position: relative; width: 100%; height: 100%; min-height: 90px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  background-color: var(--cream-250);
  background-image:
    linear-gradient(to top right, transparent calc(50% - 0.8px), rgba(var(--maroon-deep-rgb),.16) calc(50% - 0.8px), rgba(var(--maroon-deep-rgb),.16) calc(50% + 0.8px), transparent calc(50% + 0.8px)),
    linear-gradient(to top left,  transparent calc(50% - 0.8px), rgba(var(--maroon-deep-rgb),.16) calc(50% - 0.8px), rgba(var(--maroon-deep-rgb),.16) calc(50% + 0.8px), transparent calc(50% + 0.8px));
  color: var(--muted);
  overflow: hidden;
}
.img-ph::before { /* frame border */
  content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(var(--maroon-deep-rgb),.28); border-radius: 4px; pointer-events: none;
}
.img-ph .img-ph-dim {
  font-family: "IBM Plex Mono", monospace; font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  background: rgba(var(--paper-rgb),.92); color: var(--maroon-deep);
  padding: .32rem .7rem; border-radius: 30px; border: 1px solid rgba(var(--maroon-deep-rgb),.18); white-space: nowrap;
}
.img-ph .img-ph-lbl {
  font-family: "Hanken Grotesk", sans-serif; font-size: .76rem; font-weight: 500; color: var(--neutral-500);
  max-width: 80%; text-align: center; line-height: 1.3; padding: 0 .5rem;
}
.img-ph.circle { border-radius: 50%; }
.img-ph.circle .img-ph-lbl { display: none; }
.img-ph.on-dark { background-color: var(--maroon-ink); color: var(--peach-200); }
.img-ph.on-dark .img-ph-dim { background: rgba(var(--black-rgb),.32); color: var(--gold-150); border-color: rgba(var(--gold-rgb),.4); }
.img-ph.on-dark::before { border-color: rgba(var(--gold-rgb),.4); }
.img-ph.on-dark .img-ph-lbl { color: var(--peach-500); }

/* ===================================================================
   FORMS (apply / contact)
   =================================================================== */
.form-control, .form-select {
  border-radius: 8px; border: 1.5px solid var(--line); padding: 0.7rem 0.95rem; font-size: 1rem; background: var(--paper);
}
.form-control:focus, .form-select:focus { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(var(--maroon-rgb),.12); }
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--ink); margin-bottom: 0.35rem; }

/* Progress stepper */
.stepper { display: flex; gap: 0; align-items: center; }
.stepper .step { display: flex; align-items: center; gap: .6rem; flex: 1; }
.stepper .dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex: 0 0 auto; border: 2px solid var(--line); color: var(--muted); background: var(--paper); }
.stepper .step.active .dot { background: var(--maroon); border-color: var(--maroon); color: var(--paper); }
.stepper .step.done .dot { background: var(--green); border-color: var(--green); color: var(--paper); }
.stepper .step .name { font-size: .82rem; font-weight: 600; color: var(--muted); }
.stepper .step.active .name { color: var(--ink); }
.stepper .line { height: 2px; background: var(--line); flex: 1; margin: 0 .4rem; }
.stepper .step.done + .line { background: var(--green); }

/* Counselor card */
.counselor-card { background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; }
.counselor-card .avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; border: 2px solid var(--gold); }

.countdown-box { background: var(--maroon); color: var(--paper); border-radius: 10px; }
.countdown-box .num { font-family: "Fraunces", serif; font-size: 2rem; font-weight: 600; line-height: 1; color: var(--gold-bright); }
.countdown-box .u { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--peach-100); margin-top: .3rem; }

/* FAQ accordion */
.faq .accordion-button { font-family: "Fraunces", serif; font-weight: 500; font-size: 1.15rem; color: var(--ink); background: var(--paper); }
.faq .accordion-button:not(.collapsed) { color: var(--maroon); background: var(--ivory); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: none; border-color: var(--line); }
.faq .accordion-item { border: 1px solid var(--line); border-radius: 10px !important; margin-bottom: 12px; overflow: hidden; }

/* timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline .t-item { position: relative; padding-bottom: 1.8rem; }
.timeline .t-item::before { content: ""; position: absolute; left: -2rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--maroon); }
.timeline .t-item.gold::before { border-color: var(--gold); }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer { background: var(--charcoal); color: var(--neutral-200); }
.site-footer a { color: var(--neutral-200); font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer .col-head { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 1.1rem; }
.site-footer .social { width: 38px; height: 38px; border: 1px solid var(--neutral-800); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--neutral-200); }
.site-footer .social:hover { border-color: var(--gold); color: var(--gold-bright); }
.footer-rule { border-top: 1px solid var(--neutral-800); }
.footer-band { height: 5px; background: linear-gradient(90deg, var(--maroon), var(--gold), var(--green)); }

/* ===================================================================
   CAROUSEL  (themed Bootstrap carousel)
   =================================================================== */
.carousel-rak { border-radius: 14px; overflow: hidden; }
.carousel-rak .carousel-item { height: 460px; position: relative; }
.carousel-rak .carousel-item > image-slot,
.carousel-rak .carousel-item > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.carousel-rak .slide-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--maroon-950-rgb),.92) 0%, rgba(var(--maroon-black-rgb),.7) 45%, rgba(var(--maroon-rich-rgb),.12) 80%); }
.carousel-rak .carousel-caption { left: 6%; right: auto; bottom: 12%; text-align: left; max-width: 540px; }
.carousel-rak .carousel-caption h3 { font-family: "Fraunces", serif; font-weight: 500; font-size: clamp(1.6rem,3vw,2.4rem); color: var(--paper); }
.carousel-rak .carousel-caption p { color: var(--peach-100); font-size: 1.05rem; }
.carousel-rak .carousel-control-prev, .carousel-rak .carousel-control-next { width: 8%; }
.carousel-rak .carousel-control-prev-icon, .carousel-rak .carousel-control-next-icon { background-color: rgba(var(--maroon-rgb),.85); border-radius: 50%; padding: 1.1rem; background-size: 42%; }
.carousel-rak .carousel-indicators [data-bs-target] { width: 30px; height: 4px; border-radius: 4px; background: rgba(var(--paper-rgb),.5); border: 0; }
.carousel-rak .carousel-indicators .active { background: var(--gold); }

/* logo / partner marquee track */
.logo-strip { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.logo-strip .cell { flex: 1 1 180px; min-height: 96px; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .92rem; background: var(--paper); }

/* ===================================================================
   TABS / PILLS NAV
   =================================================================== */
.nav-rak.nav-tabs { border-bottom: 1px solid var(--line); gap: .25rem; }
.nav-rak.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; padding: .8rem 1.1rem; border-radius: 0; }
.nav-rak.nav-tabs .nav-link:hover { color: var(--maroon); }
.nav-rak.nav-tabs .nav-link.active { color: var(--maroon); background: transparent; border-bottom-color: var(--maroon); }
.nav-rak.nav-pills .nav-link { color: var(--neutral-800); font-weight: 600; border: 1px solid var(--line); border-radius: 30px; padding: .5rem 1.1rem; background: var(--paper); }
.nav-rak.nav-pills .nav-link.active { background: var(--maroon); border-color: var(--maroon); color: var(--paper); }

/* ===================================================================
   ALERTS / CALLOUTS
   =================================================================== */
.alert-rak { border: 1px solid var(--line); border-left: 4px solid var(--maroon); background: var(--maroon-100); border-radius: 8px; padding: 1rem 1.2rem; color: var(--maroon-ink); }
.alert-rak.success { border-left-color: var(--green); background: var(--green-50); color: var(--green-ink); }
.alert-rak.gold    { border-left-color: var(--gold);  background: var(--gold-50); color: var(--gold-ink); }
.alert-rak.info    { border-left-color: var(--blue-500); background: var(--blue-50); color: var(--blue-ink); }
.alert-rak .h { font-weight: 700; }

/* ===================================================================
   PAGINATION
   =================================================================== */
.pagination-rak .page-link { color: var(--ink); border: 1px solid var(--line); margin: 0 3px; border-radius: 8px !important; min-width: 42px; text-align: center; font-weight: 600; }
.pagination-rak .page-link:hover { background: var(--ivory); color: var(--maroon); }
.pagination-rak .page-item.active .page-link { background: var(--maroon); border-color: var(--maroon); color: var(--paper); }
.pagination-rak .page-item.disabled .page-link { color: var(--muted); opacity: .5; }

/* ===================================================================
   PROGRESS
   =================================================================== */
.progress-rak { height: 10px; border-radius: 30px; background: var(--line-soft); overflow: hidden; }
.progress-rak .bar { height: 100%; background: var(--maroon); border-radius: 30px; }
.progress-rak .bar.gold { background: var(--gold); }
.progress-rak .bar.green { background: var(--green); }
.progress-ring { transform: rotate(-90deg); }
.progress-ring .track { stroke: var(--line); }
.progress-ring .val { stroke: var(--maroon); stroke-linecap: round; }

/* ===================================================================
   LIST GROUP / LINK LIST
   =================================================================== */
.list-rak { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.list-rak a, .list-rak .item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-weight: 500; }
.list-rak a:last-child, .list-rak .item:last-child { border-bottom: 0; }
.list-rak a:hover { background: var(--ivory); color: var(--maroon); }
.list-rak .meta { color: var(--muted); font-size: .85rem; font-weight: 500; }

/* ===================================================================
   DROPDOWN / TOOLTIP / MODAL  (themed Bootstrap)
   =================================================================== */
.dropdown-menu-rak { border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px rgba(var(--charcoal-rgb),.14); padding: .5rem; }
.dropdown-menu-rak .dropdown-item { border-radius: 7px; font-weight: 500; padding: .55rem .8rem; }
.dropdown-menu-rak .dropdown-item:hover { background: var(--ivory); color: var(--maroon); }
.dropdown-menu-rak .dropdown-item.active { background: var(--maroon); color: var(--paper); }
.tooltip.show .tooltip-inner { background: var(--ink); font-family: "Hanken Grotesk", sans-serif; border-radius: 7px; }
.tooltip .tooltip-arrow::before { border-top-color: var(--ink); }
.modal-rak .modal-content { border: 0; border-radius: 14px; overflow: hidden; }
.modal-rak .modal-header { background: var(--maroon-rich); color: var(--paper); border: 0; }
.modal-rak .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.modal-rak .modal-title { font-family: "Fraunces", serif; }

/* ===================================================================
   BLOCKQUOTE / TESTIMONIAL
   =================================================================== */
.quote-rak { border-left: 3px solid var(--gold); padding: .4rem 0 .4rem 1.4rem; }
.quote-rak p { font-family: "Fraunces", serif; font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--ink); }
.quote-rak .who { font-size: .9rem; color: var(--muted); font-style: normal; }
.quote-mark { font-family: "Fraunces", serif; font-size: 4rem; line-height: .6; color: var(--gold); }

/* small Bootstrap badge in brand tone */
.badge-maroon { background: var(--maroon) !important; color: var(--paper); font-weight: 600; }
.badge-gold { background: var(--gold) !important; color: var(--ink); font-weight: 600; }
.badge-green { background: var(--green) !important; color: var(--paper); font-weight: 600; }
.badge-soft { background: var(--maroon-100) !important; color: var(--maroon); font-weight: 600; }

/* ===================================================================
   STYLE-GUIDE / TOOLKIT PAGE
   =================================================================== */
.guide-side { position: sticky; top: 130px; }
.guide-side a { display: block; padding: .42rem 0 .42rem .9rem; color: var(--muted); font-size: .9rem; border-left: 2px solid var(--line); font-weight: 500; }
.guide-side a:hover, .guide-side a.active { color: var(--maroon); border-left-color: var(--maroon); }
.guide-block { padding-top: 2.4rem; padding-bottom: 2.4rem; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.guide-block:last-child { border-bottom: 0; }
.guide-label { font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.swatch { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.swatch .chip-color { height: 84px; }
.swatch .meta { padding: .7rem .8rem; }
.swatch .meta .nm { font-weight: 600; font-size: .9rem; }
.swatch .meta .hex { font-family: "IBM Plex Mono", monospace; font-size: .78rem; color: var(--muted); }
.spec-demo { background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; }
.code-tag { font-family: "IBM Plex Mono", monospace; font-size: .76rem; background: var(--neutral-850); color: var(--gold-200); padding: .2rem .5rem; border-radius: 5px; display: inline-block; }
.type-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.type-row .spec { font-family: "IBM Plex Mono", monospace; font-size: .76rem; color: var(--muted); white-space: nowrap; }

/* Skip link (accessibility — flagged in the audit) */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--maroon); color: var(--paper); padding: .6rem 1rem; z-index: 2000; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; color: var(--paper); }

/* Utilities */
.tracked { letter-spacing: 0.05em; }
.maxw-720 { max-width: 720px; }
.maxw-620 { max-width: 620px; }
.maxw-560 { max-width: 560px; }
.lh-relaxed { line-height: 1.7; }
.border-line { border-color: var(--line) !important; }

@media (max-width: 991px) {
  .main-nav, .utility-bar .util-desktop { display: none !important; }
  .stat .num { font-size: 2.1rem; }
}

/* ===================================================================
   ███  MODERN LAYER — 2025/26 UI refresh  ███
   Scroll-reveal motion, glass header, layered depth, marquee,
   gradient-mesh texture, micro-interactions. Brand-faithful.
   =================================================================== */

/* ---- 1. Scroll-reveal motion ----
   Elements are hidden ONLY while <html> is .reveal-ready AND NOT .reveal-all.
   The moment JS (or the head failsafe) adds .reveal-all, the hide rule stops
   matching entirely — content returns to its natural visibility with zero
   specificity battle, so it can never be stranded. JS adds .in per element
   for the staggered scroll-in effect before reveal-all.
*/
html.reveal-ready:not(.reveal-all) .rv,
html.reveal-ready:not(.reveal-all) section > .eyebrow,
html.reveal-ready:not(.reveal-all) section h1,
html.reveal-ready:not(.reveal-all) section h2,
html.reveal-ready:not(.reveal-all) .card-soft,
html.reveal-ready:not(.reveal-all) .card-college,
html.reveal-ready:not(.reveal-all) .card-dark,
html.reveal-ready:not(.reveal-all) .stat,
html.reveal-ready:not(.reveal-all) .timeline .t-item,
html.reveal-ready:not(.reveal-all) .swatch,
html.reveal-ready:not(.reveal-all) .guide-block,
html.reveal-ready:not(.reveal-all) .counselor-card,
html.reveal-ready:not(.reveal-all) .quote-rak,
html.reveal-ready:not(.reveal-all) .alert-rak,
html.reveal-ready:not(.reveal-all) .list-rak {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1);
  will-change: opacity, transform;
}
/* .in wins (added class = higher specificity) for the scroll-in reveal */
html.reveal-ready .rv.in,
html.reveal-ready section > .eyebrow.in,
html.reveal-ready section h1.in,
html.reveal-ready section h2.in,
html.reveal-ready .card-soft.in,
html.reveal-ready .card-college.in,
html.reveal-ready .card-dark.in,
html.reveal-ready .stat.in,
html.reveal-ready .timeline .t-item.in,
html.reveal-ready .swatch.in,
html.reveal-ready .guide-block.in,
html.reveal-ready .counselor-card.in,
html.reveal-ready .quote-rak.in,
html.reveal-ready .alert-rak.in,
html.reveal-ready .list-rak.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- 2. Glassmorphic sticky header ---- */
.site-header {
  background: rgba(var(--paper-rgb),.72);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(var(--line-rgb),.6);
}
.site-header.scrolled {
  background: rgba(var(--paper-rgb),.88);
  box-shadow: 0 10px 34px rgba(var(--charcoal-rgb),.10);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--paper); }
}
/* slightly tighter bar once scrolled — modern compress */
.site-header .d-flex[style*="min-height:80px"] { transition: min-height .3s ease; }
.site-header.scrolled .d-flex[style*="min-height:80px"] { min-height: 68px !important; }

/* ---- 3. Layered, softer depth + refined radii ---- */
.card-soft, .card-college, .counselor-card, .list-rak, .spec-demo, .swatch, .table-responsive.card-soft {
  border-radius: 16px;
}
.card-soft { box-shadow: 0 1px 2px rgba(var(--charcoal-rgb),.04), 0 8px 24px rgba(var(--charcoal-rgb),.05); transition: transform .28s cubic-bezier(.16,.84,.44,1), box-shadow .28s ease; }
.card-soft:hover { transform: translateY(-4px); box-shadow: 0 6px 14px rgba(var(--charcoal-rgb),.06), 0 22px 48px rgba(var(--charcoal-rgb),.12); }
.card-college { box-shadow: 0 1px 2px rgba(var(--charcoal-rgb),.04), 0 10px 26px rgba(var(--charcoal-rgb),.06); }
.btn { border-radius: 9px; }
.btn-lg { border-radius: 11px; }

/* ---- 4. Button shine micro-interaction ---- */
.btn-maroon, .btn-gold, .btn-on-maroon-light { position: relative; overflow: hidden; }
.btn-maroon::after, .btn-gold::after, .btn-on-maroon-light::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(var(--paper-rgb),.38), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.btn-maroon:hover::after, .btn-gold:hover::after, .btn-on-maroon-light:hover::after { left: 130%; }

/* ---- 5. Feature-icon polish ---- */
.feature-icon { border-radius: 12px; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.card-soft:hover .feature-icon, a:hover > .feature-icon { transform: rotate(-6deg) scale(1.06); border-color: var(--maroon); }

/* ---- 6. Gradient-mesh texture on dark surfaces ---- */
.bg-charcoal, .bg-maroon-rich, .prestige-strip {
  position: relative; isolation: isolate;
}
.bg-charcoal::before, .bg-maroon-rich::before, .prestige-strip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
  background:
    radial-gradient(40% 60% at 12% 0%, rgba(var(--gold-rgb),.14), transparent 70%),
    radial-gradient(50% 70% at 100% 100%, rgba(var(--maroon-rgb),.30), transparent 70%);
}
/* subtle grain overlay for premium feel */
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- 7. Live partner / accreditation marquee ---- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, var(--black) 8%, var(--black) 92%, transparent); mask-image: linear-gradient(90deg, transparent, var(--black) 8%, var(--black) 92%, transparent); }
.marquee .track { display: flex; gap: 0; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .cell { flex: 0 0 auto; min-width: 200px; min-height: 96px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; font-size: .95rem; border-right: 1px solid var(--line); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* ---- 8. Animated counter holds its space ---- */
.stat .num[data-count], .serif[data-count] { font-variant-numeric: tabular-nums; }

/* ---- 9. Eyebrow tick grows on reveal ---- */
html.reveal-ready:not(.reveal-all) section > .eyebrow::before { width: 0; transition: width .6s cubic-bezier(.16,.84,.44,1) .2s; }
html.reveal-ready section > .eyebrow.in::before { width: 26px; }

/* ---- 10. Refined focus ring (a11y + modern) ---- */
a:focus-visible, .btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible, .nav-link:focus-visible, button:focus-visible {
  outline: 2px solid var(--maroon); outline-offset: 2px; border-radius: 6px;
}

/* ---- 11. Image placeholders inherit modern radius ---- */
.card-college .media .img-ph { border-radius: 0; }
.img-ph { transition: filter .3s ease; }

/* ---- 12. Section heading accent — animated underline on hover blocks ---- */
.link-arrow::after { transition: transform .25s cubic-bezier(.16,.84,.44,1); }

/* ---- 13. Smooth-scroll for in-page anchors ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
