/* ═══════════════════════════════════════════════
   SUNRISE PUBLIC SCHOOL — Custom Stylesheet
   30% CSS | 70% Tailwind (via HTML)
═══════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────── */
:root {
  --primary: #006875;

  --accent: #069483;
  
  --accent: #0A7C6E;

  --soft: #eef3fb;
  --muted: #6b7a99;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 12px rgba(26, 58, 107, 0.07);
  --shadow-md: 0 8px 30px rgba(26, 58, 107, 0.12);
  --shadow-lg: 0 20px 60px rgba(26, 58, 107, 0.18);
  --trans: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ────────────────────────────────────── */

html {
  scroll-behavior: smooth;
}
body {
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: white;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--soft);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 99px;
}

/* ── Top Bar ─────────────────────────────────── */
.topbar {
  background: var(--primary);
  color: #c5d5f0;
  font-size: 0.8rem;
}

.topbar-social {
  color: #c5d5f0;
  font-size: 1rem;
  transition: var(--trans);
  text-decoration: none;
}
.topbar-social:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── Logo Icon ───────────────────────────────── */
.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), #2d5eaa);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(26, 58, 107, 0.3);
  flex-shrink: 0;
}
.logo-icon.small {
  width: 36px;
  height: 36px;
}

/* ── Navbar ──────────────────────────────────── */
#navbar {
  border-bottom: 1px solid #eef3fb;
}
#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(26, 58, 107, 0.1);
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--trans);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
  transition: var(--trans);
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}
.nav-link:hover::after,
.nav-link.active::after {
  left: 15%;
  right: 15%;
}

.mob-link {
  display: block;
  padding: 0.65rem 0.8rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--trans);
}
.mob-link:hover {
  background: var(--soft);
  color: var(--primary);
}

/* ── Buttons ─────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #9ec415);
  color: white;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--trans);
  /* box-shadow: 0 4px 15px rgba(46, 244, 178, 0.158); */
  font-size: 0.9rem;
  font-family: "DM Sans", sans-serif;
}
.btn-primary:hover {
  transform: translateY(-2px);

  color: white;
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--trans);
  font-size: 0.9rem;
  font-family: "DM Sans", sans-serif;
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ── Section Labels ──────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  border: 1.5px solid #d8e5f7;
}

.section-label-dark {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

/* ── Hero Section ────────────────────────────── */
.hero-section {
  background: linear-gradient(160deg, #f8f8ec 0%, #d6e4eb 60%, #bfeee4 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-bg-shapes::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(244, 161, 46, 0.12) 0%,
    transparent 70%
  );
}
.hero-bg-shapes::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(26, 58, 107, 0.06) 0%,
    transparent 70%
  );
}

.label-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(244, 161, 46, 0.15);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  border: 1.5px solid rgba(244, 161, 46, 0.3);
  animation: pulse-badge 2.5s ease infinite;
}

@keyframes pulse-badge {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 161, 46, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(244, 161, 46, 0);
  }
}

.stat-pill {
  display: flex;
  flex-direction: column;
}

/* ── Hero Visual ─────────────────────────────── */
.hero-card-main {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-illustration {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  border: 1.5px solid #e8f0fb;
}
.hero-illustration::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.school-building {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.building-top {
  width: 100px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), #2d5eaa);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.building-top i {
  margin-top: 24px;
}
.building-body {
  width: 180px;
  background: linear-gradient(180deg, #2d5eaa, var(--primary));
  border-radius: 0 0 12px 12px;
  padding: 16px 12px 0;
}
.window-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
}
.window {
  width: 28px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.window.lit {
  background: rgba(244, 161, 46, 0.7);
  animation: window-blink 3s ease infinite;
}
@keyframes window-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.door {
  width: 32px;
  height: 36px;
  background: var(--accent);
  border-radius: 16px 16px 0 0;
  margin: 0 auto;
}

/* Info Cards */
.info-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: white;
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-md);
  position: absolute;
  border: 1.5px solid #e8f0fb;
  min-width: 160px;
  animation: float-card 4s ease-in-out infinite;
}
.card-left {
  bottom: 20px;
  left: -40px;
  animation-delay: 0s;
}
.card-right {
  top: 20px;
  right: -40px;
  animation-delay: 1s;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Floating Emojis */
.floating-emoji {
  position: absolute;
  font-size: 1.8rem;
  animation: float-emoji 5s ease-in-out infinite;
  user-select: none;
}
.emoji-1 {
  top: 0;
  left: 0;
  animation-delay: 0s;
}
.emoji-2 {
  top: 10%;
  right: 0;
  animation-delay: 1.2s;
}
.emoji-3 {
  bottom: 30%;
  left: -10px;
  animation-delay: 2s;
}
.emoji-4 {
  bottom: 10%;
  right: 10px;
  animation-delay: 0.8s;
}

@keyframes float-emoji {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(8deg);
  }
}

/* Hero Wave */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ── Marquee ─────────────────────────────────── */
.marquee-track {
  animation: marquee 25s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── About Collage ───────────────────────────── */
.about-collage {
  position: relative;
}
.collage-main {
  position: relative;
  height: 420px;
}

.collage-img {
  position: absolute;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid white;
  transition: var(--trans);
}
.collage-img:hover {
  transform: scale(1.03);
  z-index: 5;
}

.img-1 {
  top: 0;
  left: 0;
  width: 65%;
  height: 70%;
}
.img-2 {
  top: 15%;
  right: 0;
  width: 38%;
  height: 45%;
}
.img-3 {
  bottom: 0;
  left: 10%;
  width: 42%;
  height: 38%;
}

.collage-placeholder {
  width: 100%;
  height: 100%;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.about-badge {
  position: absolute;
  bottom: 30px;
  right: 20px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 15px #03775a3d;
  z-index: 10;
}

.about-point {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  padding: 0.3rem 0;
}

/* ── Class Cards ─────────────────────────────── */
.class-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1.5px solid #e8f0fb;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.class-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-color, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.class-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.class-card:hover::before {
  transform: scaleX(1);
}

.class-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.class-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.class-list {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.class-footer {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f4fb;
}
.class-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--soft);
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
}

/* ── Features Section ────────────────────────── */
.features-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}
.circle-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}
.circle-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -80px;
}

.feature-card {
  background: #02924a31;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  transition: var(--trans);
  backdrop-filter: blur(4px);
}
.feature-card:hover {
  background: rgba(1, 85, 50, 0.658);
  transform: translateY(-4px);
  border-color: rgba(46, 244, 46, 0.4);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), #66e81a);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 1.1rem;
  box-shadow: 5px 5px 0px #fcfbfa;
}

/* ── Why / Testimonials ──────────────────────── */
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  background: var(--soft);
  transition: var(--trans);
}
.why-item:hover {
  box-shadow: var(--shadow-sm);
}

.why-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-card {
  background: var(--soft);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  border: 1.5px solid #d8e5f7;
  transition: var(--trans);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Gallery ─────────────────────────────────── */
.gallery-filter {
  padding: 0.45rem 1.2rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid #d8e5f7;
  background: white;
  color: var(--muted);
  cursor: pointer;
  transition: var(--trans);
  font-family: "DM Sans", sans-serif;
}
.gallery-filter.active,
.gallery-filter:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
}
.gallery-item.tall {
  grid-row: span 2;
}
.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 107, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--trans);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ── Teacher Cards ───────────────────────────── */
.teacher-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid #e8f0fb;
  transition: var(--trans);
}
.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.teacher-avatar {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.teacher-info {
  padding: 1.4rem;
}

.subject-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--soft);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-right: 0.3rem;
  margin-top: 0.2rem;
}

/* ── Admission Section ───────────────────────── */
.admission-section {
  background: linear-gradient(160deg, #f5f9ff 0%, #eef3fb 100%);
}
.admission-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 80% 20%,
      rgba(244, 161, 46, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(26, 58, 107, 0.05) 0%,
      transparent 50%
    );
}

.admission-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.step-num {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 0px #00612c;
}

.docs-box {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  border: 1.5px solid #d8e5f7;
  box-shadow: var(--shadow-sm);
}

/* ── Form ────────────────────────────────────── */
.admission-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid #e8f0fb;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}
.form-input {
  border: 1.5px solid #d8e5f7;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: var(--primary);
  font-family: "DM Sans", sans-serif;
  transition: var(--trans);
  outline: none;
  width: 100%;
  background: var(--soft);
}
.form-input:focus {
  border-color: var(--accent);
  background: white;
  box-shadow: 0 0 0 3px rgba(2, 170, 77, 0.12);
}
.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* ── Events ──────────────────────────────────── */
.event-card {
  display: flex;
  gap: 1.2rem;
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid #e8f0fb;
  transition: var(--trans);
  align-items: flex-start;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.event-date {
  flex-shrink: 0;
  width: 56px;
  min-height: 64px;
  background: rgba(244, 161, 46, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.event-day {
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  font-family: "Playfair Display", serif;
}
.event-month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.event-type {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

/* ── Contact ─────────────────────────────────── */
.contact-info-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid #e8f0fb;
  text-align: center;
  transition: var(--trans);
}
.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), #48cc0b);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  margin: 0 auto 1rem;

}

.map-placeholder {
  width: 100%;
  height: 280px;
  background: white;
  border-radius: var(--radius-lg);
  border: 2px dashed #c8d8ee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Footer ──────────────────────────────────── */
.footer-social {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5d5f0;
  text-decoration: none;
  transition: var(--trans);
  font-size: 1rem;
}
.footer-social:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.footer-link {
  color: #a8c0e0;
  text-decoration: none;
  transition: var(--trans);
  font-size: 0.85rem;
}
.footer-link:hover {
  color: var(--accent);
  padding-left: 4px;
}

/* ── Back to Top ─────────────────────────────── */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;

  transition: var(--trans);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
}
#backToTop.visible {
  opacity: 1;
  pointer-events: all;
}
#backToTop:hover {
  transform: translateY(-4px);

}

/* ── AOS-like reveal ─────────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
[data-aos][data-aos-delay="100"] {
  transition-delay: 0.1s;
}
[data-aos][data-aos-delay="200"] {
  transition-delay: 0.2s;
}
[data-aos][data-aos-delay="300"] {
  transition-delay: 0.3s;
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}
[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}
[data-aos="fade-left"] {
  transform: translateX(30px);
}
[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

/* ── Responsive Tweaks ───────────────────────── */
@media (max-width: 640px) {
  .collage-main {
    height: 300px;
  }
  .hero-section {
    min-height: auto;
  }
  .admission-form-card {
    padding: 1.5rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item.wide {
    grid-column: span 1;
  }
  .gallery-item.tall {
    grid-row: span 1;
  }
}

/* ── Success Animation ───────────────────────── */
.success-icon {
  animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes pop-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Hero text animation ─────────────────────── */
.hero-text {
  animation: slide-in-left 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.hero-visual {
  animation: slide-in-right 0.8s cubic-bezier(0.4, 0, 0.2, 1) both 0.2s;
}
@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Gallery hidden items ────────────────────── */
.gallery-item.hidden-item {
  display: none;
}
