/* ==========================================================================
   Little Elly Admissions - Design System & Custom Styles
   Brand Colors, Modern Typography, Responsive Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Grandstander:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400&family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,600;0,6..12,700;0,6..12,800;1,6..12,400&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  /* Brand Color Palette */
  --elly-coral: #EE7F82;
  --elly-coral-dark: #d86265;
  --elly-blue: #78ADF9;
  --elly-lavender: #B892F9;
  --elly-green: #A5D27C;
  --elly-yellow: #F6BD60;
  --elly-indigo: #0F0E4A;
  --elly-dark: #1B2226;
  --elly-black: #000000;
  --elly-light-bg: #F8F9FA;
  --elly-scallop: #FBDECE;

  /* Card Tints */
  --elly-tint-blue: #E5F0FF;
  --elly-tint-amber: #FDF2E5;
  --elly-tint-peach: #FDF2EF;

  /* Typography */
  --font-display: 'Grandstander', cursive, sans-serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Poppins', sans-serif;

  /* Transitions & Shadows */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 25px 50px rgba(238, 127, 130, 0.25);
}

/* Base & Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--elly-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--elly-dark);
  font-weight: 700;
}

.font-display {
  font-family: var(--font-display) !important;
}

/* Color Utilities */
.color-coral { color: var(--elly-coral) !important; }
.color-blue { color: var(--elly-blue) !important; }
.color-lavender { color: var(--elly-lavender) !important; }
.color-green { color: var(--elly-green) !important; }
.color-yellow { color: var(--elly-yellow) !important; }
.color-indigo { color: var(--elly-indigo) !important; }

/* Buttons */
.btn-elly-primary {
  background: var(--elly-coral);
  color: #ffffff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(238, 127, 130, 0.35);
  transition: var(--transition-smooth);
}

.btn-elly-primary:hover,
.btn-elly-primary:focus {
  background: var(--elly-coral-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(238, 127, 130, 0.45);
}

.btn-elly-outline {
  border: 2px solid var(--elly-coral);
  color: var(--elly-coral);
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  transition: var(--transition-smooth);
}

.btn-elly-outline:hover {
  background: var(--elly-coral);
  color: #ffffff;
}

/* ==========================================================================
   Header / Navigation Bar
   ========================================================================== */
.elly-navbar {
  background: #ffffff;
  transition: var(--transition-smooth);
  padding: 14px 0;
  z-index: 1040;
}

.elly-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

.navbar-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: #212529;
  padding: 8px 16px !important;
  position: relative;
  transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover {
  color: var(--elly-coral);
}

.navbar-nav .nav-link.active {
  color: var(--elly-coral) !important;
}

.navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 16px;
  right: 16px;
  height: 3px;
  background: var(--elly-coral);
  border-radius: 3px;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  right: 50%;
  height: 3px;
  background: var(--elly-coral);
  border-radius: 3px;
  transition: all 0.3s ease;
  opacity: 0;
}

.navbar-nav .nav-link:hover::before {
  left: 16px;
  right: 16px;
  opacity: 1;
}

.navbar-toggler {
  border: none;
  padding: 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ==========================================================================
   Hero Section & Background Slideshow
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 90px 0 60px 0;
  background-color: #0A0A0A;
}

/* Hero Background Slider */
.hero-slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s ease;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Dark Gradient Overlay matching original */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(183deg, rgba(0, 66, 29, 0.05) 30%, rgba(0, 0, 0, 0.85) 95%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 5;
}

/* Hero Title */
.hero-headline {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.45rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-badge-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 20px;
}

/* Hero Register Card Form */
.register-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 32px 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  transition: transform 0.3s ease;
}

.register-card:hover {
  transform: translateY(-4px);
}

.register-card-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--elly-dark);
  line-height: 1.2;
  margin-bottom: 6px;
}

.register-card-subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 20px;
}

.form-control,
.form-select {
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  padding: 10px 15px;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--elly-coral);
  box-shadow: 0 0 0 3px rgba(238, 127, 130, 0.2);
}

.btn-form-submit {
  width: 100%;
  background: var(--elly-coral);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 13px;
  border-radius: 12px;
  border: none;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(238, 127, 130, 0.35);
  transition: var(--transition-smooth);
}

.btn-form-submit:hover {
  background: var(--elly-coral-dark);
  box-shadow: 0 12px 25px rgba(238, 127, 130, 0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   Admission Process Section
   ========================================================================== */
.admission-process-section {
  padding: 90px 0;
  background: #FFFFFF;
}

.section-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
}

.section-title span {
  color: #F87171;
}

/* Step Cards */
.process-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid #f0f0f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.process-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Tilted Number Badges matching Little Elly */
.step-badge {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  transform: rotate(-15deg);
  margin-bottom: 25px;
  transition: transform 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.process-card:hover .step-badge {
  transform: rotate(0deg) scale(1.08);
}

.step-badge-01 {
  background: var(--elly-tint-blue);
  color: #2F6ED4;
}

.step-badge-02 {
  background: var(--elly-tint-amber);
  color: #E28700;
}

.step-badge-03 {
  background: var(--elly-tint-peach);
  color: var(--elly-coral-dark);
}

.process-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: var(--elly-dark);
}

.process-card-desc {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Grade and Age Table in Step 1 */
.grade-age-table {
  background: #fbfdff;
  border: 1px solid #e9f2ff;
  border-radius: 16px;
  overflow: hidden;
  margin-top: auto;
}

.table-header {
  background: #edf5ff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a4f9c;
  padding: 10px 16px;
}

.table-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 16px;
  border-bottom: 1px solid #f0f4f9;
  font-size: 0.92rem;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row .grade-name {
  font-weight: 700;
  color: var(--elly-dark);
}

.table-row .age-req {
  color: #2b70d4;
  font-weight: 600;
}

/* Checklist in Step 3 */
.doc-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: #444444;
  line-height: 1.5;
}

.doc-checklist li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--elly-coral);
  font-size: 0.85rem;
}

/* Phone link styling in Step 2 */
.phone-highlight-link {
  color: var(--elly-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--elly-coral);
  text-underline-offset: 4px;
}

.phone-highlight-link:hover {
  color: var(--elly-coral);
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
  padding: 90px 0 60px 0;
  background-color: #FAFCFF;
  position: relative;
}

.testimonial-header-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.header-kids-left,
.header-kids-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.kid-sticker {
  width: 90px;
  height: 90px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
}

.kid-sticker:hover {
  transform: scale(1.1) rotate(5deg);
}

.testimonials-title-block {
  text-align: center;
  padding: 0 25px;
}

.testimonials-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--elly-dark);
  margin-bottom: 5px;
}

.testimonials-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--elly-coral);
}

/* Testimonial Card */
.testimonial-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #f0f0f0;
  margin: 15px 10px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 30px);
  transition: var(--transition-smooth);
}

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

.testimonial-img-wrapper {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.testimonial-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.testimonial-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.testimonial-quote-badge {
  color: var(--elly-coral);
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 8px;
}

.testimonial-lead {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--elly-coral);
  margin-bottom: 12px;
  line-height: 1.4;
}

.testimonial-text {
  font-size: 0.92rem;
  color: #555555;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.testimonial-author-block {
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--elly-dark);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 600;
}

/* Carousel Control Buttons */
.carousel-btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--elly-coral);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-btn-circle:hover {
  background: var(--elly-coral);
  color: #ffffff;
  border-color: var(--elly-coral);
}

/* ==========================================================================
   Scallop Divider Wave
   ========================================================================== */
.scallop-divider-section {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background-color: #FAFCFF;
  padding-top: 20px;
}

.scallop-divider-svg {
  display: block;
  width: 100%;
  height: 60px;
  fill: #000000; /* Connects smoothly into black footer */
}

/* Scallop Arch Shapes Row */
.scallop-arch-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding-bottom: 10px;
}

.scallop-arch {
  width: 140px;
  height: 65px;
  fill: var(--elly-scallop);
  flex-shrink: 0;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.elly-footer {
  background-color: var(--elly-black);
  color: #ffffff;
  padding: 80px 0 0 0;
  font-size: 0.95rem;
}

.footer-brand-logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 20px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 25px;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.social-icon-btn:hover {
  background: var(--elly-coral);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: #a0aec0;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
}

.footer-links-list a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  color: #a0aec0;
}

.footer-contact-icon {
  color: var(--elly-coral);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-text a {
  color: #a0aec0;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-contact-text a:hover {
  color: #ffffff;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  margin-top: 60px;
  color: #718096;
  font-size: 0.88rem;
}

.footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-end;
}

.footer-bottom-links a {
  color: #718096;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Floating Widgets & Action Buttons
   ========================================================================== */

/* Floating Admissions Open Ribbon / Button (Right Middle) */
.floating-admissions-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--elly-coral);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 30px 0 0 30px;
  box-shadow: -4px 6px 20px rgba(238, 127, 130, 0.45);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 1030;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.floating-admissions-btn:hover {
  background: var(--elly-coral-dark);
  color: #ffffff;
  padding-left: 24px;
}

.floating-admissions-btn .badge-icon {
  background: #ffffff;
  color: var(--elly-coral);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Floating WhatsApp Button (Bottom Right) */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  z-index: 1030;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) rotate(8deg);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp-btn .ping-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pingAnimation 2s infinite;
  opacity: 0;
}

@keyframes pingAnimation {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Scroll To Top Button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 14, 74, 0.8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1020;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  border: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--elly-coral);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==========================================================================
   Admissions Modal
   ========================================================================== */
.modal-content.elly-modal-content {
  border-radius: 28px;
  border: none;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-header.elly-modal-header {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
  border-bottom: 1px solid #f0f0f0;
  padding: 24px 30px;
}

.modal-body.elly-modal-body {
  padding: 30px;
}

/* Form success feedback alert */
.form-success-banner {
  display: none;
  background: #EAF9EA;
  border: 1px solid #C4EDC4;
  color: #237804;
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 20px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-headline {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2.4rem;
  }
  .testimonials-title {
    font-size: 2.4rem;
  }
  .register-card {
    margin-top: 35px;
  }
  .header-kids-left,
  .header-kids-right {
    display: none;
  }
  .footer-bottom-links {
    justify-content: flex-start;
    margin-top: 15px;
  }
}

@media (max-width: 767.98px) {
  .hero-headline {
    font-size: 2.3rem;
  }
  .hero-subtitle {
    font-size: 1.15rem;
  }
  .section-title {
    font-size: 2.1rem;
  }
  .testimonials-title {
    font-size: 2.1rem;
  }
  .step-badge {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }
  .floating-admissions-btn span:not(.badge-icon) {
    display: none;
  }
  .floating-admissions-btn {
    padding: 10px 12px;
    border-radius: 20px 0 0 20px;
  }
}
