/* ============================================================
   Life Guide International School — Premium Theme v2.0
   Deep Red | Royal Blue | Gold | Glassmorphism | Modern ERP
   Colors injected as CSS variables from admin dashboard.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --clr-primary:        #B22222;
  --clr-primary-dark:   #7a1717;
  --clr-primary-light:  #d63031;
  --clr-crimson:        #8B0000;
  --clr-gold:           #D4A537;
  --clr-gold-light:     #f3d27a;
  --clr-gold-dark:      #a07820;
  --clr-secondary:      #FFF8E7;
  --clr-background:     #FFFFFF;
  --clr-text:           #1a0505;
  --clr-text-muted:     #6B5050;
  --clr-border:         #EDE0D0;
  --clr-surface:        #FDF6EE;
  --clr-success:        #10B981;
  --clr-warning:        #F59E0B;
  --clr-danger:         #EF4444;
  /* Keep --clr-blue as an alias to crimson so any leftover references stay on-brand */
  --clr-blue:           #8B0000;
  --clr-blue-dark:      #5c0000;

  --radius-xl:    28px;
  --radius-lg:    20px;
  --radius-md:    14px;
  --radius-sm:    8px;

  --shadow-xs:    0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:    0 4px 12px rgba(139,0,0,.08);
  --shadow-md:    0 8px 24px rgba(139,0,0,.10);
  --shadow-lg:    0 20px 48px rgba(139,0,0,.14);
  --shadow-glow:  0 12px 32px rgba(212,165,55,.30);
  --shadow-red:   0 12px 32px rgba(178,34,34,.30);
  --shadow-blue:  0 12px 32px rgba(139,0,0,.25);

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

  --gradient-brand:   linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  --gradient-crimson: linear-gradient(135deg, #8B0000 0%, #3d0000 100%);
  --gradient-gold:    linear-gradient(135deg, var(--clr-gold) 0%, var(--clr-gold-light) 100%);
  --gradient-royal:   linear-gradient(135deg, var(--clr-primary) 0%, #D4A537 100%);
  --gradient-blue:    linear-gradient(135deg, #8B0000 0%, #5c0000 100%);
  --gradient-hero:    linear-gradient(135deg, rgba(10,0,0,.90) 0%, rgba(178,34,34,.70) 100%);
  --gradient-card:    linear-gradient(135deg, #fff 0%, #fffaf4 100%);
  --gradient-majestic: linear-gradient(135deg, #1a0505 0%, #3d0000 50%, #7a1717 100%);

  --glass-bg:      rgba(255,255,255,.80);
  --glass-border:  rgba(212,165,55,.25);
  --glass-shadow:  0 8px 32px rgba(139,0,0,.12);
  --glass-blur:    blur(16px);
}

/* ── Reset & Base ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  color: var(--clr-text);
  background: var(--clr-background);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Merriweather', 'Georgia', serif;
  font-weight: 700;
  line-height: 1.25;
}

a { text-decoration: none; color: inherit; transition: color .25s var(--ease-out); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

::selection { background: var(--clr-gold); color: #3d2600; }

/* ── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(178,34,34,.35); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(178,34,34,.6); }

/* ── Typography ──────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--clr-primary);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.section-eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  color: var(--clr-text);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--clr-text-muted);
  max-width: 54ch;
  margin-inline: auto;
}

.section-pad { padding: 6rem 0; }
@media (max-width: 991px) { .section-pad { padding: 4rem 0; } }
@media (max-width: 575px) { .section-pad { padding: 3rem 0; } }

/* ── Color utilities ──────────────────────────── */
.bg-cream      { background: var(--clr-secondary); }
.bg-surface    { background: var(--clr-surface); }
.bg-dark-brand { background: #130b0b; }
.text-brand    { color: var(--clr-primary) !important; }
.text-gold     { color: var(--clr-gold) !important; }
.text-blue     { color: var(--clr-blue) !important; }
.text-muted    { color: var(--clr-text-muted) !important; }
.fw-semibold   { font-weight: 600; }

/* ── Buttons ──────────────────────────────────── */
.btn-brand {
  position: relative;
  overflow: hidden;
  background: var(--gradient-brand);
  border: none;
  color: #fff;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  border-radius: 50px;
  padding: .75rem 2rem;
  letter-spacing: .02em;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn-brand::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.22) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn-brand:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-red);
}
.btn-brand:hover::after { transform: translateX(120%); }
.btn-brand:active { transform: translateY(-1px) scale(.98); }

.btn-blue {
  background: var(--gradient-blue);
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  padding: .75rem 2rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn-blue:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-blue); }

.btn-gold {
  background: var(--gradient-gold);
  border: none;
  color: #3d2600;
  font-weight: 700;
  border-radius: 50px;
  padding: .75rem 2rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); color: #3d2600; }

.btn-outline-brand {
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  font-weight: 700;
  border-radius: 50px;
  padding: .7rem 1.8rem;
  background: transparent;
  transition: all .3s var(--ease-out);
}
.btn-outline-brand:hover {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-outline-gold {
  border: 2px solid var(--clr-gold);
  color: var(--clr-gold);
  font-weight: 700;
  border-radius: 50px;
  padding: .7rem 1.8rem;
  background: transparent;
  transition: all .3s var(--ease-out);
}
.btn-outline-gold:hover {
  background: var(--gradient-gold);
  color: #3d2600;
  border-color: transparent;
  transform: translateY(-2px);
}

/* ── Cards ────────────────────────────────────── */
.card-soft {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-border);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .3s;
}
.card-soft:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,165,55,.3);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.card-accent-left { border-left: 4px solid var(--clr-primary); }
.card-accent-gold { border-left: 4px solid var(--clr-gold); }
.card-accent-blue { border-left: 4px solid var(--clr-blue); }

/* ── Icon Tiles ───────────────────────────────── */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-gold);
  color: #5a3a00;
  font-size: 1.35rem;
  margin-bottom: .75rem;
  box-shadow: 0 4px 14px rgba(212,165,55,.3);
  transition: transform .3s var(--ease-out);
}
.icon-tile:hover { transform: scale(1.1) rotate(-4deg); }
.icon-tile-blue { background: var(--gradient-blue); color: #fff; box-shadow: 0 4px 14px rgba(26,86,219,.25); }
.icon-tile-red  { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 14px rgba(178,34,34,.25); }

/* ── Top Bar ──────────────────────────────────── */
.top-bar {
  background: var(--clr-primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .815rem;
  padding: .35rem 0;
}
.top-bar a { color: rgba(255,255,255,.75); transition: color .2s; }
.top-bar a:hover { color: var(--clr-gold); }
.top-bar .social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  margin-left: .25rem;
  transition: background .2s, color .2s;
  font-size: .8rem;
}
.top-bar .social-pill:hover { background: var(--clr-gold); color: #3d2600; }

/* ── Navbar ───────────────────────────────────── */
.main-navbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,231,235,.8);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  padding: .6rem 0;
  transition: all .35s var(--ease-out);
  z-index: 1040;
}
.main-navbar.scrolled {
  padding: .35rem 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
}

.brand-logo { height: 44px; width: auto; object-fit: contain; }
.brand-name {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--clr-primary);
  line-height: 1.2;
  max-width: 200px;
}

.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--clr-text) !important;
  padding: .45rem .9rem !important;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color .25s, background .25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transition: left .3s var(--ease-out), right .3s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--clr-primary) !important; background: rgba(178,34,34,.06); }
.nav-link:hover::after, .nav-link.active::after { left: .9rem; right: .9rem; }

.navbar-cta { margin-left: .5rem; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  background-color: #1a0505;
}

/* Background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .55;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,0,0,.92) 0%,
    rgba(122,23,23,.72) 45%,
    rgba(212,165,55,.18) 100%
  );
  z-index: 1;
}
/* Gold shimmer band */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to top, #1a0505 0%, rgba(26,5,5,.6) 40%, transparent 100%);
  z-index: 2;
}
/* Decorative diagonal gold line */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 7rem 0 9rem;
}
.hero-content::before {
  content: "";
  position: absolute;
  top: 2rem; left: -1rem;
  width: 4px; height: 60%;
  background: linear-gradient(to bottom, var(--clr-gold), transparent);
  border-radius: 4px;
  opacity: .6;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-badge span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--clr-gold); animation: pulse-dot 2s infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero h1 em { font-style: normal; color: var(--clr-gold); }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.8); max-width: 55ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce-down 2s infinite;
}
.hero-scroll-hint i { font-size: 1.25rem; }
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Stats Counter ────────────────────────────── */
.stats-bar {
  background: var(--gradient-brand);
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::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.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stat-item { text-align: center; position: relative; z-index: 1; }
.stat-item + .stat-item::before {
  content: "";
  position: absolute; left: 0; top: 15%; height: 70%;
  width: 1px; background: rgba(255,255,255,.2);
}
.stat-number {
  display: block;
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-label { font-size: .85rem; color: rgba(255,255,255,.75); font-weight: 500; margin-top: .35rem; display: block; }
.stat-suffix { color: var(--clr-gold); }

/* ── Why Choose Us ────────────────────────────── */
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--clr-border);
  border-top: 3px solid var(--clr-primary);
  box-shadow: var(--shadow-xs);
  transition: all .35s var(--ease-out);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(212,165,55,.12) 0%, transparent 70%);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--clr-gold);
  border-color: rgba(212,165,55,.35);
}
.feature-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: transform .3s var(--ease-out);
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(178,34,34,.30);
}
.feature-icon.gold {
  background: var(--gradient-gold);
  color: #4a2c00;
  box-shadow: 0 6px 18px rgba(212,165,55,.35);
}
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(-5deg); }

/* ── Academic Programs ────────────────────────── */
.program-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-xs);
  transition: all .35s var(--ease-out);
}
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.program-card-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.program-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
  flex-shrink: 0;
}
.program-card-body { padding: 0 1.5rem 1.5rem; }
.program-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; color: var(--clr-text-muted); padding: .35rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.program-item:last-child { border-bottom: none; }
.program-item::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%; background: var(--clr-gold); flex-shrink: 0;
}

/* ── Mission / Vision majestic panels ─────────── */
.mv-panel {
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.mv-panel-red {
  background: var(--gradient-crimson);
  color: #fff;
}
.mv-panel-gold {
  background: linear-gradient(135deg, #7a5200 0%, #D4A537 60%, #f3d27a 100%);
  color: #1a0505;
}
.mv-panel::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12);
  pointer-events: none;
}
.mv-panel::after {
  content: "";
  position: absolute;
  bottom: -30px; left: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.mv-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.mv-icon-red  { background: rgba(255,255,255,.15); color: var(--clr-gold-light); }
.mv-icon-gold { background: rgba(26,5,5,.20); color: #fff; }
.mv-panel h3  { position: relative; z-index: 1; font-size: 1.6rem; margin-bottom: 1rem; }
.mv-panel p   { position: relative; z-index: 1; line-height: 1.8; opacity: .9; font-size: 1rem; }
.mv-panel-red h3  { color: var(--clr-gold-light); }
.mv-panel-gold h3 { color: #3d1500; }
.mv-ornament {
  position: absolute;
  bottom: 1.5rem; right: 1.75rem;
  font-size: 5rem; line-height: 1;
  font-family: 'Merriweather', serif;
  opacity: .10;
  font-style: italic;
  z-index: 0;
}
.mv-panel-red  .mv-ornament { color: #fff; }
.mv-panel-gold .mv-ornament { color: #3d1500; }

/* ── News & Events ────────────────────────────── */
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-xs);
  transition: all .35s var(--ease-out);
  height: 100%;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(212,165,55,.4); }
.news-card-img {
  height: 200px; overflow: hidden;
  position: relative;
}
.news-card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,5,5,.45) 0%, transparent 60%);
}
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-body { padding: 1.5rem; }
.news-meta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.news-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .75rem; border-radius: 50px; background: rgba(178,34,34,.12); color: var(--clr-primary); border: 1px solid rgba(178,34,34,.15); }
.news-date { font-size: .8rem; color: var(--clr-text-muted); display: flex; align-items: center; gap: .3rem; }

.event-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-primary);
  display: flex; align-items: flex-start; gap: 1.25rem;
  transition: all .3s var(--ease-out);
}
.event-card:hover { transform: translateX(6px); border-left-color: var(--clr-gold); box-shadow: var(--shadow-sm); }
.event-date-badge {
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: .6rem .8rem;
  text-align: center;
  min-width: 56px;
  flex-shrink: 0;
}
.event-date-badge .day { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.event-date-badge .mon { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }

/* ── Gallery ──────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  opacity: 0;
  display: flex; align-items: flex-end; padding: 1rem;
  transition: opacity .35s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ── Testimonials ─────────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all .35s var(--ease-out);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testimonial-card::before {
  content: "\201C";
  position: absolute; top: 1rem; right: 1.5rem;
  font-size: 5rem; line-height: 1; color: rgba(212,165,55,.15);
  font-family: 'Merriweather', serif;
}
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--clr-gold); }
.star-rating { color: var(--clr-gold); font-size: .9rem; }

/* ── Contact ──────────────────────────────────── */
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--clr-border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(178,34,34,.08); color: var(--clr-primary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}

/* ── CTA Banner ───────────────────────────────── */
.cta-banner {
  background: var(--gradient-brand);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 50%, rgba(212,165,55,.25) 0%, transparent 60%);
}
.cta-banner .container { position: relative; z-index: 1; }

/* ── Map ──────────────────────────────────────── */
.map-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-wrapper iframe { display: block; }

/* ── Forms ────────────────────────────────────── */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--clr-border);
  padding: .65rem 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .925rem;
  transition: border-color .25s, box-shadow .25s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(178,34,34,.12);
  outline: none;
}
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .4rem; }

/* ── Breadcrumb ───────────────────────────────── */
.page-hero {
  background: var(--gradient-brand);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Cpath d='M40 0L80 40L40 80L0 40z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); position: relative; }
.page-hero .breadcrumb-item { color: rgba(255,255,255,.7); font-size: .875rem; }
.page-hero .breadcrumb-item.active { color: var(--clr-gold); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ── Footer ───────────────────────────────────── */
.site-footer {
  background: #0e0808;
  color: #c9bfba;
}
.footer-brand { max-height: 48px; }
.footer-heading { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; font-family: 'Plus Jakarta Sans', sans-serif; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #a89a95; font-size: .9rem; transition: color .25s, padding-left .25s; display: flex; align-items: center; gap: .35rem; }
.footer-links a:hover { color: var(--clr-gold); padding-left: .5rem; }
.footer-links a::before { content: "›"; color: var(--clr-primary); font-weight: 700; }
.footer-contact-item { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .85rem; font-size: .875rem; }
.footer-contact-icon { color: var(--clr-gold); flex-shrink: 0; margin-top: .15rem; }
.footer-divider { border-color: rgba(255,255,255,.08); margin: 2rem 0; }
.footer-bottom { font-size: .8rem; color: #6e6360; }
.social-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.07); color: #a89a95;
  font-size: .95rem;
  transition: background .25s, color .25s, transform .25s;
}
.social-links a:hover { background: var(--gradient-gold); color: #3d2600; transform: translateY(-3px); }

/* ── Badges & Tags ────────────────────────────── */
.badge { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
.badge-brand { background: rgba(178,34,34,.12); color: var(--clr-primary); }
.badge-gold  { background: rgba(212,165,55,.15); color: #7a5200; }
.badge-blue  { background: rgba(26,86,219,.1);  color: var(--clr-blue); }

/* ── Tables ───────────────────────────────────── */
.table-premium thead th {
  background: linear-gradient(90deg, rgba(178,34,34,.06), rgba(212,165,55,.08));
  font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 2px solid rgba(178,34,34,.12); color: var(--clr-text);
}
.table-premium tbody tr { transition: background .2s; }
.table-premium tbody tr:hover { background: rgba(212,165,55,.06); }
.table-premium td { font-size: .9rem; vertical-align: middle; }

/* ── Alerts ───────────────────────────────────── */
.alert-premium {
  border-radius: var(--radius-md);
  border: none;
  border-left: 4px solid;
  padding: 1rem 1.25rem;
  animation: slideInDown .3s var(--ease-out);
}
.alert-premium.alert-success { border-color: var(--clr-success); background: rgba(16,185,129,.08); color: #064e3b; }
.alert-premium.alert-danger  { border-color: var(--clr-danger);  background: rgba(239,68,68,.08);  color: #7f1d1d; }
.alert-premium.alert-warning { border-color: var(--clr-warning); background: rgba(245,158,11,.08); color: #78350f; }

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Animations ────────────────────────── */
/* ── Scroll Animations — Keyframe approach ───────────────────
   Content is ALWAYS VISIBLE by default (no opacity:0 on base).
   When .is-visible is added by JS, a one-shot CSS animation plays.
   If JS never runs: all content is fully visible. No blank sections.
   ─────────────────────────────────────────────────────────────── */

@keyframes lgis-fade-up   { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }
@keyframes lgis-fade-left { from { opacity:0; transform:translateX(-24px); } to { opacity:1; transform:none; } }
@keyframes lgis-fade-right{ from { opacity:0; transform:translateX(24px);  } to { opacity:1; transform:none; } }
@keyframes lgis-scale-in  { from { opacity:0; transform:scale(.93);        } to { opacity:1; transform:none; } }
@keyframes lgis-fade-in   { from { opacity:0; }                              to { opacity:1; }                  }

/* Base state: fully visible (essential fallback) */
.fade-up, .fade-left, .fade-right, .scale-in, .fade-in-on-scroll { opacity: 1; }

/* Animation fires once when JS adds .is-visible */
.fade-up.is-visible      { animation: lgis-fade-up    .7s var(--ease-out) both; }
.fade-left.is-visible    { animation: lgis-fade-left  .7s var(--ease-out) both; }
.fade-right.is-visible   { animation: lgis-fade-right .7s var(--ease-out) both; }
.scale-in.is-visible     { animation: lgis-scale-in   .6s var(--ease-out) both; }
.fade-in-on-scroll.is-visible { animation: lgis-fade-in .8s var(--ease-out) both; }

/* ── Portal (Student/Staff) ───────────────────── */
.portal-wrapper {
  display: flex; min-height: 100vh; background: #f4f6f9;
}
.portal-sidebar {
  width: 270px; min-height: 100vh;
  background: #1e1e2d;
  color: #a2a3b7;
  position: sticky; top: 0;
  overflow-y: auto;
  flex-shrink: 0;
  transition: width .35s var(--ease-out);
  z-index: 100;
}
.portal-sidebar::-webkit-scrollbar { width: 4px; }
.portal-sidebar::-webkit-scrollbar-thumb { background: rgba(212,165,55,.3); border-radius: 4px; }

.portal-sidebar-logo {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: .75rem;
}
.portal-sidebar-logo .logo-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; flex-shrink: 0;
}

.portal-nav-group-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: #494b74; padding: 1.5rem 1.5rem .5rem;
}
.portal-nav-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.25rem; margin: .15rem .75rem;
  border-radius: var(--radius-md);
  color: #a2a3b7; font-size: .9rem; font-weight: 500;
  transition: background .25s, color .25s, transform .2s;
}
.portal-nav-link:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateX(4px); }
.portal-nav-link.active { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 16px rgba(178,34,34,.3); }
.portal-nav-link i { font-size: 1.05rem; width: 20px; text-align: center; flex-shrink: 0; }

.portal-main { flex: 1; min-width: 0; }
.portal-topbar {
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
  padding: .85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-xs);
  position: sticky; top: 0; z-index: 50;
}
.portal-content { padding: 1.75rem; }
@media (max-width: 991px) { .portal-content { padding: 1rem; } }

/* ── Print ────────────────────────────────────── */
@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  body { background: #fff; }
  .card-soft { box-shadow: none; border: 1px solid #ddd; }
}
.print-only { display: none; }

/* ── Receipt ──────────────────────────────────── */
.receipt-wrapper {
  max-width: 680px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.receipt-header {
  background: var(--gradient-brand);
  color: #fff; padding: 2rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.receipt-header img { height: 60px; width: auto; }
.receipt-header h2 { font-size: 1.25rem; margin-bottom: .25rem; }
.receipt-body { padding: 2rem; }
.receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.receipt-field { padding: .75rem; background: #f9fafb; border-radius: var(--radius-sm); }
.receipt-field .label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--clr-text-muted); margin-bottom: .2rem; }
.receipt-field .value { font-size: .95rem; font-weight: 600; color: var(--clr-text); }
.receipt-amount-box { background: var(--gradient-brand); color: #fff; border-radius: var(--radius-md); padding: 1.25rem; text-align: center; margin: 1.25rem 0; }
.receipt-amount-box .amount { font-size: 2.2rem; font-weight: 800; }
.receipt-footer { border-top: 1px solid var(--clr-border); padding: 1.5rem 2rem; background: #fafafa; display: flex; justify-content: space-between; align-items: flex-end; }
.receipt-stamp { width: 80px; height: 80px; border: 3px solid rgba(178,34,34,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(178,34,34,.4); font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; text-align: center; }

/* ── Accessibility ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 991px) {
  .portal-sidebar { display: none; }
  .portal-sidebar.mobile-open {
    display: block;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 1050;
  }
  .portal-sidebar-overlay {
    display: none;
    position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1049;
  }
  .portal-sidebar-overlay.active { display: block; }
}

@media (max-width: 767px) {
  .hero h1 { font-size: 2rem; }
  .stat-item + .stat-item::before { display: none; }
  .receipt-grid { grid-template-columns: 1fr; }
  .receipt-footer { flex-direction: column; gap: 1rem; align-items: center; text-align: center; }
}

/* ── Misc ─────────────────────────────────────── */
.divider-gold {
  height: 3px; border: none;
  background: var(--gradient-gold); border-radius: 2px; margin: 1.5rem 0;
}
.numbered-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff;
  font-weight: 800; font-size: .875rem; flex-shrink: 0;
}
.ribbon {
  position: absolute; top: 1rem; right: -1rem;
  background: var(--gradient-gold); color: #3d2600; font-size: .72rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  padding: .3rem 1.5rem; transform: rotate(0); border-radius: 0 0 0 var(--radius-sm);
}

.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   HOMEPAGE 3D MAJESTIC HERO ENHANCEMENTS v3.0
   Red & Gold — Three.js canvas — Floating orbs — Shimmer text
   ============================================================ */

/* ── 3D Hero Canvas ──────────────────────────────────────── */
.hero-3d {
  position: relative;
  overflow: hidden;
}

#hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
  pointer-events: none;
}

.hero-content-3d {
  position: relative;
  z-index: 3;
}

/* ── Floating Orbs ───────────────────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  filter: blur(60px);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(178,34,34,.55) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation-delay: 0s; animation-duration: 10s;
}

.hero-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(212,165,55,.45) 0%, transparent 70%);
  bottom: -80px; left: 5%;
  animation-delay: -3s; animation-duration: 12s;
}

.hero-orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(178,34,34,.30) 0%, transparent 70%);
  top: 40%; right: 20%;
  animation-delay: -6s; animation-duration: 9s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  33%       { transform: translateY(-30px) scale(1.05); }
  66%       { transform: translateY(20px) scale(0.97); }
}

/* ── Hero Title Shimmer ──────────────────────────────────── */
.hero-title-3d {
  animation: heroTitleReveal 1.2s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes heroTitleReveal {
  from { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0);   }
}

.hero-gold-shimmer {
  position: relative;
  display: inline;
  background: linear-gradient(
    100deg,
    var(--clr-gold-light) 0%,
    var(--clr-gold) 30%,
    #fff8d6 50%,
    var(--clr-gold) 70%,
    var(--clr-gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 4s linear infinite;
  font-style: italic;
}

@keyframes goldShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-school-name {
  color: var(--clr-gold-light);
  text-shadow: 0 0 30px rgba(212,165,55,.5);
}

/* ── Hero Badge Enhanced ─────────────────────────────────── */
.hero-badge-3d {
  animation: heroBadgePop 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
  border: 1px solid rgba(212,165,55,.4) !important;
  background: rgba(212,165,55,.12) !important;
  backdrop-filter: blur(12px);
}

@keyframes heroBadgePop {
  from { opacity: 0; transform: scale(0.8) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-gold);
  box-shadow: 0 0 8px var(--clr-gold), 0 0 16px rgba(212,165,55,.5);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 8px var(--clr-gold), 0 0 16px rgba(212,165,55,.5); }
  50%       { box-shadow: 0 0 14px var(--clr-gold), 0 0 28px rgba(212,165,55,.8); }
}

/* ── Hero Content Stagger Animations ────────────────────── */
.hero-content-3d > .row > .col-lg-8 > * {
  animation: heroItemReveal 0.9s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-content-3d .hero-badge-3d   { animation-delay: 0.2s; }
.hero-content-3d h1               { animation-delay: 0.4s; }
.hero-content-3d .hero-subtitle   { animation-delay: 0.55s; }
.hero-content-3d .hero-actions    { animation-delay: 0.70s; }
.hero-content-3d .d-flex.flex-wrap{ animation-delay: 0.85s; }

@keyframes heroItemReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Hero Subtitle ───────────────────────────────────────── */
.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem) !important;
  color: rgba(255,255,255,.88) !important;
  max-width: 55ch;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

/* ── Hero Bottom Wave ────────────────────────────────────── */
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  z-index: 4;
  pointer-events: none;
}
.hero-wave svg { width: 100%; height: 100%; }

/* ── Stats Bar Enhanced ──────────────────────────────────── */
.stats-bar {
  background: linear-gradient(135deg, #1a0505 0%, #3d0000 60%, #1a0505 100%);
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::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='%23D4A537' fill-opacity='0.04'%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");
  pointer-events: none;
}

.stats-bar .stat-item {
  text-align: center;
  position: relative;
  padding: 1rem;
}

.stats-bar .stat-item::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(212,165,55,.25);
}

.stats-bar .stat-item:last-child::after { display: none; }

.stats-bar .stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  font-family: 'Merriweather', serif;
  background: linear-gradient(135deg, var(--clr-gold-light) 0%, var(--clr-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}

.stats-bar .stat-label {
  color: rgba(255,255,255,.70);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: .35rem;
  display: block;
}

/* ── Feature/About Cards Glow on Hover ──────────────────── */
.card-soft {
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.card-soft:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(139,0,0,.14), 0 0 0 1px rgba(212,165,55,.2);
}

/* ── Program Cards ───────────────────────────────────────── */
.program-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  padding: 2.5rem 2rem;
  transition: all .4s var(--ease-out);
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-royal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}

.program-card:hover::before { transform: scaleX(1); }

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212,165,55,.3);
}

/* ── Section Eyebrow Lines Gold ─────────────────────────── */
.section-eyebrow::before {
  background: var(--gradient-gold) !important;
  width: 32px !important;
  height: 3px !important;
}

/* ── Navbar Glassmorphism when scrolled ──────────────────── */
.main-navbar.scrolled {
  background: rgba(26,5,5,.96) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 1px 0 rgba(212,165,55,.2);
}

/* Removed: consolidated into JS-first fade rules above */

/* ── Principal's Message Section ────────────────────────── */
.principal-img-wrap {
  position: relative;
  display: inline-block;
}

.principal-img-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(var(--clr-gold) 0%, var(--clr-primary) 40%, var(--clr-gold) 60%, var(--clr-primary) 100%);
  z-index: -1;
  animation: spinRing 10s linear infinite;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── News Cards Hover ────────────────────────────────────── */
.news-card {
  transition: all .35s var(--ease-out);
  overflow: hidden;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card img   { transition: transform .5s var(--ease-out); }
.news-card:hover img { transform: scale(1.06); }

/* ── Buttons Pulse on CTA sections ──────────────────────── */
.btn-brand-pulse {
  animation: btnPulse 2.5s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(178,34,34,.4); }
  50%       { box-shadow: 0 0 0 12px rgba(178,34,34,0); }
}

/* ── Gold Divider ────────────────────────────────────────── */
.gold-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--clr-gold), transparent);
}

/* ── Hero video overlay fix ──────────────────────────────── */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .35;
}

/* ── Responsive: orbs hidden on small screens ────────────── */
@media (max-width: 767px) {
  .hero-orb-1 { width: 280px; height: 280px; }
  .hero-orb-2 { width: 200px; height: 200px; }
  .hero-orb-3 { display: none; }
  #hero-3d-canvas { opacity: .5; }
}

/* ── MOBILE CRITICAL FIXES ─────────────────────────────────── */

/* Removed: JS-first approach makes this unnecessary */

/* Hero actions flex */
.hero-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero badge center fix */
.hero-badge {
  display: inline-flex !important;
  align-items: center;
  gap: .5rem;
}

/* Center hero subtitle on mobile */
@media (max-width: 991px) {
  .hero-subtitle {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .hero-title-3d { text-align: center; }
  .hero-gold-shimmer, .hero-school-name { text-align: center; }
}

/* Stats bar number fix */
.stat-number {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
}

/* Section subtitle color fix */
.section-subtitle {
  color: #6b7280;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* Gallery empty state */
.gallery-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
}

/* Ensure sections with no content don't create huge blank gaps */
.section-pad:empty { display: none; }

/* Card spacing mobile */
@media (max-width: 767px) {
  .card-soft { margin-bottom: .75rem; }
  .hero-actions { justify-content: center; }
}

/* ── Mobile Hero Overflow Fix (iPhone / iOS Safari) ───────── */
@media (max-width: 767px) {
  .hero-orb-1 { width:220px!important;height:220px!important;right:-40px!important;top:-60px!important; }
  .hero-orb-2 { width:180px!important;height:180px!important; }
  .hero-orb-3 { width:130px!important;height:130px!important;right:5%!important; }
  .hero, .hero-3d { overflow:hidden!important;max-width:100vw!important; }
}

/* ══════════════════════════════════════════════════════════
   PREMIUM DESIGN ADDITIONS v3.0
   ══════════════════════════════════════════════════════════ */

/* ── Auth Shell (login pages) ────────────────── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a0505 0%, #3d0000 50%, #7a1717 100%);
  padding: 2rem 1rem;
}
.auth-card {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  width: 100%;
}
.auth-side {
  background: var(--gradient-brand);
  color: #fff;
}
.btn-brand {
  background: var(--gradient-brand);
  border: none;
  color: #fff !important;
  font-weight: 700;
  border-radius: 10px;
  padding: .65rem 1.5rem;
  transition: opacity .2s, transform .15s;
}
.btn-brand:hover { opacity: .88; transform: translateY(-1px); }

/* ── Page Hero Section ───────────────────────── */
.page-hero-section {
  background: var(--gradient-brand);
  padding: 5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero-section::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0; height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23ffffff' d='M0,30 C360,60 1080,0 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: 100% 100%;
}
.page-hero-title    { font-family: 'Merriweather',serif; font-size: clamp(1.75rem,4vw,2.75rem); font-weight:700; color:#fff; margin-bottom:.75rem; }
.page-hero-subtitle { color:rgba(255,255,255,.8); font-size:1.05rem; max-width:560px; }

/* ── Glassmorphism Cards ─────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

/* ── Floating Label inputs ───────────────────── */
.form-floating .form-control { border-radius: var(--radius-md); border: 1.5px solid var(--clr-border); }
.form-floating .form-control:focus { border-color: var(--clr-primary); box-shadow: 0 0 0 3px rgba(178,34,34,.1); }

/* ── Info card grid ──────────────────────────── */
.info-card {
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── Section headings ────────────────────────── */
.section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .5rem;
}
.section-divider {
  width: 48px; height: 4px;
  border-radius: 99px;
  background: var(--gradient-gold);
  margin: .75rem 0 1.5rem;
}
.section-divider.center { margin-left: auto; margin-right: auto; }

/* ── Pulse animation for badges ──────────────── */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: .7; }
}
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-success);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

/* ── Skeleton loading shimmer ────────────────── */
@keyframes shimmer {
  0%   { background-position: -468px 0; }
  100% { background-position:  468px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 936px 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 6px;
}

/* ── Announcement cards ──────────────────────── */
.announcement-card {
  border-left: 4px solid var(--clr-primary);
  padding: 1rem 1.25rem;
  background: var(--clr-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: .75rem;
  transition: transform .2s, box-shadow .2s;
}
.announcement-card:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }

/* ── Fee status bars ─────────────────────────── */
.fee-progress-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--clr-border);
  overflow: hidden;
}
.fee-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--gradient-brand);
  transition: width 1s var(--ease-out);
}

/* ── No-print helper ─────────────────────────── */
@media print {
  .no-print { display: none !important; }
}

/* ── Responsive table wrapper ────────────────── */
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); }

/* ── Form control polish ─────────────────────── */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--clr-border);
  font-size: .875rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(178,34,34,.10);
  outline: none;
}
.form-label { font-weight: 600; font-size: .825rem; color: var(--clr-text-muted); margin-bottom: .3rem; }

/* ── Scrollbar on tables ─────────────────────── */
.table-responsive::-webkit-scrollbar { height: 5px; }
.table-responsive::-webkit-scrollbar-thumb { background: rgba(178,34,34,.25); border-radius: 3px; }

/* ════════════════════════════════════════════════════════════
   HOMEPAGE v3.0 — New Components
   ════════════════════════════════════════════════════════════ */

/* ── Hero: Floating Info Card (right panel) ───────────── */
.hero-float-card {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  padding: 2rem;
  width: 340px;
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
  animation: heroCardSlideIn 1.1s cubic-bezier(0.16,1,0.3,1) 0.6s both;
}
@keyframes heroCardSlideIn {
  from { opacity:0; transform:translateX(40px) translateY(20px); }
  to   { opacity:1; transform:none; }
}
.hero-float-header {
  display:flex; align-items:center; gap:1rem;
  margin-bottom:1.5rem; padding-bottom:1.25rem;
  border-bottom:1px solid rgba(255,255,255,.15);
}
.hero-float-logo {
  width:52px; height:52px; border-radius:12px;
  object-fit:contain; background:rgba(255,255,255,.92); padding:4px;
}
.hero-float-logo-icon {
  width:52px; height:52px; border-radius:12px;
  background:var(--clr-gold); display:flex; align-items:center;
  justify-content:center; color:#fff; font-size:1.6rem; flex-shrink:0;
}
.hero-float-school { color:#fff; font-size:.9rem; font-weight:800; line-height:1.3; }
.hero-float-sub    { color:rgba(255,255,255,.5); font-size:.72rem; margin-top:.15rem; }

.hero-card-stats { display:flex; gap:.5rem; margin-bottom:1.5rem; }
.hero-card-stat  {
  flex:1; background:rgba(255,255,255,.08); border-radius:12px;
  padding:.75rem .5rem; text-align:center;
}
.hero-card-stat-num {
  display:block; color:var(--clr-gold);
  font-size:1.2rem; font-weight:900;
  font-family:'Merriweather',serif; line-height:1;
}
.hero-card-stat-label {
  display:block; color:rgba(255,255,255,.6);
  font-size:.67rem; font-weight:600;
  text-transform:uppercase; letter-spacing:.05em; margin-top:.3rem;
}

.hero-card-portals { display:flex; flex-direction:column; gap:.75rem; }
.hero-portal-link {
  display:flex; align-items:center; gap:.85rem;
  padding:.85rem 1rem; border-radius:14px;
  text-decoration:none; transition:all .25s;
}
.hero-portal-link:hover { transform:translateX(4px); text-decoration:none; }
.hero-portal-link > i:first-child { font-size:1.4rem; flex-shrink:0; }
.hero-portal-link div  { flex:1; }
.hero-portal-link strong { display:block; font-size:.875rem; font-weight:800; line-height:1.2; }
.hero-portal-link span   { display:block; font-size:.7rem; opacity:.8; }

.hero-portal-student {
  background:rgba(255,255,255,.12); color:#fff;
  border:1px solid rgba(255,255,255,.18);
}
.hero-portal-student:hover { background:rgba(255,255,255,.2); color:#fff; }

.hero-portal-apply  { background:var(--clr-gold); color:#3a1a00; }
.hero-portal-apply > i { color:#3a1a00; }
.hero-portal-apply:hover { background:#e8b935; color:#2a1200; }

/* Trust pills */
.hero-trust-pill {
  display:inline-flex; align-items:center; gap:.4rem;
  background:rgba(255,255,255,.1);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.2);
  border-radius:50px; padding:.3rem .9rem;
  color:rgba(255,255,255,.9); font-size:.78rem; font-weight:600;
}
.hero-trust-pill i { color:var(--clr-gold); font-size:.85rem; }

/* Hero ghost button */
.hero-btn-ghost {
  background:rgba(255,255,255,.13);
  backdrop-filter:blur(8px);
  border:1.5px solid rgba(255,255,255,.32);
  color:#fff; border-radius:50px;
  padding:.75rem 2rem; font-weight:700;
}
.hero-btn-ghost:hover {
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.55); color:#fff;
}

/* ── Stats bar: icons + divider lines ────────────────── */
.stat-icon-wrap {
  width:44px; height:44px; border-radius:12px;
  background:rgba(212,165,55,.14);
  border:1px solid rgba(212,165,55,.22);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto .75rem; font-size:1.2rem; color:var(--clr-gold);
}
.stat-divider-line {
  position:absolute; right:0; top:20%; bottom:20%;
  width:1px; background:rgba(212,165,55,.22);
}
.stats-bar .stat-item { position:relative; padding:1.25rem .5rem; }

/* ── Feature Cards ───────────────────────────────────── */
.feature-card {
  background:#fff; border-radius:18px; padding:2rem;
  border:1px solid var(--clr-border);
  position:relative; overflow:hidden;
  transition:transform .35s var(--ease-out), box-shadow .35s;
}
.feature-card:hover { transform:translateY(-8px); box-shadow:0 24px 56px rgba(0,0,0,.11); }
.feature-icon {
  width:56px; height:56px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; margin-bottom:1.25rem; transition:transform .3s;
}
.feature-card:hover .feature-icon { transform:scale(1.1) rotate(-4deg); }
.feature-title { font-size:1rem; font-weight:800; margin-bottom:.55rem; color:var(--clr-text); }
.feature-desc  { font-size:.875rem; color:var(--clr-text-muted); line-height:1.65; margin:0; }
.feature-accent {
  position:absolute; bottom:0; left:0; right:0; height:3px;
  border-radius:0 0 18px 18px;
  transform:scaleX(0); transform-origin:left;
  transition:transform .35s var(--ease-out);
}
.feature-card:hover .feature-accent { transform:scaleX(1); }

/* ── Programmes Section (dark bg) ────────────────────── */
.programmes-section {
  background:linear-gradient(150deg,#1a0505 0%,#2d0a0a 45%,#1a0505 100%);
  position:relative; overflow:hidden;
}
.programmes-section::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  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='M50 0L100 50L50 100L0 50z' fill='%23D4A537' fill-opacity='0.025'/%3E%3C/svg%3E") repeat;
}
.programme-card {
  border-radius:20px; overflow:hidden;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  transition:transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.programme-card:hover {
  transform:translateY(-8px);
  box-shadow:0 28px 60px rgba(0,0,0,.45);
  border-color:rgba(212,165,55,.35);
}
.programme-card-top {
  padding:2rem 2rem 1.5rem;
  display:flex; align-items:flex-start; justify-content:space-between;
}
.programme-icon {
  width:54px; height:54px; background:rgba(255,255,255,.2);
  border-radius:14px; display:flex; align-items:center;
  justify-content:center; font-size:1.55rem; color:#fff;
}
.programme-level {
  background:rgba(0,0,0,.25); border-radius:50px;
  padding:.3rem .85rem; color:rgba(255,255,255,.9);
  font-size:.72rem; font-weight:700;
  letter-spacing:.05em; text-transform:uppercase;
}
.programme-card-body { padding:1.25rem 2rem 2rem; }
.programme-title { font-size:1.05rem; font-weight:800; color:#fff; margin-bottom:.65rem; }
.programme-desc  { font-size:.875rem; color:rgba(255,255,255,.62); line-height:1.65; margin-bottom:1.25rem; }
.programme-link  {
  font-size:.825rem; font-weight:700; color:var(--clr-gold);
  text-decoration:none; display:inline-flex; align-items:center;
  gap:.3rem; transition:gap .2s, color .2s;
}
.programme-link:hover { color:#e8b935; gap:.6rem; }

/* ── Gallery Masonry ─────────────────────────────────── */
.gallery-masonry {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-auto-rows:220px; gap:.85rem;
}
.gallery-masonry .gallery-item:nth-child(1) { grid-column:span 2; grid-row:span 2; }
.gallery-masonry .gallery-item:nth-child(5) { grid-column:span 2; }
@media(max-width:991px){
  .gallery-masonry{ grid-template-columns:repeat(3,1fr); grid-auto-rows:180px; }
  .gallery-masonry .gallery-item:nth-child(1){ grid-column:span 2; grid-row:span 1; }
  .gallery-masonry .gallery-item:nth-child(5){ grid-column:span 1; }
}
@media(max-width:575px){
  .gallery-masonry{ grid-template-columns:repeat(2,1fr); grid-auto-rows:160px; }
  .gallery-masonry .gallery-item:nth-child(1){ grid-column:span 2; }
  .gallery-masonry .gallery-item:nth-child(5){ grid-column:span 1; }
}
.gallery-item-overlay {
  display:flex; align-items:flex-end;
  justify-content:space-between; gap:.5rem; padding:1rem;
}
.gallery-item-caption { color:#fff; font-size:.8rem; font-weight:600; flex:1; }
.gallery-item-icon    { color:rgba(255,255,255,.8); font-size:1.4rem; }

/* ── News Cards v2 ───────────────────────────────────── */
.news-card {
  background:#fff; border-radius:18px; overflow:hidden;
  border:1px solid var(--clr-border);
  display:flex; flex-direction:column;
  transition:transform .35s var(--ease-out), box-shadow .35s;
}
.news-card:hover { transform:translateY(-6px); box-shadow:0 20px 50px rgba(0,0,0,.11); }
.news-card-img { height:200px; overflow:hidden; position:relative; background:#f3f0ea; }
.news-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease-out); }
.news-card:hover .news-card-img img { transform:scale(1.07); }
.news-card-type {
  position:absolute; top:.85rem; left:.85rem;
  background:var(--clr-primary); color:#fff;
  font-size:.7rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.07em; padding:.25rem .75rem; border-radius:50px;
}
.news-type-announce { background:var(--clr-gold); color:#3a1a00; }
.news-card-body { padding:1.5rem; flex:1; display:flex; flex-direction:column; }
.news-date-chip {
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:.75rem; color:var(--clr-text-muted); margin-bottom:.75rem;
}
.news-title {
  font-size:.975rem; font-weight:800; line-height:1.45;
  margin-bottom:.6rem; color:var(--clr-text);
  display:-webkit-box; -webkit-line-clamp:2;
  -webkit-box-orient:vertical; overflow:hidden;
}
.news-excerpt {
  font-size:.825rem; color:var(--clr-text-muted);
  line-height:1.6; flex:1; margin-bottom:1rem;
  display:-webkit-box; -webkit-line-clamp:3;
  -webkit-box-orient:vertical; overflow:hidden;
}
.news-read-more {
  font-size:.825rem; font-weight:700; color:var(--clr-primary);
  text-decoration:none; display:inline-flex; align-items:center;
  gap:.3rem; margin-top:auto; transition:gap .2s, color .2s;
}
.news-read-more:hover { color:var(--clr-primary-dark); gap:.6rem; }

/* ── Testimonials Section (dark) ─────────────────────── */
.testimonials-section {
  background:linear-gradient(150deg,#0e0505 0%,#1f0808 50%,#0e0505 100%);
  position:relative; overflow:hidden;
}
.testimonials-section::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(circle at 25% 50%,rgba(212,165,55,.07) 0%,transparent 55%),
    radial-gradient(circle at 75% 20%,rgba(178,34,34,.07) 0%,transparent 50%);
}
.testimonial-card-v2 {
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:20px; padding:2rem; position:relative;
  transition:transform .35s, border-color .35s;
}
.testimonial-card-v2:hover { transform:translateY(-6px); border-color:rgba(212,165,55,.3); }
.testimonial-quote-icon {
  position:absolute; top:1.25rem; right:1.5rem;
  font-size:4rem; line-height:1; font-family:'Merriweather',serif;
  color:rgba(212,165,55,.16);
}
.testimonial-text {
  font-size:.9rem; color:rgba(255,255,255,.78);
  line-height:1.8; margin-bottom:1.5rem; font-style:italic;
}
.testimonial-author { display:flex; align-items:center; gap:.85rem; }
.testimonial-avatar-initials {
  width:44px; height:44px; border-radius:50%;
  background:var(--gradient-brand);
  border:2px solid var(--clr-gold);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:800; font-size:1rem; flex-shrink:0;
}

/* ── CTA Banner v2 ───────────────────────────────────── */
.cta-banner-v2 {
  background:var(--gradient-brand);
  position:relative; overflow:hidden;
}
.cta-bg-dots {
  position:absolute; inset:0; pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40z' fill='%23fff' fill-opacity='0.03'/%3E%3C/svg%3E") repeat;
}
.cta-glow {
  position:absolute; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle,rgba(212,165,55,.35) 0%,transparent 70%);
}
.cta-glow-1 { width:600px; height:600px; top:-250px; left:-120px; }
.cta-glow-2 { width:450px; height:450px; bottom:-180px; right:-80px; }
.cta-icon-ring {
  width:80px; height:80px; border-radius:50%;
  background:rgba(255,255,255,.14);
  border:2px solid rgba(255,255,255,.24);
  display:inline-flex; align-items:center; justify-content:center;
  font-size:2rem; color:var(--clr-gold);
}
.btn-gold {
  background:var(--clr-gold); color:#3a1a00;
  border:none; border-radius:50px; font-weight:800;
  transition:background .25s, transform .25s, box-shadow .25s;
}
.btn-gold:hover {
  background:#e8b935; color:#2a1200;
  transform:translateY(-2px); box-shadow:0 8px 24px rgba(212,165,55,.45);
}
.cta-ghost-btn {
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(8px);
  border:1.5px solid rgba(255,255,255,.3);
  color:#fff; border-radius:50px; font-weight:700;
  transition:background .25s, color .25s;
}
.cta-ghost-btn:hover { background:rgba(255,255,255,.22); color:#fff; }

/* ── Principal section ───────────────────────────────── */
.principal-photo-wrap { position:relative; display:inline-block; }
.principal-photo {
  width:220px; height:265px; object-fit:cover;
  border-radius:24px;
  box-shadow:0 20px 60px rgba(0,0,0,.18);
  border:4px solid #fff;
}
.principal-badge {
  position:absolute; bottom:1rem; left:50%;
  transform:translateX(-50%);
  background:var(--gradient-brand); color:#fff;
  font-size:.75rem; font-weight:700;
  padding:.3rem 1rem; border-radius:50px;
  white-space:nowrap; box-shadow:0 4px 14px rgba(178,34,34,.35);
}
.principal-quote {
  background:var(--clr-secondary);
  border-left:4px solid var(--clr-primary);
  border-radius:0 14px 14px 0;
  padding:1.5rem; margin:0;
  font-style:italic; color:var(--clr-text);
  line-height:1.8; font-size:.95rem;
}
.principal-quote p { margin:0; }

/* ── Mission / Vision panels ─────────────────────────── */
.mv-panel { border-radius:20px; padding:2rem; position:relative; overflow:hidden; }
.mv-panel-red  { background:rgba(178,34,34,.05); border:1px solid rgba(178,34,34,.14); }
.mv-panel-gold { background:rgba(212,165,55,.06); border:1px solid rgba(212,165,55,.18); }
.mv-icon {
  width:54px; height:54px; border-radius:16px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; margin-bottom:1.25rem;
}
.mv-icon-red  { background:rgba(178,34,34,.1);  color:var(--clr-primary); }
.mv-icon-gold { background:rgba(212,165,55,.14); color:#a87219; }
.mv-panel h3  { font-size:1.1rem; font-weight:800; margin-bottom:.7rem; }
.mv-panel p   { font-size:.9rem; color:var(--clr-text-muted); line-height:1.75; margin:0; }
.mv-ornament  {
  position:absolute; bottom:-2rem; right:1.5rem;
  font-size:6rem; font-weight:900; font-family:'Merriweather',serif;
  opacity:.04; line-height:1; color:var(--clr-text); user-select:none;
}
.mv-values-bar {
  background:linear-gradient(135deg,rgba(178,34,34,.06),rgba(212,165,55,.07));
  border:1px solid rgba(178,34,34,.1);
  border-radius:16px; padding:1.5rem;
  display:flex; align-items:flex-start; gap:1rem; flex-wrap:wrap;
}
.mv-values-label {
  font-weight:800; font-size:.875rem;
  color:var(--clr-primary); white-space:nowrap;
  flex-shrink:0; padding-top:.1rem;
}
.mv-values-bar p { font-size:.875rem; color:var(--clr-text-muted); margin:0; }

/* ── Footer v3 ───────────────────────────────────────── */
.footer-top  { padding:4rem 0 3rem; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.06);
  padding:1.25rem 0;
}
.footer-logo        { max-height:50px; border-radius:8px; display:block; }
.footer-school-name { color:#fff; font-size:1rem; font-weight:800; margin-bottom:.4rem; }
.footer-tagline     { color:#a89a95; font-size:.875rem; line-height:1.65; margin-bottom:1.25rem; }
.footer-social      { display:flex; gap:.5rem; flex-wrap:wrap; }
.footer-social a {
  width:36px; height:36px; border-radius:10px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1);
  color:#c9bfba; display:flex; align-items:center;
  justify-content:center; font-size:.95rem;
  text-decoration:none; transition:background .25s, color .25s, border-color .25s;
}
.footer-social a:hover        { background:var(--clr-primary); color:#fff; border-color:var(--clr-primary); }
.footer-social .footer-wa:hover { background:#25D366; border-color:#25D366; }

.footer-heading { color:#fff; font-size:.9rem; font-weight:800; margin-bottom:1.1rem; letter-spacing:.02em; }
.footer-links   { list-style:none; padding:0; margin:0; }
.footer-links li { margin-bottom:.45rem; }
.footer-links a {
  color:#a89a95; font-size:.875rem; text-decoration:none;
  display:inline-flex; align-items:center; gap:.35rem;
  transition:color .25s, padding-left .25s;
}
.footer-links a::before { content:"›"; color:var(--clr-primary); font-weight:700; }
.footer-links a:hover   { color:var(--clr-gold); padding-left:.35rem; }

.footer-contact-row {
  display:flex; align-items:flex-start; gap:.75rem;
  margin-bottom:.85rem; font-size:.875rem; color:#a89a95;
}
.footer-contact-row a { color:#a89a95; text-decoration:none; transition:color .25s; }
.footer-contact-row a:hover { color:var(--clr-gold); }
.footer-contact-icon { font-size:1rem; color:var(--clr-primary); flex-shrink:0; margin-top:.1rem; }
.footer-copy   { font-size:.825rem; color:rgba(255,255,255,.4); }
.footer-credit { font-size:.75rem;  color:rgba(255,255,255,.22); }

/* ── WhatsApp Floating Button ────────────────────────── */
.whatsapp-fab {
  position:fixed; bottom:2rem; right:2rem; z-index:999;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; text-decoration:none;
  box-shadow:0 6px 24px rgba(37,211,102,.48);
  transition:transform .25s, box-shadow .25s;
  animation:fabIn .6s cubic-bezier(0.34,1.56,0.64,1) 2s both;
}
.whatsapp-fab:hover {
  transform:scale(1.12); color:#fff;
  box-shadow:0 10px 32px rgba(37,211,102,.6);
}
@keyframes fabIn {
  from { opacity:0; transform:scale(0); }
  to   { opacity:1; transform:scale(1); }
}

/* ── btn-outline-light (dark section usage) ──────────── */
.btn-outline-light {
  border:1.5px solid rgba(255,255,255,.38); color:rgba(255,255,255,.9);
  border-radius:50px; font-weight:700;
  transition:background .25s, border-color .25s;
}
.btn-outline-light:hover {
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.65); color:#fff;
}

/* ── Helpers ─────────────────────────────────────────── */
.section-divider.center { margin-left:auto; margin-right:auto; }
.opacity-40 { opacity:.4; }

/* =============================================================
   Additional Polish v3.1 — Home page enhancements, overflow &
   mobile alignment fixes. Prevents horizontal scroll and zoom.
   ============================================================= */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
.container, .container-fluid { max-width: 100%; }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Prevent tap zoom on iOS form fields */
input, select, textarea { font-size: 16px !important; }

/* ── Extra home-page polish ─────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  padding: 6rem 0 5rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,4,4,.85) 0%, rgba(122,23,23,.80) 55%, rgba(60,10,10,.75) 100%);
  z-index: -1;
}
.hero-content { position: relative; z-index: 2; }
.hero-title-3d {
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  margin-bottom: 1rem;
}
.hero-gold-shimmer {
  background: linear-gradient(90deg, #f3d27a 0%, #D4A537 40%, #fff2c9 55%, #D4A537 65%, #a07820 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: heroShimmer 6s linear infinite;
}
@keyframes heroShimmer { to { background-position: 200% center; } }
.hero-subtitle {
  color: rgba(255,255,255,.9);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 60ch;
}
.hero-badge, .hero-badge-3d {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  color: #fff; font-weight: 600; font-size: .78rem;
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #D4A537; box-shadow: 0 0 0 4px rgba(212,165,55,.25);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-btn-ghost {
  border: 2px solid rgba(255,255,255,.55);
  color: #fff;
  border-radius: 50px;
  padding: .6rem 1.6rem;
  background: transparent;
  transition: all .3s;
}
.hero-btn-ghost:hover { background: #fff; color: var(--clr-primary); border-color: #fff; }
.hero-trust-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff; font-size: .78rem; font-weight: 500;
}
.hero-trust-pill i { color: #D4A537; }

/* Floating card */
.hero-float-card {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  color: var(--clr-text);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.6);
  max-width: 380px; width: 100%;
}
.hero-float-header { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.hero-float-logo, .hero-float-logo-icon {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
  background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.hero-float-school { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.hero-float-sub    { font-size: .78rem; color: var(--clr-text-muted); }
.hero-card-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .5rem; padding: 1rem 0; border-top: 1px dashed var(--clr-border);
  border-bottom: 1px dashed var(--clr-border); margin-bottom: 1rem;
}
.hero-card-stat { text-align: center; }
.hero-card-stat-num   { display: block; font-weight: 800; color: var(--clr-primary); font-size: 1.1rem; }
.hero-card-stat-label { display: block; font-size: .7rem; color: var(--clr-text-muted); }
.hero-card-portals { display: flex; flex-direction: column; gap: .5rem; }
.hero-portal-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .85rem;
  background: var(--clr-secondary);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  color: var(--clr-text);
  transition: all .25s;
}
.hero-portal-link:hover { background: var(--gradient-brand); color: #fff; border-color: transparent; transform: translateX(3px); }
.hero-portal-link:hover span { color: rgba(255,255,255,.85); }
.hero-portal-link strong { display: block; font-size: .85rem; }
.hero-portal-link span   { display: block; font-size: .7rem; color: var(--clr-text-muted); }
.hero-portal-link i:first-child { font-size: 1.3rem; color: var(--clr-primary); }
.hero-portal-link:hover i { color: #fff; }

.hero-scroll-hint {
  position: absolute; bottom: 4.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .7rem;
  letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  animation: heroBob 2.4s ease-in-out infinite;
}
@keyframes heroBob { 0%,100% { transform: translate(-50%, 0);} 50% { transform: translate(-50%, 8px);} }
.hero-wave { position: absolute; left:0; right:0; bottom:-1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* Orbs */
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
  pointer-events: none; z-index: -1;
}
.hero-orb-1 { width: 420px; height: 420px; background: #D4A537; top: -80px; right: -100px; animation: orbA 14s ease-in-out infinite; }
.hero-orb-2 { width: 320px; height: 320px; background: #B22222; bottom: -80px; left: -80px; animation: orbB 18s ease-in-out infinite; }
.hero-orb-3 { width: 260px; height: 260px; background: #7a1717; top: 40%; left: 45%; animation: orbA 20s ease-in-out infinite reverse; }
@keyframes orbA { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(30px,-20px) scale(1.05);} }
@keyframes orbB { 0%,100% { transform: translate(0,0) scale(1);} 50% { transform: translate(-24px,18px) scale(1.08);} }

/* ── Stats bar ─────────────────────────────────────────── */
.stats-bar {
  background: var(--gradient-majestic);
  color: #fff;
  padding: 3rem 0;
  margin-top: -1px;
}
.stat-item { text-align: center; padding: 1rem; position: relative; }
.stat-icon-wrap {
  width: 56px; height: 56px; margin: 0 auto .75rem;
  border-radius: 16px;
  background: rgba(212,165,55,.15);
  color: #D4A537;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.stat-number { display: block; font-size: 2.2rem; font-weight: 800; color: #fff; font-family: 'Merriweather', serif; }
.stat-label  { display: block; font-size: .82rem; color: rgba(255,255,255,.7); letter-spacing: .04em; }
.stat-divider-line {
  position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(255,255,255,.10);
}
@media (max-width: 991px) { .stat-divider-line { display: none; } }

/* ── Section divider ───────────────────────────────────── */
.section-divider {
  width: 60px; height: 3px;
  background: var(--gradient-gold);
  border-radius: 3px;
  margin: 1rem 0 1.5rem;
}
.section-divider.center { margin-left: auto; margin-right: auto; }

/* ── Mission / Vision panels ───────────────────────────── */
.mv-panel {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.mv-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mv-panel h3 { font-size: 1.35rem; margin-bottom: .75rem; color: var(--clr-text); }
.mv-panel p  { color: var(--clr-text-muted); margin-bottom: 0; }
.mv-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; margin-bottom: 1rem;
}
.mv-icon-red  { background: var(--gradient-brand); }
.mv-icon-gold { background: var(--gradient-gold); color: #3d2600; }
.mv-panel-red  { border-top: 3px solid var(--clr-primary); }
.mv-panel-gold { border-top: 3px solid var(--clr-gold); }
.mv-ornament {
  position: absolute; right: -.5rem; bottom: -1.4rem;
  font-size: 8rem; font-family: 'Merriweather', serif;
  color: rgba(178,34,34,.06); font-weight: 700; line-height: 1;
}
.mv-values-bar {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.mv-values-label {
  display: inline-block; background: var(--gradient-gold);
  color: #3d2600; padding: .25rem .8rem;
  border-radius: 999px; font-size: .75rem; font-weight: 700;
  margin-bottom: .5rem;
}

/* ── Feature / Programme cards ─────────────────────────── */
.feature-card {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  transition: transform .3s, box-shadow .3s;
  overflow: hidden;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.feature-title { font-size: 1.1rem; margin-bottom: .5rem; }
.feature-desc  { color: var(--clr-text-muted); font-size: .92rem; margin: 0; }
.feature-accent {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; opacity: .8;
}

.programmes-section {
  background: var(--gradient-majestic);
  color: #fff;
}
.programme-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--clr-text);
  transition: transform .3s, box-shadow .3s;
}
.programme-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.programme-card-top {
  padding: 1.25rem 1.25rem 1rem;
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
}
.programme-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.programme-level { font-size: .78rem; font-weight: 700; opacity: .9; letter-spacing: .05em; text-transform: uppercase; }
.programme-card-body { padding: 1.25rem; }
.programme-title { font-size: 1.1rem; margin-bottom: .5rem; }
.programme-desc  { color: var(--clr-text-muted); font-size: .9rem; }
.programme-link {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--clr-primary); font-weight: 700; font-size: .85rem;
  margin-top: .5rem;
}
.programme-link:hover { color: var(--clr-primary-dark); }

/* Principal */
.principal-photo-wrap { position: relative; display: inline-block; }
.principal-photo {
  width: 220px; height: 220px; border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 20px 40px rgba(122,23,23,.25);
}
.principal-badge {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-brand); color: #fff;
  padding: .35rem .9rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  box-shadow: var(--shadow-red);
  white-space: nowrap;
}
.principal-quote {
  background: #fff;
  border-left: 4px solid var(--clr-gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  font-family: 'Merriweather', serif;
  font-style: italic;
  color: var(--clr-text);
}
.principal-quote p { margin: 0; }

/* Gallery */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  cursor: pointer; aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.8));
  color: #fff; display: flex; align-items: flex-end; justify-content: space-between;
  padding: .8rem; opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption { font-size: .85rem; font-weight: 600; }
.gallery-item-icon { font-size: 1.2rem; }

/* Top bar & Navbar polish */
.top-bar {
  background: #1a0505;
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: .5rem 0;
}
.top-bar a { color: rgba(255,255,255,.85); }
.social-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  transition: all .25s;
  font-size: .8rem;
}
.social-pill:hover { background: var(--clr-gold); color: #1a0505; transform: translateY(-2px); }
.social-pill-wa:hover { background: #25D366; color: #fff; }

.main-navbar {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  padding: .6rem 0;
  transition: box-shadow .3s;
}
.main-navbar.scrolled { box-shadow: var(--shadow-md); }
.brand-logo { height: 44px; width: auto; border-radius: 8px; }
.brand-name {
  font-family: 'Merriweather', serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--clr-primary);
  line-height: 1.1;
}
.main-navbar .nav-link {
  font-weight: 600; color: var(--clr-text);
  padding: .6rem 1rem !important;
  border-radius: 8px;
  transition: all .2s;
  font-size: .92rem;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: var(--clr-primary); background: rgba(178,34,34,.06); }

@media (max-width: 991.98px) {
  .navbar-cta { flex-direction: column; align-items: stretch !important; width: 100%; }
  .navbar-cta .btn { width: 100%; }
}

/* Footer polish (public) */
.site-footer { background: var(--gradient-majestic); color: rgba(255,255,255,.8); padding: 4rem 0 1.5rem; }
.site-footer h5 { color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .95rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #D4A537; }
.site-footer hr { border-color: rgba(255,255,255,.08); }

/* Cards used across portals */
.card-soft {
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

/* ── Modal-Fullscreen scroll-lock safety on mobile ───────
   Fix for "screen freezes" bug on Add Staff / Add Student.  */
.modal-open { overflow: hidden !important; }
.modal-dialog-scrollable .modal-body { -webkit-overflow-scrolling: touch; }
.modal.show { overflow-y: auto !important; }
body.modal-open { padding-right: 0 !important; }
@media (max-width: 767.98px) {
  .modal-fullscreen-md-down .modal-body { max-height: none; overflow-y: auto; }
}

/* Fade-up utility (used across public pages) */
.fade-up, .fade-left, .fade-right { opacity: 1; }

/* Scroll safety for tables everywhere */
.table-responsive { max-width: 100%; overflow-x: auto; }

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE HERO — TOP-SPACE REDUCTION + POLISH  (2026-07)
   The old rules stacked `min-height: 100vh` with 7rem top /
   9rem bottom padding, producing a huge empty band above the
   headline on phones. Trim it and align the whole page.
   ═══════════════════════════════════════════════════════════ */
.hero, .hero-3d {
  min-height: auto !important;
  padding-top: 0 !important;
}
.hero-content, .hero-content-3d {
  padding: 2.25rem 0 3.5rem !important;
}
@media (min-width: 768px) {
  .hero-content, .hero-content-3d {
    padding: 3.5rem 0 5rem !important;
  }
}
@media (min-width: 1200px) {
  .hero-content, .hero-content-3d {
    padding: 4.5rem 0 6rem !important;
  }
}

/* Tighten section rhythm site-wide */
.section-pad { padding: 4.5rem 0 !important; }
@media (max-width: 991px) { .section-pad { padding: 3rem 0 !important; } }
@media (max-width: 575px) { .section-pad { padding: 2.25rem 0 !important; } }

/* Slightly larger, tighter headings for a modern feel */
.section-title { letter-spacing: -.02em; line-height: 1.15; }
.hero h1, .hero-title-3d { letter-spacing: -.025em; line-height: 1.1; }
.hero-subtitle { line-height: 1.55; }

/* Modernize cards & buttons across the public site */
.btn, .btn-brand, .btn-outline-brand { border-radius: 12px; }
.card, .program-card, .news-card, .feature-card {
  border-radius: 18px !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover, .program-card:hover, .news-card:hover, .feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px -18px rgba(15,23,42,.22);
}
img { max-width: 100%; height: auto; }

/* Public-site modal safety (in case any public modal is used) */
.modal-backdrop { pointer-events: none; }
.modal-backdrop.show { pointer-events: auto; }
.modal.show .modal-dialog,
.modal.show .modal-content,
.modal.show .modal-content > form,
.modal.show .modal-body { pointer-events: auto !important; }
.modal-content > form { overflow: visible !important; }

/* ═══════════════════════════════════════════════════════════
   v3 RESPONSIVE + PREMIUM ANIMATIONS (public site)
   ═══════════════════════════════════════════════════════════ */

@keyframes lgFadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lgFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lgFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lgGradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes lgShine { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Scroll reveal (add class .reveal in JS or default fade on load) */
.reveal, .section-title, .program-card, .news-card, .feature-card, .card {
  animation: lgFadeUp .7s cubic-bezier(.16,1,.3,1) both;
}

/* Hero gradient loop */
.hero, .hero-content, .hero-content-3d {
  background-size: 200% 200% !important;
  animation: lgGradientShift 18s ease infinite;
}

/* Navbar shrink on scroll polish + hover underline */
.main-navbar .nav-link { position: relative; transition: color .2s ease; }
.main-navbar .nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px;
  height: 2px; background: var(--clr-primary); transform: scaleX(0);
  transform-origin: right; transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after { transform: scaleX(1); transform-origin: left; }

/* Button shine */
.btn-brand, .btn-outline-brand {
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease;
}
.btn-brand:hover, .btn-outline-brand:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(178,34,34,.55); }
.btn-brand::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 200% 100%; opacity: 0; transition: opacity .3s;
}
.btn-brand:hover::before { opacity: 1; animation: lgShine 1.1s ease; }

/* Card lift + image zoom */
.program-card, .news-card, .feature-card { overflow: hidden; }
.program-card img, .news-card img { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.program-card:hover img, .news-card:hover img { transform: scale(1.06); }

/* Social pill hover */
.social-pill { transition: transform .2s ease, background .2s ease; }
.social-pill:hover { transform: translateY(-2px) scale(1.08); }

/* Floating decorative elements */
.float-slow { animation: lgFloat 5s ease-in-out infinite; }

/* ─── Responsive tuning ───────────────────────────────────── */

/* Tablet */
@media (max-width: 991px) {
  .brand-name { font-size: .95rem !important; max-width: 60vw; }
  .navbar-cta { width: 100%; justify-content: stretch; }
  .navbar-cta .btn { flex: 1; }
  .top-bar { display: none !important; }
  .container { padding-left: 1rem; padding-right: 1rem; }
}

/* Mobile */
@media (max-width: 640px) {
  html { font-size: 15px; }
  h1, .h1 { font-size: 1.75rem !important; line-height: 1.2; }
  h2, .h2, .section-title { font-size: 1.4rem !important; }
  h3, .h3 { font-size: 1.15rem !important; }
  .section-pad { padding: 2rem 0 !important; }
  .hero h1, .hero-title-3d { font-size: 1.9rem !important; }
  .hero-subtitle { font-size: .95rem !important; }
  .brand-logo { width: 34px !important; height: 34px !important; }
  .btn, .btn-brand, .btn-outline-brand { padding: .55rem 1rem; font-size: .88rem; }
  .card, .program-card, .news-card, .feature-card { border-radius: 14px !important; }
  .navbar-brand { max-width: 78vw; }
  footer .row > * + * { margin-top: 1.5rem; }
  .table-responsive { -webkit-overflow-scrolling: touch; }
}

/* Small mobile */
@media (max-width: 380px) {
  .brand-name { font-size: .85rem !important; }
  .navbar-cta { flex-direction: column; }
  .navbar-cta .btn { width: 100%; }
}

/* Large desktop */
@media (min-width: 1400px) {
  .container { max-width: 1280px; }
}

@media (min-width: 1600px) {
  .container { max-width: 1400px; }
  h1, .h1 { font-size: 3rem; }
  .hero h1, .hero-title-3d { font-size: 3.75rem !important; }
}

/* Print & reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Image safety */
img { max-width: 100%; height: auto; display: block; }
.brand-logo { display: inline-block; }

/* Prevent horizontal scroll site-wide */
html, body { overflow-x: hidden; }

/* ============================================================
   Premium polish v2 — public site
   ============================================================ */
@keyframes lgSheenPub { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes lgFloatPub { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

body{ -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }

.btn-primary,.btn-brand,.btn-danger{
  background-image:linear-gradient(135deg,var(--brand,#8c1419),#b21e26 55%,#e0353d)!important;
  border:none!important;position:relative;overflow:hidden;
  box-shadow:0 10px 24px -12px rgba(140,20,25,.55);
  transition:transform .25s ease,box-shadow .25s ease;
}
.btn-primary::after,.btn-brand::after,.btn-danger::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.35) 50%,transparent 70%);
  background-size:200% 100%;background-position:200% 0;
}
.btn-primary:hover,.btn-brand:hover,.btn-danger:hover{transform:translateY(-2px);box-shadow:0 18px 34px -14px rgba(140,20,25,.7)}
.btn-primary:hover::after,.btn-brand:hover::after,.btn-danger:hover::after{animation:lgSheenPub 1.1s ease forwards}

.card,.feature-card,.program-card,.news-card{
  border:1px solid rgba(15,23,42,.06)!important;border-radius:1rem!important;
  background:linear-gradient(180deg,#fff,#fafbff);
  box-shadow:0 14px 34px -22px rgba(15,23,42,.35);
  transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease,border-color .35s ease;
}
.card:hover,.feature-card:hover,.program-card:hover,.news-card:hover{
  transform:translateY(-4px);
  box-shadow:0 26px 60px -28px rgba(15,23,42,.45);
  border-color:rgba(140,20,25,.2)!important;
}

.navbar{backdrop-filter:saturate(140%) blur(10px);-webkit-backdrop-filter:saturate(140%) blur(10px)}
.navbar .nav-link{position:relative}
.navbar .nav-link::after{
  content:"";position:absolute;left:12px;right:12px;bottom:6px;height:2px;
  background:linear-gradient(90deg,var(--brand,#8c1419),#e0353d);
  transform:scaleX(0);transform-origin:right;transition:transform .3s ease;border-radius:2px;
}
.navbar .nav-link:hover::after,.navbar .nav-link.active::after{transform:scaleX(1);transform-origin:left}

.hero,.page-hero,.section-hero{position:relative;overflow:hidden}
.hero::before,.page-hero::before{
  content:"";position:absolute;inset:-20% -10% auto auto;width:520px;height:520px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(224,53,61,.22),transparent 70%);
  filter:blur(10px);pointer-events:none;animation:lgFloatPub 8s ease-in-out infinite;
}

section h2, .section-title{position:relative;display:inline-block}
.section-title::after,section > .container > h2::after{
  content:"";display:block;height:3px;width:64px;margin:.5rem auto 0;border-radius:3px;
  background:linear-gradient(90deg,var(--brand,#8c1419),#e0353d);
}

img{transition:transform .5s ease}
.card:hover img,.gallery-item:hover img{transform:scale(1.04)}

footer,.site-footer{
  background:linear-gradient(180deg,#0b0f19,#111827)!important;color:#e5e7eb;
}
footer a,.site-footer a{color:#f3f4f6;transition:color .2s ease}
footer a:hover,.site-footer a:hover{color:#fca5a5}
