/* ==========================================================================
   Jyotirgamaya School Dang Pvt. Ltd. - Custom Stylesheet
   Location: Tulsipur-17, Bankatti, Dang, Nepal
   Focus: Nursery to Class 2 (Early Childhood & Foundational Education)
   ========================================================================== */

:root {
  --primary-navy: #0A1B39;
  --primary-deep: #071328;
  --primary-blue: #123263;
  --accent-gold: #C89B3C;
  --accent-amber: #DDA73A;
  --accent-warm: #F7FAFC;
  --accent-teal: #059669;
  --bg-soft: #F8FAFC;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --border-light: #E2E8F0;
  --card-shadow: 0 4px 20px -2px rgba(10, 27, 57, 0.06), 0 2px 6px -1px rgba(10, 27, 57, 0.04);
  --card-shadow-hover: 0 20px 30px -10px rgba(10, 27, 57, 0.12), 0 10px 15px -5px rgba(10, 27, 57, 0.06);
}

/* Base resets & typography */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, .font-serif-academic {
  font-family: 'Outfit', 'Playfair Display', Georgia, serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* Academic Gradient Backgrounds */
.bg-navy-gradient {
  background: linear-gradient(135deg, #091E36 0%, #0F3057 50%, #174276 100%);
}

.bg-sunshine-gradient {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.bg-soft-gradient {
  background: linear-gradient(180deg, #F8FAFC 0%, #EDF2F7 100%);
}

.bg-hero-pattern {
  background-color: #091E36;
  background-image: radial-gradient(rgba(245, 158, 11, 0.12) 1px, transparent 1px), radial-gradient(rgba(58, 134, 255, 0.12) 1px, #091E36 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-panel-dark {
  background: rgba(11, 37, 69, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* School Crest Badge */
.school-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  position: relative;
}

/* Feature Cards & Micro-interactions */
.feature-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
}

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

/* Clean Stable Badges */
.badge-clean {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.badge-clean:hover {
  transform: translateY(-2px);
}

/* Navigation active indicator */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width 0.25s ease;
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--accent-gold) !important;
  font-weight: 600;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(9, 30, 54, 0.94);
  backdrop-filter: blur(8px);
}

.lightbox-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gallery Item Zoom */
.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border-radius: 1rem;
}
.gallery-item img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item .overlay {
  background: linear-gradient(to top, rgba(11, 37, 69, 0.85) 0%, rgba(11, 37, 69, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay {
  opacity: 1;
}

/* Custom Accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}
.faq-item.active .faq-content {
  max-height: 350px;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Marquee / Notice Ticker */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-move {
  display: inline-block;
  animation: ticker 28s linear infinite;
}
.ticker-wrap:hover .ticker-move {
  animation-play-state: paused;
}
@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Grade Badges */
.grade-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: transform 0.2s ease;
}
.grade-pill:hover {
  transform: scale(1.05);
}

/* Button styles */
.btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.btn-navy {
  background: #0F3057;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(15, 48, 87, 0.3);
  transition: all 0.25s ease;
}
.btn-navy:hover {
  background: #174276;
  box-shadow: 0 6px 20px rgba(15, 48, 87, 0.4);
  transform: translateY(-2px);
}

/* Modern Fresh Homepage Styles */
.bg-warm-canvas {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 50%, #FAF5EF 100%);
}

.bg-radial-glow {
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
}

.motto-ribbon {
  background: linear-gradient(90deg, #0B2545 0%, #134074 35%, #0B2545 100%);
  position: relative;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), 0 8px 20px rgba(11, 37, 69, 0.15);
}

/* Bento Grid Cards */
.bento-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: #ffffff;
}
.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(11, 37, 69, 0.12), 0 10px 15px -5px rgba(11, 37, 69, 0.05);
  border-color: rgba(245, 158, 11, 0.4);
}

/* Interactive Grade Selector Tabs */
.grade-tab-btn.active {
  background: #0B2545;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(11, 37, 69, 0.25);
  border-color: #0B2545;
}
.grade-tab-btn.active .grade-tab-icon {
  color: #F59E0B;
}

/* Timeline Step Cards */
.timeline-card {
  position: relative;
  transition: all 0.3s ease;
}
.timeline-card:hover {
  transform: translateY(-4px);
}

/* ==========================================================================
   Hero Multi-Image Slider
   ========================================================================== */
.hero-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide.active img {
  transform: scale(1.07);
}

.hero-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 19, 40, 0.94) 0%, rgba(7, 19, 40, 0.35) 55%, rgba(7, 19, 40, 0.1) 100%);
}

.hero-slide .slide-caption {
  position: absolute;
  bottom: 0.875rem;
  left: 0.875rem;
  right: 0.875rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}

.hero-slide.active .slide-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Slider Controls */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(10, 27, 57, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.7;
}

.hero-slider-wrap:hover .slider-arrow-btn {
  opacity: 1;
}

.slider-arrow-btn:hover {
  background: #F59E0B;
  color: #0A1B39;
  transform: translateY(-50%) scale(1.12);
  border-color: #F59E0B;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.slider-arrow-btn.prev {
  left: 0.6rem;
}

.slider-arrow-btn.next {
  right: 0.6rem;
}

/* Slider Pagination Dots */
.slider-dot {
  height: 6px;
  width: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.slider-dot.active {
  width: 24px;
  background: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Elegant Shimmer for Official Motto Badge */
.shimmer-badge {
  position: relative;
  overflow: hidden;
}

.shimmer-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transform: skewX(-25deg);
  animation: shimmerSweep 6s infinite ease-in-out;
  pointer-events-none;
}

@keyframes shimmerSweep {
  0% { left: -150%; }
  35%, 100% { left: 150%; }
}

/* Subtle Hover Accent Glow */
.hover-glow:hover {
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
}

