/* ============================================================
   TRANSFIGURATION SEMINARY OKPAUGWU
   Production Stylesheet · Complete
   ============================================================ */

/* ---------- FIX: make the [hidden] attribute work everywhere ---------- */
[hidden] {
  display: none !important;
}

/* ---------- Design Tokens ---------- */
:root {
  --navy:       #0A1F44;
  --navy-2:     #14315E;
  --navy-3:     #1E4480;
  --gold:       #D4A94D;
  --gold-light: #E8C26E;
  --gold-dark:  #A67C1F;
  --cream:      #FAF6EC;
  --paper:      #FFFFFF;
  --ink:        #1A1A1A;
  --ink-2:      #4A4A4A;
  --ink-3:      #7A7A7A;
  --line:       #E5E5E5;
  --success:    #1E7A3E;
  --danger:     #B91C1C;

  --font-sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Arial, sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;

  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 2px 12px rgba(10, 31, 68, 0.08);
  --shadow-hover:0 10px 30px rgba(10, 31, 68, 0.15);
  --t:           0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold-dark); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: var(--gold); color: var(--navy); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; position: relative; }
.section-white { background: var(--paper); }
.section-cream { background: var(--cream); }
.section-navy  { background: var(--navy); color: #fff; }
.text-center { text-align: center; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--navy);
}
.display-xl { font-size: clamp(32px, 6vw, 60px); }
.display-lg { font-size: clamp(28px, 4.5vw, 48px); }
.display-md { font-size: clamp(24px, 3vw, 36px); }
.display em { font-style: italic; color: var(--gold-dark); }

.section-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--gold-dark); font-weight: 700; }
.section-navy .section-title { color: #fff; }
.section-navy .section-title em { color: var(--gold-light); }

.section-title-light { color: #fff !important; }
.section-title-light em { color: var(--gold-light) !important; }

.section-subtitle {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 640px;
}
.lede-light { color: rgba(255, 255, 255, 0.78); }

/* Eyebrow / pill / label */
.eyebrow, .pill, .label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--gold);
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
}
.label-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
}
.eyebrow-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
}

/* Section heads */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-head-left {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head-left .display,
.section-head-left .section-title {
  color: var(--navy);
}
.section-head-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-head-split .display,
.section-head-split .section-title {
  color: var(--navy);
}

.section-cta {
  margin-top: 48px;
  text-align: center;
}

.empty-message, .empty-state {
  padding: 40px 0;
  color: var(--ink-3);
  font-style: italic;
  text-align: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 169, 77, 0.35);
}
.btn-ghost,
.btn-light,
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover,
.btn-light:hover,
.btn-outline:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-2);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost-dark:hover {
  background: var(--navy);
  color: #fff;
}
.btn-brass {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-brass:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 17px 38px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: all var(--t);
}
.btn-link:hover { color: var(--gold-dark); gap: 12px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar, .top-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .container, .top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-contact, .contact-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-contact span, .contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar i, .top-bar i { color: var(--gold); margin-right: 4px; }
.topbar-social, .social-icons {
  display: flex;
  gap: 6px;
}
.topbar-social a, .social-icons a {
  color: rgba(255, 255, 255, 0.7);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--t);
}
.topbar-social a:hover, .social-icons a:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ============================================================
   HEADER
   ============================================================ */
.header, .main-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header .container, .main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  gap: 20px;
  flex-wrap: wrap;
}
.brand, .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand-logo, .logo-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.brand-name, .logo h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.brand-name small, .logo h1 small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 3px;
}

.nav, .header-nav, #mainNav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a, .header-nav a, #mainNav a {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--t);
  text-decoration: none;
}
.nav a:hover, .header-nav a:hover, #mainNav a:hover,
.nav a.active, .header-nav a.active, #mainNav a.active {
  background: var(--cream);
  color: var(--navy);
}
.nav a.cta, .header-cta, .cbt-nav-btn {
  background: var(--navy);
  color: #fff !important;
  margin-left: 8px;
}
.nav a.cta:hover, .header-cta:hover, .cbt-nav-btn:hover {
  background: var(--gold);
  color: var(--navy) !important;
}

.menu-toggle, .menu-btn, .mobile-toggle {
  display: none;
  font-size: 24px;
  color: var(--navy);
  padding: 8px;
  border-radius: 6px;
}
.menu-toggle:hover, .mobile-toggle:hover { background: var(--cream); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 90px 0 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 169, 77, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container, .hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}
.hero-content { max-width: 640px; }
.hero-kicker, .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.hero-kicker::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero-title em, .hero-title span {
  font-style: italic;
  color: var(--gold);
  font-weight: 700;
}
.hero-lede, .hero p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-actions, .hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-side {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.hero-side-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.hero-side-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-side-stat:last-child { border-bottom: none; }
.hero-side-stat strong {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.hero-side-stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-visual, .hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual-card, .hero-img-placeholder {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 169, 77, 0.35);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--gold-light);
}
.hero-strip {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
}
.hero-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.hero-strip-inner span { display: inline-flex; align-items: center; gap: 10px; }
.hero-strip-inner i { color: var(--gold); }
/* ============================================================
   HERO BUTTONS — Compact size for 3 buttons
   ============================================================ */
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions .btn {
  padding: 12px 20px;
  font-size: 13px;
  gap: 8px;
  border-width: 1.5px;
}

.hero-actions .btn i {
  font-size: 12px;
}

/* Slightly tighter on tablets */
@media (max-width: 1200px) {
  .hero-actions .btn {
    padding: 11px 16px;
    font-size: 12px;
  }
}
/* Reduce hero content padding so buttons have more room */
.hero-content {
  max-width: 600px;
}

.hero-lede {
  font-size: 15.5px;
  margin-bottom: 28px;
}
/* Stack vertically on mobile so they stay full-width and tappable */
@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 13px;
    justify-content: center;
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--gold);
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.stat-item, .stat {
  background: var(--paper);
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.stat-item .number, .stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .label, .stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Preface variant */
.preface {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}
.preface-aside-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 20px;
}
.preface-aside-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.preface-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.preface-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.pillar { display: block; }
.pillar-num {
  font-size: 20px;
  font-style: italic;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 8px;
}
.pillar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.pillar-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ============================================================
   ADMISSIONS
   ============================================================ */
.admissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.admission-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--t);
}
.admission-step:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.admission-step h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.admission-step p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.step-num {
  font-size: 32px;
  font-weight: 800;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}
.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0 auto 16px;
}

/* Navy-section variants (dark background) */
.section-navy .admission-step {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.section-navy .admission-step:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
}
.section-navy .admission-step h4 { color: #fff; }
.section-navy .admission-step p { color: rgba(255, 255, 255, 0.75); }
.section-navy .step-icon {
  background: rgba(212, 169, 77, 0.2);
  color: var(--gold-light);
}

/* Numbered-list variant (used in index.php) */
.admissions-list {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 40px;
}
.section-cream .admissions-list,
.section-white .admissions-list {
  border-top-color: var(--line);
}

.admission-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--t);
}
.section-cream .admission-row,
.section-white .admission-row {
  border-bottom-color: var(--line);
}
.admission-row:hover {
  background: rgba(255, 255, 255, 0.04);
  padding-left: 16px;
  padding-right: 16px;
}
.section-cream .admission-row:hover,
.section-white .admission-row:hover {
  background: var(--cream);
}
.admission-num {
  font-size: 40px;
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
}
.section-cream .admission-num,
.section-white .admission-num {
  color: var(--gold-dark);
}
.admission-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.section-cream .admission-body h3,
.section-white .admission-body h3 {
  color: var(--navy);
}
.admission-body p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}
.section-cream .admission-body p,
.section-white .admission-body p {
  color: var(--ink-2);
}
.admission-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--t);
}
.section-cream .admission-icon,
.section-white .admission-icon {
  color: var(--gold-dark);
}
.admission-row:hover .admission-icon {
  background: var(--gold);
  color: var(--navy);
  transform: rotate(-45deg);
}

/* ============================================================
   EVENTS
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.events-ledger {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.event-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  transition: all var(--t);
}
.event-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.event-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: all var(--t);
}
.event-item:hover {
  background: var(--cream);
  padding-left: 16px;
  padding-right: 16px;
}
.event-card-date, .event-item-date {
  text-align: center;
  padding-right: 20px;
  border-right: 1px solid var(--line);
  flex-shrink: 0;
}
.event-day, .event-item-day {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.event-month, .event-item-month {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 4px;
}
.event-card-body h4, .event-item-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.event-card-body p, .event-item-body p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.event-item-arrow {
  color: var(--gold-dark);
  font-size: 16px;
  transition: all var(--t);
}
.event-item:hover .event-item-arrow {
  transform: translateX(6px);
  color: var(--navy);
}

/* ============================================================
   NEWS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.news-magazine {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}
.news-card, .news-feature, .news-secondary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
}
.news-card:hover, .news-feature:hover, .news-secondary:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.news-feature {
  border-top: 4px solid var(--navy);
  background: var(--cream);
}
.news-date, .news-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.news-card h4, .news-feature h3, .news-secondary h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
}
.news-feature h3 { font-size: 26px; }
.news-excerpt, .news-card p, .news-feature p, .news-secondary p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  flex-grow: 1;
}
.full-content {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.full-content.show { display: block; }
.full-content ul { margin: 10px 0 12px 22px; }
.full-content li { margin-bottom: 6px; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 16px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: all var(--t);
}
.read-more:hover {
  color: var(--gold-dark);
  gap: 12px;
}

/* ============================================================
   CBT BAND
   ============================================================ */
.cbt-band, .cbt-promo {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.cbt-band::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 169, 77, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cbt-band-inner, .cbt-promo-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cbt-band h2, .cbt-promo-title, .cbt-band-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.cbt-band h2 em, .cbt-band-title em {
  font-style: italic;
  color: var(--gold-light);
}
.cbt-band p, .cbt-promo-text, .cbt-band-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  line-height: 1.65;
}

/* ============================================================
   STAFF
   ============================================================ */
.staff-grid, .staff-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.staff-card, .staff-member {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--t);
}
.staff-card:hover, .staff-member:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.staff-avatar, .staff-portrait {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
}
.staff-card h4, .staff-member h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.staff-card p, .staff-member p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid, .quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card, .quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: all var(--t);
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover, .quote-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 60px;
  line-height: 0.7;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 16px;
}
.testimonial-card .quote, .quote-text {
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 24px;
  flex-grow: 1;
}
.testimonial-card .author, .quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.testimonial-card .author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.testimonial-card .name, .author-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  display: block;
}
.testimonial-card .role, .author-role {
  font-size: 12px;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Navy section testimonial variant */
.section-navy .quote-card,
.section-navy .testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.section-navy .quote-card:hover,
.section-navy .testimonial-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
}
.section-navy .quote-text,
.section-navy .testimonial-card .quote {
  color: rgba(255, 255, 255, 0.92);
}
.section-navy .quote-author,
.section-navy .testimonial-card .author {
  border-top-color: rgba(255, 255, 255, 0.15);
}
.section-navy .author-name,
.section-navy .testimonial-card .name {
  color: var(--gold-light);
}
.section-navy .author-role,
.section-navy .testimonial-card .role {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid, .gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.gallery-item, .gallery-cell {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cream), #E5DCC5);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.gallery-item:hover, .gallery-cell:hover {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--gold);
  transform: scale(1.03);
  border-color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer, .main-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 24px;
  border-top: 4px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4, .footer h5, .main-footer h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer a, .main-footer a {
  color: rgba(255, 255, 255, 0.65);
  display: block;
  padding: 5px 0;
  font-size: 14px;
  transition: all var(--t);
}
.footer a:hover, .main-footer a:hover {
  color: var(--gold);
  padding-left: 6px;
}
.footer-contact p, .main-footer p {
  font-size: 14px;
  line-height: 1.8;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact i, .main-footer p i {
  color: var(--gold);
  margin-top: 4px;
  width: 16px;
  flex-shrink: 0;
}
.footer-social, .main-footer .social-icons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.footer-social a, .main-footer .social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
}
.footer-social a:hover, .main-footer .social-icons a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  padding-left: 0;
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.to-top, .scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transition: all var(--t);
  z-index: 99;
  border: 2px solid var(--gold);
}
.to-top.visible, .scroll-top.visible { opacity: 1; visibility: visible; }
.to-top:hover, .scroll-top:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

/* ============================================================
   CBT PORTAL
   ============================================================ */
.cbt-page { background: var(--cream); min-height: 100vh; }
.cbt-masthead {
  background: var(--navy);
  color: #fff;
  padding: 32px 0;
  border-bottom: 3px solid var(--gold);
}
.cbt-masthead .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cbt-masthead-brand { display: flex; align-items: center; gap: 18px; }
.cbt-masthead-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.cbt-masthead h1 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: #fff;
}
.cbt-masthead small {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.cbt-main { padding: 60px 0 80px; }

/* Login split */
.login-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  max-width: 960px;
  margin: 0 auto;
}
.login-intro {
  background: var(--navy);
  color: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-intro-mark {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 28px;
}
.login-intro h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.login-intro h2 em { font-style: italic; color: var(--gold-light); }
.login-intro p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
}
.login-intro-rules {
  list-style: none;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.login-intro-rules li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.login-intro-rules i { color: var(--gold); font-size: 8px; }

.login-form { padding: 48px 40px; background: #fff; }
.login-form h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.login-form > p {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.form-field, .form-group { margin-bottom: 20px; }
.form-field label, .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-input {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: all var(--t);
}
.form-input i { color: var(--ink-3); margin-right: 12px; }
.form-input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 0;
  background: none;
  font-size: 15px;
  color: var(--ink);
}
.form-group input, .form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 15px;
  transition: all var(--t);
  color: var(--ink);
}
.form-input:focus-within,
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 169, 77, 0.2);
}
.form-error, .alert-danger {
  background: #FEE;
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius);
  border-left: 4px solid var(--danger);
  font-size: 14px;
  margin-top: 16px;
}
.form-help {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 24px;
  text-align: center;
  line-height: 1.6;
}
.form-help a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
}

/* Dashboard */
.dash-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  min-height: 560px;
}
.dash-aside {
  background: var(--navy);
  color: #fff;
  padding: 40px 28px;
}
.dash-student {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.dash-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  margin: 0 auto 18px;
  border: 3px solid rgba(255, 255, 255, 0.15);
}
.dash-student h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.dash-student p { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.dash-menu { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.dash-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--t);
}
.dash-menu a:hover, .dash-menu a.active {
  background: rgba(212, 169, 77, 0.18);
  color: var(--gold-light);
}
.dash-main { padding: 40px; color: var(--ink); }
.dash-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.dash-head h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.dash-head p { color: var(--ink-2); font-size: 15px; }

.exam-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.exam-tile, .exam-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all var(--t);
}
.exam-tile:hover, .exam-item:hover {
  border-color: var(--gold);
  background: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.exam-tile-icon, .exam-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.exam-tile h3, .exam-item h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.exam-tile-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.exam-tile-meta, .exam-item .meta {
  list-style: none;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.exam-item .meta {
  border: none;
  padding: 4px 0;
  margin: 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.exam-tile-meta i, .exam-item .meta i {
  color: var(--gold-dark);
  width: 16px;
  margin-right: 8px;
}
.exam-tile-foot, .exam-item-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.exam-badge, .status-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
}
.exam-badge-open, .status-available { background: #D1FAE5; color: var(--success); }
.exam-badge-done, .status-done { background: var(--line); color: var(--ink-3); }
.btn-start {
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: all var(--t);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.btn-start:hover:not(:disabled) {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.btn-start:disabled { opacity: 0.5; cursor: not-allowed; }

/* Exam screen */
.exam-shell, .exam-screen {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.exam-bar, .exam-header {
  background: var(--navy);
  color: #fff;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.exam-bar-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.exam-bar h2, .exam-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.exam-clock, .timer {
  font-family: 'Courier New', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid rgba(212, 169, 77, 0.5);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}
.exam-clock i, .timer i { color: var(--gold-light); }
.exam-clock-urgent {
  background: rgba(185, 28, 28, 0.4);
  animation: pulse 1.2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.exam-track, .exam-progress {
  height: 4px;
  background: var(--line);
}
.exam-track > div, .exam-progress-bar {
  height: 100%;
  background: var(--gold);
  width: 0;
  transition: width 0.4s ease;
}

.exam-body { padding: 48px; min-height: 360px; }
.exam-q, .exam-question { display: none; }
.exam-q.active, .exam-question.active { display: block; }
.exam-q-num, .exam-question .q-number {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.exam-q-text, .exam-question .q-text {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 32px;
}
.exam-choices, .exam-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exam-choice, .exam-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t);
  user-select: none;
}
.exam-choice:hover, .exam-option:hover {
  border-color: var(--gold);
  background: #fff;
}
.exam-choice input, .exam-option input { display: none; }
.exam-choice-key {
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
  color: var(--gold-dark);
  min-width: 24px;
}
.exam-choice-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}
.exam-choice.active, .exam-option.selected {
  background: var(--navy);
  border-color: var(--navy);
}
.exam-choice.active .exam-choice-key { color: var(--gold-light); }
.exam-choice.active .exam-choice-text { color: #fff; }

.exam-foot, .exam-nav {
  padding: 24px 32px;
  background: var(--cream);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.exam-nav-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.exam-nav-dot {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}
.exam-nav-dot:hover { border-color: var(--gold); color: var(--navy); }
.exam-nav-dot.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.exam-nav-dot.answered { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* Result */
.exam-result {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  text-align: center;
}
.exam-result-mark, .score-circle {
  width: 160px;
  height: 160px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--gold);
  box-shadow: 0 15px 40px rgba(10, 31, 68, 0.25);
}
.exam-result-num, .score-circle .big {
  font-size: 56px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.exam-result-label, .score-circle .small {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}
.exam-result h2, .exam-result h4 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}
.exam-result p {
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.exam-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   RESULT CHECKER
   ============================================================ */
.result-checker {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  border-top: 6px solid var(--gold);
  box-shadow: var(--shadow-hover);
}
.result-checker h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  text-align: center;
}
.result-checker .sub {
  text-align: center;
  color: var(--ink-3);
  margin-bottom: 28px;
  font-size: 15px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.btn-check {
  width: 100%;
  padding: 15px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.btn-check:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.result-output { margin-top: 32px; display: none; }
.result-output.show { display: block; }
.result-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 5px solid var(--gold);
}
.student-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--line);
}
.student-info span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 4px;
}
.student-info strong {
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
}
.result-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.result-table th, .result-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.result-table th {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.result-table tr:last-child td { border-bottom: none; }
.grade-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  background: var(--gold);
  color: var(--navy);
}
.result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 3px solid var(--gold);
}
.result-summary .item { text-align: center; }
.result-summary .value {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
.result-summary .label {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  background: none;
  padding: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container, .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .preface { grid-template-columns: 1fr; gap: 40px; }
  .preface-pillars { grid-template-columns: 1fr; gap: 24px; }
  .news-magazine { grid-template-columns: 1fr; }
  .login-split { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 0; }
  .hero .container { padding-bottom: 60px; }

  .menu-toggle, .menu-btn, .mobile-toggle { display: block; }
  .nav, .header-nav, #mainNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-hover);
    gap: 4px;
  }
  .nav.open, .header-nav.open, #mainNav.open { display: flex; }
  .nav a, .header-nav a, #mainNav a { padding: 14px 16px; text-align: left; }
  .nav a.cta, .header-cta, .cbt-nav-btn {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  .admission-row, .event-item {
    grid-template-columns: 70px 1fr;
    gap: 16px;
    padding: 20px 0;
  }
  .admission-icon, .event-item-arrow { display: none; }
  .admission-num, .event-item-day { font-size: 28px; }

  .exam-body { padding: 32px 24px; }
  .exam-bar, .exam-foot, .exam-header, .exam-nav { padding: 20px 24px; }
  .exam-result { padding: 40px 24px; }
  .login-intro, .login-form { padding: 32px 24px; }
  .dash-main { padding: 32px 24px; }

  .about-stats { grid-template-columns: 1fr; }
  .hero-side-stat strong { font-size: 22px; }

  .footer-bottom { flex-direction: column; text-align: center; }
  .staff-grid, .staff-roster { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, .gallery-mosaic { grid-template-columns: repeat(2, 1fr); }
  .exam-tiles { grid-template-columns: 1fr; }
  .cbt-band-inner, .cbt-promo-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero-title { font-size: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .staff-grid, .staff-roster { grid-template-columns: 1fr; }
  .result-table th, .result-table td { padding: 8px; font-size: 12px; }
  .exam-choice { padding: 14px 16px; gap: 12px; }
  .exam-result-mark, .score-circle { width: 140px; height: 140px; }
  .exam-result-num, .score-circle .big { font-size: 42px; }
}

/* ============================================================
   ACCESSIBILITY & MOTION
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .topbar, .header, .footer, .to-top,
  .hero-actions, .btn {
    display: none !important;
  }
  body { background: #fff; }
  .section { padding: 20px 0; }
}
/* ============================================================
   MOTTO BAND
   ============================================================ */
.motto-band {
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.motto-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.motto-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 20px;
}
.motto-text {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  font-style: italic;
}
.motto-text em {
  color: var(--gold-dark);
  font-style: italic;
}
.motto-verse {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  font-style: italic;
}
.motto-verse cite {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

/* ============================================================
   HISTORY TIMELINE
   ============================================================ */
.history-timeline {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 1px;
}
.timeline-body strong {
  display: block;
  font-size: 17px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 4px;
}
.timeline-body span {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.5px;
}
.timeline-item-current {
  background: var(--cream);
  padding: 20px 24px;
  border-radius: var(--radius);
  border-bottom: none;
  margin-top: 8px;
}
.timeline-item-current .timeline-year { color: var(--navy); }

/* ============================================================
   FACILITIES GRID
   ============================================================ */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.facility-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--t);
}
.facility-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.facility-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.facility-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.facility-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* ============================================================
   CONTACT / LOCATION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--paper);
  border: 2px solid var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-info-item strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 6px;
}
.contact-info-item p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
}
.contact-info-item em {
  font-size: 13px;
  color: var(--ink-3);
  font-style: italic;
}

.contact-aside {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-aside-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 20px;
}
.contact-aside-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-aside-row:last-of-type { border-bottom: none; }
.contact-aside-row span {
  font-size: 14px;
  color: var(--ink-3);
}
.contact-aside-row strong {
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
}
.contact-aside-cta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .timeline-item { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .facilities-grid { grid-template-columns: 1fr; }
  .contact-info-item { grid-template-columns: 44px 1fr; gap: 14px; }
  .contact-info-icon { width: 44px; height: 44px; font-size: 16px; }
}
/* ============================================================
   FEE / PAYMENT / APPLICATION
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 80px 0 60px;
}

.fee-groups {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}
.fee-group {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fee-group-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--navy);
  color: #fff;
}
.fee-group-letter {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  font-style: italic;
  min-width: 44px;
}
.fee-group-head h3 { font-size: 20px; font-weight: 700; color: #fff; margin: 0; }
.fee-group-head p { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; }

.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th, .fee-table td {
  padding: 14px 28px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.fee-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-3);
  font-weight: 700;
  background: var(--cream);
}
.fee-amount { text-align: right; font-weight: 600; color: var(--navy); }
.fee-subtotal td { background: var(--cream); }
.fee-total td { background: var(--gold); color: var(--navy); font-weight: 800; }

.fee-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.fee-summary-card {
  background: var(--navy);
  color: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
}
.fee-summary-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.fee-summary-rows div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 15px;
}
.fee-summary-rows div:last-child { border-bottom: none; }
.fee-summary-rows strong { color: var(--gold-light); font-size: 18px; }

.payment-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}
.payment-bank {
  background: var(--navy);
  color: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
}
.payment-bank-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.payment-bank-name {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 32px;
}
.payment-bank-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.payment-bank-row span { font-size: 13px; color: rgba(255,255,255,0.7); }
.payment-bank-row strong { color: #fff; font-size: 15px; }
.payment-account-no {
  color: var(--gold-light) !important;
  font-size: 22px !important;
  font-family: 'Courier New', monospace;
  letter-spacing: 3px;
}

.payment-instructions { margin-top: 32px; }
.payment-instructions h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.payment-instructions ol { padding-left: 20px; color: rgba(255,255,255,0.85); }
.payment-instructions li { padding: 6px 0; font-size: 14px; }

.payment-upload {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.payment-upload-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.payment-upload-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.payment-upload-hint { color: var(--ink-3); font-size: 14px; margin-bottom: 28px; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,31,68,0.7);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 460px;
  text-align: center;
}
.modal-icon { font-size: 60px; color: var(--success); margin-bottom: 20px; }
.modal-card h3 { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.modal-card > p { color: var(--ink-2); margin-bottom: 24px; }
.modal-ref {
  background: var(--cream);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.modal-ref span {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.modal-ref strong {
  font-family: 'Courier New', monospace;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 2px;
}
.modal-hint { font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* Apply form */
.apply-notice {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 40px;
}
.apply-notice-icon { font-size: 28px; color: var(--gold-dark); }
.apply-notice strong { display: block; font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.apply-notice p { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.6; }
.apply-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
}
.apply-bank strong {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: 2px;
}

.apply-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-section {
  border: none;
  padding: 0 0 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-of-type { border-bottom: none; }
.form-section legend {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  padding: 0;
  margin-bottom: 24px;
}
.form-hint { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; line-height: 1.6; }
.form-terms {
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}

.apply-success {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}
.apply-success-icon { font-size: 80px; color: var(--success); margin-bottom: 24px; }
.apply-success h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}
.apply-success > p {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.apply-success-ref {
  background: var(--cream);
  padding: 24px;
  border-radius: var(--radius);
  display: inline-block;
  margin-bottom: 24px;
}
.apply-success-ref span {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.apply-success-ref strong {
  font-family: 'Courier New', monospace;
  font-size: 28px;
  color: var(--navy);
  letter-spacing: 3px;
}

@media (max-width: 900px) {
  .payment-split { grid-template-columns: 1fr; }
  .apply-form, .payment-upload, .payment-bank { padding: 28px 20px; }
}
/* ============================================================
   AMOUNT QUICK-PICK CHIPS
   ============================================================ */
.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: -8px 0 20px;
  padding: 14px 16px;
  background: var(--cream);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.amount-chips-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  font-family: inherit;
}
.chip:hover {
  border-color: var(--gold);
  background: var(--paper);
  transform: translateY(-1px);
}
.chip.chip-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
/* ============================================================
   HERO IMAGE (dynamic from featured gallery)
   ============================================================ */
.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
}

.hero-image-frame {
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

.hero-image-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(10, 31, 68, 0.85);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  z-index: 3;
  backdrop-filter: blur(8px);
  border-left: 3px solid var(--gold);
}

/* ============================================================
   GALLERY MOSAIC (real images)
   ============================================================ */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}

.gallery-mosaic .gallery-tile {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--cream);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-mosaic .gallery-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(10, 31, 68, 0.18);
  z-index: 2;
}

.gallery-mosaic .gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery-mosaic .gallery-tile:hover img {
  transform: scale(1.08);
}

.gallery-tile-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 18px 16px;
  background: linear-gradient(to top, rgba(10, 31, 68, 0.92), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-mosaic .gallery-tile:hover .gallery-tile-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-tile-caption strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.3;
}

.gallery-tile-caption span {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.4;
}

/* Asymmetric mosaic layout — first 6 tiles */
.gallery-mosaic .gallery-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-mosaic .gallery-tile:nth-child(2) { grid-column: span 2; }
.gallery-mosaic .gallery-tile:nth-child(3) { grid-column: span 1; }
.gallery-mosaic .gallery-tile:nth-child(4) { grid-column: span 1; }
.gallery-mosaic .gallery-tile:nth-child(5) { grid-column: span 2; }
.gallery-mosaic .gallery-tile:nth-child(6) { grid-column: span 2; }
.gallery-mosaic .gallery-tile:nth-child(7) { grid-column: span 2; }
.gallery-mosaic .gallery-tile:nth-child(8) { grid-column: span 2; }

/* Empty state */
.gallery-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-3);
}
.gallery-empty i {
  font-size: 48px;
  color: var(--line);
  margin-bottom: 16px;
  display: block;
}
.gallery-empty p {
  font-size: 15px;
  font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-image-wrap { max-width: 420px; }
  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-mosaic .gallery-tile:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-mosaic .gallery-tile:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 480px) {
  .hero-image { aspect-ratio: 1; }
  .hero-image-frame { inset: 12px -12px -12px 12px; }
  .gallery-mosaic { grid-auto-rows: 140px; gap: 8px; }
  .gallery-tile-caption strong { font-size: 13px; }
  .gallery-tile-caption span { font-size: 11px; }
}
/* ============================================================
   CBT PORTAL — Full-screen standalone mode
   ============================================================ */
body.cbt-body {
  background: var(--cream, #F5EFE0);
  overflow-x: hidden;
}

body.cbt-body .cbt-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.cbt-body .cbt-main {
  flex: 1 1 auto;
}

/* Optional: full-height centered login stage */
body.cbt-body #stage-login .container-narrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
}

/* Optional: subtle focus outline for the admission input */
body.cbt-body #cbtAdmissionNumber:focus {
  outline: none;
}