/* ============================================================
   BRIGHT SCHOOL OF ARTS — Complete Premium Design System v2.0
   Royal Purple × Gold | Bootstrap 5 | Fully Responsive
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&family=Mukta+Malar:wght@400;600;700;800&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --purple-900: #12051a;
  --purple-800: #1e0a2e;
  --purple-700: #4a1f4a;
  --purple-600: #6b3a6b;
  --purple-500: #8a5a8a;
  --purple-400: #a47ca4;
  --purple-300: #c0a0c0;
  --gold-100: #fffde7;
  --gold-300: #fff3b0;
  --gold-500: #ffd700;
  --gold-600: #e6c656;
  --gold-700: #b88a1a;
  --gold-gradient: linear-gradient(135deg, #fff8c0 0%, #ffd700 45%, #e6c656 72%, #b88a1a 100%);
  --dark-card: #150828;
  --glass-bg: rgba(18, 5, 26, 0.92);
  --text-white: #ffffff;
  --text-light: #e8ddf0;
  --text-muted-purple: #c8acd8;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.5);
  --shadow-gold: 0 8px 28px rgba(255,215,0,0.35);
  --transition: all 0.28s ease;
}

/* ============================================================
   GLOBAL RESETS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

a, a:hover, a:focus, a:visited { text-decoration: none !important; }

img { max-width: 100%; }

/* ============================================================
   BODY & TYPOGRAPHY
   ============================================================ */
body.purple-theme-body {
  font-family: 'Montserrat', sans-serif;
  background: #9e6a9e;
  background-image:
    radial-gradient(ellipse at top left, rgba(138,90,138,0.6) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(74,31,74,0.8) 0%, transparent 60%),
    linear-gradient(160deg, #b088b0 0%, #8e5a8e 40%, #6e3a6e 100%);
  background-attachment: fixed;
  color: var(--text-white);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .font-serif {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
}

/* Force all body text to be readable on purple */
.purple-theme-body p { color: var(--text-light); }
.purple-theme-body li { color: var(--text-light); }
.purple-theme-body label { color: var(--gold-500); font-weight: 600; }
.purple-theme-body td { color: var(--text-light); }
.purple-theme-body th { color: var(--gold-500); font-weight: 700; }
.purple-theme-body small { color: var(--text-muted-purple); }
.purple-theme-body blockquote { color: var(--text-light); }

/* Override Bootstrap text utilities on dark bg */
.purple-theme-body .text-muted { color: var(--text-muted-purple) !important; }
.purple-theme-body .text-secondary { color: var(--text-light) !important; }
.purple-theme-body .text-dark { color: #1a0a1a !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--purple-700); }
::-webkit-scrollbar-thumb { background: var(--gold-600); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-500); }

/* ============================================================
   TOP ANNOUNCEMENT BAR
   ============================================================ */
.top-bar {
  background: var(--purple-900);
  border-bottom: 1px solid rgba(255,215,0,0.2);
  font-size: 0.82rem;
}

.top-bar span, .top-bar a { color: #d8c8e8; }
.top-bar a:hover { color: var(--gold-500) !important; }

.bg-gold-badge {
  background: var(--gold-gradient);
  color: #1a0a1a !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255,215,0,0.3);
}

/* ============================================================
   BRAND HEADER — Single Row, All Sizes
   ============================================================ */
.purple-brand-header {
  background: linear-gradient(135deg, #a47aaa 0%, #8a508a 45%, #6a306a 100%);
  border-bottom: 3px solid var(--gold-500);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.purple-gold-title {
  color: var(--gold-500);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7), 0 0 22px rgba(255,215,0,0.25);
  letter-spacing: 0.5px;
}

.header-main-title {
  font-size: clamp(1.0rem, 3.6vw, 2.5rem);
  line-height: 1.15;
}

.header-sub-title {
  font-size: clamp(0.52rem, 1.4vw, 0.80rem);
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.4px;
}

.header-quote {
  font-size: clamp(0.46rem, 1.05vw, 0.73rem);
  color: var(--gold-600);
}

.text-gold-quote { color: var(--gold-600); }

.header-side-img {
  max-height: 78px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}

.header-side-img:hover { transform: scale(1.06); }

/* ============================================================
   INSTRUMENT BANNER
   ============================================================ */
.purple-instrument-banner {
  background: linear-gradient(135deg, #5a2a5a 0%, #6e3a6e 100%);
  border-bottom: 2px solid rgba(230,198,86,0.6);
}

.instrument-banner-img {
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

/* ============================================================
   MOBILE NAV BAR — Hamburger Row (< 992px)
   ============================================================ */
.mobile-nav-bar {
  background: var(--purple-700);
  border-top: 2px solid var(--gold-500);
  border-bottom: 2px solid rgba(230,198,86,0.4);
  padding: 9px 0;
  position: sticky;
  top: 0;
  z-index: 1035; /* Below offcanvas-backdrop(1040) and offcanvas(1045) so menu covers it */
  box-shadow: 0 5px 20px rgba(0,0,0,0.45);
}

/* Vertical divider between hamburger and page label */
.mobile-nav-divider {
  width: 1.5px;
  height: 36px;
  background: rgba(255,215,0,0.25);
  flex-shrink: 0;
}

.mobile-current-page { flex: 1; min-width: 0; overflow: hidden; }

.mobile-academy-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-600);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 3px;
}

.mobile-page-label {
  display: block;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  gap: 4px;
}

.mobile-page-label i {
  color: var(--gold-500);
  font-size: 0.6rem;
  margin-right: 3px;
}

/* Hamburger Toggle Button */
.mobile-menu-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 10px;
  padding: 9px 13px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(255,215,0,0.35);
}

.mobile-menu-toggle:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(255,215,0,0.5);
}

.hamburger-bars-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #000000;
  border-radius: 3px;
  transition: var(--transition);
}

.toggle-label {
  font-size: 0.65rem;
  font-weight: 900;
  color: #000000;
  letter-spacing: 1px;
}

/* Offcanvas slides from RIGHT */
.mobile-offcanvas-nav {
  background: #12051a !important;
  border-left: 2px solid var(--gold-500) !important;
  border-right: none !important;
  width: 300px !important;
  max-width: 88vw !important;
}

/* Offcanvas Header */
.mobile-offcanvas-nav .offcanvas-header {
  background: var(--purple-700);
  border-bottom: 2px solid var(--gold-500);
  padding: 14px 16px;
}

.offcanvas-title { font-family: 'Playfair Display', serif; }

.offcanvas-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,215,0,0.12);
  border: 1.5px solid rgba(255,215,0,0.35);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.offcanvas-close-btn:hover {
  background: var(--gold-500);
  color: #000000;
}

/* Quick Action Row (Home / Admission / Contact) */
.offcanvas-quick-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,215,0,0.15);
}

.offcanvas-quick-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,215,0,0.22);
  color: #e8d8f8 !important;
  font-size: 0.72rem;
  font-weight: 700;
  transition: var(--transition);
  text-align: center;
}

.offcanvas-quick-btn i { font-size: 0.78rem; color: var(--gold-500); }

.offcanvas-quick-btn:hover {
  background: rgba(255,215,0,0.15);
  border-color: var(--gold-500);
  color: var(--gold-500) !important;
}

.offcanvas-quick-btn.active {
  background: var(--gold-gradient);
  border-color: var(--gold-500);
  color: #000000 !important;
}

.offcanvas-quick-btn.active i { color: #000000; }

/* Offcanvas Body */
.mobile-offcanvas-nav .offcanvas-body {
  padding: 8px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-600) transparent;
}

.mobile-offcanvas-nav .offcanvas-body::-webkit-scrollbar { width: 4px; }
.mobile-offcanvas-nav .offcanvas-body::-webkit-scrollbar-thumb { background: var(--purple-600); border-radius: 4px; }

/* Section Title Dividers */
.nav-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gold-600);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 10px 16px 5px;
  margin-top: 4px;
  display: flex;
  align-items: center;
}

.nav-section-title i { color: var(--gold-500); }

/* Nav List */
.offcanvas-nav-list {
  display: flex;
  flex-direction: column;
  padding: 0 8px;
  gap: 2px;
  margin-bottom: 4px;
}

.offcanvas-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #e0cff0 !important;
  font-size: 0.83rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}

.offcanvas-nav-item i:first-child {
  font-size: 0.88rem;
  color: var(--purple-400);
  flex-shrink: 0;
}

.offcanvas-nav-item span { flex: 1; }

.nav-arrow {
  font-size: 0.62rem !important;
  color: rgba(255,255,255,0.25) !important;
  transition: var(--transition);
}

.offcanvas-nav-item:hover {
  background: rgba(255,215,0,0.10);
  border-color: rgba(255,215,0,0.22);
  color: #ffffff !important;
}

.offcanvas-nav-item:hover i:first-child { color: var(--gold-500); }
.offcanvas-nav-item:hover .nav-arrow { color: var(--gold-500) !important; transform: translateX(3px); }

.offcanvas-nav-item.active {
  background: linear-gradient(90deg, rgba(255,215,0,0.16) 0%, rgba(255,215,0,0.06) 100%);
  border-color: rgba(255,215,0,0.35);
  color: var(--gold-500) !important;
  font-weight: 700;
}

.offcanvas-nav-item.active i:first-child { color: var(--gold-500); }
.offcanvas-nav-item.active .nav-arrow { color: var(--gold-600) !important; }

/* ============================================================
   DESKTOP LEFT SIDEBAR
   ============================================================ */
@media (min-width: 992px) {
  .sticky-sidebar { position: sticky; top: 16px; z-index: 100; }
}

.sidebar-wrapper {
  background: #ffffff !important;
  border: 2px solid var(--purple-700) !important;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md) !important;
  overflow: hidden;
}

.sidebar-top-tabs {
  background: var(--purple-700);
  border-bottom: 2.5px solid var(--gold-500);
  display: flex !important;
}

.sidebar-top-link {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.80rem;
  letter-spacing: 0.3px;
  padding: 0.72rem 0.4rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.sidebar-top-link:hover,
.sidebar-top-link.active {
  background: var(--gold-gradient);
  color: #000000 !important;
}

.sidebar-menu-list {
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 6px !important;
  gap: 2px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.sidebar-menu-list::-webkit-scrollbar { width: 3px; }
.sidebar-menu-list::-webkit-scrollbar-thumb { background: var(--purple-300); border-radius: 3px; }

.sidebar-item {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  padding: 0.58rem 0.75rem !important;
  color: #2d1432 !important;
  font-weight: 700 !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.2px;
  text-transform: uppercase !important;
  border-radius: var(--radius-xs);
  border-bottom: 1px solid #f0e8f4;
  transition: var(--transition);
  gap: 8px;
}

.sidebar-item:last-child { border-bottom: none; }

.sidebar-item:hover {
  background: linear-gradient(90deg, #f5ecf5 0%, #faf5fa 100%) !important;
  color: var(--purple-700) !important;
  padding-left: 1.0rem !important;
  border-left: 3px solid var(--purple-600);
}

.sidebar-item.active {
  background: linear-gradient(90deg, #ede0f0 0%, #f8f0f8 100%) !important;
  color: var(--purple-700) !important;
  border-left: 3px solid var(--gold-500);
  font-weight: 800 !important;
}

.sidebar-item i {
  color: var(--purple-500) !important;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sidebar-item.active i { color: var(--gold-700) !important; }

/* ============================================================
   GURU VANDANAM HEADER CARD
   ============================================================ */
.guru-vandanam-card {
  background: #fffef8;
  background-image:
    radial-gradient(circle, rgba(255,215,0,0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 3px solid var(--gold-500) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,215,0,0.12) !important;
}

.guru-vandanam-card p { color: #6b1028; }
.guru-vandanam-card span { color: #6b1028; }

.guru-tamil-title {
  font-family: 'Mukta Malar', serif;
  color: #7b1227;
  font-size: clamp(1.5rem, 3.8vw, 2.3rem);
  letter-spacing: 1px;
}

.guru-slokam-box {
  background: rgba(255,248,210,0.98);
  border: 1.5px solid var(--gold-600);
  border-radius: var(--radius-sm);
}

.guru-slokam-text {
  font-family: 'Mukta Malar', sans-serif;
  color: #63081e;
  font-size: clamp(0.88rem, 1.8vw, 1.08rem);
}

.filter-gold-drop { filter: drop-shadow(0 4px 10px rgba(180,140,20,0.5)); }

/* ============================================================
   PAGE BANNER (subpage hero at top)
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, rgba(60,15,60,0.96) 0%, rgba(20,8,40,0.97) 100%);
  border-radius: var(--radius-md);
  padding: 2.8rem 2rem;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(255,215,0,0.22);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(255,215,0,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.page-banner h1 { color: #ffffff !important; }
.page-banner p { color: rgba(255,255,255,0.85) !important; }

/* gold-badge — used in page banners */
.gold-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.35);
  color: var(--gold-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

/* ============================================================
   GLASS CARDS — Dark Translucent Content Cards
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255,215,0,0.22);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--text-light);
  transition: var(--transition);
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,215,0,0.5);
  box-shadow: var(--shadow-gold);
}

.glass-card h1, .glass-card h2, .glass-card h3,
.glass-card h4, .glass-card h5, .glass-card h6 { color: #ffffff; }

.glass-card p, .glass-card li, .glass-card td { color: var(--text-light); }
.glass-card small { color: var(--text-muted-purple); }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.gold-heading {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-gold { color: var(--gold-500) !important; }
.text-gold-soft { color: var(--gold-600) !important; }
.text-purple-light { color: var(--purple-300) !important; }

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */
.btn-gold {
  background: var(--gold-gradient);
  color: #1a0a1a;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  padding: 0.68rem 1.9rem;
  box-shadow: 0 4px 14px rgba(255,215,0,0.3);
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fff 0%, var(--gold-500) 100%);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
  background: transparent;
  border: 2px solid var(--gold-500);
  color: var(--gold-500);
  font-weight: 600;
  border-radius: 50px;
  padding: 0.62rem 1.7rem;
  transition: var(--transition);
}

.btn-outline-gold:hover {
  background: var(--gold-500);
  color: #000000;
  transform: translateY(-2px);
}

/* ============================================================
   HERO CAROUSEL & SIDEBAR CARDS
   ============================================================ */
.hero-slider-item {
  height: 480px;
  background-size: cover;
  background-position: center top;
}

.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(18,5,26,0.97) 0%,
    rgba(18,5,26,0.88) 55%,
    rgba(18,5,26,0.76) 100%
  );
  height: 100%;
}

.hero-glass-card {
  background: rgba(18, 5, 26, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), inset 0 0 15px rgba(255, 215, 0, 0.05);
  max-width: 480px;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  width: 42px;
  height: 42px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
  transition: all 0.3s ease;
  z-index: 10;
}

#heroCarousel .carousel-control-prev {
  left: 12px;
}

#heroCarousel .carousel-control-next {
  right: 12px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

#heroCarousel .carousel-indicators {
  margin-bottom: 8px;
  z-index: 10;
}

#heroCarousel .carousel-indicators [data-bs-target] {
  width: 24px;
  height: 4px;
  border-radius: 2px;
}

.thumb-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.20) !important;
  border-radius: 12px !important;
  transition: all 0.25s ease-in-out;
  overflow: hidden;
  width: 100%;
}

.thumb-card:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.5) !important;
  transform: translateX(4px);
}

.thumb-card.active {
  background: rgba(255, 215, 0, 0.16);
  border-color: #ffd700 !important;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.thumb-card.active .thumb-title {
  color: #ffd700 !important;
}

.thumb-info {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.thumb-title {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.thumb-sub {
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.cursor-pointer {
  cursor: pointer;
}




/* ============================================================
   STAT / COUNTER CARDS
   ============================================================ */
.stat-showcase-card {
  background: rgba(18, 5, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 215, 0, 0.05);
}

.stat-item-box {
  padding: 1.25rem 0.75rem;
  transition: all 0.3s ease;
  border-radius: 16px;
}

.stat-item-box:hover {
  background: rgba(255, 215, 0, 0.08);
  transform: translateY(-4px);
}

.stat-icon-badge {
  width: 54px;
  height: 54px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item-box:hover .stat-icon-badge {
  transform: scale(1.12);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.22);
}

.stat-count-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  color: #ffd700;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stat-label-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 0.35rem;
  font-weight: 600;
}

/* ============================================================
   ACADEMY PORTAL CARDS
   ============================================================ */
.portal-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 16px;
  padding: 1.25rem 0.85rem;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  text-align: center;
  height: 100%;
}

.portal-card:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(18, 5, 26, 0.85) 100%);
  border-color: #ffd700;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.25);
}

.portal-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffd700;
  margin-bottom: 0.65rem;
  transition: all 0.3s ease;
}

.portal-card:hover .portal-icon-wrapper {
  background: #ffd700;
  color: #000000;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* ============================================================
   ADVANCED GLASSMORPHISM & KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes goldPulse {
  0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }
  50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.5); }
  100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }
}

@keyframes floatBadge {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -6px); }
}

.glass-card-interactive {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(18, 5, 26, 0.82) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 215, 0, 0.25);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.glass-card-interactive:hover {
  border-color: #ffd700;
  box-shadow: 0 16px 40px rgba(255, 215, 0, 0.22), inset 0 1px 0 rgba(255, 215, 0, 0.4);
  transform: translateY(-4px);
}

.glass-check-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.25s ease-in-out;
}

.glass-check-item:hover {
  background: rgba(255, 215, 0, 0.12);
  border-color: #ffd700;
  transform: translateX(4px);
}

/* ============================================================
   COURSE CARDS (GLASS UPGRADE)
   ============================================================ */
.course-card-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(18, 5, 26, 0.85) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 20px;
  padding: 1.75rem;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.course-card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.course-card-glass:hover {
  border-color: #ffd700;
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(255, 215, 0, 0.22);
}

.course-card-glass:hover::before {
  opacity: 1;
}

.course-icon-badge {
  width: 52px;
  height: 52px;
  background: rgba(255, 215, 0, 0.14);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.course-card-glass:hover .course-icon-badge {
  background: #ffd700;
  color: #000000;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* ============================================================
   STICKY MOBILE HEADER ON SCROLL
   ============================================================ */
.mobile-header-sticky-wrapper {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(18, 5, 26, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid #ffd700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
  .mobile-header-sticky-wrapper .purple-brand-header {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }

  .mobile-header-sticky-wrapper .header-side-img {
    max-height: 48px !important;
  }

  .mobile-header-sticky-wrapper .header-main-title {
    font-size: 1rem !important;
    letter-spacing: 0.5px;
  }

  .mobile-header-sticky-wrapper .header-sub-title {
    font-size: 0.58rem !important;
    line-height: 1.1;
  }
}

/* ============================================================
   GLASS FORM CONTROLS & AVATAR GLOWS
   ============================================================ */
.form-control:focus,
.form-select:focus {
  background-color: rgba(18, 5, 26, 0.95) !important;
  color: #ffffff !important;
  border-color: #ffd700 !important;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.3) !important;
}

.avatar-gold-glow {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.35);
  transition: all 0.3s ease-in-out;
}

.glass-card-interactive:hover .avatar-gold-glow {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  transform: scale(1.04);
}





/* ============================================================
   COURSE CARDS
   ============================================================ */
.course-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255,215,0,0.20);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold);
}

.course-card .card-header {
  background: var(--gold-gradient);
  color: #000000 !important;
  font-weight: 700;
  border-bottom: none;
  padding: 0.75rem 1rem;
}

.course-card .card-header * { color: #000000 !important; }

/* ============================================================
   FACULTY PROFILE CARDS
   ============================================================ */
.faculty-card {
  background: var(--glass-bg);
  border: 1px solid rgba(255,215,0,0.20);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faculty-card:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold);
  transform: translateY(-5px);
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-img-wrap {
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,215,0,0.18);
  transition: var(--transition);
  aspect-ratio: 4/3;
}

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

.gallery-img-wrap:hover {
  border-color: var(--gold-500);
  box-shadow: var(--shadow-gold);
}

.gallery-img-wrap:hover img { transform: scale(1.10); }

/* ============================================================
   FORM CONTROLS (Admission / Contact)
   ============================================================ */
.form-control,
.form-select {
  background: rgba(255,255,255,0.07) !important;
  border: 1.5px solid rgba(255,215,0,0.28) !important;
  color: #ffffff !important;
  border-radius: var(--radius-xs) !important;
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  background: rgba(255,255,255,0.11) !important;
  border-color: var(--gold-500) !important;
  box-shadow: 0 0 0 3px rgba(255,215,0,0.18) !important;
  color: #ffffff !important;
  outline: none !important;
}

.form-control::placeholder { color: rgba(255,255,255,0.4) !important; }

.form-label {
  color: var(--gold-500) !important;
  font-weight: 600;
  font-size: 0.84rem;
  margin-bottom: 0.38rem;
}

/* ============================================================
   TABLE STYLES
   ============================================================ */
.table { color: var(--text-light); }

.table thead th {
  background: rgba(74,31,74,0.8);
  color: var(--gold-500);
  border-color: rgba(255,215,0,0.18);
  font-weight: 700;
}

.table tbody td {
  border-color: rgba(255,255,255,0.07);
  color: var(--text-light);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background: rgba(255,255,255,0.04);
  color: var(--text-light);
}

.table-dark { --bs-table-bg: rgba(18,5,26,0.8); }

/* ============================================================
   SECTION DECORATOR
   ============================================================ */
.section-divider {
  border: none;
  height: 1.5px;
  background: linear-gradient(to right, transparent, rgba(255,215,0,0.5), transparent);
  margin: 2rem 0;
}

.badge-gold {
  background: var(--gold-gradient);
  color: #1a0a1a;
  font-weight: 700;
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.74rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-custom {
  background: #0e040e !important;
  border-top: 3px solid var(--gold-500) !important;
  margin-top: 4rem;
}

.footer-custom h5 {
  color: var(--gold-500) !important;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-custom p,
.footer-custom li,
.footer-custom span,
.footer-custom small { color: #c4b4c8 !important; }

.gold-quote-box {
  background: linear-gradient(135deg, #220822 0%, #150515 100%) !important;
  border: 2px solid var(--gold-500) !important;
  box-shadow: 0 6px 24px rgba(255,215,0,0.18) !important;
  border-radius: var(--radius-md);
}

.gold-quote-box h4,
.gold-quote-box h4 * {
  color: #ffffff !important;
  text-shadow: 0 0 14px rgba(255,215,0,0.30);
}

.text-footer-muted { color: #b0a0b4 !important; }

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links a,
.footer-links li a { color: #ccc0d0 !important; font-size: 0.87rem; font-weight: 500; display: block; padding: 4px 0; transition: var(--transition); }

.footer-links a:hover,
.footer-links li a:hover { color: var(--gold-500) !important; transform: translateX(5px); padding-left: 3px; }

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,215,0,0.10);
  border: 1.5px solid rgba(255,215,0,0.45);
  color: var(--gold-500) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: var(--gold-500);
  color: #000000 !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 18px rgba(255,215,0,0.45);
}

/* ============================================================
   FLOATING ADMISSION BUTTON
   ============================================================ */
.floating-admission-btn {
  position: fixed;
  bottom: 82px;
  right: 20px;
  z-index: 1040;
}

.floating-glow-btn { animation: pulseGold 2.8s ease-in-out infinite; }

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0.5); }
  50%       { box-shadow: 0 0 0 11px rgba(255,215,0,0); }
}

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1040;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: none;
  color: #000000;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255,215,0,0.4);
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px) scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

.scroll-top-btn.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-500) 100%);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 22px rgba(255,215,0,0.55);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 991.98px) {
  .hero-slider-item { height: 260px; }
  .instrument-banner-img { max-height: 75px; }
  .page-banner { padding: 1.6rem 1rem; }
  .floating-admission-btn { bottom: 76px; right: 14px; }
  .scroll-top-btn { bottom: 14px; right: 14px; width: 42px; height: 42px; }
}

@media (max-width: 575.98px) {
  .guru-tamil-title { font-size: 1.45rem; }
  .guru-slokam-text { font-size: 0.86rem; }
  .stat-card .stat-number { font-size: 2rem; }
  .header-side-img { max-height: 50px !important; }
  .instrument-banner-img { max-height: 60px; }
  .page-banner { padding: 1.2rem 0.75rem; border-radius: var(--radius-sm); }
  .glass-card { border-radius: var(--radius-sm); }
}

/* Border utility used inline */
.border-gold { border-color: rgba(255,215,0,0.40) !important; }
