
:root {
  --bg-dark: #06080e;
  --bg-card: rgba(15, 20, 32, 0.82);
  --border-card: rgba(212, 175, 55, 0.22);
  --gold: #d4af37;
  --gold-light: #fbe285;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --saffron: #f58220;
  --emerald: #10b981;
  --text-white: #f8fafc;
  --text-dim: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  touch-action: pan-y;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Plus Jakarta Sans', 'Noto Sans Kannada', sans-serif;
  overflow-x: clip;
  overflow-wrap: break-word;
  word-break: break-word;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  min-height: 100vh;
  line-height: 1.6;
}

.kannada-text { font-family: 'Noto Sans Kannada', sans-serif; letter-spacing: normal; }
.sacred-font { font-family: 'Noto Sans Kannada', 'Cinzel', serif; letter-spacing: normal; }
.header-brand-title {
  font-family: 'Noto Sans Kannada', sans-serif;
  font-weight: 800;
  letter-spacing: -0.015em;
  word-spacing: normal;
  line-height: 1.42;
  padding-top: 6px;
  padding-bottom: 6px;
  display: inline-block;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 12;
  opacity: 0.95;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px var(--gold-glow);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #ffd700 0%, #ffc107 25%, #ffe082 50%, #d4af37 75%, #ffb300 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-btn {
  background: linear-gradient(135deg, #ffd166 0%, #d4af37 50%, #b8860b 100%);
  color: #06080e;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  padding: 12px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  text-decoration: none;
}

.gold-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 26px rgba(212, 175, 55, 0.5);
}

.outline-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 9999px;
  padding: 12px 26px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.outline-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  transform: scale(1.03);
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #161102 0%, #3a2a02 50%, #161102 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3px 0 4px 0;
  position: relative;
  z-index: 40;
  pointer-events: none;
  height: auto;
}

.ticker-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker 80s linear infinite !important;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  font-family: 'Noto Sans Kannada', sans-serif;
  line-height: 1.45;
  padding-bottom: 1px;
  will-change: transform;
}

.ticker-content .ticker-item,
.ticker-content span {
  display: inline-block;
  line-height: 1.45;
  padding-bottom: 2px;
  padding-right: 50px;
  overflow: visible;
  white-space: nowrap;
}

@keyframes ticker {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 24px;
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-area img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #1e3a8a;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(30, 58, 138, 0.4);
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.45;
  padding-top: 6px;
  padding-bottom: 2px;
}
.header-brand-sub {
  font-size: 0.75rem;
  line-height: 1.2;
}

.hero-section {
  min-height: calc(100dvh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  z-index: 10;
  padding: 40px 20px;
  text-align: center;
}

.hero-box { max-width: 980px; margin: 0 auto; }

/* ════════════════════════════════════════════════════════════
   SHARADA DEVI CENTERPIECE — STEP 3 ORGANIC SEAMLESS BLEND
   ════════════════════════════════════════════════════════════ */

.devi-centerpiece-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 4px auto 14px auto;
  overflow: visible;
}

/* ── Divine Golden Halo Glow ── */
.devi-halo-orb {
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  -webkit-transform: translate3d(-50%, -50%, 0);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.40) 0%,
    rgba(245, 158, 11, 0.20) 40%,
    rgba(212, 175, 55, 0.08) 60%,
    transparent 76%
  );
  filter: blur(16px);
  animation: deviHaloPulse 5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

/* ── Celestial Rotating Rays ── */
.devi-aura-rays {
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  -webkit-transform: translate3d(-50%, -50%, 0);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: url('/assets/devi_tapered_rays.svg?v=20261011_subtle_rays') no-repeat center center;
  background-size: contain;
  mix-blend-mode: screen;
  opacity: 0.50;
  filter: drop-shadow(0 0 14px rgba(255, 215, 0, 0.35));
  animation: deviRaysSpin 65s linear infinite;
  pointer-events: none;
  z-index: 1;
  contain: paint;
  will-change: transform;
}

/* ── THE GODDESS IMAGE — 100% Symmetrical, Centered, Seamless ── */
.devi-centerpiece-img {
  position: relative !important;
  z-index: 12 !important;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 440px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  /* Zero mask: Lotus flower petals remain 100% solid, crisp, and pure */
  mix-blend-mode: normal !important;
  filter:
    drop-shadow(0 0 16px rgba(255, 215, 0, 0.48))
    drop-shadow(0 0 35px rgba(245, 158, 11, 0.25))
    brightness(1.06)
    contrast(1.04);
  animation: deviLevitate 6s ease-in-out infinite alternate;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Sacred Animations ── */
@keyframes deviLevitate {
  0%   { transform: translate3d(0, 0px, 10px)   scale(1.000); }
  50%  { transform: translate3d(0, -12px, 10px) scale(1.018); }
  100% { transform: translate3d(0, -5px, 10px)  scale(1.010); }
}

@keyframes deviHaloPulse {
  0%   { opacity: 0.60; transform: translate(-50%,-50%) scale(0.90); }
  100% { opacity: 1.00; transform: translate(-50%,-50%) scale(1.12); }
}

@keyframes deviRaysSpin {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg); }
}

/* ── Responsive Viewports — Golden Crown Ratio (Chakra Top: 26%, Clean Lotus Base) ── */
@media (max-width: 900px) {
  .devi-centerpiece-container { max-width: 380px; }
  .devi-centerpiece-img       { max-width: min(350px, 84vw); }
  .devi-halo-orb              { width: 220px; height: 220px; top: 26%; }
  .devi-aura-rays             { width: 270px; height: 270px; top: 26%; opacity: 0.50; }
}

@media (max-width: 600px) {
  .devi-centerpiece-container { max-width: 320px; margin-bottom: 10px; }
  .devi-centerpiece-img       { max-width: min(290px, 82vw); }
  .devi-halo-orb              { width: 175px; height: 175px; top: 26%; }
  .devi-aura-rays             { width: 215px; height: 215px; top: 26%; opacity: 0.48; }
}

@media (max-width: 380px) {
  .devi-centerpiece-container { max-width: 270px; }
  .devi-centerpiece-img       { max-width: min(260px, 80vw); }
  .devi-halo-orb              { width: 155px; height: 155px; top: 26%; }
  .devi-aura-rays             { width: 185px; height: 185px; top: 26%; opacity: 0.48; }
}
/* ════════════════════════════════════════════════════════════
   END SHARADA DEVI CENTERPIECE
   ════════════════════════════════════════════════════════════ */






.admissions-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(245, 130, 32, 0.15);
  border: 1px solid rgba(245, 130, 32, 0.4);
  color: #ffaa5a;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 130, 32, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 16px 2px rgba(245, 130, 32, 0.3); }
}

.hero-title-kn {
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.38;
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  padding: 4px 10px 14px 10px;
  margin-bottom: 8px;
  text-shadow: 0 4px 24px rgba(212, 175, 55, 0.4);
}

@media (min-width: 769px) {
  .hero-sub-br { display: none !important; }
}
@media (max-width: 768px) {
  .hero-sub-br { display: inline !important; }
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: #cbd5e1;
  margin-bottom: 24px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.stats-ribbon {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: -20px auto 70px auto;
  padding: 0 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card { padding: 24px; text-align: center; }
.stat-val { font-size: 2.3rem; font-weight: 800; color: var(--gold-light); margin-bottom: 4px; }
.stat-lbl { color: var(--text-dim); font-size: 0.9rem; font-weight: 500; }

section {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto 90px auto;
  padding: 0 20px;
}

.sec-header { text-align: center; margin-bottom: 45px; }
.sec-tag {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}
.sec-title { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 800; margin-bottom: 10px; }
.sec-desc { color: var(--text-dim); max-width: 650px; margin: 0 auto; font-size: 1rem; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.pillar-card { padding: 32px 24px; text-align: center; }
.pillar-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--gold);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 35px;
}

.tab-btn {
  padding: 8px 20px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--gold);
  color: #06080e;
  border-color: var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.media-card {
  position: relative;
  border-radius: 18px;
  overflow: visible;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.35s ease;
  aspect-ratio: 16 / 10;
}

.media-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

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

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

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 14, 0.95) 0%, rgba(6, 8, 14, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.media-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.9);
  color: #06080e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
  transition: transform 0.25s ease;
}

.media-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content-box {
  max-width: 95vw;
  max-height: 90vh;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: -48px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .location-wrapper { grid-template-columns: 1fr; }
}

.map-frame {
  width: 100%;
  height: 380px;
  border-radius: 20px;
  border: 1px solid var(--border-card);
  filter: contrast(1.05);
}

.admission-form-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 6px; font-size: 0.9rem; font-weight: 600; color: #cbd5e1; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .admission-form-card { padding: 24px; }
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(6, 8, 14, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding: 10px 16px env(safe-area-inset-bottom, 12px);
  z-index: 90;
  justify-content: space-around;
  align-items: center;
}

.m-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: color 0.2s;
}

.m-nav-item.active, .m-nav-item:hover { color: var(--gold); }

@media (max-width: 768px) {
  .mobile-bottom-bar { display: flex; }
  body { padding-bottom: 74px; }
  .nav-links-desktop { display: none; }
}

.toast-box {
  position: fixed;
  bottom: 90px;
  right: 24px;
  background: #10b981;
  color: #06080e;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  z-index: 2000;
  display: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
}

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

/* --- DIVINE GODDESS SHARADA DEVI BACKGROUND ANIMATIONS --- */
.divine-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sharada-devi-portrait-wrapper {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 1150px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: divineLevitation 7s ease-in-out infinite alternate;
}

.sharada-devi-img {
  width: 100%;
  height: 100%;
  max-height: 82vh;
  object-fit: contain;
  opacity: 0.44;
  filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.5));
  mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black 48%, transparent 96%);
  -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black 48%, transparent 96%);
  transition: opacity 0.5s ease;
}

.divine-halo-light {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, rgba(245, 130, 32, 0.22) 45%, rgba(6, 8, 14, 0) 75%);
  animation: haloPulse 5s ease-in-out infinite alternate;
  filter: blur(28px);
}

.divine-aura-rays {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, 
    rgba(212, 175, 55, 0.14) 0deg 20deg, transparent 20deg 45deg, 
    rgba(255, 215, 0, 0.18) 45deg 65deg, transparent 65deg 90deg, 
    rgba(212, 175, 55, 0.14) 90deg 110deg, transparent 110deg 135deg, 
    rgba(255, 215, 0, 0.18) 135deg 155deg, transparent 155deg 180deg, 
    rgba(212, 175, 55, 0.14) 180deg 200deg, transparent 200deg 225deg, 
    rgba(255, 215, 0, 0.18) 225deg 245deg, transparent 245deg 270deg, 
    rgba(212, 175, 55, 0.14) 270deg 290deg, transparent 290deg 315deg, 
    rgba(255, 215, 0, 0.18) 315deg 335deg, transparent 335deg 360deg
  );
  animation: raysSpin 55s linear infinite;
  filter: blur(14px);
  opacity: 0.65;
}

.divine-overlay-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 8, 14, 0.3) 0%, rgba(6, 8, 14, 0.82) 75%, #06080e 100%);
  pointer-events: none;
}

@keyframes divineLevitation {
  0% { transform: translate(-50%, -50%) translateY(0px) scale(1); }
  100% { transform: translate(-50%, -50%) translateY(-15px) scale(1.025); }
}

@keyframes haloPulse {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.95; }
}

@keyframes raysSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- MOBILE NAVIGATION DRAWER & HAMBURGER MENU --- */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  position: absolute;
  top: 0;
  right: 0;
  width: min(85vw, 360px);
  height: 100%;
  background: rgba(8, 11, 20, 0.97);
  border-left: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px 20px;
  overflow-y: auto;
}

.mobile-drawer-overlay.active .mobile-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
}

.drawer-item:hover, .drawer-item:active {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  color: #fff;
  transform: translateX(4px);
}

.drawer-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 18px;
}

.drawer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.call-btn {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.wa-btn {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #4ade80;
}

/* --- TOP RIGHT MENU BUTTON & BOTTOM BAR REMOVAL --- */
.mobile-bottom-bar {
  display: none !important;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 0px !important;
  }
}

/* 1. Desktop Viewport (> 768px): Menu button is 100% HIDDEN */
.menu-btn-top-right {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(212, 175, 55, 0.06);
  border: 1.2px solid rgba(212, 175, 55, 0.45);
  color: var(--gold);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.12);
}

.menu-btn-top-right:hover {
  background: var(--gold);
  color: #06080e;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transform: scale(1.04);
}

.menu-btn-top-right i {
  color: inherit;
}

/* 2. Mobile & Tablet Viewport (<= 768px): Desktop links HIDE, Menu button SHOWS */







/* ════════════════════════════════════════════════════════════
   Mobile Viewport & Header Layout
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  header {
    padding: 6px 12px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(6, 8, 14, 0.97) !important;
  }
  #hero-canvas {
    display: none !important;
  }
  .nav-links-desktop {
    display: none !important;
  }
  .menu-btn-top-right {
    display: inline-flex !important;
  }
  .brand-logo-area {
    gap: 10px !important;
  }
  .brand-logo-area img {
    width: 42px !important;
    height: 42px !important;
  }
  .header-brand-title {
    font-size: 1.02rem !important;
    line-height: 1.40 !important;
    padding-top: 4px !important;
    padding-bottom: 2px !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }
  .header-brand-sub {
    font-size: 0.68rem !important;
    line-height: 1.12 !important;
    white-space: nowrap !important;
  }
  .ticker-wrap {
    height: auto !important;
    min-height: unset !important;
    padding: 2px 0 3px 0 !important;
    overflow: hidden !important;
  }
  .ticker-content {
    font-size: 0.82rem !important;
    line-height: 1.42 !important;
    padding-bottom: 1px !important;
    animation: ticker 80s linear infinite !important;
    will-change: transform;
    transform: translate3d(0, 0, 0);
  }
  .ticker-content .ticker-item,
  .ticker-content span {
    line-height: 1.42 !important;
    padding-bottom: 2px !important;
    padding-right: 40px !important;
    overflow: visible !important;
  }
  .hero-section {
    padding: 6px 10px 20px 10px !important;
    min-height: calc(100svh - 40px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }
  .hero-box {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .hero-box > div:first-child {
    margin-bottom: 6px !important;
  }
  .admissions-badge {
    padding: 4px 12px !important;
    font-size: 0.78rem !important;
  }
  .devi-centerpiece-container {
    max-width: 240px !important;
    margin: 0 auto 4px auto !important;
    margin-top: -6px !important;
  }
  .devi-centerpiece-img {
    max-width: min(220px, 62vw) !important;
    height: auto !important;
  }
  .devi-halo-orb {
    width: 135px !important;
    height: 135px !important;
    top: 26% !important;
    animation: none !important;
    opacity: 0.85 !important;
  }
  .devi-aura-rays {
    width: 165px !important;
    height: 165px !important;
    top: 26% !important;
    opacity: 0.48 !important;
  }
  .hero-below-lotus-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-title-kn {
    font-size: clamp(1.22rem, 5.85vw, 1.62rem) !important;
    white-space: nowrap !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    letter-spacing: -0.015em !important;
    margin-top: 2px !important;
    margin-bottom: 4px !important;
    padding: 2px 0 !important;
    box-sizing: border-box !important;
  }
  .hero-sub {
    font-size: clamp(0.72rem, 3.3vw, 0.84rem) !important;
    line-height: 1.45 !important;
    margin-bottom: 6px !important;
    max-width: 96% !important;
    padding: 0 4px !important;
    text-align: center !important;
  }
  .hero-address-kn {
    font-size: clamp(0.68rem, 3.2vw, 0.82rem) !important;
    white-space: nowrap !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    letter-spacing: -0.012em !important;
    margin-bottom: 36px !important;
    line-height: 1.38 !important;
    padding: 2px 2px !important;
    color: #ffd700 !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
    box-sizing: border-box !important;
  }
  .hero-cta-group {
    margin-top: 8px !important;
    padding-bottom: 28px !important;
  }
}

@media (max-width: 380px) {
  .devi-centerpiece-container {
    max-width: 205px !important;
    margin-top: -8px !important;
  }
  .devi-centerpiece-img {
    max-width: min(190px, 58vw) !important;
  }
  .devi-halo-orb {
    width: 115px !important;
    height: 115px !important;
    top: 26% !important;
  }
  .devi-aura-rays {
    width: 140px !important;
    height: 140px !important;
    top: 26% !important;
  }
  .hero-title-kn {
    font-size: clamp(1.12rem, 5.5vw, 1.35rem) !important;
    white-space: nowrap !important;
  }
  .hero-sub {
    font-size: clamp(0.66rem, 3.0vw, 0.76rem) !important;
    line-height: 1.38 !important;
  }
  .hero-address-kn {
    font-size: clamp(0.62rem, 2.9vw, 0.72rem) !important;
    white-space: nowrap !important;
  }
}

/* ── Hero Action Buttons (High Contrast & Clear Readability) ── */
.btn-primary, .gold-btn {
  background: linear-gradient(135deg, #ffd700 0%, #ffc107 40%, #d4af37 100%) !important;
  color: #06080e !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 22px rgba(212, 175, 55, 0.45);
  border: none;
}
.btn-primary:hover, .gold-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 28px rgba(212, 175, 55, 0.65);
}

.btn-secondary, .outline-btn {
  background: rgba(15, 23, 42, 0.75) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(212, 175, 55, 0.65) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.btn-secondary:hover, .outline-btn:hover {
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: var(--gold) !important;
  transform: translateY(-2px) scale(1.03);
}


/* ── Premium High-Visibility Form Select Dropdown ── */
.form-select {
  width: 100% !important;
  padding: 13px 44px 13px 18px !important;
  border-radius: 12px !important;
  background-color: rgba(15, 23, 42, 0.88) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 18px 18px !important;
  border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
  color: #f8fafc !important;
  font-family: 'Noto Sans Kannada', sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.form-select:focus {
  outline: none !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4) !important;
  background-color: rgba(20, 29, 50, 0.95) !important;
}

.form-select option {
  background-color: #0b0f19 !important;
  color: #f8fafc !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
}

.form-select option:checked,
.form-select option:hover {
  background-color: #1e293b !important;
  color: #ffd700 !important;
}


.admission-form-card {
  contain: layout paint;
}
#location, #admissions, #about, #campus, #gallery {
  content-visibility: visible;
}


/* ════════════════════════════════════════════════════════════
   Responsive Layout Styles
   ════════════════════════════════════════════════════════════ */
.hero-address-kn {
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 600;
  font-family: var(--font-kannada);
  line-height: 1.65;
  overflow: visible;
  padding: 0 4px;
  text-align: center;
}

.devi-picture-wrap {
  position: relative !important;
  z-index: 10 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  transform: translate3d(0, 0, 10px) !important;
  -webkit-transform: translate3d(0, 0, 10px) !important;
}






/* ════════════════════════════════════════════════════════════
   World-Class 4x4 Media Hub Grid & Swipe Lightbox (Rule 324, 357)
   ════════════════════════════════════════════════════════════ */
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
}

.gallery-card-unit {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  width: 100% !important;
}

.gallery-card-unit:hover {
  transform: translateY(-4px) !important;
}

/* ── The 100% Pure Photo Card (Edge-to-Edge Full Photo) ── */
.media-photo-card {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: var(--bg-card, rgba(15, 20, 32, 0.9)) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.35) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gallery-card-unit:hover .media-photo-card {
  border-color: #ffd700 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(212, 175, 55, 0.4) !important;
}

.media-photo-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.4s ease !important;
}

.gallery-card-unit:hover .media-photo-img {
  transform: scale(1.06) !important;
}

/* ── Outside & Below the Photo Card (Clean Text) ── */
.media-card-label-below {
  width: 100% !important;
  padding-top: 6px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.media-category-tag {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #ffd700 !important;
  letter-spacing: 0.03em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  display: block !important;
  transition: color 0.2s ease !important;
}

.gallery-card-unit:hover .media-category-tag {
  color: #ffffff !important;
}

.video-play-btn {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(220, 38, 38, 0.92) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.75) !important;
  transition: transform 0.25s ease !important;
  pointer-events: none !important;
}

.gallery-card-unit:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15) !important;
}

/* ── Mobile 4x4 Ultra-Dense Grid (Instagram / Photos Album Standard) ── */
@media (max-width: 640px) {
  #gallery {
    padding: 0 8px !important;
    margin-bottom: 50px !important;
  }
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }
  .media-photo-card {
    border-radius: 6px !important;
    border-width: 0.5px !important;
  }
  .media-card-label-below {
    padding-top: 3px !important;
  }
  .media-category-tag {
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
  }
  .video-play-btn {
    width: 26px !important;
    height: 26px !important;
    border-width: 1.5px !important;
  }
  .video-play-btn svg {
    width: 12px !important;
    height: 12px !important;
  }
}

/* ── Lightbox Modal Structure & Swipe Chrome ── */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(3, 5, 10, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: 999999 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  touch-action: pan-y !important;
}

.modal-content-box {
  position: relative !important;
  max-width: 960px !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  box-sizing: border-box !important;
}

.lightbox-top-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 10px 0 !important;
  z-index: 30 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.lightbox-counter {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: #ffd700 !important;
  background: rgba(212, 175, 55, 0.15) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  font-family: monospace !important;
}

.lightbox-title-top {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 50% !important;
}

.lightbox-close-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(239, 68, 68, 0.25) !important;
  border: 1.5px solid rgba(239, 68, 68, 0.6) !important;
  color: #ffffff !important;
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.lightbox-close-btn:hover {
  background: #dc2626 !important;
  border-color: #ef4444 !important;
  transform: scale(1.08) !important;
}

.lightbox-stage {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 12px 0 !important;
  position: relative !important;
  overflow: hidden !important;
  touch-action: pan-y !important;
}

.lightbox-nav-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1.5px solid rgba(212, 175, 55, 0.5) !important;
  color: #ffd700 !important;
  font-size: 2rem !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  z-index: 25 !important;
}

.lightbox-nav-arrow:hover {
  background: rgba(212, 175, 55, 0.3) !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.arrow-left { left: 16px !important; }
.arrow-right { right: 16px !important; }

.lightbox-bottom-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 12px 18px !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .modal-content-box {
    padding: 10px !important;
  }
  .lightbox-nav-arrow {
    display: none !important; /* Touch swipe gestures active on mobile */
  }
  .lightbox-title-top {
    display: none !important;
  }
  .lightbox-bottom-bar {
    padding: 10px 14px !important;
  }
}



/* ════════════════════════════════════════════════════════════
   Smart 1-Touch Pure-Letter Language Toggle (Matte / No Glow)
   ════════════════════════════════════════════════════════════ */
.lang-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 7px !important;
  min-width: 28px !important;
  height: 28px !important;
  padding: 0 4px !important;
  color: #f8fafc !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: all 0.2s ease !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  box-shadow: none !important;
  outline: none !important;
  flex-shrink: 0 !important;
}

.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
  box-shadow: none !important;
}

.lang-toggle-btn:active {
  transform: scale(0.95) !important;
  box-shadow: none !important;
}

.lang-text {
  line-height: 1 !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: inherit !important;
  text-shadow: none !important;
}

.lang-toggle-mobile {
  display: none !important;
}

@media (max-width: 768px) {
  .lang-toggle-btn {
    min-width: 26px !important;
    height: 26px !important;
    padding: 0 3px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    box-shadow: none !important;
  }
  .lang-toggle-mobile {
    display: inline-flex !important;
  }
}
