/* ============================================
   BOOKMARK SCHOOL — GLOBAL STYLESHEET
   Design System, Components, Layout
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Design Tokens ── */
:root {
  --primary:        #4C3B9E;
  --primary-dark:   #352982;
  --primary-light:  #7C6DC9;
  --secondary:      #0D9488;
  --secondary-dark: #0A7A70;
  --secondary-light:#2DD4BF;
  --accent:         #F97316;
  --accent-dark:    #EA6700;
  --accent-light:   #FB923C;
  --bg-light:       #F8F7FF;
  --bg-white:       #FFFFFF;
  --text-dark:      #1E1B4B;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;
  --border-light:   #E5E3F7;
  --glass-bg:       rgba(255,255,255,0.15);
  --glass-border:   rgba(255,255,255,0.25);
  --shadow-sm:      0 2px 12px rgba(76,59,158,0.08);
  --shadow-md:      0 8px 32px rgba(76,59,158,0.12);
  --shadow-lg:      0 20px 60px rgba(76,59,158,0.18);
  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      32px;
  --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
  --gradient-primary: linear-gradient(135deg, #4C3B9E 0%, #7C6DC9 100%);
  --gradient-secondary: linear-gradient(135deg, #0D9488 0%, #2DD4BF 100%);
  --gradient-accent: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
  --gradient-hero:  linear-gradient(135deg, #1E1B4B 0%, #4C3B9E 50%, #0D9488 100%);
  --gradient-bg:    linear-gradient(180deg, #F8F7FF 0%, #EEF2FF 100%);
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img { max-width: 100%; height: auto; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 99px; }

/* ══════════════════════════════════
   NAVIGATION
══════════════════════════════════ */
#main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 20px 0 16px;
  transition: var(--transition);
  background: transparent;
}

#main-navbar.scrolled {
  background: rgba(30,27,75,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
  padding: 10px 0;
}

#main-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13,148,136,0.4);
}

.brand-text-main {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand-text-sub {
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#main-navbar .nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85) !important;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}

#main-navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary-light);
  border-radius: 99px;
  transition: width 0.3s ease;
}

#main-navbar .nav-link:hover,
#main-navbar .nav-link.active {
  color: white !important;
  background: rgba(255,255,255,0.1);
}

#main-navbar .nav-link:hover::after,
#main-navbar .nav-link.active::after {
  width: 60%;
}

.nav-cta-btn {
  background: var(--gradient-accent) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 99px !important;
  box-shadow: 0 4px 15px rgba(249,115,22,0.4);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.5) !important;
}

.nav-cta-btn::after { display: none !important; }

/* Admissions Open Badge */
.admissions-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-accent);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse-badge 2s ease infinite;
  box-shadow: 0 2px 10px rgba(249,115,22,0.4);
}

@keyframes pulse-badge {
  0%,100% { box-shadow: 0 2px 10px rgba(249,115,22,0.4); }
  50% { box-shadow: 0 2px 20px rgba(249,115,22,0.7); }
}

/* Hamburger Menu */
.navbar-toggler {
  border: 2px solid rgba(255,255,255,0.4) !important;
  padding: 6px 10px;
  border-radius: 8px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Mobile navbar */
@media (max-width: 991px) {
  #main-navbar .navbar-collapse {
    background: rgba(30,27,75,0.97);
    backdrop-filter: blur(20px);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 16px 20px 24px;
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.1);
  }
  #main-navbar .nav-link { padding: 10px 16px !important; }
}

/* ══════════════════════════════════
   HERO SLIDER
══════════════════════════════════ */
#hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

/* Local Swiper fallbacks so the homepage still holds its layout without CDN CSS */
.swiper {
  position: relative;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
}

.swiper-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
  z-index: 0;
}

.swiper-slide-active .hero-slide-bg {
  transform: scale(1);
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination {
  z-index: 5;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,27,75,0.88) 0%, rgba(76,59,158,0.7) 50%, rgba(13,148,136,0.5) 100%);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 99px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.5s ease infinite;
}

@keyframes blink {
  0%,100% { opacity:1; }
  50% { opacity:0.3; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-title span {
  background: linear-gradient(90deg, #2DD4BF, #FB923C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 560px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  padding: 16px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.hero-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary-light);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero navigation arrows */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 800;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-swiper .swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
  width: 8px;
  height: 8px;
}

.hero-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px;
  border-radius: 99px;
  background: var(--accent);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float-up 2s ease infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 99px;
  animation: scroll-dot 2s ease infinite;
}

@keyframes scroll-dot {
  0% { top: 6px; opacity:1; }
  100% { top: 20px; opacity:0; }
}

@keyframes float-up {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* ══════════════════════════════════
   SECTION UTILITIES
══════════════════════════════════ */
.section-py { padding: 90px 0; }
.section-py-sm { padding: 60px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 12px;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 3px;
  background: var(--secondary);
  border-radius: 99px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-title span { color: var(--primary); }

.section-divider {
  width: 64px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 99px;
  margin: 0 auto 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ══════════════════════════════════
   BUTTONS
══════════════════════════════════ */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-primary);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 30px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(76,59,158,0.35);
  text-decoration: none;
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(76,59,158,0.5);
  color: white;
}

.btn-accent-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-accent);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 30px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(249,115,22,0.35);
  text-decoration: none;
}

.btn-accent-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(249,115,22,0.5);
  color: white;
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 28px;
  border-radius: 99px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-secondary);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 13px 30px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(13,148,136,0.35);
  text-decoration: none;
}

.btn-secondary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(13,148,136,0.5);
  color: white;
}

.btn-white-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 30px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  text-decoration: none;
}

.btn-white-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  color: var(--primary);
}

/* ══════════════════════════════════
   CARDS
══════════════════════════════════ */
.card-premium {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  overflow: hidden;
}

.card-premium:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.icon-card {
  padding: 36px 28px;
  text-align: center;
}

.icon-card .icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.icon-card:hover .icon-wrap {
  transform: scale(1.1) rotate(-5deg);
}

.icon-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.icon-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Image hover cards */
.img-hover-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.img-hover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img-hover-card:hover img {
  transform: scale(1.08);
}

.img-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,27,75,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transform: translateY(0);
  transition: var(--transition);
}

.img-hover-overlay .card-title-text {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.img-hover-overlay .card-sub-text {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
}

.img-hover-card:hover .card-sub-text {
  transform: translateY(0);
  opacity: 1;
}

/* ══════════════════════════════════
   COUNTER SECTION
══════════════════════════════════ */
.counter-section {
  background: var(--gradient-primary);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.counter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.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");
}

.counter-item { text-align: center; color: white; padding: 20px; }
.counter-number {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--secondary-light);
  line-height: 1;
  display: block;
}
.counter-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
  display: block;
}
.counter-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.4);
}

/* ══════════════════════════════════
   WELCOME SECTION
══════════════════════════════════ */
.welcome-section { background: white; }

.welcome-badge-card {
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  margin-bottom: 16px;
}

.welcome-img-block {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.welcome-img-block img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
}

.welcome-float-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.welcome-float-card-1 { bottom: -20px; left: -20px; }
.welcome-float-card-2 { top: -20px; right: -20px; }

.float-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.float-card-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.float-card-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.2;
}

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.check-list li i {
  color: var(--secondary);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ══════════════════════════════════
   PRINCIPAL SECTION
══════════════════════════════════ */
.principal-section { background: var(--bg-light); }

.principal-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.principal-img-side {
  background: var(--gradient-primary);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
}

.principal-img-side img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.principal-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.principal-title {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

.principal-content-side { padding: 40px; }

.quote-icon {
  font-size: 4rem;
  line-height: 1;
  color: var(--primary-light);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.principal-quote {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
  border-left: 4px solid var(--secondary);
  padding-left: 24px;
  margin: 16px 0;
}

/* ══════════════════════════════════
   GALLERY PREVIEW
══════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(76,59,158,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay i {
  color: white;
  font-size: 1.8rem;
}

/* Gallery page */
.gallery-filter-bar { margin-bottom: 40px; }
.gallery-filter-btn {
  padding: 8px 20px;
  border-radius: 99px;
  border: 2px solid var(--border-light);
  background: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  margin: 4px;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ══════════════════════════════════
   NEWS CARDS
══════════════════════════════════ */
.news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  height: 100%;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.news-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img { transform: scale(1.07); }

.news-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card-body { padding: 24px; }

.news-card-date {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-card-title:hover { color: var(--primary); }

.news-card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.news-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-read-more:hover { color: var(--secondary-dark); gap: 10px; }

/* ══════════════════════════════════
   TESTIMONIALS
══════════════════════════════════ */
.testimonials-section { background: var(--bg-light); }

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
}

.testimonial-quote-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 3rem;
  color: var(--primary-light);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ══════════════════════════════════
   AFFILIATION LOGOS
══════════════════════════════════ */
.affiliation-section { background: white; padding: 50px 0; }

.affiliation-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  transition: var(--transition);
  gap: 10px;
}

.affiliation-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.affiliation-icon {
  font-size: 2.4rem;
  color: var(--primary);
}

.affiliation-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  text-align: center;
}

/* ══════════════════════════════════
   CTA BANNER
══════════════════════════════════ */
.cta-banner {
  background: var(--gradient-hero);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45,212,191,0.25) 0%, transparent 70%);
}

.cta-banner-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: white;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner-sub { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 36px; }

/* ══════════════════════════════════
   CONTACT SECTION
══════════════════════════════════ */
.contact-info-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-item-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-item-value {
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
}

.contact-item-value a {
  color: var(--primary);
}

.contact-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-control-custom {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: var(--transition);
  outline: none;
  margin-bottom: 18px;
}

.form-control-custom:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(76,59,158,0.1);
}

.form-control-custom::placeholder { color: var(--text-light); }

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

/* ══════════════════════════════════
   TIMELINE (Admissions)
══════════════════════════════════ */
.timeline { position: relative; padding: 20px 0; }

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-light), var(--secondary-light));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  position: relative;
}

.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-content {
  width: calc(50% - 50px);
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content { margin-right: auto; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { margin-left: auto; text-align: left; }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 0 0 4px rgba(76,59,158,0.15);
  z-index: 2;
}

.timeline-content h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .timeline::before { left: 24px; }
  .timeline-item { flex-direction: column !important; padding-left: 70px; }
  .timeline-content { width: 100%; text-align: left !important; }
  .timeline-dot { left: 24px; top: 0; }
}

/* ══════════════════════════════════
   ACCORDION
══════════════════════════════════ */
.accordion-custom .accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: white;
  padding: 20px 24px;
}

.accordion-custom .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: rgba(76,59,158,0.05);
  box-shadow: none;
}

.accordion-custom .accordion-button:focus { box-shadow: none; }

.accordion-custom .accordion-button::after {
  filter: invert(30%) sepia(70%) saturate(800%) hue-rotate(230deg);
}

.accordion-custom .accordion-body {
  padding: 16px 24px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ══════════════════════════════════
   TABLE (Disclosure / Board Results)
══════════════════════════════════ */
.table-premium {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-premium thead th {
  background: var(--gradient-primary);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 16px 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}

.table-premium tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-dark);
  vertical-align: middle;
}

.table-premium tbody tr:last-child td { border-bottom: none; }

.table-premium tbody tr:hover td {
  background: rgba(76,59,158,0.03);
}

/* ══════════════════════════════════
   PAGE HERO (Inner pages)
══════════════════════════════════ */
.page-hero {
  background: var(--gradient-hero);
  padding: 140px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45,212,191,0.2) 0%, transparent 70%);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
}

.page-hero-content { position: relative; z-index: 2; }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  font-weight: 800;
  margin-bottom: 12px;
}

.breadcrumb-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb-custom a,
.breadcrumb-custom span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.breadcrumb-custom .sep { color: rgba(255,255,255,0.4); }
.breadcrumb-custom .current { color: var(--secondary-light); font-weight: 600; }

/* Waves */
.wave-divider { line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ══════════════════════════════════
   DOWNLOAD CARDS
══════════════════════════════════ */
.download-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.download-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}

.download-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(76,59,158,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.download-info { flex: 1; }
.download-title { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 2px; }
.download-meta { font-size: 0.78rem; color: var(--text-light); }

.download-btn {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.download-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(76,59,158,0.4);
  color:white;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
#main-footer {
  background: #0F0C24;
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}

#main-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.footer-brand .brand-logo-icon { background: var(--gradient-primary); }

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  margin: 20px 0 28px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px;
  height: 2px;
  background: var(--secondary);
  border-radius: 99px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.footer-links a i { font-size: 0.7rem; color: var(--secondary); }
.footer-links a:hover { color: white; gap: 12px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.footer-contact-item i {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

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

/* ══════════════════════════════════
   UTILITY CLASSES
══════════════════════════════════ */
.text-primary-custom { color: var(--primary) !important; }
.text-secondary-custom { color: var(--secondary) !important; }
.text-accent-custom { color: var(--accent) !important; }
.text-muted-custom { color: var(--text-muted) !important; }

.bg-primary-custom { background: var(--gradient-primary) !important; }
.bg-secondary-custom { background: var(--gradient-secondary) !important; }
.bg-light-custom { background: var(--bg-light) !important; }

.rounded-custom { border-radius: var(--radius-lg) !important; }

.shadow-custom { box-shadow: var(--shadow-md) !important; }

.badge-primary {
  background: rgba(76,59,158,0.12);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
}

.badge-secondary {
  background: rgba(13,148,136,0.12);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
}

.badge-accent {
  background: rgba(249,115,22,0.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
}

/* ── Responsive Adjustments ── */
@media (max-width:576px) {
  .section-py { padding: 60px 0; }
  .hero-stats { gap: 16px; }
  .hero-stat { padding: 12px 16px; }
  .cta-banner { padding: 60px 0; }
  .welcome-float-card { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Placeholder colors for images ── */
.img-placeholder {
  background: linear-gradient(135deg, rgba(76,59,158,0.15), rgba(13,148,136,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 3rem;
}
