/* ===== BASE ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== ANIMATIONS ===== */
.animate-fade-in {
  animation: fadeIn 0.7s ease-out both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== HERO ===== */
.hero-min { min-height: 520px; }

@media (max-width: 640px) {
  .hero-min { min-height: 460px; }
}

/* ===== NAV ===== */
.mobile-menu-scroll {
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== CARDS ===== */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.10);
}

/* ===== STAT COUNTER ===== */
.stat-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  border-radius: 16px;
  color: white;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}

/* ===== SECTION HEADINGS ===== */
.section-title-fancy {
  font-family: 'Playfair Display', serif;
}

/* ===== TESTIMONIAL ===== */
.testi-card {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

/* ===== GALLERY ===== */
.gallery-item { overflow: hidden; border-radius: 14px; position: relative; }
.gallery-item img { transition: transform 0.5s ease; width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.8) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; padding: 18px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ===== MARQUEE ===== */
.marquee-wrap { overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== MOBILE FAB ===== */
.mobile-fab {
  position: fixed;
  bottom: 22px; right: 18px;
  z-index: 999;
  display: none;
}
@media (max-width: 768px) {
  .mobile-fab { display: flex; }
}

/* ===== FEATURE ICON ===== */
.feat-icon-wrap {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

/* ===== MOBILE TWEAKS ===== */
@media (max-width: 640px) {
  .section-px { padding-left: 18px !important; padding-right: 18px !important; }
  .hide-mobile { display: none !important; }
  h1 { font-size: 2rem !important; line-height: 1.2 !important; }
  h2 { font-size: 1.6rem !important; }
  h3 { font-size: 1.2rem !important; }
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BADGE ===== */
.badge-pulse::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
  animation: blink 1.4s infinite;
  vertical-align: middle;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ===== TIMELINE ===== */
.timeline-line { position: relative; }
.timeline-line::before {
  content: '';
  position: absolute;
  left: 23px; top: 0; bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

/* ===== PROGRAM CARD ===== */
.prog-card-img { height: 180px; overflow: hidden; border-radius: 14px 14px 0 0; }
.prog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.prog-card:hover .prog-card-img img { transform: scale(1.05); }

/* ===== MOBILE NAV PILL ===== */
.mobile-apply-pill {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  border-radius: 100px;
  padding: 14px 30px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(30,58,138,0.4);
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mobile-apply-pill:hover { transform: scale(1.04); box-shadow: 0 12px 30px rgba(30,58,138,0.5); }

/* ===== FOCUS RING ===== */
*:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
