/* ==========================================================================
   ইক্বরা কিন্ডারগার্টেন স্কুল - Next-Gen Design System & Stylesheet
   Modern Bento-Grid, Glassmorphism, Micro-interactions & A4 Print Engine
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand Palette - Emerald, Forest Jade, Royal Slate, Sunlit Amber */
  --primary: #047857;
  --primary-hover: #065f46;
  --primary-light: #ecfdf5;
  --primary-glow: rgba(4, 120, 87, 0.25);
  
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  
  --accent: #d97706;
  --accent-light: #fffbeb;
  --accent-gold: #f59e0b;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.85);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border: #e2e8f0;
  --border-focus: #059669;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(4, 120, 87, 0.2);
  
  --font-bangla: 'Hind Siliguri', sans-serif;
  --font-english: 'Outfit', 'Inter', sans-serif;
}

[data-theme="dark"] {
  --bg-main: #090d16;
  --bg-card: #0f172a;
  --bg-card-glass: rgba(15, 23, 42, 0.85);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --primary-light: rgba(4, 120, 87, 0.15);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-bangla);
  background: 
    radial-gradient(ellipse 80% 50% at 20% -5%, rgba(225, 29, 72, 0.05), transparent 60%),
    radial-gradient(ellipse 70% 40% at 80% 8%, rgba(245, 158, 11, 0.06), transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 90%, rgba(251, 146, 60, 0.04), transparent 60%),
    radial-gradient(ellipse 70% 40% at 10% 75%, rgba(244, 63, 94, 0.04), transparent 55%),
    linear-gradient(180deg, #fffdfc 0%, #ffffff 45%, #fdfbf9 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background 0.4s ease, color 0.3s ease;
}

[data-theme="dark"] body {
  background: 
    radial-gradient(ellipse 80% 50% at 20% -5%, rgba(225, 29, 72, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 40% at 80% 8%, rgba(245, 158, 11, 0.14), transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 90%, rgba(251, 146, 60, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 40% at 10% 75%, rgba(244, 63, 94, 0.12), transparent 55%),
    linear-gradient(180deg, #13090c 0%, #170d10 45%, #0f0709 100%);
  background-attachment: fixed;
}

/* ==========================================================================
   ANIMATED AMBIENT MESH & GLOWING MOTION BACKGROUND (SOFT & ELEGANT)
   ========================================================================== */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

/* Dynamic Aurora Mesh Layer - Soft Translucent Atmosphere */
.aurora-mesh {
  position: absolute;
  inset: -25%;
  background: 
    radial-gradient(ellipse at 20% 25%, rgba(225, 29, 72, 0.22) 0%, transparent 48%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.22) 0%, transparent 45%),
    radial-gradient(ellipse at 30% 75%, rgba(251, 146, 60, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 80%, rgba(225, 29, 72, 0.16) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 45%, rgba(254, 215, 170, 0.24) 0%, transparent 48%);
  filter: blur(85px);
  opacity: 0.26;
  animation: auroraMeshMove 24s ease-in-out infinite alternate;
  transform-origin: center center;
  will-change: transform;
}

@keyframes auroraMeshMove {
  0% { transform: rotate(0deg) scale(1) translate3d(0, 0, 0); }
  50% { transform: rotate(6deg) scale(1.08) translate3d(-30px, 40px, 0); }
  100% { transform: rotate(-5deg) scale(1.03) translate3d(40px, -30px, 0); }
}

/* Fluid Morphing Glow Orbs - Soft Light Opacity */
.glow-orb {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(80px);
  will-change: transform, border-radius;
  pointer-events: none;
  opacity: 0.24;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.28) 0%, rgba(244, 63, 94, 0.12) 50%, transparent 70%);
  top: -100px;
  left: -80px;
  animation: floatMorph1 20s ease-in-out infinite alternate;
}

.orb-2 {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28) 0%, rgba(251, 146, 60, 0.14) 50%, transparent 70%);
  top: -40px;
  right: -80px;
  animation: floatMorph2 24s ease-in-out infinite alternate;
}

.orb-3 {
  width: 740px;
  height: 740px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.24) 0%, rgba(254, 215, 170, 0.12) 50%, transparent 72%);
  bottom: -140px;
  left: 18%;
  animation: floatMorph3 28s ease-in-out infinite alternate;
}

.orb-4 {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.18) 0%, rgba(245, 158, 11, 0.10) 50%, transparent 70%);
  top: 32%;
  right: 4%;
  animation: floatMorph4 22s ease-in-out infinite alternate;
}

.orb-5 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.24) 0%, rgba(254, 215, 170, 0.12) 55%, transparent 72%);
  bottom: 22%;
  left: 42%;
  animation: floatMorph5 18s ease-in-out infinite alternate;
}

@keyframes floatMorph1 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    transform: translate3d(120px, 80px, 0) rotate(50deg) scale(1.12);
    border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
  }
  100% {
    transform: translate3d(60px, 150px, 0) rotate(100deg) scale(0.94);
    border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
  }
}

@keyframes floatMorph2 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
  }
  50% {
    transform: translate3d(-130px, 100px, 0) rotate(-50deg) scale(1.14);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  100% {
    transform: translate3d(-70px, 170px, 0) rotate(-100deg) scale(0.92);
    border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
  }
}

@keyframes floatMorph3 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    border-radius: 70% 30% 50% 50% / 50% 60% 40% 50%;
  }
  50% {
    transform: translate3d(-90px, -110px, 0) rotate(40deg) scale(1.15);
    border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
  }
  100% {
    transform: translate3d(100px, -60px, 0) rotate(80deg) scale(0.96);
    border-radius: 70% 30% 50% 50% / 50% 60% 40% 50%;
  }
}

@keyframes floatMorph4 {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(-100px, -80px, 0) rotate(-40deg) scale(1.12); }
  100% { transform: translate3d(70px, -120px, 0) rotate(-80deg) scale(0.94); }
}

@keyframes floatMorph5 {
  0% { transform: translate3d(0, 0, 0) scale(0.94); }
  50% { transform: translate3d(80px, -90px, 0) scale(1.18); }
  100% { transform: translate3d(-60px, 50px, 0) scale(0.96); }
}

/* Subtle Animated Rotating Shimmer Beam */
.shimmer-beam {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg at 50% 50%, 
    transparent 0deg, 
    rgba(225, 29, 72, 0.04) 50deg, 
    transparent 110deg, 
    rgba(245, 158, 11, 0.04) 220deg, 
    transparent 280deg);
  animation: rotateBeam 50s linear infinite;
  pointer-events: none;
  opacity: 0.25;
}

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

/* Subtle Geometric High-Tech Dot/Grid Overlay - Very Soft */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(225, 29, 72, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(225, 29, 72, 0.02) 1px, transparent 1px),
    radial-gradient(rgba(245, 158, 11, 0.08) 1.2px, transparent 1.2px);
  background-size: 40px 40px, 40px 40px, 20px 20px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse at 50% 35%, black 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, black 45%, transparent 85%);
}

/* Interactive Cursor Spotlight Glow - Gentle */
.cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.10) 0%, rgba(245, 158, 11, 0.08) 40%, transparent 70%);
  filter: blur(55px);
  pointer-events: none;
  mix-blend-mode: overlay;
  will-change: transform;
  z-index: 1;
  opacity: 0.35;
}

/* Floating Ambient Sparks / Particles - Soft Luminous Dust */
.floating-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  opacity: 0.3;
  animation: floatSpark 15s infinite linear;
}

.spark.s-1 { left: 10%; top: 85%; animation-duration: 16s; width: 4px; height: 4px; animation-delay: 0s; }
.spark.s-2 { left: 25%; top: 92%; animation-duration: 20s; width: 6px; height: 6px; background: #f59e0b; box-shadow: 0 0 10px #f59e0b; animation-delay: 2s; }
.spark.s-3 { left: 42%; top: 82%; animation-duration: 18s; width: 4px; height: 4px; animation-delay: 4.5s; }
.spark.s-4 { left: 63%; top: 96%; animation-duration: 22s; width: 6px; height: 6px; animation-delay: 1s; }
.spark.s-5 { left: 78%; top: 80%; animation-duration: 17s; width: 5px; height: 5px; background: #06b6d4; box-shadow: 0 0 10px #06b6d4; animation-delay: 3.5s; }
.spark.s-6 { left: 88%; top: 90%; animation-duration: 19s; width: 4px; height: 4px; animation-delay: 5.5s; }
.spark.s-7 { left: 32%; top: 94%; animation-duration: 21s; width: 5px; height: 5px; background: #fbbf24; box-shadow: 0 0 8px #fbbf24; animation-delay: 7s; }

@keyframes floatSpark {
  0% {
    transform: translateY(0) translateX(0) scale(0.6);
    opacity: 0;
  }
  20% {
    opacity: 0.35;
  }
  80% {
    opacity: 0.35;
  }
  100% {
    transform: translateY(-90vh) translateX(35px) scale(1.1);
    opacity: 0;
  }
}

/* Dark Theme Overrides for Ambient Background */
[data-theme="dark"] .aurora-mesh {
  opacity: 0.35;
  filter: blur(90px);
}

[data-theme="dark"] .orb-1 {
  background: radial-gradient(circle, rgba(225, 29, 72, 0.30) 0%, transparent 70%);
}

[data-theme="dark"] .orb-2 {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
}

[data-theme="dark"] .orb-3 {
  background: radial-gradient(circle, rgba(251, 146, 60, 0.22) 0%, transparent 70%);
}

[data-theme="dark"] .orb-4 {
  background: radial-gradient(circle, rgba(244, 63, 94, 0.18) 0%, transparent 70%);
}

[data-theme="dark"] .orb-5 {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, transparent 70%);
}

[data-theme="dark"] .grid-overlay {
  background-image: 
    linear-gradient(to right, rgba(244, 63, 94, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 63, 94, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(245, 158, 11, 0.12) 1.2px, transparent 1.2px);
  opacity: 0.25;
}

[data-theme="dark"] .cursor-glow {
  background: radial-gradient(circle, rgba(225, 29, 72, 0.18) 0%, rgba(245, 158, 11, 0.10) 40%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.35;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TOP MARQUEE / ANNOUNCEMENT TICKER
   ========================================================================== */
.top-ticker {
  background: linear-gradient(135deg, #0a3641 0%, #064e3b 50%, #047857 100%);
  color: #ffffff;
  padding: 8px 0;
  font-size: 0.88rem;
  border-bottom: 2px solid #f59e0b;
  box-shadow: 0 2px 10px rgba(10, 54, 65, 0.15);
  position: relative;
  z-index: 50;
}

.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ticker-left-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.ticker-label {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.ticker-marquee {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ticker-text {
  display: inline-block;
  animation: marquee 25s linear infinite;
  font-weight: 500;
}

.ticker-text:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.ticker-quick-links {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ticker-quick-links a {
  color: #e2e8f0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.ticker-quick-links a:hover {
  color: #fde68a;
}

/* ==========================================================================
   MAIN NAVIGATION HEADER
   ========================================================================== */
.main-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(4, 120, 87, 0.12);
  box-shadow: 0 4px 20px -2px rgba(4, 120, 87, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

[data-theme="dark"] .main-header {
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  border: 2px solid #059669;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.18);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.logo-brand:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.logo-text h1 {
  font-size: 1.28rem;
  font-weight: 800;
  color: #064e3b;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

[data-theme="dark"] .logo-text h1 {
  color: #34d399;
}

.logo-motto {
  font-size: 0.78rem;
  color: #059669;
  font-weight: 600;
  font-family: var(--font-english);
  letter-spacing: 0.3px;
  line-height: 1.2;
  white-space: nowrap;
}

[data-theme="dark"] .logo-motto {
  color: #6ee7b7;
}

.logo-sub {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

[data-theme="dark"] .logo-sub {
  color: #94a3b8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

[data-theme="dark"] .nav-links a {
  color: #cbd5e1;
}

.nav-links a:hover {
  color: #047857;
  background: rgba(4, 120, 87, 0.08);
}

.nav-links a.active {
  color: #047857;
  background: rgba(4, 120, 87, 0.12);
  font-weight: 700;
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(4, 120, 87, 0.35);
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION WITH BENTO QUICK CARDS & SPACE SATELLITE CANVAS
   ========================================================================== */
.hero-section {
  padding: 56px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero-space-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 40px;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95) 0%, rgba(255, 237, 213, 0.95) 100%);
  color: #b45309;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
  color: #0a3641;
}

.hero-title span {
  background: linear-gradient(135deg, #047857 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stat-item h3 {
  font-family: var(--font-english);
  font-size: 1.8rem;
  font-weight: 800;
  color: #047857;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(10, 54, 65, 0.04);
  transition: all 0.2s ease;
}

.stat-item:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
}
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

[data-theme="dark"] .stat-item {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
}

.stat-item:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #059669;
  box-shadow: 0 8px 20px rgba(4, 120, 87, 0.12);
}

.stat-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Right: Fast Result & Info Bento Card */
.hero-bento-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(5, 150, 105, 0.22);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 45px -15px rgba(4, 120, 87, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="dark"] .hero-bento-card {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(52, 211, 153, 0.2);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.5);
}

.hero-bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #059669, #f59e0b, #047857);
}

.bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bento-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-header .live-badge {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bento-header .live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #dc2626;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.fast-search-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.form-input, .form-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.bento-quick-features {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   BENTO GRID SHOWCASE SECTION
   ========================================================================== */
.section-pad {
  padding: 60px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-tag {
  color: #b45309;
  background: rgba(245, 158, 11, 0.1);
  padding: 3px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0a3641;
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.bento-grid-main {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-item {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px -5px rgba(10, 54, 65, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

[data-theme="dark"] .bento-item {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4);
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -5px rgba(225, 29, 72, 0.08), 0 8px 20px -3px rgba(245, 158, 11, 0.14);
  border-color: #f59e0b;
}

.col-span-8 { grid-column: span 8; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-12 { grid-column: span 12; }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.bento-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.bento-item p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Notice Board Table in Bento */
.notice-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.notice-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.notice-table th {
  padding: 12px 14px;
  background: var(--bg-main);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.notice-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.notice-table tr:hover td {
  background: var(--primary-light);
}

.notice-category-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.cat-result { background: #dbeafe; color: #1e40af; }
.cat-admission { background: #fef3c7; color: #92400e; }
.cat-academic { background: #d1fae5; color: #065f46; }
.cat-general { background: #f1f5f9; color: #475569; }

/* ==========================================================================
   PRINCIPAL & MANAGEMENT SECTION
   ========================================================================== */
.speech-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 16px 40px -10px rgba(4, 120, 87, 0.09), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

[data-theme="dark"] .speech-card {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
}

.principal-photo-wrap {
  text-align: center;
}

.principal-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-light);
  box-shadow: var(--shadow-md);
  margin-bottom: 10px;
}

.principal-title h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.principal-title span {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

.speech-content blockquote {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
  position: relative;
  padding-left: 20px;
  border-left: 4px solid var(--primary);
  margin-bottom: 16px;
  font-style: italic;
}

/* ==========================================================================
   RESULT & MARKSHEET MODAL / CARD STYLING (A4 PRINT ENGINE)
   ========================================================================== */
.marksheet-container {
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #047857;
  border-radius: var(--radius-md);
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  max-width: 820px;
  margin: 30px auto;
}

/* Watermark Background */
.marksheet-container::after {
  content: 'IQRA KG';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(4, 120, 87, 0.04);
  pointer-events: none;
  z-index: 1;
}

.marksheet-header {
  text-align: center;
  border-bottom: 2px solid #047857;
  padding-bottom: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.marksheet-school-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: #047857;
  line-height: 1.2;
}

.marksheet-sub {
  font-size: 0.9rem;
  color: #475569;
}

.marksheet-exam-badge {
  display: inline-block;
  background: #047857;
  color: #ffffff;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 4px;
  font-size: 1rem;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.student-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  background: #f8fafc;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}

.meta-row {
  display: flex;
  font-size: 0.95rem;
}

.meta-label {
  font-weight: 600;
  width: 140px;
  color: #475569;
}

.meta-val {
  font-weight: 700;
  color: #0f172a;
}

.marks-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.marks-table th, .marks-table td {
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  text-align: center;
  font-size: 0.95rem;
}

.marks-table th {
  background: #047857;
  color: #ffffff;
  font-weight: 700;
}

.marks-table td.sub-name {
  text-align: left;
  font-weight: 600;
}

.marks-table tr.total-row {
  background: #f1f5f9;
  font-weight: 800;
}

.result-summary-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.summary-pill h4 {
  font-size: 0.8rem;
  color: #047857;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.summary-pill span {
  font-size: 1.4rem;
  font-weight: 800;
  color: #064e3b;
  font-family: var(--font-english);
}

.marksheet-footer-signatures {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 40px;
  padding-top: 10px;
  position: relative;
  z-index: 2;
}

.signature-block {
  text-align: center;
  width: 180px;
}

.signature-line {
  border-top: 1px dashed #64748b;
  padding-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.qr-code-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qr-code-box svg, .qr-code-box img {
  width: 80px;
  height: 80px;
  border: 1px solid #cbd5e1;
  padding: 2px;
  background: white;
}

.qr-label {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
}

/* ==========================================================================
   ADMIN PANEL INTERFACE
   ========================================================================== */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-nav-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.admin-nav-item a:hover,
.admin-nav-item a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.admin-content {
  padding: 30px;
  background: var(--bg-main);
  overflow-y: auto;
}

.admin-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.webhook-simulator-box {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}

.webhook-simulator-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.webhook-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.webhook-btn {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
}

.webhook-btn:hover {
  background: white;
  color: #047857;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
  background: linear-gradient(160deg, #0a3641 0%, #06242c 50%, #031419 100%);
  color: #cbd5e1;
  padding: 60px 0 24px;
  border-top: 3px solid #f59e0b;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2.5px;
  background: #f59e0b;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #34d399;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

/* ==========================================================================
   MOBILE BOTTOM BAR & RESPONSIVE RULES
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.bottom-bar-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.2s;
}

.bottom-tab.active,
.bottom-tab:hover {
  color: var(--primary);
}

.bottom-tab i {
  font-size: 1.25rem;
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .col-span-8, .col-span-4, .col-span-6 { grid-column: span 12; }
  .speech-card { grid-template-columns: 1fr; text-align: center; }
  .speech-content blockquote { padding-left: 0; border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-bottom-bar { display: block; }
  body { padding-bottom: 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.1rem; }
  .admin-stat-cards { grid-template-columns: 1fr 1fr; }
  .student-meta-grid { grid-template-columns: 1fr; }
  .result-summary-box { grid-template-columns: 1fr 1fr; }
  .marksheet-container { padding: 20px 16px; }
}

/* ==========================================================================
   PRINT SPECIFIC STYLES (Clean A4 Paper Export)
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }
  .top-ticker, .main-header, .main-footer, .mobile-bottom-bar, .no-print, button, .theme-toggle-btn {
    display: none !important;
  }
  .marksheet-container {
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20mm !important;
    page-break-inside: avoid;
  }
  .marksheet-exam-badge {
    background: #000000 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .marks-table th {
    background: #f1f5f9 !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ==========================================================================
   CAMPUS SHOWCASE BANNER SLIDER & PHOTO GALLERY (REAL ASSETS)
   ========================================================================== */
.campus-slider-section {
  padding: 0 0 60px;
}

.slider-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(4, 120, 87, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: var(--bg-card);
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.slider-slide {
  min-width: 100%;
  position: relative;
}

.slider-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .slider-img {
    height: 260px;
  }
}

.slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 78, 59, 0.95) 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .slider-caption {
    padding: 16px 20px;
  }
}

.slider-caption h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.slider-caption p {
  font-size: 0.96rem;
  opacity: 0.92;
}

.slider-dots {
  position: absolute;
  bottom: 18px;
  right: 30px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #f59e0b;
  transform: scale(1.25);
  width: 28px;
  border-radius: 10px;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: #047857;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: all 0.2s ease;
  z-index: 10;
}

.slider-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.1);
  color: #065f46;
}

.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* Photo Gallery Bento Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(4, 120, 87, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-card);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(4, 120, 87, 0.16);
  border-color: var(--primary);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(0deg, rgba(6, 78, 59, 0.95) 0%, rgba(6, 78, 59, 0.6) 60%, transparent 100%);
  color: white;
}

.gallery-overlay h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.gallery-overlay span {
  font-size: 0.82rem;
  color: #a7f3d0;
  display: inline-block;
}

