/* ==========================================================================
   Sr. LS International Public School — Hero Slider
   ========================================================================== */

/* ---------- Slide layers (background image crossfade) ---------- */
.hero-slider {
  height: 460px;
}

@media (min-width: 640px) {
  .hero-slider {
    height: 560px;
  }
}

@media (min-width: 768px) {
  .hero-slider {
    height: 680px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 10;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- CTA arrow nudge on hover ---------- */
.cta-btn:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-arrow {
  transition: transform 0.3s ease;
}

/* ---------- Dots ---------- */
.dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.dot.is-active {
  width: 1.75rem;
  background: var(--brand);
}

/* ---------- Content fade when text swaps ---------- */
.hero-content {
  transition: opacity 0.3s ease;
}

.hero-content.is-fading {
  opacity: 0;
}

/* ==========================================================================
   Sr. LS International Public School — Announcement Marquee
   ========================================================================== */

.marquee-track {
  animation: marquee-scroll 22s linear infinite;
  will-change: transform;
}

/* Pause on hover / focus so the message can be read */
.marquee-wrap:hover .marquee-track,
.marquee-wrap:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* Scroll-reveal utility: toggled by IntersectionObserver in the script below */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.reveal-left {
  transform: translateX(-24px);
}

.reveal.reveal-right {
  transform: translateX(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal.reveal-left,
  .reveal.reveal-right {
    transition: none;
    transform: none;
    opacity: 1;
  }
}


/* Tilt-on-hover for the director photo. The perspective wrapper gives the tilted image somewhere to "lean into"; JS drives the actual rotation based on cursor position for a natural, directional tilt. */
.tilt-wrap {
  perspective: 1000px;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease;
  will-change: transform;
}

.tilt-wrap:hover .tilt-card {
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .tilt-card {
    transition: none !important;
    transform: none !important;
  }
}

/* Zoom-on-hover for campus photos / map card in contact-us */
.zoom-frame {
  overflow: hidden;
}

.zoom-frame img,
.zoom-frame iframe {
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
}

.zoom-frame:hover img,
.zoom-frame:hover iframe {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {

  .zoom-frame img,
  .zoom-frame iframe {
    transition: none !important;
    transform: none !important;
  }
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}


.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadein {
  animation: fadein .45s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fadein {
    animation: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}