/* ══════════════════════════════════════════════════════════════
   REX VARSITY COMPREHENSIVE COLLEGE — MASTER THEME
   Palette: Royal Navy/Purple + Gold
   Osogbo, Osun State | Motto: God's Golden Heritage
══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --primary:       #1b2330;
  --primary-dark:  #0c1118;
  --primary-mid:   #273140;
  --primary-light: #3d4a5d;
  --gold:          #f07a00;
  --gold-dark:     #c65f00;
  --gold-light:    #ffb443;
  --gold-pale:     #fff4e6;
  --white:         #ffffff;
  --light:         #fff8ee;
  --light2:        #f8f9fa;
  --dark:          #0a0c1a;
  --text:          #1a1a2e;
  --muted:         #6b7280;
  --border:        #e2e5f1;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 8px 32px rgba(27,35,48,.10);
  --shadow-lg:     0 20px 60px rgba(27,35,48,.18);
  --transition:    .3s cubic-bezier(.4,0,.2,1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
p { color: #4b5563; }

/* ── UTILITIES ── */
.text-gold    { color: var(--gold) !important; }
.text-primary-rvcc { color: var(--primary) !important; }
.bg-primary-rvcc   { background: var(--primary) !important; }
.bg-dark-rvcc      { background: var(--primary-dark) !important; }
.bg-gold      { background: var(--gold) !important; }
.bg-light-rvcc{ background: var(--light) !important; }
.section-gap  { padding: 90px 0; }
.section-gap-sm { padding: 60px 0; }

/* ── SECTION LABEL ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--primary-dark);
  margin-bottom: .5rem;
}
.section-title span { color: var(--gold-dark); }
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 580px;
}

/* ══ TOP BAR ══ */
.rvcc-topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.7);
  font-size: .73rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(245,166,35,.15);
}
.rvcc-topbar a { color: rgba(255,255,255,.7); transition: color .2s; }
.rvcc-topbar a:hover { color: var(--gold-light); }
.rvcc-topbar .bi { margin-right: 4px; color: var(--gold); }
.topbar-divider { opacity: .25; margin: 0 10px; }

/* ══ NAVBAR ══ */
.rvcc-nav {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.rvcc-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.rvcc-nav .brand-logo {
  height: 64px;
  width: 86px;
  object-fit: contain;
  border-radius: 0;
  border: 2px solid rgba(245,166,35,.4);
  background: white;
  padding: 3px;
}
.rvcc-nav .brand-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: .02em;
  line-height: 1.2;
}
.rvcc-nav .brand-text small {
  font-size: .6rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rvcc-nav .nav-link {
  color: rgba(255,255,255,.78) !important;
  font-size: .82rem;
  font-weight: 500;
  padding: 22px 13px !important;
  position: relative;
  transition: color .2s;
  letter-spacing: .01em;
}
.rvcc-nav .nav-link:hover,
.rvcc-nav .nav-link.active { color: var(--gold-light) !important; }
.rvcc-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 13px; right: 13px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .25s;
}
.rvcc-nav .nav-link:hover::after,
.rvcc-nav .nav-link.active::after { transform: scaleX(1); }

.btn-apply {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--primary-dark) !important;
  border-radius: 8px !important;
  padding: 9px 20px !important;
  font-weight: 700 !important;
  font-size: .8rem !important;
  transition: var(--transition) !important;
  border: none !important;
}
.btn-apply:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,166,35,.4) !important;
}
.btn-portal {
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.85) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 8px !important;
  padding: 9px 20px !important;
  font-weight: 600 !important;
  font-size: .8rem !important;
  transition: var(--transition) !important;
}
.btn-portal:hover {
  background: rgba(255,255,255,.15) !important;
  border-color: var(--gold) !important;
  color: var(--gold-light) !important;
}

/* Hamburger toggler */
.navbar-toggler {
  border: 1px solid rgba(245,166,35,.3) !important;
  padding: 6px 10px;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(245,166,35,.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ══ HERO ══ */
.rvcc-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-mid) 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.rvcc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(245,166,35,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,255,255,.04) 0%, transparent 70%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.015) 0, rgba(255,255,255,.015) 1px, transparent 0, transparent 50%);
  background-size: 40px 40px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.3);
  color: var(--gold-light);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero-badge .bi { color: var(--gold); }
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.hero-title .gold-word { color: var(--gold-light); }
.hero-motto {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(245,166,35,.2);
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 36px;
}
.btn-hero-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary-dark);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245,166,35,.4);
  color: var(--primary-dark);
}
.btn-hero-secondary {
  background: rgba(255,255,255,.08);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid rgba(255,255,255,.25);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--gold);
  color: var(--gold-light);
}
.hero-crest-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-crest-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(245,166,35,.18) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.08); opacity: .7; }
}
.hero-crest {
  width: 260px;
  height: 260px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.4));
}
.hero-crest-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245,166,35,.2);
  animation: rotateSlow 25s linear infinite;
}
.hero-crest-ring.r1 { width: 300px; height: 300px; }
.hero-crest-ring.r2 { width: 350px; height: 350px; border-style: dashed; animation-direction: reverse; animation-duration: 35s; }
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.hero-stat .lbl {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
}

/* ══ MARQUEE BAND ══ */
.rvcc-band {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  padding: 12px 0;
  overflow: hidden;
}
.band-track {
  display: flex;
  gap: 0;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.band-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.band-track span .bi { font-size: .9rem; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ══ ABOUT SECTION ══ */
.about-img-wrap {
  position: relative;
}
.about-img-main {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-img-badge .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.about-img-badge .txt {
  font-size: .7rem;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.about-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.about-check-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--text);
  font-weight: 500;
}
.about-check-list li .bi {
  color: var(--gold-dark);
  font-size: .9rem;
  flex-shrink: 0;
}

/* ══ PILLARS SECTION ══ */
.pillars-section { background: var(--light); }
.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--gold-light);
  box-shadow: 0 8px 20px rgba(26,31,143,.25);
}
.pillar-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 4rem;
  font-weight: 900;
  color: rgba(26,31,143,.05);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.pillar-card h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary-dark); }
.pillar-card p  { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* ══ STATS SECTION ══ */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stat-item { text-align: center; padding: 30px 20px; }
.stat-item .count {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  display: block;
}
.stat-item .stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: 8px;
  display: block;
}
.stat-item .stat-icon {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}

/* ══ PROGRAMMES ══ */
.prog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}
.prog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.prog-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.prog-card-header::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(245,166,35,.1);
}
.prog-card-header .bi {
  font-size: 2rem;
  color: var(--gold-light);
  position: relative;
}
.prog-card-header h4 {
  color: var(--white);
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 1.1rem;
}
.prog-card-body { padding: 24px; }
.prog-card-body p { font-size: .88rem; color: var(--muted); margin-bottom: 16px; }
.prog-tag {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  margin: 2px;
  border: 1px solid var(--border);
}

/* ══ NEWS CARDS ══ */
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(245,166,35,.5);
  overflow: hidden;
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-date {
  display: inline-block;
  background: var(--gold);
  color: var(--primary-dark);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.news-card-body { padding: 20px; }
.news-card-body h5 { font-size: 1rem; margin-bottom: 8px; color: var(--primary-dark); }
.news-card-body p  { font-size: .84rem; color: var(--muted); }
.news-read-more {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.news-read-more:hover { color: var(--gold-dark); gap: 8px; }

/* ══ CTA BANNER ══ */
.cta-section {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23000' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.cta-section h2 { color: var(--primary-dark); }
.cta-section p  { color: rgba(13,18,96,.7); }
.btn-cta-dark {
  background: var(--primary-dark);
  color: var(--gold-light);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-cta-dark:hover {
  background: var(--dark);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}

/* ══ FOOTER ══ */
.rvcc-footer {
  background: var(--dark);
  border-top: 3px solid var(--gold);
}
.footer-brand .bi-crown-fill { color: var(--gold); font-size: 1.4rem; }
.footer-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(245,166,35,.2);
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  padding: 4px 0;
  transition: color .2s;
}
.footer-link:hover { color: var(--gold-light); }
.footer-link .bi { color: var(--gold); font-size: .8rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  margin-bottom: 12px;
}
.footer-contact-item .bi { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  margin-right: 6px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.06);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ══ PAGE HEADER (inner pages) ══ */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header .breadcrumb-item { font-size: .83rem; color: rgba(255,255,255,.5); }
.page-header .breadcrumb-item.active { color: var(--gold-light); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }
.page-header .breadcrumb-item a { color: rgba(255,255,255,.6); transition: color .2s; }
.page-header .breadcrumb-item a:hover { color: var(--gold-light); }
.page-header-accent {
  display: inline-block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 16px;
}

/* ══ CONTACT FORM ══ */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-label-rvcc {
  font-size: .83rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.form-control-rvcc {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
  color: var(--text);
  background: var(--light2);
}
.form-control-rvcc:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,31,143,.1);
  background: var(--white);
  outline: none;
}
.contact-info-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--white);
  height: 100%;
}
.contact-info-card h3 { color: var(--gold-light); margin-bottom: 6px; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold-light);
  flex-shrink: 0;
}
.contact-info-detail { font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.6; }
.contact-info-detail strong { color: var(--white); font-size: .92rem; display: block; margin-bottom: 2px; }

/* ══ ADMISSIONS ══ */
.step-card {
  text-align: center;
  padding: 30px 20px;
}
.step-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--gold-light);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Playfair Display', serif;
  box-shadow: 0 8px 20px rgba(26,31,143,.3);
}
.admission-req-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  transition: var(--transition);
}
.admission-req-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.admission-req-card h5 { color: var(--primary-dark); margin-bottom: 8px; }
.admission-req-card p  { font-size: .87rem; color: var(--muted); margin: 0; }

/* ══ GALLERY ══ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,18,96,.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: var(--white);
  font-size: .85rem;
  font-weight: 500;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 991.98px) {
  .rvcc-nav .nav-link { padding: 12px 16px !important; }
  .rvcc-nav .nav-link::after { display: none; }
  .hero-crest-wrap { margin-top: 40px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .about-img-badge { right: 0; bottom: -16px; }
  .about-check-list { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .section-gap { padding: 60px 0; }
  .hero-crest { width: 200px; height: 200px; }
  .hero-crest-ring.r1 { width: 240px; height: 240px; }
  .hero-crest-ring.r2 { width: 280px; height: 280px; }
  .rvcc-topbar .topbar-right { display: none; }
  .contact-form-wrap { padding: 24px; }
}

/* ══ BACK TO TOP ══ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  border: 1px solid rgba(245,166,35,.2);
}
.back-to-top.show { opacity: 1; pointer-events: all; }
.back-to-top:hover {
  background: var(--gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* ══ AOS OVERRIDES ══ */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ══ PHILOSOPHY BOX ══ */
.philosophy-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.philosophy-box::before {
  content: '\201C';
  position: absolute;
  top: -10px; left: 20px;
  font-size: 10rem;
  color: rgba(245,166,35,.08);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.philosophy-box p { color: rgba(255,255,255,.82); line-height: 1.9; font-size: 1.02rem; margin: 0; }

/* ══ VISION/MISSION CARDS ══ */
.vm-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  height: 100%;
}
.vm-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.vm-icon.vision { background: linear-gradient(135deg, #1a1f8f, #3b44c4); color: var(--gold-light); }
.vm-icon.mission { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--primary-dark); }
.vm-card h3 { font-size: 1.4rem; margin-bottom: 14px; }

/* REX core values */
.rex-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  border: 2px solid transparent;
  transition: var(--transition);
}
.rex-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.rex-letter {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--primary), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
