:root {
  --primary-color: #13274F;
  /* Navy */
  --accent-color: #FF6F61;
  /* Coral */
  --highlight-color: #C5B358;
  /* Goldish */
  --highlight-bright: #ffd700;
  /* Bright Gold */
  --text-dark: #333333;
  --bg-light: #fefefe;
  --bg-pastel-blue: #F0F9FF;
  --bg-pastel-pink: #FFF0F5;
  --bg-pastel-cream: #FFF7E6;
}

html,
body {
  font-family: 'Fredoka', sans-serif;
  background-color: #fefefe;
  overflow-x: hidden;
  max-width: 100%;


}

/* Elements are hidden initially */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

/* When the element is in view */
.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.1);
  /* Glass effect */
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 12px 0px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  z-index: 1050;
}

/* Brand */
.navbar-brand {
  width: fit-content;
  font-weight: 700;
  font-size: 1.1rem;
  color: #13274F !important;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 28px;
  width: 28px;
}

.collapse {
  margin-right: 35px !important;
}

/* Nav Links */
.nav-link {
  color: #13274F !important;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
  margin: 0 12px;
}

.nav-link:hover {
  color: #FF6F61 !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 3px;
  background: #FF6F61;
  left: 0;
  bottom: -5px;
  border-radius: 5px;
  transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
  width: 100%;
}

/* Active Link */
.nav-link.active {
  color: #C5B358 !important;
}

.nav-link.active::after {
  width: 100%;
  background: #C5B358;
}

/* Navbar Toggler */
.navbar-toggler {
  border: none;
}

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

.navbar-toggler-icon {
  filter: invert(20%) sepia(100%) saturate(2000%) hue-rotate(330deg) brightness(90%) contrast(90%);
}

.dropdown-menu {
  background-color: #13274F !important;
  border-radius: 12px;
  border: none;
}

.dropdown-item {
  color: white !important;
}

.dropdown-item:hover {
  background-color: #FF6F61 !important;
  color: white !important;
}

/* Newsletter Notice Bar */
.newsletter-notice {
  background: #ffefc2;
  color: #003366;
  text-align: center;
  padding: 12px 20px;
  /* margin-top: 68px; */
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 2px solid #ffd700;
  /* position: relative; */
  z-index: 1000;
  position: fixed;
  top: 68px;
  width: 100%;
}

.newsletter-notice a {
  color: #ff6f61;
  text-decoration: underline;
  margin-left: 10px;
}

.newsletter-notice button {
  position: absolute;
  right: 15px;
  top: 5px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #003366;
  cursor: pointer;
}

/* Newsletter Page Styling */
.newsletter-section {
  background: #fff9f3;
  padding: 80px 20px;
  min-height: 100vh;
}

.newsletter-header {
  text-align: center;
  margin-bottom: 40px;
}

.newsletter-header h2 {
  color: #13274F;
  font-weight: 700;
}

.newsletter-card {
  background: #ffffff;
  border: 2px solid #ffd700;
  border-radius: 15px;
  padding: 25px 30px;
  margin-bottom: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.newsletter-card h4 {
  color: #003366;
  font-weight: 700;
  margin-bottom: 15px;
}


.newsletter-date {
  font-size: 0.9rem;
  color: #ff6f61;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Decorative divider */
.divider {
  width: 80px;
  height: 4px;
  background: #ffd700;
  margin: 15px auto;
  border-radius: 5px;
}



.newsletter-date {
  font-size: 0.95rem;
  color: #ff6f61;
  font-weight: bold;
  margin-bottom: 8px;
}

.newsletter-title {
  color: #13274F;
  font-weight: 700;
  margin: 15px 0;
  font-size: 1.4rem;
}

.newsletter-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 12px;
}

.info-box {
  background: #fef9e7;
  border: 1px solid #ffd700;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
}

.info-box h5 {
  color: #13274F;
  font-weight: 700;
  margin-bottom: 10px;
}

.important-box {
  background: #fffbea;
  border-color: #f7c948;
}

.parent-box {
  background: #f0f9ff;
  border: 1px solid #87cefa;
}



.carousel-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 60px auto;
  overflow: hidden;
  padding: 0 10px;
}

.carousel-slide {
  display: none;
  /* Mobile First: Stack vertically */
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  display: flex;
  opacity: 1;
}

/* Image Styling */
.carousel-image {
  width: 100%;
  max-width: 500px;
  /* Kept for mobile width control */
  height: auto;
  position: relative;
  display: flex;
  justify-content: center;
}

.carousel-image img {
  width: auto;
  /* Allow width to adjust based on height */
  max-width: 100%;
  /* But don't overflow container */
  max-height: 400px;
  /* Constrain height to avoid scrolling */
  height: auto;
  border-radius: 20px;
  object-fit: contain;
  /* Ensure full image is visible */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.carousel-image img:hover {
  transform: scale(1.02);
}

/* Text Styling */
.carousel-text {
  width: 100%;
  font-family: 'Fredoka', sans-serif;
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel-text h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #13274F;
  font-weight: 700;
}

.carousel-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 0;
}

/* Laptop / Desktop View */
@media (min-width: 992px) {
  .carousel-slide {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 60px;
    padding: 20px;
  }

  .carousel-image {
    width: 45%;
    max-width: none;
    flex-shrink: 0;
  }

  .carousel-text {
    width: 50%;
    padding: 40px;
  }

  .carousel-text h2 {
    font-size: 2.5rem;
  }

  .carousel-text p {
    font-size: 1.2rem;
  }
}

/* Arrows */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Hover effect */
.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.6);
}



/* Hero Section */

.hero {
  background-image: url(pic/pexels-cottonbro-4039179.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  color: white;
  text-align: center;
  padding: 200px 20px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;

}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  margin: 15px 0;
}

.hero .btn {
  margin: 10px;
  font-size: 1.1rem;
  border-radius: 30px;
  padding: 10px 25px;
}

.floating-emoji {
  position: absolute;
  font-size: 2rem;
  animation: float 6s infinite ease-in-out;
  opacity: 0.7;
  pointer-events: none;
  /* don't block clicks */
  z-index: 0;
  /* stay behind content */
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Hide inside hero */
#hero .floating-emoji {
  display: none;
}

.emoji1 {
  top: 20%;
  left: 10%;
}

.emoji2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.emoji3 {
  bottom: 15%;
  left: 50%;
  animation-delay: 4s;
}

.emoji4 {
  top: 30%;
  right: 40%;
  animation-delay: 1s;
}

.emoji5 {
  top: 50%;
  left: 20%;
  animation-delay: 3s;
}

.emoji6 {
  bottom: 25%;
  right: 30%;
  animation-delay: 5s;
}

.emoji7 {
  top: 10%;
  right: 20%;
  animation-delay: 2.5s;
}

.emoji8 {
  bottom: 20%;
  left: 30%;
  animation-delay: 4.5s;
}

.emoji9 {
  top: 40%;
  left: 70%;
  animation-delay: 1.5s;
}

/* Section Titles */
section {
  position: relative;
  overflow: hidden;
  width: 100%;
}



section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -30px;
  width: 100%;
  height: 60px;
  background: inherit;
  transform: skewY(-3deg);
  z-index: -1;
}

section h2 {
  padding: 35px 20px 20px 20px;
  color: #13274F;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

/* About / Gallery / Contact Cards */
#about {
  background: #FFF7E6;
  height: fit-content;
  width: 100%;
}

/* Meals & Nutrition Collapsible */
.nutrition-card {
  cursor: pointer;
}

.nutrition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nutrition-header h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #13274F;
}

.chevron {
  font-size: 1.8rem;
  color: #FF6F61;
  transition: transform 0.3s ease;
}

/* Hidden content */
.nutrition-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  margin-top: 10px;
  text-align: left;
}

.nutrition-card.active .nutrition-content {
  max-height: fit-content;
  /* adjust as needed */
  opacity: 1;
}

.nutrition-card.active .chevron {
  transform: rotate(90deg);
}

.carousel {
  max-width: 800px;
  /* limit carousel width */
  margin: auto;
  /* center carousel */
}

#artsCarousel,
#learnCarousel,
#funCarousel {
  max-width: 900px;
  /* adjust as you like */
  margin: auto;
  /* center in the page */
}

/* Remove link underline + default blue color */
#gallery a {
  text-decoration: none !important;
  color: inherit !important;
}

/* Ensure the text inside keeps your theme colors */
#gallery .card-title {
  color: #333;
  /* adjust to your design */
  font-weight: 600;
}

#gallery {
  background: #F0F9FF;
  width: 100%;
  height: fit-content;

  /* Gallery row centered */
  .gallery-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }



  .gallery-row .info-card {
    flex: 1 1 250px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
  }

}

#contact {
  background: #FFF0F5;
  width: 100%;
  height: fit-content;
}

/* Contact Form Styling */
.contact-form {
  background: #FFF4E6;
  /* soft pastel */
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-form h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-align: center;
  color: var(--primary-color);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 2px solid #FFCDB2;
  border-radius: 10px;
  padding: 10px 15px;
  margin-bottom: 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #FF6F61;
  box-shadow: 0 0 10px rgba(255, 111, 97, 0.2);
}

.contact-form button {
  width: 100%;
  background: #FF6F61;
  color: white;
  font-weight: 600;
  border-radius: 15px;
  padding: 10px;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: #C5B358;
  transform: translateY(-3px);
}

.enrollment-hero {
  background: url('pic/enroll.jpg') center/cover no-repeat;
  margin-top: 68px;
  text-align: center;
  padding: 100px 20px;
  color: #fff;
  position: relative;
}

.enrollment-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  /* overlay */
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 50px;
}

.enrollment-steps {
  padding: 60px 20px;
  background: #f9f9f9;
}

.enrollment-steps .step {
  max-width: 700px;
  margin: 30px auto;
}

.enrollment-cta {
  text-align: center;
  padding: 60px 20px;
  background: var(--theme-color);
  color: #ff6f61;
}

.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #fff;
  color: var(--theme-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}


/* map section */
.map {
  width: 100%;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
}

/* About / Gallery / Contact Cards */
.info-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Only the hovered card moves up */
.info-card:hover {
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

/* Extra content hidden by default */
.info-card .extra-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  margin-top: 10px;
  text-align: center;
}

/* Show extra content only on hovered card */
.info-card:hover .extra-content {
  max-height: 200px;
  /* adjust height as needed */
  opacity: 1;
}

.info-card i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 20px;

}

/* Scroll-to-top */
#toTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#toTop:hover {
  background: #C5B358;
}

/* ===== Gallery Styling ===== */


#gallery h1 {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
}



#gallery h2::after {
  content: "✨";
  position: absolute;
  right: -25px;
  top: -5px;
  font-size: 1.2rem;
  animation: sparkle 2s infinite;
}

#feedback {
  background: #FFF9F3;
  width: 100%;
  height: fit-content;
  padding-bottom: 50px;
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.gallery-card {
  background: #fff;
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.carousel-inner img {
  height: 100%;
  width: 100%;
}


.carousel {
  max-width: 850px;
  margin: auto;
}

/* About Me Section */
.about-me {
  background: linear-gradient(135deg, #fff4e6, #fff9f3);
  padding: 80px 20px;
  position: relative;
}

.about-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 2rem;
  position: relative;
}

.about-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #ffd700;
  margin-top: 10px;
  border-radius: 5px;
}

.about-me p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 15px;
}

.about-img {
  max-width: 250px;
  border: 5px solid #ffd700;
  padding: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-img:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* ===== My Precious Gems Sliding Carousel ===== */
#mpgCarousel {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  /* leaves room for fixed navbar - adjust if needed */
  margin-top: 80px;
  /* matches your page style */
  overflow: hidden;
  font-family: 'Fredoka', sans-serif;
  z-index: 1;
}

#mpgCarousel .mpg-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

#mpgCarousel .mpg-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

#mpgCarousel .mpg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  /* dark overlay like screenshot */
  z-index: 1;
}

#mpgCarousel .mpg-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: #fff;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

#mpgCarousel .mpg-content h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

#mpgCarousel .mpg-content p {
  font-size: 1.12rem;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Buttons */
#mpgCarousel .mpg-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

#mpgCarousel .mpg-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

#mpgCarousel .mpg-prev {
  left: 18px;
}

#mpgCarousel .mpg-next {
  right: 18px;
}





/* Floating Emojis */
.gallery-emoji {
  position: absolute;
  font-size: 2rem;
  opacity: 0.6;
  animation: float 6s infinite ease-in-out;
}

.gallery-emoji1 {
  top: 20%;
  left: 5%;
}

.gallery-emoji2 {
  bottom: 15%;
  right: 10%;
  animation-delay: 2s;
}

.gallery-emoji3 {
  top: 40%;
  right: 30%;
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@media (max-width: 992px) {
  #mpgCarousel {
    height: 72vh;
    margin-top: 70px;
  }

  #mpgCarousel .mpg-content h2 {
    font-size: 1.5rem;
  }

  #mpgCarousel .mpg-content p {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  #mpgCarousel {
    height: 60vh;
    margin-top: 60px;
  }

  #mpgCarousel .mpg-btn {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }

  #mpgCarousel .mpg-content {
    padding: 0 12px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 100vh;
    padding: 120px 15px;
    background-position: top center;
  }

  .hero h1 {
    font-size: 2rem;
    /* smaller heading */
    align-items: center;
    padding-top: 120px;
  }

  .hero p {
    font-size: 1rem;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
  }

  .navbar-brand span {
    font-size: small;
    font-weight: bold;
  }

  .collapse {
    margin-right: 0px !important;
  }

  .carousel-slide {
    flex-direction: column;
    /* stack image on top */
    text-align: center;
  }

  .carousel-text {
    padding: 15px;
    width: 100%;
  }

  .prev,
  .next {
    font-size: 1.5rem;
    padding: 8px;
  }
}