/**
 * Kids Play Club — soft colors, playful type, hover polish
 */

:root {
  --kid-coral: #ffd400;   /* bright yellow */
  --kid-balloon: #e85d75; /* balloon pink-red */
  --kid-mint: #8fe4d4;    /* mint green */
  --kid-sun: #cfc2f7;     /* lavender */
  --kid-lav: #e6ddff;     /* light lavender */
  --kid-sky: #b9deff;     /* light blue */
  --kid-peach: #fbd1e6;   /* blush */
  --kid-lime: #bcefe4;    /* pale mint */
  --kid-text: #3f3a63;    /* deep soft violet */
  --kid-bg: #f6f1ff;      /* soft lavender background */
}

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

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

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--kid-text);
  background: var(--kid-bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

button,
[role="button"],
.btn {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(91, 60, 196, 0.65);
  outline-offset: 2px;
}

@keyframes fb-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.08); }
}

@keyframes index-logo-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}

img,
svg,
iframe,
video {
  max-width: 100%;
  display: block;
}

iframe {
  border: 0;
}

h1, h2, h3, .navbar-brand, .section-title, .hero-title {
  font-family: "Fredoka", "Nunito", sans-serif;
}

.section-title {
  font-weight: 700;
  color: #4e4680;
  letter-spacing: 0.01em;
}

.text-highlight {
  color: #e85d75;
  text-decoration: underline wavy var(--kid-mint);
  text-underline-offset: 4px;
}

/* Navbar */
.navbar-kids {
  background: #ece5ff !important;
  border-bottom: 3px solid var(--kid-sun);
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.navbar-kids .navbar-brand {
  color: #3f3a63 !important;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

.site-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.index-logo {
  width: clamp(140px, 28vw, 240px);
  height: auto;
  animation: index-logo-float 3.6s ease-in-out infinite;
  transform-origin: center;
}

.index-logo-fallback {
  width: auto;
  height: auto;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 700;
  color: #3f3a63;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(63, 58, 99, 0.12);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.index-header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: saturate(1.1) blur(2px);
}

.navbar-kids .nav-link {
  color: #3f3a63 !important;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding-left: 0.9rem !important;
  padding-right: 0.9rem !important;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.navbar-kids .nav-link:hover {
  background: rgba(185, 222, 255, 0.45);
  transform: translateY(-1px);
}

.navbar-kids .nav-link.active {
  background: #cfc2f7;
  color: #3f3a63 !important;
  box-shadow: inset 0 0 0 1px rgba(63, 58, 99, 0.12);
}

a[aria-label="Facebook group"] .fi-brands-facebook {
  display: inline-block;
  font-size: 1.45rem;
  transform-origin: center;
  animation: fb-bounce 2.2s ease-in-out infinite;
}

a[aria-label="Facebook group"]:hover .fi-brands-facebook {
  animation-duration: 1.3s;
}

a[aria-label="Facebook group"] {
  border: none;
  border-radius: 0;
  min-width: auto;
  min-height: auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: transparent;
}

a[aria-label="Facebook group"]:hover {
  background: transparent;
}

.navbar-kids::before,
.navbar-kids::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.32;
}

.navbar-kids::before {
  background: rgba(123, 97, 255, 0.2);
  top: -65px;
  left: -35px;
}

.navbar-kids::after {
  background: rgba(212, 160, 23, 0.22);
  bottom: -70px;
  right: -35px;
}

.navbar-kids .navbar-toggler {
  border-color: rgba(23, 23, 23, 0.3);
}

.navbar-kids .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(91, 60, 196, 0.25);
}

.btn-cta {
  background: var(--kid-balloon) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 50rem !important;
  box-shadow: 0 6px 16px rgba(232, 93, 117, 0.36);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(232, 93, 117, 0.5);
  color: #ffffff !important;
}

.btn-primary {
  background-color: var(--kid-balloon);
  border-color: var(--kid-balloon);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #d94f67 !important;
  border-color: #d94f67 !important;
}

/* Hero */
.hero-kids {
  padding: 2rem 0;
}

.hero-photo {
  max-height: 360px;
  width: 100%;
  object-fit: cover;
}

.hero-blob {
  background: linear-gradient(145deg, var(--kid-mint), var(--kid-sky));
  border-radius: 40% 60% 55% 45% / 45% 50% 50% 55%;
  box-shadow: 0 12px 40px rgba(127, 219, 218, 0.35);
  animation: blob 8s ease-in-out infinite;
}

@keyframes blob {
  0%, 100% { border-radius: 40% 60% 55% 45% / 45% 50% 50% 55%; }
  50% { border-radius: 55% 45% 40% 60% / 55% 45% 50% 50%; }
}

.bg-section {
  background: #ece5ff;
  border: 1px solid rgba(207, 194, 247, 0.55);
}

.card-soft {
  background: #ffffff;
  border-radius: 1.5rem !important;
  border: 1px solid rgba(185, 222, 255, 0.5);
}

.card-activity {
  border-radius: 1.5rem !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #f4fbff;
}

.card-course {
  background: #ffffff;
  border: 2px solid rgba(185, 222, 255, 0.75) !important;
  box-shadow: 0 10px 24px rgba(123, 97, 255, 0.12) !important;
  position: relative;
  overflow: hidden;
}

.card-course::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, #e85d75, #ffd400, #8fe4d4);
}

.card-course:hover {
  transform: translateY(-8px) rotate(-0.4deg) scale(1.015);
  box-shadow: 0 18px 34px rgba(123, 97, 255, 0.2) !important;
}

.card-course .display-4 {
  animation: course-emoji-bob 2.4s ease-in-out infinite;
}

.card-course h2 {
  color: #4e4680;
}

.card-course .btn-cta {
  box-shadow: 0 8px 18px rgba(232, 93, 117, 0.35);
}

@keyframes course-emoji-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

.card-activity:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 30px rgba(185, 222, 255, 0.45) !important;
}

.activity-photo {
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.about-photo {
  max-height: 260px;
  object-fit: cover;
}

.index-hero .card,
.index-hero .about-photo {
  height: 100%;
}

.index-hero .about-photo {
  min-height: 420px;
  max-height: none;
}

.index-hero {
  padding-top: 2.5rem !important;
  padding-bottom: 3.5rem !important;
}

.index-hero .card {
  background: transparent;
  border: none !important;
  box-shadow: none !important;
}

.playful-mask {
  border-radius: 42% 58% 48% 52% / 58% 38% 62% 42%;
  clip-path: polygon(
    8% 12%, 21% 4%, 36% 9%, 49% 2%, 66% 7%, 82% 3%, 95% 14%,
    98% 31%, 92% 45%, 100% 60%, 94% 76%, 85% 91%, 68% 97%,
    52% 92%, 35% 100%, 19% 94%, 6% 82%, 3% 65%, 0% 49%,
    5% 32%, 2% 21%
  );
  border: 8px solid rgba(255, 212, 0, 0.5);
  box-shadow:
    0 24px 44px rgba(123, 97, 255, 0.24),
    0 0 0 10px rgba(143, 228, 212, 0.24);
  transform: rotate(-2.4deg);
}

.gallery-card img {
  display: block;
  object-fit: cover;
  height: 180px;
  transition: transform 0.35s ease;
}

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

.cta-banner {
  background: #b9deff;
  border: 4px solid #fff;
  border-radius: 2rem !important;
}

.card-blog {
  border-radius: 1rem !important;
}

.card-blog.position-relative {
  position: relative;
}

.blog-placeholder {
  height: 200px;
  background: #e6ddff;
}

.object-cover {
  object-fit: cover;
}

.footer-kids {
  background: #6f65a3;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.01em;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
  position: relative;
  overflow: hidden;
}

.footer-kids .container {
  position: relative;
  z-index: 1;
}

.footer-kids p {
  margin-bottom: 0.45rem !important;
}

.footer-kids .fw-semibold {
  font-size: 1.05rem;
  font-weight: 700 !important;
  color: #fff;
}

.footer-kids .small {
  color: rgba(255, 255, 255, 0.78) !important;
}

.footer-balloon {
  width: clamp(96px, 12vw, 150px);
  height: auto;
  object-fit: contain;
  animation: index-logo-float 3.6s ease-in-out infinite;
  transform-origin: center;
}

.footer-balloon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 0.9rem !important;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.footer-logo-fallback {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 700;
  color: #3f3a63 !important;
  padding: 0.45rem 0.8rem;
}

.footer-balloon-link:hover {
  background: #ffffff !important;
  border-bottom-color: transparent !important;
  transform: translateY(-1px);
}

.footer-kids a {
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
}

.footer-kids a:hover {
  color: #fff !important;
  border-bottom-color: rgba(255, 255, 255, 0.65);
  background-color: rgba(185, 222, 255, 0.28);
  transform: translateY(-1px);
}

.footer-kids::before,
.footer-kids::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
}

.footer-kids::before {
  background: rgba(185, 222, 255, 0.2);
  top: -70px;
  left: -70px;
}

.footer-kids::after {
  background: rgba(143, 228, 212, 0.24);
  bottom: -80px;
  right: -80px;
}

.pagination .page-link {
  border-radius: 50rem !important;
  border: none;
  color: #5c4d7d;
}

.pagination .page-item.active .page-link {
  background: var(--kid-coral);
  color: #fff;
}

.post-body {
  line-height: 1.75;
}

.post-image-grid {
  object-fit: cover;
  max-height: 340px;
}

.post-carousel-image {
  width: 100%;
  height: min(62vh, 520px);
  object-fit: cover;
}

#reviewsCarousel .carousel-control-prev-icon,
#reviewsCarousel .carousel-control-next-icon {
  filter: invert(23%) sepia(14%) saturate(1383%) hue-rotate(216deg) brightness(90%) contrast(89%);
}

#reviewsCarousel .carousel-control-prev,
#reviewsCarousel .carousel-control-next {
  width: 6%;
}

#reviewsCarousel .carousel-indicators [data-bs-target] {
  background-color: #cfc2f7;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  background: #fff9e8;
  border: 2px solid rgba(255, 212, 0, 0.65);
  border-radius: 1.2rem;
  box-shadow: 0 14px 28px rgba(91, 60, 196, 0.18);
  animation: cookie-pop 0.5s ease-out;
}

.cookie-banner__content {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.1rem;
}

.cookie-banner p {
  margin: 0;
  color: #4e4680;
  font-size: 0.95rem;
  font-weight: 600;
}

.cookie-banner a {
  color: #5b3cc4 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner #cookieReject {
  border-radius: 999px;
  border: 1px solid rgba(63, 58, 99, 0.25);
  color: #4e4680;
  background: #ffffff;
}

.cookie-banner #cookieAccept {
  border-radius: 999px;
  background: #ffd400;
  border-color: #ffd400;
  color: #5b3cc4;
  font-weight: 700;
}

.cookie-banner #cookieAccept:hover {
  background: #f7cc00;
  border-color: #f7cc00;
  color: #4c2fb1;
}

@keyframes cookie-pop {
  0% { transform: translateY(16px) scale(0.96); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@media (max-width: 991.98px) {
  .navbar-kids .navbar-collapse {
    padding-top: 0.5rem;
    padding-bottom: 0.3rem;
  }

  .navbar-kids .navbar-nav {
    gap: 0.25rem;
  }

  .navbar-kids .nav-link,
  .navbar-kids .btn-cta {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-photo {
    max-height: 280px;
  }

  .about-photo,
  .activity-photo {
    max-height: 220px;
    height: auto;
  }

  .index-hero .about-photo {
    min-height: 280px;
  }

  .index-hero {
    padding-top: 1.5rem !important;
    padding-bottom: 2.25rem !important;
  }

  .playful-mask {
    clip-path: polygon(
      9% 13%, 22% 6%, 37% 10%, 50% 4%, 67% 8%, 82% 5%, 94% 15%,
      97% 32%, 92% 45%, 98% 59%, 93% 75%, 84% 89%, 68% 95%,
      53% 91%, 37% 98%, 21% 93%, 8% 82%, 5% 66%, 2% 51%,
      7% 36%, 4% 22%
    );
    border-width: 6px;
    transform: rotate(-1.8deg);
  }

  .post-carousel-image {
    height: min(48vh, 360px);
  }

  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-kids .row > [class*="col-"] {
    text-align: center !important;
  }

  .footer-balloon-link {
    margin: 0.35rem auto;
  }

  .footer-kids p {
    overflow-wrap: anywhere;
  }

}

@media (max-width: 575.98px) {
  .btn-cta {
    width: 100%;
  }

  .card-body {
    padding: 1rem !important;
  }

  h1,
  .display-5 {
    font-size: clamp(1.6rem, 8vw, 2.1rem) !important;
  }

  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
