/* ==========================================================================
   CIRCLE OF TODDLERS - MASTER STYLESHEET
   Authentic Childhood Storybook Elementor Theme Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Love+Ya+Like+A+Sister&family=Nunito:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,400&family=Patrick+Hand&family=Shadows+Into+Light+Two&display=swap');

/* --------------------------------------------------------------------------
   CSS Custom Properties (Theme Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Primary Theme Colors matching reference Elementor Kit */
  --color-sky-bg: #D5E6E9;
  --color-sky-light: #EBF4F5;
  --color-sky-pale: #F3F9FA;
  --color-linen-bg: #F0EFE6;
  --color-parchment: #FAF8F3;
  --color-white: #FFFFFF;
  
  /* Accent & Ribbon Colors */
  --color-ribbon: #D9BA7C;
  --color-ribbon-dark: #C2A874;
  --color-ribbon-light: #EACE97;
  --color-gold-text: #5F4F03;
  --color-gold-deep: #332C21;
  
  /* Meadow Green Accents */
  --color-green-primary: #959F54;
  --color-green-light: #A1B567;
  --color-green-pale: #E7EED0;
  --color-green-dark: #6C7436;

  /* Playful Pastel Accents */
  --color-coral: #E67E51;
  --color-coral-light: #FF9B71;
  --color-yellow: #F4B243;
  --color-yellow-pale: #FFF4D2;
  --color-teal: #4B9CD3;
  --color-purple: #9D79BC;
  
  /* Neutral Typography Colors */
  --color-text-main: #5D584F;
  --color-text-heading: #8D877D;
  --color-text-muted: #8D877D;
  --color-text-sub: #B1966B;
  --color-border: #E5DFD3;
  
  /* Typography Families */
  --font-heading: 'Love Ya Like A Sister', cursive, 'Comic Sans MS', sans-serif;
  --font-script: 'Patrick Hand', 'Shadows Into Light Two', cursive, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-fun: 'Fredoka', 'Nunito', sans-serif;

  /* Shadows & Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-blob: 60% 40% 50% 50% / 50% 60% 40% 50%;
  --shadow-soft: 0 10px 25px rgba(93, 88, 79, 0.08);
  --shadow-card: 0 8px 20px rgba(141, 135, 125, 0.12);
  --shadow-lift: 0 14px 28px rgba(93, 88, 79, 0.16);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-parchment);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Typography Components
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  font-weight: normal;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

.section-script-subtitle {
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--color-text-sub);
  letter-spacing: 1px;
  margin-bottom: 4px;
  display: inline-block;
}

.section-main-title {
  font-size: 2.8rem;
  color: var(--color-text-heading);
  text-transform: capitalize;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .section-main-title {
    font-size: 2.1rem;
  }
}

.section-divider-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 28px;
}

.section-divider-dot img {
  height: 16px;
  width: auto;
  opacity: 0.85;
}

.lead-text {
  font-size: 1.05rem;
  color: var(--color-text-main);
  max-width: 680px;
  margin: 0 auto 20px;
}

/* --------------------------------------------------------------------------
   Buttons & Badges
   -------------------------------------------------------------------------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-ribbon);
  color: var(--color-gold-text);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: capitalize;
  padding: 12px 28px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(217, 186, 124, 0.4);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-gold:hover {
  background-color: var(--color-ribbon-light);
  color: var(--color-gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(217, 186, 124, 0.55);
}

.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--color-green-primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 1px;
  padding: 12px 28px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(149, 159, 84, 0.35);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-green:hover {
  background-color: var(--color-green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(149, 159, 84, 0.45);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--color-text-main);
  border: 2px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding: 11px 24px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--color-ribbon);
  background-color: #FFFFFF;
  color: var(--color-gold-deep);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Top Bar (Emergency Info / Phone / Hours)
   -------------------------------------------------------------------------- */
.top-announcement-bar {
  background-color: #C8DCDE;
  color: #3E494B;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  letter-spacing: 0.2px;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .top-bar-hide-mobile {
    display: none !important;
  }
  .top-bar-content {
    justify-content: space-between;
    font-size: 0.82rem;
    gap: 6px;
  }
  .top-bar-left, .top-bar-right {
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   Storybook Header Banner (Authentic Illustrated Childhood Look)
   -------------------------------------------------------------------------- */
.storybook-header-wrapper {
  position: relative;
  background-color: var(--color-sky-bg);
  background-image: radial-gradient(circle at 50% 20%, #E2F0F2 0%, var(--color-sky-bg) 100%);
  padding-top: 25px;
  padding-bottom: 55px;
  min-height: 380px;
  overflow: hidden;
}

/* Illustration positioned on the left: smiling sun, hill, houses */
.header-art-left {
  position: absolute;
  bottom: -14px;
  left: 0;
  width: clamp(550px, 46vw, 760px);
  max-width: 50vw;
  pointer-events: none;
  z-index: 1;
  animation: floatSubtle 6s ease-in-out infinite alternate;
}

/* Illustration positioned on the right: storybook treehouse with swinging kids */
.header-art-right {
  position: absolute;
  top: -15px;
  right: 0;
  width: clamp(960px, 70vw, 1180px);
  max-width: 74vw;
  pointer-events: none;
  z-index: 1;
}

.header-tree-stage {
  aspect-ratio: 1823 / 914;
}

.header-tree-base {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* Playground Swing Motion: realistic pendulum oscillation anchored to tree branch */
.header-swing-wrap {
  position: absolute;
  left: 23.587%;
  top: 19.146%;
  width: 17.334%;
  height: 36.214%;
  transform-origin: 68% 0%;
  animation: swingPendulum 3.4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

.header-swing-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

@keyframes swingPendulum {
  0% {
    transform: rotate(8.5deg);
  }
  50% {
    transform: rotate(-7deg);
  }
  100% {
    transform: rotate(8.5deg);
  }
}

/* Girl in tree trunk hollow gently swinging / swaying */
.header-trunk-girl-wrap {
  position: absolute;
  left: 46.846%;
  top: 38.293%;
  width: 8.502%;
  height: 14.551%;
  transform-origin: 50% 95%;
  animation: trunkGirlSwing 3.2s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

.header-trunk-girl-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

@keyframes trunkGirlSwing {
  0% {
    transform: rotate(5.5deg);
  }
  50% {
    transform: rotate(-5.5deg);
  }
  100% {
    transform: rotate(5.5deg);
  }
}


/* Floating Hot Air Balloon / Bird decor */
.header-art-balloon {
  position: absolute;
  top: 30px;
  left: 33%;
  width: clamp(55px, 4.5vw, 75px);
  z-index: 2;
  animation: floatBalloon 7s ease-in-out infinite alternate;
}

.header-art-birds {
  position: absolute;
  top: 38px;
  left: 39%;
  right: auto;
  width: clamp(75px, 5.8vw, 98px);
  z-index: 2;
  animation: floatSubtle 5s ease-in-out infinite;
}

@keyframes floatSubtle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@keyframes floatBalloon {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-16px) rotate(2deg); }
}

/* Cloud Container with Circle Of Toddlers Logo (Positioned on Left side near the Sun) */
.header-cloud-left-area {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-left: clamp(85px, 8.5vw, 150px);
  padding-right: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 25px;
}

.logo-cloud-card {
  position: relative;
  width: clamp(280px, 22vw, 330px);
  height: clamp(175px, 14vw, 210px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../assets/cloud-white-whole.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.08));
  transition: transform var(--transition-normal);
  padding: 8px 12px;
}

.logo-cloud-card:hover {
  transform: scale(1.03);
}

.logo-cloud-card img {
  width: auto;
  height: 86%;
  max-width: 88%;
  max-height: 86%;
  object-fit: contain;
}

@media (max-width: 991px) and (min-width: 769px) {
  .storybook-header-wrapper {
    min-height: 330px;
    padding-top: 20px;
    padding-bottom: 45px;
  }
  .header-art-left {
    width: 460px;
    max-width: 48vw;
    bottom: -12px;
  }
  .header-art-right {
    width: 760px;
    max-width: 74vw;
  }
  .logo-cloud-card {
    width: 300px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .storybook-header-wrapper {
    min-height: 175px;
    padding-top: 10px;
    padding-bottom: 22px;
    overflow: hidden;
    position: relative;
  }
  .header-cloud-left-area {
    justify-content: flex-start;
    padding-left: clamp(18px, 6vw, 36px);
    padding-right: 0;
    margin-bottom: 0;
    z-index: 5;
  }
  .header-art-left {
    height: clamp(140px, 40vw, 175px);
    width: auto;
    max-width: none;
    top: auto;
    bottom: -6px;
    left: -15px;
    opacity: 1;
    display: block;
    z-index: 1;
  }
  .header-art-right {
    width: clamp(340px, 88vw, 420px);
    max-width: none;
    top: auto;
    bottom: -6px;
    right: -25px;
    opacity: 1;
    display: block;
    z-index: 2;
  }
  /* Swing Kids in phone view: anchored precisely to tree branch with clear visibility away from cloud logo */
  .header-tree-stage .header-swing-wrap {
    left: 23.587%;
    top: 19.146%;
    width: 17.334%;
    height: 36.214%;
    z-index: 6;
  }
  .header-art-balloon {
    display: block;
    position: absolute;
    top: 14px;
    left: 27%;
    width: clamp(26px, 6.5vw, 34px);
    z-index: 3;
    animation: floatBalloon 7s ease-in-out infinite alternate;
  }
  .header-art-birds {
    display: none;
  }
  .logo-cloud-card {
    width: clamp(130px, 32vw, 148px);
    height: clamp(86px, 21vw, 98px);
    padding: 3px 5px;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.1));
  }
  .logo-cloud-card img {
    height: 86%;
    max-width: 88%;
    max-height: 86%;
  }
}

@media (max-width: 480px) {
  .storybook-header-wrapper {
    min-height: 155px;
    padding-top: 8px;
    padding-bottom: 18px;
  }
  .header-cloud-left-area {
    padding-left: 14px;
  }
  .header-art-left {
    height: clamp(125px, 36vw, 150px);
    left: -12px;
  }
  .header-art-right {
    width: clamp(310px, 86vw, 360px);
    right: -20px;
  }
  .logo-cloud-card {
    width: clamp(120px, 30vw, 138px);
    height: clamp(80px, 20vw, 92px);
    padding: 2px 4px;
  }
}

/* Mountain / Wave divider at bottom of header */
.header-bottom-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 22px;
  background-repeat: repeat-x;
  background-position: bottom;
  pointer-events: none;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   Ribbon Navigation Bar (Authentic Elementor Texture & Endpoints)
   -------------------------------------------------------------------------- */
.ribbon-nav-wrapper {
  position: relative;
  z-index: 10;
  margin-top: -24px; /* Slight overlap over header */
  margin-bottom: 10px;
}

.ribbon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  max-width: 1080px;
  margin: 0 auto;
}

/* Ribbon Left Swallowtail End */
.ribbon-left {
  width: 80px;
  height: 68px;
  background: url('../assets/menu-left.png') no-repeat top right / contain;
  flex-shrink: 0;
}

/* Ribbon Center (Repeating texture) */
.ribbon-center {
  flex: 1;
  height: 68px;
  background: url('../assets/menu-tile.png') repeat-x top left / auto 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

/* Ribbon Right Swallowtail End */
.ribbon-right {
  width: 80px;
  height: 68px;
  background: url('../assets/menu-right.png') no-repeat top left / contain;
  flex-shrink: 0;
}

.ribbon-menu-list {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.ribbon-menu-item a {
  font-family: var(--font-heading);
  font-size: 1.22rem; /* Enhanced text size for clear readability */
  color: #554C40;
  letter-spacing: 1.2px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
  padding: 4px 8px;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.ribbon-menu-item a:hover,
.ribbon-menu-item.active a {
  color: #1F170E;
  transform: translateY(-1px);
}

.ribbon-menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-gold-deep);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.ribbon-menu-item a:hover::after,
.ribbon-menu-item.active a::after {
  width: 80%;
}

.ribbon-cta {
  display: flex;
  align-items: center;
}

.ribbon-cta-btn {
  background-color: var(--color-green-primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 7px 18px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.ribbon-cta-btn:hover {
  background-color: var(--color-green-light);
  transform: scale(1.04);
}

/* Mobile Hamburger Toggle & Quick Ribbon Action */
.mobile-ribbon-actions {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  color: var(--color-gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.mobile-ribbon-tour-btn {
  background-color: var(--color-green-primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.mobile-ribbon-tour-btn:hover {
  background-color: var(--color-green-light);
}

/* Mobile Drawer */
.mobile-menu-drawer {
  display: none;
  background-color: var(--color-parchment);
  border-bottom: 3px solid var(--color-ribbon);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.mobile-menu-drawer.open {
  display: block;
}

.mobile-menu-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu-drawer a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text-heading);
}

.mobile-menu-drawer .btn-gold {
  margin-top: 10px;
  width: 100%;
}

.mobile-ribbon-brand-title {
  display: none;
}

@media (max-width: 991px) {
  .ribbon-menu-list, .ribbon-cta {
    display: none;
  }
  .mobile-ribbon-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .ribbon-center {
    justify-content: center;
    padding: 0 12px;
  }
}

@media (max-width: 600px) {
  .ribbon-nav-wrapper {
    margin-top: -18px;
    margin-bottom: 4px;
  }
  .ribbon-container {
    height: 48px;
  }
  .ribbon-left, .ribbon-right {
    width: 36px;
    height: 48px;
  }
  .ribbon-center {
    height: 48px;
    background-size: auto 48px;
    padding: 0 8px;
  }
  .mobile-nav-toggle {
    font-size: 0.95rem;
    padding: 3px 6px;
  }
  .mobile-nav-toggle svg {
    width: 18px;
    height: 18px;
  }
}

/* --------------------------------------------------------------------------
   Header Brand Title Strip (Directly beneath Ribbon on Desktop)
   -------------------------------------------------------------------------- */
.header-brand-title-strip {
  background-color: var(--color-parchment);
  padding: 30px 20px 10px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.header-brand-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  color: #71695C;
  letter-spacing: 1.2px;
  line-height: 1.15;
  margin: 0;
  font-weight: normal;
}

@media (max-width: 768px) {
  /* Hide separate title strip on phone view to eliminate vertical gap */
  .header-brand-title-strip {
    display: none;
  }
  
  /* Display Circle Of Toddlers inside the brown ribbon to the right of Menu */
  .mobile-ribbon-brand-title {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: clamp(1.12rem, 4vw, 1.35rem);
    color: #4A3E31;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
    font-weight: normal;
    padding-right: 4px;
    transition: color var(--transition-fast);
  }

  .mobile-ribbon-brand-title:hover {
    color: #1F170E;
  }

  .mobile-ribbon-tour-btn {
    display: none; /* Replaced by Circle Of Toddlers title in the brown box */
  }

  .mobile-ribbon-actions {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .mobile-ribbon-brand-title {
    font-size: 1.15rem;
    letter-spacing: 0.5px;
  }
}

/* --------------------------------------------------------------------------
   Hero Section ("Welcome To ChildHood" - Elementor Storybook Campus Edition)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 16px 0 45px;
  background-color: var(--color-parchment);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr;
  align-items: center;
  gap: 28px;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
}

.hero-welcome-script {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: #9B9479;
  line-height: 1.15;
  margin-bottom: 0px;
}

.hero-childhood-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  color: #71695C;
  line-height: 1.04;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  font-weight: normal;
}

.hero-taglines-pipe {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #8EA455;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hero-taglines-pipe .pipe-sep {
  color: #B5C48C;
  font-weight: 300;
  user-select: none;
}

.hero-description {
  font-family: var(--font-body);
  font-size: clamp(0.96rem, 1.15vw, 1.04rem);
  color: #8E887E;
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: 18px;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

/* Elementor Sand/Kraft button matching mockup */
.btn-elementor-sand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #D4B87E;
  color: #5C4827;
  font-family: var(--font-heading);
  font-size: 1.12rem;
  letter-spacing: 0.8px;
  text-transform: capitalize;
  padding: 9px 26px;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(195, 165, 110, 0.35);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-elementor-sand:hover {
  background-color: #C6A769;
  color: #382A12;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(195, 165, 110, 0.5);
}

/* --------------------------------------------------------------------------
   Childhood Visual Stage (Organic Blob, COT Architectural Sketch & Cute Animated Decor)
   -------------------------------------------------------------------------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px;
}

.childhood-stage-wrapper {
  position: relative;
  width: 100%;
  max-width: 530px;
  margin: 0 auto;
}

/* Organic Warm Blob Backdrop behind the building */
.childhood-blob-backdrop {
  position: absolute;
  inset: -14px -20px -20px -26px;
  background: linear-gradient(135deg, #F8EDE0 0%, #F4E5D4 100%);
  border-radius: 56% 44% 48% 52% / 52% 56% 44% 48%;
  z-index: 1;
  pointer-events: none;
  animation: blobSubtleMorph 9s ease-in-out infinite alternate;
}

@keyframes blobSubtleMorph {
  0% {
    border-radius: 56% 44% 48% 52% / 52% 56% 44% 48%;
    transform: scale(1);
  }
  50% {
    border-radius: 48% 52% 55% 45% / 55% 46% 54% 45%;
    transform: scale(1.018);
  }
  100% {
    border-radius: 53% 47% 43% 57% / 47% 53% 47% 53%;
    transform: scale(1);
  }
}

/* Architectural Pencil Sketch Card of Circle Of Toddlers Campus (Matching reference photo frame) */
.childhood-building-sketch {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  border: 4px solid #FFFFFF;
  box-shadow: 0 12px 28px rgba(120, 105, 90, 0.16);
  transition: transform var(--transition-normal);
  image-rendering: -webkit-optimize-contrast;
}

.childhood-building-sketch:hover {
  transform: translateY(-2px);
}

/* Floating Animated Smiling Clouds & Bird (Top-Left of Building) */
.childhood-clouds-wrap {
  position: absolute;
  top: -24px;
  left: -26px;
  width: clamp(140px, 19vw, 205px);
  z-index: 3;
  pointer-events: none;
  animation: floatCloudsAnim 5.5s ease-in-out infinite alternate;
}

.childhood-clouds-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(140, 155, 170, 0.18));
}

@keyframes floatCloudsAnim {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.8deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Animated Schoolgirl with Glasses & Backpack (Positioned at bottom-right corner clear of facade text) */
.childhood-girl-wrap {
  position: absolute;
  bottom: -30px;
  right: -16px;
  width: clamp(135px, 16vw, 190px);
  z-index: 4;
  pointer-events: none;
  animation: girlIdleAnim 4.6s ease-in-out infinite alternate;
}

.childhood-girl-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(110, 95, 80, 0.2));
}

@keyframes girlIdleAnim {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(1.4deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries for Hero Section
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .hero-taglines-pipe,
  .hero-actions {
    justify-content: center;
  }
  .hero-description {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 14px;
  }
  .childhood-stage-wrapper {
    max-width: 440px;
    margin: 10px auto 20px;
  }
  .childhood-girl-wrap {
    bottom: -28px;
    right: -24px;
    width: 145px;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 6px 0 20px;
  }
  .hero-grid {
    gap: 10px;
  }
  .hero-content {
    padding: 0 4px;
  }
  .hero-welcome-script {
    font-size: 1.2rem;
    margin-bottom: 0px;
    line-height: 1.15;
  }
  .hero-childhood-title {
    font-size: clamp(2rem, 7vw, 2.45rem);
    margin-bottom: 4px;
    line-height: 1.05;
  }
  .hero-taglines-pipe {
    font-size: 0.94rem;
    gap: 6px;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
  }
  .hero-description {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 12px;
    padding: 0 4px;
    max-width: min(94vw, 500px);
  }
  .hero-actions {
    margin-bottom: 4px;
  }
  .btn-elementor-sand {
    width: auto;
    min-width: 160px;
    max-width: 220px;
    padding: 8px 22px;
    font-size: 1rem;
  }
  .hero-visual {
    padding: 6px 4px 14px;
  }
  .childhood-stage-wrapper {
    max-width: 320px;
    margin: 4px auto 14px;
  }
  .childhood-clouds-wrap {
    top: -18px;
    left: -12px;
    width: 100px;
  }
  .childhood-girl-wrap {
    bottom: -20px;
    right: -12px;
    width: 100px;
  }
  .childhood-blob-backdrop {
    inset: -8px -10px -10px -12px;
  }
}

@media (max-width: 380px) {
  .hero-childhood-title {
    font-size: 1.95rem;
  }
  .hero-description {
    font-size: 0.88rem;
    line-height: 1.4;
    max-width: 100%;
    margin-bottom: 10px;
  }
  .childhood-stage-wrapper {
    max-width: 275px;
  }
  .childhood-clouds-wrap {
    width: 85px;
    top: -15px;
    left: -8px;
  }
  .childhood-girl-wrap {
    width: 90px;
    bottom: -16px;
    right: -8px;
  }
}

/* --------------------------------------------------------------------------
   Key Feature Cards (3 Pillars / The Circle Experience)
   -------------------------------------------------------------------------- */
.pillars-section {
  position: relative;
  padding: 60px 0 80px;
  background-color: var(--color-linen-bg);
  background-image: radial-gradient(circle at 10% 20%, #FAF8F3 0%, var(--color-linen-bg) 100%);
}

/* Decorative backdrop illustrations matching demo */
.pillars-bg-tree-left {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 320px;
  max-width: 25vw;
  pointer-events: none;
  opacity: 0.95;
  z-index: 1;
}

.pillars-bg-girl-cat {
  position: absolute;
  bottom: 10px;
  left: 40px;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.pillars-bg-flowers-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 280px;
  max-width: 25vw;
  pointer-events: none;
  z-index: 1;
}

.pillars-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(229, 223, 211, 0.9);
  border-radius: 12px;
  padding: 40px 30px 35px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(141, 135, 125, 0.08);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pillar-card:hover {
  transform: translateY(-8px);
  background: #FFFFFF;
  box-shadow: var(--shadow-lift);
}

.pillar-icon-box {
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-parchment);
  border: 2px dashed var(--color-border);
  transition: transform var(--transition-fast);
}

.pillar-card:hover .pillar-icon-box {
  transform: scale(1.1) rotate(4deg);
  border-color: var(--color-ribbon);
}

.pillar-icon-box img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.pillar-title {
  font-size: 1.65rem;
  color: var(--color-text-heading);
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 0.98rem;
  color: var(--color-text-main);
  line-height: 1.65;
  margin-bottom: 16px;
}

.pillar-card-divider {
  width: 60px;
  height: 8px;
  margin-top: auto;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pillars-section {
    padding: 45px 0 55px;
  }
  .pillars-bg-tree-left,
  .pillars-bg-girl-cat,
  .pillars-bg-flowers-right {
    display: none !important;
  }
  .pillar-card {
    padding: 28px 20px 24px;
  }
  .pillar-icon-box {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
  }
  .pillar-icon-box img {
    width: 40px;
    height: 40px;
  }
  .pillar-title {
    font-size: 1.45rem;
  }
}

/* --------------------------------------------------------------------------
   Age-Group Programs Section ("Our Learning Circles")
   -------------------------------------------------------------------------- */
.programs-section {
  position: relative;
  padding: 70px 0 85px;
  background-color: var(--color-parchment);
}

/* Playful garland / bunting across top */
.bunting-garland {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  overflow: hidden;
}

.bunting-flags {
  display: flex;
  gap: 12px;
}

.bunting-flag {
  width: 24px;
  height: 28px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.flag-coral { background: #FF7E67; }
.flag-yellow { background: #FDB833; }
.flag-green { background: #959F54; }
.flag-teal { background: #48C0D8; }
.flag-purple { background: #B1966B; }

/* Interactive Age Finder Filter */
.age-calculator-widget {
  background: #FFFFFF;
  border: 2px dashed var(--color-ribbon);
  border-radius: 14px;
  padding: 20px 28px;
  max-width: 780px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.age-calc-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.age-calc-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.age-pill-btn {
  background: var(--color-parchment);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.age-pill-btn:hover,
.age-pill-btn.active {
  background: var(--color-green-primary);
  color: #FFFFFF;
  border-color: var(--color-green-primary);
}

/* 4 Column Programs Grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 223, 211, 0.8);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

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

.program-card-thumb-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.program-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.program-age-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-gold-deep);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.program-card-body {
  padding: 22px 18px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.program-card-title {
  font-size: 1.35rem;
  color: var(--color-text-heading);
  margin-bottom: 8px;
}

.program-card-desc {
  font-size: 0.92rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.program-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--color-green-primary);
  font-weight: 700;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
}

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

@media (max-width: 768px) {
  .programs-section {
    padding: 45px 0 60px;
  }
  .age-calculator-widget {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 14px;
    gap: 12px;
  }
  .age-calc-title {
    justify-content: center;
    font-size: 1.15rem;
  }
  .age-calc-pills {
    justify-content: center;
    gap: 6px;
  }
  .age-pill-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  .programs-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 20px;
  }
  .program-card-thumb-wrap {
    height: 190px;
  }
}

/* --------------------------------------------------------------------------
   "Life at Circle Of Toddlers" (Featured Story Cards & News)
   -------------------------------------------------------------------------- */
.centre-news-section {
  position: relative;
  padding: 70px 0 85px;
  background-color: var(--color-linen-bg);
}

.centre-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 25px;
}

.news-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 223, 211, 0.8);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

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

.news-card-img-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.news-card-content {
  padding: 26px 22px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.news-card-title {
  font-size: 1.55rem;
  color: var(--color-text-heading);
  margin-bottom: 8px;
}

.news-card-divider {
  width: 60px;
  margin: 6px auto 14px;
  opacity: 0.7;
}

.news-card-text {
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.65;
  margin-bottom: 22px;
  flex: 1;
}

.news-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-ribbon);
  color: var(--color-gold-text);
  font-family: var(--font-heading);
  font-size: 1rem;
  padding: 9px 24px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.news-read-more-btn:hover {
  background-color: var(--color-ribbon-light);
  color: var(--color-gold-deep);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .centre-news-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Daily Routine / Timetable Tabs Section
   -------------------------------------------------------------------------- */
.schedule-section {
  position: relative;
  padding: 60px 0 80px;
  background-color: var(--color-parchment);
}

.schedule-card-wrapper {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 35px 30px;
  max-width: 960px;
  margin: 30px auto 0;
}

.schedule-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.schedule-tab-btn {
  background: var(--color-linen-bg);
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  padding: 10px 22px;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.schedule-tab-btn.active,
.schedule-tab-btn:hover {
  background: var(--color-ribbon);
  color: var(--color-gold-deep);
}

.timetable-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timetable-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: var(--color-parchment);
  border-radius: 10px;
  border-left: 5px solid var(--color-green-primary);
  transition: background var(--transition-fast);
}

.timetable-row:hover {
  background: #F5F1E9;
}

.timetable-time {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-gold-deep);
}

.timetable-activity {
  font-weight: 700;
  color: var(--color-text-heading);
  font-size: 1.05rem;
}

.timetable-detail {
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.timetable-badge {
  background: var(--color-green-pale);
  color: var(--color-green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .schedule-section {
    padding: 45px 0 55px;
  }
  .schedule-card-wrapper {
    padding: 22px 14px;
    margin-top: 20px;
  }
  .schedule-tabs-nav {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }
  .schedule-tab-btn {
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    font-size: 1rem;
  }
  .timetable-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px 14px;
  }
  .timetable-time {
    color: var(--color-gold-deep);
    font-size: 1.05rem;
  }
  .timetable-badge {
    display: inline-block;
    margin-top: 4px;
  }
}

/* --------------------------------------------------------------------------
   Call to Action / Enrolment Banner ("Now Taking Enrolments")
   -------------------------------------------------------------------------- */
.enrolment-cta-section {
  position: relative;
  padding: 90px 0;
  background: url('../assets/summer-trees-pattern.jpg') no-repeat center center / cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.enrolment-cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(85, 78, 68, 0.45);
}

.enrolment-parchment-card {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 50px 40px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.enrolment-parchment-card .section-script-subtitle {
  color: var(--color-text-sub);
}

.enrolment-parchment-card .section-main-title {
  margin-bottom: 14px;
}

.enrolment-parchment-card p {
  color: var(--color-text-main);
  font-size: 1.05rem;
  margin-bottom: 26px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .enrolment-cta-section {
    padding: 55px 0;
    background-attachment: scroll;
  }
  .enrolment-parchment-card {
    padding: 30px 18px;
  }
  .enrolment-parchment-card .section-main-title {
    font-size: 2.1rem;
  }
  .enrolment-parchment-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .enrolment-parchment-card .btn-gold {
    width: 100%;
    max-width: 290px;
  }
}

/* --------------------------------------------------------------------------
   Testimonials Section ("Words from Our Families")
   -------------------------------------------------------------------------- */
.testimonials-section {
  position: relative;
  padding: 80px 0 90px;
  background-color: var(--color-linen-bg);
  background-image: radial-gradient(circle at 50% 10%, #FFFFFF 0%, var(--color-linen-bg) 100%);
  overflow: hidden;
}

.testimonials-bg-tree-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 25vw;
  pointer-events: none;
  opacity: 0.9;
  z-index: 1;
}

.testimonials-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 35px 28px 30px;
  border: 1px solid rgba(229, 223, 211, 0.9);
  box-shadow: 0 4px 16px rgba(141, 135, 125, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  background: #FFFFFF;
  box-shadow: var(--shadow-lift);
}

.testimonial-quote-icon {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  color: var(--color-green-primary);
  line-height: 0.8;
  margin-bottom: 15px;
  opacity: 0.85;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.02rem;
  color: var(--color-text-main);
  line-height: 1.7;
  margin-bottom: 22px;
  flex: 1;
}

.testimonial-stars {
  color: #F4B243;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Interactive FAQ Accordion Section
   -------------------------------------------------------------------------- */
.faq-section {
  position: relative;
  padding: 70px 0 85px;
  background-color: var(--color-parchment);
}

.faq-accordion-wrap {
  max-width: 780px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.faq-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text-heading);
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-linen-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--color-gold-deep);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  background: var(--color-ribbon);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 24px;
  color: var(--color-text-main);
  line-height: 1.7;
}

.faq-item.active .faq-body {
  padding: 0 24px 20px;
}

/* --------------------------------------------------------------------------
   Storybook Illustrated Footer (Animated, Fit-to-Page, Reference-Accurate)
   -------------------------------------------------------------------------- */
.storybook-footer {
  position: relative;
  background-color: #D5E6E9;
  padding-top: 55px;
  padding-bottom: 0;
  color: #536164;
  overflow: hidden;
}

/* Ambient Floating Nature Animations (Butterflies & Bumblebee) */
.footer-ambient-motion {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.footer-butterfly {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
}

.footer-butterfly img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.footer-butterfly-left {
  top: 90px;
  left: 2%;
  animation: butterflyFlutter1 9s ease-in-out infinite;
}

.footer-butterfly-right {
  bottom: 160px;
  right: 5%;
  animation: butterflyFlutter2 11s ease-in-out infinite 2s;
}

.footer-bumblebee {
  position: absolute;
  width: 28px;
  height: 28px;
  bottom: 190px;
  left: 46%;
  pointer-events: none;
  animation: bumblebeeFlight 12s ease-in-out infinite;
}

.footer-bumblebee img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

@keyframes butterflyFlutter1 {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.9); }
  25% { transform: translate(35px, -25px) rotate(12deg) scale(1.05); }
  50% { transform: translate(15px, -45px) rotate(-8deg) scale(0.95); }
  75% { transform: translate(45px, -15px) rotate(15deg) scale(1.02); }
  100% { transform: translate(0, 0) rotate(0deg) scale(0.9); }
}

@keyframes butterflyFlutter2 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  30% { transform: translate(-30px, -35px) rotate(-14deg) scale(0.92); }
  60% { transform: translate(-10px, -60px) rotate(10deg) scale(1.08); }
  85% { transform: translate(-40px, -20px) rotate(-6deg) scale(0.95); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

@keyframes bumblebeeFlight {
  0% { transform: translate(0, 0) scaleX(1); }
  25% { transform: translate(40px, -20px) scaleX(1); }
  50% { transform: translate(75px, -10px) scaleX(-1); }
  75% { transform: translate(25px, -35px) scaleX(-1); }
  100% { transform: translate(0, 0) scaleX(1); }
}

/* Full-Width Storybook Ground Scene */
.footer-ground-panorama {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 270px;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.pano-ground-tile {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 270px;
  background: url('../assets/footer-tile.png') repeat-x bottom center / auto 270px;
}

.pano-scene-left {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 544px;
  height: 270px;
  background: url('../assets/footer-left-clean.png?v=5.0') no-repeat bottom left / contain;
}

.pano-scene-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 478px;
  height: 270px;
  background: url('../assets/footer-right-clean.png?v=5.1') no-repeat bottom right / contain;
}

/* ==========================================================================
   Animated Storybook Characters (Footer Children Activities)
   ========================================================================== */
.footer-actor {
  position: absolute;
  pointer-events: auto;
  will-change: transform;
  transform-origin: bottom center;
  transition: filter 0.3s ease;
}

.footer-actor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.footer-actor:hover {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
  cursor: pointer;
}

/* --- Left Scene Characters (Mom & Babies, Dancing Girl, Wheelchair Girl) --- */
.footer-actor-mom {
  left: 33.54%;
  top: 41.58%;
  width: 23.74%;
  height: 55.09%;
  animation: momBabyRock 3.8s ease-in-out infinite;
  transform-origin: 50% 85%;
}

.footer-actor-dancing {
  left: 66.05%;
  top: 47.82%;
  width: 14.45%;
  height: 42.62%;
  animation: dancingPigtails 1.45s ease-in-out infinite;
  transform-origin: 50% 95%;
}

.footer-actor-wheelchair {
  left: 81.53%;
  top: 49.90%;
  width: 17.80%;
  height: 42.62%;
  animation: wheelchairCheer 2.4s ease-in-out infinite;
  transform-origin: 50% 90%;
}

/* --- Right Scene Characters (Jumprope Girl, Ball Girl, Horse Boy, Book Girl) --- */
.footer-actor-jumprope {
  left: 1.18%;
  top: 41.06%;
  width: 20.27%;
  height: 47.82%;
  animation: jumpRopeSkip 1.08s ease-in-out infinite;
  transform-origin: 50% 95%;
}

.footer-actor-ball {
  left: 24.68%;
  top: 52.50%;
  width: 17.33%;
  height: 39.50%;
  animation: ballPlayActivity 1.75s ease-in-out infinite;
  transform-origin: 50% 95%;
}

.footer-actor-horse {
  left: 43.48%;
  top: 53.02%;
  width: 23.50%;
  height: 37.42%;
  animation: hobbyHorseGallop 1.35s ease-in-out infinite;
  transform-origin: 45% 90%;
}

.footer-actor-book {
  left: 71.39%;
  top: 57.17%;
  width: 20.56%;
  height: 42.83%;
  animation: storybookRead 3.2s ease-in-out infinite;
  transform-origin: 75% 85%;
}

/* --- Keyframe Activities --- */

/* 1. Jumprope: Springy rhythm skipping over rope with ground bounce */
@keyframes jumpRopeSkip {
  0%, 100% {
    transform: translateY(0) scale(1, 1);
  }
  15% {
    transform: translateY(2px) scale(1.03, 0.96);
  }
  48% {
    transform: translateY(-16px) scale(0.96, 1.05) rotate(1.5deg);
  }
  74% {
    transform: translateY(-6px) scale(0.98, 1.02) rotate(-1deg);
  }
  88% {
    transform: translateY(1.5px) scale(1.04, 0.95);
  }
}

/* 2. Hobby Horse: Energetic galloping rock & trot bob */
@keyframes hobbyHorseGallop {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-9px) rotate(-4.5deg);
  }
  50% {
    transform: translateY(-4px) rotate(1deg);
  }
  75% {
    transform: translateY(1px) rotate(4deg);
  }
}

/* 3. Ball Playing: Tossing watermelon ball in air & catching with hop */
@keyframes ballPlayActivity {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(2px) rotate(-3deg);
  }
  50% {
    transform: translateY(-10px) rotate(2.5deg);
  }
  75% {
    transform: translateY(-3px) rotate(-1deg);
  }
}

/* 4. Storybook: Immersed gentle breathing sway & kicking socks happily */
@keyframes storybookRead {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  30% {
    transform: translateY(-4px) rotate(-2.5deg);
  }
  60% {
    transform: translateY(-1px) rotate(1.5deg);
  }
  80% {
    transform: translateY(-3px) rotate(-0.5deg);
  }
}

/* 5. Dancing Toddler: Joyful side-to-side pigtail dance steps */
@keyframes dancingPigtails {
  0%, 100% {
    transform: translateY(0) rotate(-6.5deg) translateX(-3px);
  }
  25% {
    transform: translateY(-8px) rotate(-1deg) translateX(0);
  }
  50% {
    transform: translateY(0) rotate(6.5deg) translateX(3px);
  }
  75% {
    transform: translateY(-8px) rotate(2deg) translateX(0);
  }
}

/* 6. Wheelchair: Rolling smoothly back and forth with friendly wave */
@keyframes wheelchairCheer {
  0%, 100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(-5px) translateY(-2px) rotate(-1.5deg);
  }
  50% {
    transform: translateX(0) translateY(-4px) rotate(0.5deg);
  }
  75% {
    transform: translateX(4px) translateY(-1px) rotate(1.5deg);
  }
}

/* 7. Mom & Babies: Soothing, tender lullaby cuddle sway */
@keyframes momBabyRock {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  35% {
    transform: translateY(-3px) rotate(0deg);
  }
  65% {
    transform: translateY(-1px) rotate(2deg);
  }
  85% {
    transform: translateY(0) rotate(0.5deg);
  }
}

.pano-rainbow-glow {
  position: absolute;
  bottom: 90px;
  left: 10px;
  width: 240px;
  height: 180px;
  background: radial-gradient(circle at 30% 65%, rgba(255, 235, 170, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  animation: rainbowShimmer 5s ease-in-out infinite alternate;
}

@keyframes rainbowShimmer {
  0% { opacity: 0.3; transform: scale(0.98); }
  100% { opacity: 0.85; transform: scale(1.04); }
}

/* Footer Content Container (Elevated Above Ground Panorama) */
.footer-content-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 215px; /* Sits nicely above children at bottom */
}

.footer-top-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 1.35fr 1.25fr;
  gap: 32px;
  align-items: start;
}

/* Brand Logo (Col 1) */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.footer-brand-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
  transition: transform var(--transition-normal);
}

.footer-brand-logo:hover {
  transform: scale(1.03);
}

/* Column Titles & Floral Dividers */
.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  color: #6C8389;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  line-height: 1.1;
}

.footer-divider-ornament {
  margin: 2px 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer-divider-ornament img {
  height: 11px;
  max-width: 130px;
  object-fit: contain;
  opacity: 0.95;
}

/* Quick Links (Col 2) */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #536164;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.link-arrow {
  color: #6C8389;
  font-size: 1.15rem;
  font-weight: 700;
  display: inline-block;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.footer-links-list a:hover {
  color: #E67E22;
}

.footer-links-list a:hover .link-arrow {
  transform: translateX(5px);
  color: #F39C12;
}

/* Enquire Now Form (Col 3) */
.footer-enquire-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-compact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.form-group-compact label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #536164;
  letter-spacing: 0.3px;
}

.form-group-compact input,
.form-group-compact textarea {
  background: #CBE0E5;
  border: 1px solid #94AFB7;
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 0.94rem;
  color: #2C3537;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  resize: vertical;
}

.form-group-compact input:focus,
.form-group-compact textarea:focus {
  border-color: #F39C12;
  background: #FFFFFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.22);
}

.form-group-compact input::placeholder,
.form-group-compact textarea::placeholder {
  color: #7B9096;
}

.form-group-submit {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.btn-enquire-send {
  background-color: #F39C12;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  padding: 7px 42px;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: all var(--transition-fast);
  animation: sendBtnBreathe 4s ease-in-out infinite;
}

@keyframes sendBtnBreathe {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 18px rgba(243, 156, 18, 0.6);
    transform: scale(1.02);
  }
}

.btn-enquire-send:hover {
  background-color: #E67E22;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(230, 126, 34, 0.55);
}

.btn-enquire-send:active {
  transform: translateY(-1px) scale(0.98);
}

/* Contact Info & Socials (Col 4) */
.footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  margin-bottom: 12px;
  color: #536164;
  line-height: 1.55;
}

.footer-contact-icon {
  font-size: 1.15rem;
  color: #6C8389;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-at-icon {
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-contact-text a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-phone-link {
  font-weight: 700;
  color: #384648;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #6C8389;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-social-btn:hover {
  background: #F39C12;
  color: #FFFFFF;
  transform: translateY(-4px) scale(1.15) rotate(4deg);
  box-shadow: 0 6px 14px rgba(243, 156, 18, 0.35);
}

.footer-social-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Copyright Sub-footer (Centered on sandy ground path) */
.footer-bottom-bar {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.82rem;
  color: #6C5B49;
  z-index: 15;
  pointer-events: auto;
  padding: 0 16px;
}

.footer-bottom-bar p {
  margin: 0;
  opacity: 0.95;
}

/* --------------------------------------------------------------------------
   Responsive Rules for Footer
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-ground-panorama {
    height: 220px;
  }
  .pano-ground-tile {
    height: 220px;
    background-size: auto 220px;
  }
  .pano-scene-left {
    width: 440px;
    height: 220px;
  }
  .pano-scene-right {
    width: 390px;
    height: 220px;
  }
  .footer-content-wrapper {
    padding-bottom: 180px;
  }
  .footer-top-columns {
    grid-template-columns: 1fr 0.85fr 1.25fr 1.15fr;
    gap: 22px;
  }
}

@media (max-width: 768px) {
  .footer-ground-panorama {
    height: 150px;
  }
  .pano-ground-tile {
    height: 150px;
    background-size: auto 150px;
  }
  .pano-scene-left {
    width: 300px;
    height: 150px;
  }
  .pano-scene-right {
    width: 260px;
    height: 150px;
  }
  .footer-content-wrapper {
    padding-bottom: 130px;
  }
  .footer-top-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-col-brand {
    align-items: center;
  }
  .footer-brand-logo {
    max-width: 200px;
  }
  .footer-butterfly,
  .footer-bumblebee,
  .footer-actor-wheelchair,
  .footer-actor-dancing,
  .footer-actor-horse,
  .footer-actor-book {
    display: none !important;
  }
  .btn-enquire-send {
    width: 100%;
    max-width: 220px;
  }
  .footer-content-wrapper {
    padding-bottom: 25px;
  }
  .footer-bottom-bar {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 25px auto 85px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(141, 135, 125, 0.35);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.82rem;
    color: #3E372E;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    max-width: 92%;
    width: 92%;
    text-align: center;
    z-index: 20;
  }
  .footer-bottom-bar p {
    margin: 0;
    font-weight: 700;
    color: #3E372E;
  }
}

@media (max-width: 480px) {
  .footer-ground-panorama {
    height: 120px;
  }
  .pano-ground-tile {
    height: 120px;
    background-size: auto 120px;
  }
  .pano-scene-left {
    width: 240px;
    height: 120px;
  }
  .pano-scene-right {
    width: 210px;
    height: 120px;
  }
  .footer-content-wrapper {
    padding-bottom: 15px;
  }
  .footer-col-title {
    font-size: 1.7rem;
  }
  .footer-bottom-bar {
    margin: 18px auto 85px;
    font-size: 0.78rem;
    padding: 10px 14px;
  }
}

/* --------------------------------------------------------------------------
   Interactive Modal (Schedule a Tour / Enrol)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45, 41, 35, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  padding: 35px 30px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  border: 4px solid var(--color-ribbon-light);
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--color-linen-bg);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-text-heading);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--color-coral);
  color: #FFFFFF;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-heading);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-parchment);
  color: var(--color-text-main);
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--color-green-primary);
  background: #FFFFFF;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #FFFFFF;
  border-left: 6px solid var(--color-green-primary);
  border-radius: 10px;
  padding: 16px 22px;
  box-shadow: var(--shadow-lift);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Floating Tour Action Button */
.floating-tour-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--color-ribbon);
  color: var(--color-gold-text);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  padding: 12px 22px;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 90;
  border: 2px solid #FFFFFF;
  transition: all var(--transition-fast);
}

.floating-tour-btn:hover {
  background: var(--color-ribbon-light);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.22);
}

.scroll-top-btn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 44px;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-heading);
  box-shadow: var(--shadow-card);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--color-linen-bg);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .modal-overlay {
    padding: 12px;
  }
  .modal-card {
    padding: 24px 18px 20px;
    max-height: 90vh;
    overflow-y: auto;
    border-width: 3px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-group {
    margin-bottom: 12px;
  }
  .modal-close-btn {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  .floating-tour-btn {
    bottom: 12px;
    right: 12px;
    padding: 7px 12px;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    border-width: 1.5px;
  }
  .scroll-top-btn {
    bottom: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
  }
  .toast-notice {
    bottom: 75px;
    right: 12px;
    left: 12px;
    padding: 12px 16px;
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   STORYBOOK RICH & VARIED SCROLL REVEAL ANIMATIONS (Body Sections Only)
   Excludes Header and Footer as requested
   ========================================================================== */

/* --- 1. Global Section Eyebrows & Handwriting Script --- */
html.js-reveal-ready main .reveal-script {
  opacity: 0;
  transform: translateY(22px) rotate(-3.5deg);
  transition: opacity 0.95s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.95s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-script.is-revealed {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* --- 2. Global Section Headings & Storybook Titles --- */
html.js-reveal-ready main .reveal-title {
  opacity: 0;
  transform: translateY(28px) scale(0.92);
  transition: opacity 1.05s cubic-bezier(0.34, 1.45, 0.64, 1), transform 1.05s cubic-bezier(0.34, 1.45, 0.64, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-title.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- 3. Hero Taglines (PLAY | LEARN | GROW) Playful Hop Bounce --- */
html.js-reveal-ready main .reveal-taglines span {
  opacity: 0;
  transform: translateY(18px) scale(0.85);
  transition: opacity 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-taglines.is-revealed span:nth-child(1) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.08s;
}
html.js-reveal-ready main .reveal-taglines.is-revealed span:nth-child(2) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.24s;
}
html.js-reveal-ready main .reveal-taglines.is-revealed span:nth-child(3) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.40s;
}
html.js-reveal-ready main .reveal-taglines.is-revealed span:nth-child(4) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.56s;
}
html.js-reveal-ready main .reveal-taglines.is-revealed span:nth-child(5) {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.72s;
}

/* --- 4. Paragraphs & Lead Subtitles --- */
html.js-reveal-ready main .reveal-desc {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.95s ease-out 0.15s, transform 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-desc.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- 5. Interactive Buttons Entrance & Subtle Living Breathing --- */
html.js-reveal-ready main .reveal-btn {
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  transition: opacity 0.9s cubic-bezier(0.34, 1.45, 0.64, 1) 0.28s, transform 0.9s cubic-bezier(0.34, 1.45, 0.64, 1) 0.28s;
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-btn.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Button Golden Breathing Pulse (Visible & Inviting) */
@keyframes ctaGoldenPulse {
  0%, 100% {
    box-shadow: 0 4px 10px rgba(195, 165, 110, 0.35);
  }
  50% {
    box-shadow: 0 6px 18px rgba(195, 165, 110, 0.65);
    transform: translateY(-2px);
  }
}

.hero-actions .btn-elementor-sand {
  animation: ctaGoldenPulse 3.5s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* --- 6. Decorative Flourish Underline Expansion --- */
html.js-reveal-ready main .reveal-divider {
  opacity: 0;
  transform: scaleX(0.4) rotate(-1deg);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-divider.is-revealed {
  opacity: 1;
  transform: scaleX(1) rotate(0deg);
}

/* ==========================================================================
   DIRECTIONAL CARD ENTRANCE ANIMATIONS (3-Card & 4-Card Sections)
   Left: slides from left | Center/Alternate: slides up | Right: slides from right
   ========================================================================== */

/* Left Card: Slide in from Left side */
html.js-reveal-ready main .reveal-slide-left {
  opacity: 0;
  transform: translateX(-95px);
  transition: opacity 1.45s cubic-bezier(0.22, 1, 0.36, 1), transform 1.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-slide-left.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Center / Alternate Card: Down to Upward slide */
html.js-reveal-ready main .reveal-slide-up {
  opacity: 0;
  transform: translateY(85px) scale(0.96);
  transition: opacity 1.45s cubic-bezier(0.22, 1, 0.36, 1), transform 1.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-slide-up.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Right Card: Slide in from Right side */
html.js-reveal-ready main .reveal-slide-right {
  opacity: 0;
  transform: translateX(95px);
  transition: opacity 1.45s cubic-bezier(0.22, 1, 0.36, 1), transform 1.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-slide-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Interactive Card Lift after reveal has completed */
html.js-reveal-ready main .pillar-card.is-revealed:hover,
html.js-reveal-ready main .program-card.is-revealed:hover,
html.js-reveal-ready main .news-card.is-revealed:hover,
html.js-reveal-ready main .testimonial-card.is-revealed:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Responsive adjustment for mobile screens */
@media (max-width: 600px) {
  html.js-reveal-ready main .reveal-slide-left {
    transform: translateX(-45px);
  }
  html.js-reveal-ready main .reveal-slide-right {
    transform: translateX(45px);
  }
  html.js-reveal-ready main .reveal-slide-up {
    transform: translateY(55px) scale(0.98);
  }
}

/* ==========================================================================
   SECTION-SPECIFIC DISTINCT ANIMATIONS
   ========================================================================== */

/* --- SECTION A: PILLARS - 3D Pop-Up Book Unfold Effect --- */
html.js-reveal-ready main .reveal-pillar-left {
  opacity: 0;
  transform: perspective(900px) rotateY(-16deg) translateY(45px) scale(0.93);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-pillar-left.is-revealed {
  opacity: 1;
  transform: perspective(900px) rotateY(0deg) translateY(0) scale(1);
}

html.js-reveal-ready main .reveal-pillar-center {
  opacity: 0;
  transform: perspective(900px) scale(0.86) translateY(50px);
  transition: opacity 1.1s cubic-bezier(0.34, 1.45, 0.64, 1), transform 1.1s cubic-bezier(0.34, 1.45, 0.64, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-pillar-center.is-revealed {
  opacity: 1;
  transform: perspective(900px) scale(1) translateY(0);
}

html.js-reveal-ready main .reveal-pillar-right {
  opacity: 0;
  transform: perspective(900px) rotateY(16deg) translateY(45px) scale(0.93);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-pillar-right.is-revealed {
  opacity: 1;
  transform: perspective(900px) rotateY(0deg) translateY(0) scale(1);
}

/* Pillar Icon Box Jiggle when revealed */
@keyframes iconJiggle {
  0% { transform: scale(0.8) rotate(-8deg); }
  50% { transform: scale(1.12) rotate(6deg); }
  75% { transform: scale(0.96) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

html.js-reveal-ready main .pillar-card.is-revealed .pillar-icon-box {
  animation: iconJiggle 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.3s;
}

/* --- SECTION B: PROGRAMS - Bunting Gentle Breeze & Horizontal Slide Dock --- */
@keyframes buntingBreeze {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(1.2deg) translateY(-2px); }
}

.bunting-flags {
  animation: buntingBreeze 4.5s ease-in-out infinite;
}

/* Age Filter Pills Wave */
html.js-reveal-ready main .reveal-filter {
  opacity: 0;
  transform: translateY(24px) scale(0.95);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-filter.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Program Cards: Horizontal Docking Wave from Sides */
html.js-reveal-ready main .reveal-prog-left {
  opacity: 0;
  transform: translateX(-45px) translateY(25px) scale(0.95);
  transition: opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1), transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-prog-left.is-revealed {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

html.js-reveal-ready main .reveal-prog-right {
  opacity: 0;
  transform: translateX(45px) translateY(25px) scale(0.95);
  transition: opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1), transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-prog-right.is-revealed {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

/* --- SECTION C: CENTRE NEWS - Polaroid Photo Pin & Zoom --- */
html.js-reveal-ready main .reveal-news-polaroid-1 {
  opacity: 0;
  transform: translateY(45px) rotate(-3.5deg) scale(0.92);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-news-polaroid-1.is-revealed {
  opacity: 1;
  transform: translateY(0) rotate(-1.5deg) scale(1);
}

html.js-reveal-ready main .reveal-news-polaroid-2 {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
  transition: opacity 1.1s cubic-bezier(0.34, 1.45, 0.64, 1), transform 1.1s cubic-bezier(0.34, 1.45, 0.64, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-news-polaroid-2.is-revealed {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
}

html.js-reveal-ready main .reveal-news-polaroid-3 {
  opacity: 0;
  transform: translateY(45px) rotate(3.5deg) scale(0.92);
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-news-polaroid-3.is-revealed {
  opacity: 1;
  transform: translateY(0) rotate(1.5deg) scale(1);
}

/* Arrow subtle nudge on news cards */
@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.news-read-more-btn:hover {
  animation: arrowNudge 0.7s ease-in-out infinite;
}

/* --- SECTION D: DAILY ROUTINE - Domino Slide Wave --- */
@keyframes timetableDominoSlide {
  0% {
    opacity: 0;
    transform: translateX(-40px) scale(0.98);
  }
  60% {
    opacity: 0.9;
    transform: translateX(4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.timetable-cascade {
  animation: timetableDominoSlide 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --- SECTION E: ENROLMENTS - Parchment Unfurl & Radiant Glow --- */
html.js-reveal-ready main .reveal-parchment-unfurl {
  opacity: 0;
  transform: scale(0.88) translateY(45px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1), transform 1.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 1.2s ease-out;
  will-change: opacity, transform, box-shadow;
}

html.js-reveal-ready main .reveal-parchment-unfurl.is-revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
  box-shadow: 0 12px 35px rgba(212, 184, 126, 0.3);
}

/* Continuous inviting pulse for Enrolment Tour Button */
@keyframes goldBeaconPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(229, 168, 64, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 25px rgba(229, 168, 64, 0.75);
    transform: scale(1.025);
  }
}

.enrolment-parchment-card .btn-gold {
  animation: goldBeaconPulse 3s ease-in-out infinite;
}

/* --- SECTION F: TESTIMONIALS - Speech Bubble Float & Star Twinkle --- */
html.js-reveal-ready main .reveal-testimonial-bubble {
  opacity: 0;
  transform: translateY(50px) scale(0.93);
  transition: opacity 1.1s cubic-bezier(0.34, 1.45, 0.64, 1), transform 1.1s cubic-bezier(0.34, 1.45, 0.64, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-testimonial-bubble.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Quote Icon pop */
@keyframes quotePop {
  0% { transform: scale(0) rotate(-25deg); opacity: 0; }
  70% { transform: scale(1.25) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

html.js-reveal-ready main .testimonial-card.is-revealed .testimonial-quote-icon {
  animation: quotePop 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.25s;
}

/* Golden Stars Twinkle */
@keyframes starTwinkle {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); filter: drop-shadow(0 0 4px rgba(255, 200, 50, 0.7)); }
}

.testimonial-stars {
  animation: starTwinkle 3s ease-in-out infinite;
  display: inline-block;
}

/* --- SECTION G: FAQ ACCORDION - Card Cascade Dropdown --- */
html.js-reveal-ready main .reveal-faq-drop {
  opacity: 0;
  transform: translateY(-26px) scale(0.97);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-faq-drop.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* General fallback card reveal */
html.js-reveal-ready main .reveal-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html.js-reveal-ready main .reveal-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Accessible Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  html.js-reveal-ready main .reveal-script,
  html.js-reveal-ready main .reveal-title,
  html.js-reveal-ready main .reveal-taglines span,
  html.js-reveal-ready main .reveal-desc,
  html.js-reveal-ready main .reveal-btn,
  html.js-reveal-ready main .reveal-divider,
  html.js-reveal-ready main .reveal-card,
  html.js-reveal-ready main .reveal-slide-left,
  html.js-reveal-ready main .reveal-slide-up,
  html.js-reveal-ready main .reveal-slide-right,
  html.js-reveal-ready main .reveal-filter,
  html.js-reveal-ready main .reveal-pillar-left,
  html.js-reveal-ready main .reveal-pillar-center,
  html.js-reveal-ready main .reveal-pillar-right,
  html.js-reveal-ready main .reveal-prog-left,
  html.js-reveal-ready main .reveal-prog-right,
  html.js-reveal-ready main .reveal-news-polaroid-1,
  html.js-reveal-ready main .reveal-news-polaroid-2,
  html.js-reveal-ready main .reveal-news-polaroid-3,
  html.js-reveal-ready main .reveal-parchment-unfurl,
  html.js-reveal-ready main .reveal-testimonial-bubble,
  html.js-reveal-ready main .reveal-faq-drop,
  .timetable-cascade,
  .hero-actions .btn-elementor-sand,
  .bunting-flags,
  .enrolment-parchment-card .btn-gold,
  .testimonial-stars,
  .footer-actor {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
    box-shadow: none !important;
  }
}
