/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;500;600;700;800;900&display=swap');

/* ===== CSS Variables ===== */
:root {
  /* Theme (Home page): modern blue brand palette */
  --primary: #246BFD;        /* brand blue */
  --primary-dark: #0F4EDB;   /* darker blue */

  --navy: #0B1F3B;          /* deep navy */
  --yellow: #FFD166;       /* warm accent */

  --green: #2ED3B7;        /* supporting teal */
  --light-bg: #EAF2FF;     /* soft blue background */

  --card-blue: #2B9ED4;
  --card-orange: #F07428;
  --card-purple: #7B3FA0;
  --card-lime: #6BBF5B;
  --card-teal: #00998C;

  --border-radius: 20px;
  --shadow: 0 8px 30px rgba(0,0,0,0.10);
}


/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  color: #1A1A2E;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Fredoka One', cursive; }

/* ===== Top Ribbon ===== */
.top-ribbon {
  background: var(--navy);
  color: #fff;
  padding: 8px 0;
  font-size: 0.92rem;
}

.top-ribbon a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.top-ribbon a:hover {
  color: var(--yellow);
}

/* ===== Navbar ===== */
.navbar {
  background: #fff;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  padding: 2px 0;
  z-index: 1030;
}

.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; max-width: calc(100% - 60px); }

.logo-icon { height: 5.5rem; width: auto; border-radius: 8px; object-fit: contain; }

.logo-text .brand-name {
  font-family: 'Fredoka One', cursive;
  color: var(--primary);
  font-size: 1.25rem;
  display: block;
  line-height: 1.2;
}

.logo-text .brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--navy);
  font-weight: 800;
  display: block;
}

.nav-link {
  font-weight: 700 !important;
  color: #2D2D2D !important;
  padding: 8px 14px !important;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: #fff !important;
  background-color: var(--primary);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
  outline: none !important;
  box-shadow: none !important;
}

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

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(135deg, #edf7ec 0%, #dff0dc 50%, #e8f5e9 100%);
  
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  background: rgba(61,170,53,0.13);
  color: var(--primary);
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.hero-section h1 {
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-section .hero-lead {
  color: #4A5568;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 580px;
}

.hero-section .hero-img-wrap {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-section .hero-img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-section .hero-fullscreen .hero-img-wrap {
  height: 520px;
}

.hero-section .hero-img-wrap .carousel,
.hero-section .hero-img-wrap .carousel-inner,
.hero-section .hero-img-wrap .carousel-item {
  height: 520px;
}

/* ===== Centre Slider (About page) ===== */
.centre-slider {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.centre-slide-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ===== Grass Wave ===== */
.hero-overlay-buttons {
  position: absolute;
  top: 380px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(100%, 900px);
  padding: 0 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero-overlay-buttons .hero-buttons {
  pointer-events: auto;
  justify-content: center;
}

/* Force both buttons to look visible on hero image */
.hero-overlay-buttons .btn-outline-navy {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: #fff !important;
}

.hero-overlay-buttons .btn-outline-navy:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  .hero-overlay-buttons { top: 235px; }
}

.hero-divider { display: block; width: 100%; line-height: 0; }
.hero-divider svg { display: block; width: 100%; height: auto; }

/* ===== Buttons ===== */
.btn-yellow {
  background: var(--yellow);
  color: #fff;
  border: none;
  font-weight: 800;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  font-family: 'Nunito', sans-serif;
  display: inline-block;
  text-decoration: none;
}
.btn-yellow:hover {
  background: #d4631e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240,116,40,0.4);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2.5px solid var(--navy);
  font-weight: 800;
  padding: 11px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  font-family: 'Nunito', sans-serif;
  display: inline-block;
  text-decoration: none;
}

/* Ensure outlined navy button remains visible on dark ribbon */
.top-ribbon .btn-outline-navy {
  background: #fff !important;
  color: var(--navy) !important;
  border-color: #fff !important;
}

.top-ribbon .btn-outline-navy:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-primary-custom {
  background: transparent;
  color: var(--primary);
  border: 2.5px solid var(--primary);
  font-weight: 800;
  padding: 11px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  font-family: 'Nunito', sans-serif;
  display: inline-block;
  text-decoration: none;
}
.btn-outline-primary-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== Section Labels ===== */
.section-label {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 8px;
  font-family: 'Fredoka One', cursive;
}

/* ===== White Content Area ===== */
.content-section { padding: 70px 0; }
.content-section-sm { padding: 50px 0; }

/* ===== Feature Cards (About) ===== */
.feature-card {
  border-radius: var(--border-radius);
  padding: 30px 28px;
  border: 3px dashed;
  background: #fff;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card.fc-red   { border-color: var(--primary); }
.feature-card.fc-blue  { border-color: var(--card-blue); }
.feature-card.fc-purple{ border-color: var(--card-purple); }
.feature-card.fc-green { border-color: var(--card-lime); }
.feature-card.fc-yellow{ border-color: var(--yellow); }

.feature-card .fc-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.fc-red   .fc-icon { background: rgba(61,170,53,0.12); }
.fc-blue  .fc-icon { background: rgba(77,166,232,0.12); }
.fc-purple.fc-icon { background: rgba(155,114,196,0.12); }
.fc-green .fc-icon { background: rgba(138,191,80,0.12); }
.fc-yellow.fc-icon { background: rgba(245,208,32,0.15); }

.feature-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.feature-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #555;
}

/* ===== Program Cards ===== */
.program-card {

  border-radius: var(--border-radius);
  padding: 35px 28px;
  color: var(--navy);
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
/* When program cards become links (<a>) keep their original card styling */
a.program-card.program-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.program-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
}
.program-card::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 90px; height: 90px;
  background: rgba(0,0,0,0.04);
  border-radius: 50%;
}
.program-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }

.program-card h3 { font-size: 1.45rem; margin-bottom: 14px; color: var(--navy); }
.program-card p  { font-size: 0.9rem; line-height: 1.65; opacity: 0.85; }

.program-card .pc-tags { margin-top: 22px; }
.program-card .pc-tag {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.85rem;
  margin-bottom: 5px; justify-content: center;
  opacity: 0.8;
}

.pc-infant   { background: linear-gradient(135deg, #FFD6E8, #FFC0D8); }
.pc-toddler  { background: linear-gradient(135deg, #C8E8F8, #AADAF5); }
.pc-preschool{ background: linear-gradient(135deg, #E8D8F8, #D8C4F0); }
.pc-prekg    { background: linear-gradient(135deg, #FFF3C0, #FFE880); }
.pc-osc      { background: linear-gradient(135deg, #C8EDCA, #AADEAD); }
.pc-outdoor  { background: linear-gradient(135deg, #FFE5C0, #FFD4A0); }
.pc-seasonal { background: linear-gradient(135deg, #C0EDE8, #A0E0D8); }

/* ===== Stats Strip ===== */
.stats-strip { background: var(--navy); padding: 40px 0; }
.stat-item { text-align: center; }
.stat-item .stat-num {
  font-family: 'Fredoka One', cursive;
  font-size: 2.6rem;
  color: var(--yellow);
  line-height: 1;
}
.stat-item .stat-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ===== FAQ Accordion ===== */
.faq-accordion .accordion-item{
  border: none;
  background: transparent;
  margin-bottom: 14px;
}

.faq-accordion .accordion-item:first-child{ margin-top: 4px; }

.faq-accordion .accordion-button{
  width: 100%;
  text-align: left;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--navy);
  background: #fff;
  padding: 18px 18px;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(11,31,59,0.05);
  border: 1px solid rgba(36,107,253,0.12);
  transition: all 0.22s ease;
  position: relative;
}

/* Left accent bar */
.faq-accordion .accordion-button::before{
  content: '';
  position: absolute;
  left: 14px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: rgba(36,107,253,0.25);
  transition: all 0.22s ease;
}

.faq-accordion .accordion-button .accordion-button-content{
  padding-left: 18px;
  display: block;
}

/* Remove default bootstrap chevron */
.faq-accordion .accordion-button::after{
  margin-left: auto;
  background-image: none !important;
  content: '+';
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #0B1F3B;
  border: 1px solid rgba(36,107,253,0.25);
  background: rgba(36,107,253,0.06);
  transition: all 0.22s ease;
}

.faq-accordion .accordion-button:not(.collapsed){
  color: var(--primary);
  background: linear-gradient(135deg, rgba(36,107,253,0.09), rgba(46,211,183,0.06));
  border-color: rgba(36,107,253,0.28);
}

.faq-accordion .accordion-button:not(.collapsed)::before{
  background: rgba(255,209,102,0.9);
}

/* Plus becomes minus on open */
.faq-accordion .accordion-button:not(.collapsed)::after{
  content: '–';
  border-color: rgba(255,209,102,0.9);
  background: rgba(255,209,102,0.20);
  color: var(--navy);
}

.faq-accordion .accordion-button:hover{
  transform: translateY(-1px);
}

.faq-accordion .accordion-body{
  font-size: 0.93rem;
  line-height: 1.75;
  color: #555;
  padding: 0 20px 20px 20px;
}

.faq-accordion .accordion-collapse{
  transition: height 0.35s ease;
}

.faq-category-title {
  font-family: 'Fredoka One', cursive;
  color: var(--navy);
  font-size: 1.3rem;
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
}


/* ===== Contact Info Items ===== */
.contact-info-item {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed #ddd;
}
.contact-info-item:last-child { border-bottom: none; }

.ci-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
}
.ci-icon.green  { background: #28a745; }
.ci-icon.red    { background: #dc3545; }
.ci-icon.blue   { background: #0d6efd; }
.ci-icon.yellow { background: #f0b800; }

.ci-text .ci-label { font-weight: 800; color: var(--navy); font-size: 0.95rem; margin-bottom: 2px; }
.ci-text .ci-value { color: #555; font-size: 0.93rem; line-height: 1.5; }

/* ===== Steps (Register) ===== */
.step-list { list-style: none; padding: 0; }
.step-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 0;
  font-weight: 700; font-size: 1rem;
  color: var(--navy);
  border-bottom: 1px dashed #eee;
}
.step-list li:last-child { border-bottom: none; }
.step-arrow {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ===== Register - What Happens Next (Journey Stepper) ===== */
.register-journey-title{
  font-size: clamp(1.4rem,3.5vw,2rem);
}

.register-journey{
  margin-top: 10px;
}

.register-journey-steps{
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 0;
  align-items: start;
  position: relative;
}

.register-journey-steps:before{
  content: '';
  position: absolute;
  top: 34px;
  left: 20px;
  right: 20px;
  height: 6px;
  background: rgba(11,31,59,0.08);
  border-radius: 999px;
  z-index: 0;
}

.register-journey-step{
  text-align: center;
  padding: 26px 14px 16px;
  position: relative;
  z-index: 1;
}

.register-journey-step h5{
  margin-top: 12px;
  margin-bottom: 8px;
  font-weight: 900;
  font-size: 1.05rem;
}

.register-journey-step p{
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #5b6677;
}

.register-journey-badge{
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  margin: 0 auto;
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
  border: 5px solid rgba(255,255,255,0.85);
}

.register-journey-badge--1{ background: var(--primary); }
.register-journey-badge--2{ background: var(--card-blue); }
.register-journey-badge--3{ background: var(--card-purple); }
.register-journey-badge--4{ background: var(--card-lime); }

@media (max-width: 991.98px){
  .register-journey-steps:before{ left: 14px; right: 14px; }
  .register-journey-steps{ grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}

@media (max-width: 767.98px){
  .register-journey-steps{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .register-journey-steps:before{
    top: 20px;
    left: 50%;
    right: auto;
    bottom: 20px;
    width: 6px;
    height: auto;
    transform: translateX(-50%);
  }
  .register-journey-step{
    text-align: left;
    padding: 8px 10px 10px 70px;
  }
  .register-journey-step .register-journey-badge{
    position: absolute;
    left: 18px;
    top: 0;
    margin: 0;
  }
}

/* ===== Contact / Register Form ===== */
.form-control, .form-select {

  border-radius: 12px;
  border: 2px solid #e0e7ef;
  font-family: 'Nunito', sans-serif;
  font-size: 0.93rem;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61,170,53,0.18);
  outline: none;
}
.form-label { font-weight: 700; color: var(--navy); font-size: 0.9rem; margin-bottom: 6px; }


/* ===== Map ===== */
.map-wrap { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #2C8228 100%);
  padding: 62px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner:before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center, rgba(255,209,102,0.28) 0%, rgba(255,209,102,0) 60%);
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

.cta-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  margin-bottom: 16px;
}

.cta-banner h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 12px; }
.cta-banner p  { font-size: 1.05rem; opacity: 0.9; margin-bottom: 26px; max-width: 720px; margin-left:auto; margin-right:auto; }

.cta-banner-actions {
  margin-bottom: 20px;
}

.cta-banner .cta-banner-link {
  background: transparent;
  transition: transform 0.25s ease;
}

.cta-banner .cta-banner-link:hover {
  transform: translateY(-2px);
}

.cta-banner-highlights {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cta-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 900;
}

.cta-highlight i {
  font-size: 1.1rem;
  color: var(--yellow);
}

@media (max-width: 767.98px) {
  .cta-banner { padding: 48px 0; }
  .cta-banner p { font-size: 1rem; }
}


/* ===== Page Hero (sub-pages) ===== */
.page-hero {
  position: relative;
  text-align: center;
  padding: 70px 0 0;

  /* Background image (set per page via inline CSS var) */
  background-image:
    linear-gradient(
      180deg,
      rgba(11, 31, 59, 0.55) 0%,
      rgba(11, 31, 59, 0.35) 50%,
      rgba(255, 255, 255, 0.08) 100%
    ),
    var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;


  /* Readability overlay */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.page-hero:before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(36,107,253,0.28) 0%, rgba(36,107,253,0) 55%),
    linear-gradient(135deg, rgba(255,209,102,0.10) 0%, rgba(46,211,183,0.08) 55%, rgba(36,107,253,0.08) 100%);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}


.page-hero h1 {
  color: #fbf6f4e8;

  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero p {
  color: #fbf6f4c5;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 700;
  opacity: 0.95;
}


/* ===== Testimonials ===== */
.testimonial-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  height: 100%;
}
.testimonial-card .stars { color: #F07428; font-size: 1rem; margin-bottom: 12px; }
.testimonial-card p { font-size: 0.93rem; line-height: 1.7; color: #555; font-style: italic; }
.testimonial-card .author { margin-top: 16px; font-weight: 800; color: var(--navy); font-size: 0.9rem; }

/* Read more toggle */
.testimonial-card .testimonial-readmore {
  margin-top: 10px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.testimonial-card .testimonial-readmore:hover { text-decoration: underline; }

/* 2-line default preview */
.testimonial-card .testimonial-text__initial {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.testimonial-card .testimonial-text__more { display: none; }
.testimonial-card.is-expanded .testimonial-text__initial {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.testimonial-card.is-expanded .testimonial-text__more { display: inline; }


/* ===== Card wrapper for sections ===== */
.section-card {
  background: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 40px;
}

/* ===== Back To Top Button ===== */
#backToTopBtn{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2000;
}

#backToTopBtn.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#backToTopBtn:hover{
  background: var(--navy);
}

#backToTopBtn i{ font-size: 1.55rem; }

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: #fff;
  padding: 55px 0 0;
}
.footer h5 {
  font-family: 'Fredoka One', cursive;
  color: var(--yellow);
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.footer a { color: rgba(255,255,255,0.72); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--yellow); }
.footer ul li { margin-bottom: 8px; font-size: 0.9rem; }
.footer p { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding: 18px 0;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}

/* ===== Utility ===== */
.rounded-lg { border-radius: var(--border-radius) !important; }
.bg-light-custom { background: var(--light-bg); }
.text-primary-custom { color: var(--primary) !important; }
.text-navy { color: var(--navy) !important; }

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-up.visible {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ===== Home: Our Story ===== */
.story-section {
  position: relative;
  overflow: hidden;
  /* Keep this section from competing with Bootstrap modal stacking */
  z-index: 0;
}


.story-image-wrap {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  z-index: 0;
  aspect-ratio: 4 / 3;
}



.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}



.story-image-decor {
  position: absolute;
  pointer-events: none;
  inset: auto;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.9;
}

.story-image-decor--a {
  width: 170px;
  height: 170px;
  left: -50px;
  top: -60px;
  background: rgba(36,107,253,0.18);
  animation: storyFloatA 7s ease-in-out infinite;
}

.story-image-decor--b {
  width: 220px;
  height: 220px;
  right: -90px;
  bottom: -120px;
  background: rgba(46,211,183,0.16);
  animation: storyFloatB 9s ease-in-out infinite 0.2s;
}

.story-image-shine {
  position: absolute;
  top: -40%;
  left: -60%;
  width: 70%;
  height: 200%;
  transform: rotate(20deg);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.16) 45%,
    rgba(255,255,255,0) 100%
  );
  animation: storyShine 6.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}


@keyframes storyFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, 16px) scale(1.04); }
}

@keyframes storyFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-16px, -10px) scale(1.03); }
}

@keyframes storyShine {
  0%, 25% { left: -60%; opacity: 0; }
  40% { opacity: 1; }
  60% { left: 35%; opacity: 0.95; }
  100% { left: 55%; opacity: 0; }
}

.story-lead {
  max-width: 560px;
}

.story-features {
  --feature-stagger: 0ms;
}

.story-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  box-shadow: 0 10px 30px rgba(11,31,59,0.04);
  border: 1px solid rgba(36,107,253,0.10);
  transform: translateY(12px);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 0.55s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.25s ease;
  transition-delay: var(--st-delay, 0ms);
}

/* When section is visible, reveal feature items */
.story-section .fade-up.visible .story-feature {
  transform: translateY(0);
  opacity: 1;
}

/* fallback for browsers (if container reveal doesn't catch nested nodes) */
.story-section.visible .story-feature {
  transform: translateY(0);
  opacity: 1;
}

.story-feature-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: rgba(36,107,253,0.14);
  border: 1px solid rgba(36,107,253,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.25rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.story-feature-title {
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 4px;
}

.story-feature-text {
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.55;
}

.story-feature:hover {
  box-shadow: 0 18px 40px rgba(11,31,59,0.08);
}

.story-feature:hover .story-feature-icon {
  transform: translateY(-3px) scale(1.03);
}

@media (max-width: 991.98px) {
  .story-image { aspect-ratio: 4 / 3; }
}

@media (max-width: 767.98px) {
  .story-image { aspect-ratio: 4 / 3; }
}


@media (prefers-reduced-motion: reduce) {
  .story-image-decor--a,
  .story-image-decor--b,
  .story-image-shine {
    animation: none !important;
  }

  .story-feature {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Home: Programs (list/grid redesign) ===== */

.programs-list-wrap {
  background: linear-gradient(180deg, rgba(36,107,253,0.05) 0%, rgba(234,242,255,0.9) 100%);
  border-radius: 24px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(11,31,59,0.06);
}

.programs-list-wrap:before {
  content: '';
  position: absolute;
  inset: -120px -120px auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at center, rgba(255,209,102,0.28) 0%, rgba(255,209,102,0) 60%);
  transform: rotate(18deg);
}

.programs-grid {
  position: relative;
  z-index: 1;
}

.program-tile {
  background: #fff;
  border-radius: 18px;
  padding: 16px 14px;
  min-height: 110px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(36,107,253,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.program-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(36,107,253,0.16);
  border-color: rgba(36,107,253,0.25);
}

.program-tile:after {
  content: '';
  position: absolute;
  inset: -30px auto auto -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at center, rgba(46,211,183,0.20) 0%, rgba(46,211,183,0) 60%);
}

.program-tile .program-tile-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(36,107,253,0.15), rgba(46,211,183,0.12));
  border: 1px solid rgba(36,107,253,0.12);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.program-tile .program-tile-title {
  position: relative;
  z-index: 1;
  font-weight: 900;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.program-tile .program-tile-desc {
  position: relative;
  z-index: 1;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.program-tile[data-anim-delay] {
  transition-delay: var(--delay, 0ms);
}

/* ===== Home: Our Childcare Programs (continuous horizontal cards) ===== */
.programs-scroll {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  overflow: hidden;
  position: relative;
  padding-bottom: 8px;
}

/* optional: allow manual drag/scroll if needed */
.programs-scroll.is-manual {
  overflow-x: auto;
}


/* autoplay “carousel” look */
@keyframes programs-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.programs-scroll-track {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  width: max-content;
  animation: programs-marquee 30s linear infinite;
}

.programs-scroll-item {
  flex: 0 0 auto;
  width: 260px;
}


/* responsive widths */
@media (max-width: 575.98px) {
  .programs-scroll-item { width: 235px; }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .programs-scroll-item { width: 240px; }
}

@media (min-width: 992px) {
  .programs-scroll-item { width: 265px; }
}

/* ===== Home: Gallery ===== */
.home-gallery-wrap {

  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(11,31,59,0.06);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(36,107,253,0.10);
}

.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,31,59,0) 45%, rgba(11,31,59,0.22) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover:before { opacity: 1; }

/* ===== Home: Tour booking card ===== */
.tour-card {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(11,31,59,0.06);
  border: 1px solid rgba(36,107,253,0.10);
}

.tour-card .tour-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--navy);
  background: rgba(36,107,253,0.08);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

@media (max-width: 991.98px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-top: 10px;
    box-shadow: var(--shadow);
  }
  .nav-link { border-radius: 10px; }
}

@media (max-width: 767.98px) {
  .top-ribbon {
    font-size: 0.88rem;
    padding: 6px 0;
  }

  .top-ribbon .container {
    gap: 10px;
  }

  .top-ribbon-left,
  .top-ribbon-right {
    white-space: nowrap;
  }

  .top-ribbon-right {
    text-align: right;
    padding-right: 8px;
  }

  .w-md-100 { width: 100% !important; }

  .hero-section { text-align: center; }
  .hero-section .hero-lead { margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  /* .hero-section .hero-img-wrap { margin-top: 30px; } */
  .hero-section .hero-fullscreen .hero-img-wrap { height: 320px; }
  .hero-section .hero-img-wrap img { height: 320px; }
  .hero-section .hero-img-wrap .carousel,
  .hero-section .hero-img-wrap .carousel-inner,
  .hero-section .hero-img-wrap .carousel-item { height: 320px; }
  .content-section { padding: 50px 0; }
  .stat-item { margin-bottom: 20px; }
  .section-card { padding: 28px 20px; }


  .logo-icon { height: 2.8rem; }
  .navbar-brand { gap: 7px; }
  .logo-text .brand-name { font-size: 1rem; }
  .logo-text .brand-sub { font-size: 0.52rem; letter-spacing: 0.1em; }
}
