/*
Theme Name: Amazing Kids Academy
Theme URI: https://amazingkidsacademyri.org
Author: Antigravity
Author URI: https://amazingkidsacademyri.org
Description: Custom WordPress theme engineered for Amazing Kids Academy. Built for HostGator WordPress hosting with responsive design, dynamic page templates, contact form handler, and interactive widgets.
Version: 1.8.2
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: amazing-kids-academy
Tags: education, children, daycare, preschool, responsive-layout, custom-menu, featured-images, theme-options
*/

/* -------------------------------------------------------------
   Design Tokens & CSS Variables
   ------------------------------------------------------------- */
:root {
  --color-primary: #002b51;
  --color-primary-dark: #001f3b;
  --color-primary-light: #003a68;
  --color-accent-blue: #005394;
  --color-sky-blue: #0062b4;
  --color-soft-blue: #b2e3ff;
  --color-light-blue: #eef8ff;
  --color-border-blue: #cee7fd;
  
  --color-orange: #fe753b;
  --color-orange-hover: #e65a20;
  --color-yellow: #fad039;
  --color-yellow-light: #faf1d1;
  --color-purple: #d097ee;
  --color-purple-light: #ede1f3;
  --color-peach-light: #ffe3d4;
  --color-bg-cream: #fffdf9;
  --color-white: #ffffff;
  --color-dark: #002b51;
  --color-muted: #536b82;

  --font-heading: 'Fredoka', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-number: 'Sora', 'Fredoka', sans-serif;

  --container-max: 1240px;
  --container-padding: 24px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 43, 81, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 43, 81, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 43, 81, 0.12);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-dark);
  background-color: var(--color-bg-cream);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
  overflow-x: hidden;
}

img, svg, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p {
  color: var(--color-muted);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* -------------------------------------------------------------
   Buttons & Pills
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(254, 117, 59, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(254, 117, 59, 0.45);
  color: var(--color-white);
}

.btn-navy {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-navy:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.download-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-yellow-light);
  border: 1px solid rgba(250, 208, 57, 0.4);
  padding: 13px 24px;
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  margin-top: 14px;
}

.download-pill:hover {
  background-color: var(--color-yellow);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.download-pill svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* -------------------------------------------------------------
   Header & Navigation (Exact Navy Background like .org)
   ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primary); /* #002b51 */
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.navbar-brand,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.navbar-brand img,
.custom-logo-link img,
img.custom-logo {
  height: 86px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img,
.custom-logo-link:hover img {
  transform: scale(1.03);
}

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

/* Prevent duplicate Contact Us link in desktop navbar since dedicated CTA button is present */
.navbar-nav > li:has(a[href*="contact"]),
.navbar-nav > li a[href*="contact"] {
  display: none !important;
}

.navbar-nav li a {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.08rem;
  color: #ffffff;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.navbar-nav li a:hover,
.navbar-nav li.current-menu-item a,
.navbar-nav li.active a {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-yellow);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-cta {
  padding: 11px 26px;
  font-size: 1rem;
  background-color: var(--color-orange);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(254, 117, 59, 0.35);
  transition: var(--transition);
}

.btn-header-cta:hover {
  background-color: var(--color-orange-hover);
  color: var(--color-white);
  transform: translateY(-2px);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: var(--color-yellow);
}

.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: var(--color-yellow);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 86%;
  max-width: 350px;
  height: 100vh;
  height: 100dvh;
  background: var(--color-white);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.35);
  z-index: 99999;
  padding: 24px 22px 30px;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.is-open {
  right: 0;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 40, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99990;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.is-active {
  display: block;
  opacity: 1;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border-blue);
  margin-bottom: 18px;
}

.mobile-drawer-brand img {
  height: 52px;
  width: auto;
  max-width: 125px;
  object-fit: contain;
}

.mobile-drawer-close {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-drawer-close:hover {
  color: var(--color-orange);
}

.mobile-nav-drawer .mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.mobile-nav-drawer .mobile-links a {
  display: block;
  padding: 12px 14px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mobile-nav-drawer .mobile-links a:hover,
.mobile-nav-drawer .mobile-links .active a {
  background-color: var(--color-light-blue);
  color: var(--color-orange);
}

.mobile-drawer-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border-blue);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-cta-btn {
  text-align: center;
  width: 100%;
  display: block;
  padding: 13px 20px;
  font-size: 1.05rem;
}

.mobile-phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  padding: 8px;
  text-decoration: none;
}

.mobile-phone-link svg {
  fill: var(--color-orange);
}
  border-radius: var(--radius-md);
}

.mobile-nav-drawer .mobile-links a:hover,
.mobile-nav-drawer .mobile-links .active a {
  background-color: var(--color-light-blue);
  color: var(--color-orange);
}

/* -------------------------------------------------------------
   Homepage Hero Section (Exact Full-Bleed with Faded Multiply Overlay like .org)
   ------------------------------------------------------------- */
.homepage-hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  padding: 190px 0 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-primary);
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45.7% 28.2%;
  display: block;
  transform: scale(1.02);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #221a0eb3; /* Exact multiply overlay from .org */
  mix-blend-mode: multiply;
  z-index: 2;
}

.hero-content-wrap {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-content-wrap h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-content-wrap p {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  color: #fffdf9;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 36px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 41px;
  min-height: 20px;
  z-index: 6;
  line-height: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-wave-bottom img,
.hero-wave-bottom svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  display: block;
}

/* -------------------------------------------------------------
   Subpage Hero Banners (Exact Faded Multiply Overlay like .org)
   ------------------------------------------------------------- */
.hero-banner-inner {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding: 150px 0 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--color-primary);
}

.hero-banner-inner .banner-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-banner-inner .banner-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #0a141cb3; /* Exact multiply overlay from .org subpages */
  mix-blend-mode: multiply;
  z-index: 2;
}

.hero-banner-inner .container {
  position: relative;
  z-index: 5;
  max-width: 900px;
}

.hero-banner-inner h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-banner-inner p {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: #fffdf9;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.banner-wave-bottom {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 21px;
  min-height: 14px;
  z-index: 6;
  line-height: 0;
  pointer-events: none;
  overflow: hidden;
}

.banner-wave-bottom img,
.banner-wave-bottom svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  display: block;
}

/* -------------------------------------------------------------
   Section Titles & Headers
   ------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
}

.section-header .section-tag-img {
  width: 32px;
  height: auto;
  margin: 0 auto 12px;
}

.section-header h2 {
  margin-bottom: 16px;
  color: var(--color-primary);
}

.section-header p {
  font-size: 1.15rem;
  color: var(--color-muted);
}

/* -------------------------------------------------------------
   About Section & 3-Image Composition
   ------------------------------------------------------------- */
/* -------------------------------------------------------------
   About Section (Homepage & General - 100% Matching .org)
   ------------------------------------------------------------- */
.about-section {
  padding: 120px 0;
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  width: 100%;
}

.about-text-col {
  flex: 0 0 47%;
  max-width: 624px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: flex-start;
  text-align: left;
}

.about-description-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.about-tag-shape {
  width: 54px;
  height: 58px;
  display: block;
}

.about-tag-shape svg {
  width: 100%;
  height: 100%;
}

.about-header-text h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 600;
  color: #002B51;
  line-height: 1.15em;
  letter-spacing: -0.019em;
  margin: 0 0 16px 0;
}

.about-header-text .about-lead {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8em;
  color: #002B51;
  margin: 0;
}

/* Stats Pill Card (Exact #FFE3D4 peach tint from .org) */
.about-stats-card {
  background-color: rgb(255, 227, 212); /* #FFE3D4 */
  border-radius: 24px;
  padding: 32px 32px 32px 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 424px;
  box-shadow: none;
  border: none;
}

.stats-counter-number {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 600;
  color: rgb(0, 43, 81);
  line-height: 1;
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
}

.stats-counter-number .plus-sign {
  font-size: 40px;
  font-weight: 600;
  color: rgb(0, 43, 81);
}

.about-stats-card p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6em;
  color: rgb(0, 43, 81);
  max-width: 215px;
  margin: 0;
}

/* 3-Photo Organic Collage Cluster (Exact .org Dimensions & Masks) */
.about-images-cluster {
  position: relative;
  width: 47%;
  max-width: 543px;
  aspect-ratio: 0.993528;
  overflow: visible;
  margin: 0 auto;
}

.about-img-item {
  position: absolute;
  overflow: visible;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  mask-mode: alpha;
  -webkit-mask-composite: source-over;
  transition: transform 0.4s ease;
}

.about-img-item:hover {
  transform: scale(1.02);
}

.about-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 1. Top Left Organic Mask Shape */
.about-img-top {
  top: 0;
  left: 0;
  width: 68%;
  aspect-ratio: 1.10726;
  z-index: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22401%22%20height%3D%22364%22%20fill%3D%22%2523ffffff%22%3E%3Cpath%20fill%3D%22%2523ffffff%22%20d%3D%22M15.663%2054.822C18.35%2023.808%2044.31%200%2075.44%200h265.446c38.402%200%2066.919%2035.574%2058.563%2073.055l-54.32%20243.659c-7.533%2033.792-42.025%2054.214-75.277%2044.569L43.311%20295.571C15.81%20287.594-2.222%20261.296.249%20232.768z%22/%3E%3C/svg%3E") 50%/cover no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22401%22%20height%3D%22364%22%20fill%3D%22%2523ffffff%22%3E%3Cpath%20fill%3D%22%2523ffffff%22%20d%3D%22M15.663%2054.822C18.35%2023.808%2044.31%200%2075.44%200h265.446c38.402%200%2066.919%2035.574%2058.563%2073.055l-54.32%20243.659c-7.533%2033.792-42.025%2054.214-75.277%2044.569L43.311%20295.571C15.81%20287.594-2.222%20261.296.249%20232.768z%22/%3E%3C/svg%3E") 50%/cover no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* 2. Bottom Center Organic Mask Shape */
.about-img-bottom {
  bottom: 0;
  left: 53%;
  width: 54%;
  aspect-ratio: 1.16783;
  z-index: 0;
  transform: translate(-50%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22328%22%20height%3D%22277%22%20fill%3D%22%2523ffffff%22%3E%3Cpath%20fill%3D%22%2523ffffff%22%20d%3D%22M.266%2062.612c0-20.552%2015.574-37.76%2036.024-39.802L254.684.997c20.726-2.07%2039.571%2012.111%2043.321%2032.6l29.169%20159.34c4.077%2022.268-11.122%2043.478-33.518%2046.776L46.093%20276.169C21.943%20279.725.266%20261.007.266%20236.596z%22/%3E%3C/svg%3E") 50%/cover no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22328%22%20height%3D%22277%22%20fill%3D%22%2523ffffff%22%3E%3Cpath%20fill%3D%22%2523ffffff%22%20d%3D%22M.266%2062.612c0-20.552%2015.574-37.76%2036.024-39.802L254.684.997c20.726-2.07%2039.571%2012.111%2043.321%2032.6l29.169%20159.34c4.077%2022.268-11.122%2043.478-33.518%2046.776L46.093%20276.169C21.943%20279.725.266%20261.007.266%20236.596z%22/%3E%3C/svg%3E") 50%/cover no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.about-img-bottom:hover {
  transform: translate(-50%) scale(1.02);
}

/* 3. Right Center Organic Mask Shape */
.about-img-right {
  top: 39%;
  right: 0;
  width: 36%;
  aspect-ratio: 1.26705;
  z-index: 2;
  transform: translateY(-50%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22222%22%20height%3D%22174%22%20fill%3D%22%2523ffffff%22%3E%3Cpath%20fill%3D%22%2523ffffff%22%20d%3D%22M4.176%2045.414C4.943%2024.682%2021.433%207.977%2042.154%206.942L180.005.057C202.851-1.084%20222%2017.132%20222%2040.007v91.07c0%2021.861-17.55%2039.673-39.408%2039.996l-141.043%202.085c-22.902.339-41.41-18.585-40.564-41.474z%22/%3E%3C/svg%3E") 50%/cover no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22222%22%20height%3D%22174%22%20fill%3D%22%2523ffffff%22%3E%3Cpath%20fill%3D%22%2523ffffff%22%20d%3D%22M4.176%2045.414C4.943%2024.682%2021.433%207.977%2042.154%206.942L180.005.057C202.851-1.084%20222%2017.132%20222%2040.007v91.07c0%2021.861-17.55%2039.673-39.408%2039.996l-141.043%202.085c-22.902.339-41.41-18.585-40.564-41.474z%22/%3E%3C/svg%3E") 50%/cover no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.about-img-right:hover {
  transform: translateY(-50%) scale(1.02);
}

/* 4 Hand-drawn Floating Decorative Shapes from .org */
.about-cluster-shape {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.about-cluster-shape svg {
  width: 100%;
  height: 100%;
  display: block;
}

.shape-top-right {
  top: 15%;
  left: 90%;
  width: 19%;
  aspect-ratio: 1.48571;
  transform: translate(-50%, -50%);
}

.shape-bottom-left {
  top: 84%;
  left: 11%;
  width: 16%;
  aspect-ratio: 1.12987;
  transform: translate(-50%, -50%);
}

.shape-mid-left {
  top: 59%;
  left: 16%;
  width: 14%;
  aspect-ratio: 1.15152;
  transform: translate(-50%, -50%);
}

.shape-mid-right {
  top: 66%;
  left: 92%;
  width: 18%;
  aspect-ratio: 1.21519;
  transform: translate(-50%, -50%);
}

/* -------------------------------------------------------------
   About Page - Mission Section & Side-by-Side Feature Block
   ------------------------------------------------------------- */
.mission-section {
  padding-top: 70px;
}

.mission-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.mission-tag-shape {
  margin-bottom: 14px;
}

.mission-intro-lead {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #002B51;
  text-align: center;
  margin-top: 18px;
}

.mission-feature-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin: 60px auto 70px;
  max-width: 1140px;
}

.mission-image-col {
  flex: 0 0 45%;
  max-width: 45%;
  display: flex;
  justify-content: center;
  position: relative;
}

.mission-image-shape {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1.05179;
  position: relative;
  overflow: visible;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22589%22%20height%3D%22561%22%20fill%3D%22%2523ffffff%22%3E%3Cpath%20fill%3D%22%2523ffffff%22%20d%3D%22M243.014%200C138.121-.218%2077.791%2046.25%2060.738%2069.512c-15.656%2021.356-24.053%2043.132-15.656%2077.753%2011.462%2047.256-3.075%2059.345-25.44%2086.545-38.631%2046.984-13.345%20116.208%2016.494%20142.867%2027.534%2024.6%2052.683%2064.088%2072.193%2095.981%2011.808%2019.302%2025.613%2037.803%2044.881%2049.997%20103.754%2065.668%20276.707%2034.448%20305.347-13.551%2025.049-41.981%2072.687-83.98%2093.374-99.732%2041.096-24.452%2057.031-136.274%200-161.825-29.918-13.404-42.718-42.427-47.197-68.103-4.002-22.943-1.685-47.357-12.228-68.202-8.875-17.545-21.534-31.964-33.915-42.85-17.829-15.676-38.38-28.728-60.047-38.694C366.897%2015.14%20314.773.151%20243.014.001Z%22/%3E%3C/svg%3E") 50%/cover no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22589%22%20height%3D%22561%22%20fill%3D%22%2523ffffff%22%3E%3Cpath%20fill%3D%22%2523ffffff%22%20d%3D%22M243.014%200C138.121-.218%2077.791%2046.25%2060.738%2069.512c-15.656%2021.356-24.053%2043.132-15.656%2077.753%2011.462%2047.256-3.075%2059.345-25.44%2086.545-38.631%2046.984-13.345%20116.208%2016.494%20142.867%2027.534%2024.6%2052.683%2064.088%2072.193%2095.981%2011.808%2019.302%2025.613%2037.803%2044.881%2049.997%20103.754%2065.668%20276.707%2034.448%20305.347-13.551%2025.049-41.981%2072.687-83.98%2093.374-99.732%2041.096-24.452%2057.031-136.274%200-161.825-29.918-13.404-42.718-42.427-47.197-68.103-4.002-22.943-1.685-47.357-12.228-68.202-8.875-17.545-21.534-31.964-33.915-42.85-17.829-15.676-38.38-28.728-60.047-38.694C366.897%2015.14%20314.773.151%20243.014.001Z%22/%3E%3C/svg%3E") 50%/cover no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  mask-mode: alpha;
  -webkit-mask-composite: source-over;
  transition: transform 0.4s ease;
}

.mission-image-shape:hover {
  transform: scale(1.02);
}

.mission-image-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mission-widgets-col {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mission-widget-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.mission-widget-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 43, 81, 0.06);
}

.mission-widget-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.mission-widget-body h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 8px 0;
}

.mission-widget-body p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #4b5563;
  margin: 0;
}

/* -------------------------------------------------------------
   Services / Daily Care Section
   ------------------------------------------------------------- */
.services-section {
  position: relative;
  background-color: var(--color-light-blue);
  padding: 100px 0;
}

.partnerships-section,
.page-template-page-family-testimonials .services-section:first-of-type {
  background-color: var(--color-white);
  padding: 80px 0 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 38px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--color-border-blue);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-soft-blue);
}

.service-card .card-icon {
  width: 76px;
  height: 76px;
  background: var(--color-light-blue);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.service-card h3 {
  font-size: 1.45rem;
  color: var(--color-primary);
}

.service-card p {
  color: var(--color-muted);
  font-size: 1rem;
}

/* -------------------------------------------------------------
   Steps / Enrollment Section
   ------------------------------------------------------------- */
.steps-section {
  padding: 90px 0;
  background: var(--color-bg-cream);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(206, 231, 253, 0.4);
  transition: var(--transition);
}

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

.step-number-badge {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background-color: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 6px 18px rgba(254, 117, 59, 0.35);
}

.step-card:nth-child(2) .step-number-badge {
  background-color: var(--color-yellow);
  color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(250, 208, 57, 0.35);
}

.step-card:nth-child(3) .step-number-badge {
  background-color: var(--color-purple);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(208, 151, 238, 0.35);
}

.step-card h3 {
  margin-bottom: 14px;
}

/* -------------------------------------------------------------
   Testimonials Section & Carousel
   ------------------------------------------------------------- */
.testimonials-section {
  padding: 100px 0;
  background-color: var(--color-light-blue);
  position: relative;
  overflow: hidden;
}

.testimonial-carousel-container {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 10px 0;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 50%;
  max-width: 50%;
  box-sizing: border-box;
  padding: 12px;
}

@media (max-width: 860px) {
  .testimonial-slide {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 8px 4px;
  }
}

.testimonial-card-inner {
  background: var(--color-white);
  border-radius: 20px;
  padding: 36px 32px 30px;
  box-shadow: 0 8px 24px rgba(0, 74, 143, 0.08);
  border: 1px solid rgba(0, 168, 232, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 290px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.testimonial-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 74, 143, 0.12);
}

.testimonial-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.testimonial-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.star-icon {
  width: 18px;
  height: 18px;
  color: #f59e0b;
}

.stars-label {
  margin-left: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 12px;
}

.testimonial-quote-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 127, 80, 0.12);
  color: var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-quote-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  opacity: 0.8;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimonial-text p {
  margin: 0;
}

.testimonial-author-block {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #f1f5f9;
  padding-top: 18px;
}

.author-avatar-initial {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-sky-blue) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 74, 143, 0.2);
  flex-shrink: 0;
}

.author-meta-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  line-height: 1.25;
}

.author-role {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.role-badge {
  font-weight: 600;
  color: var(--color-orange);
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: #059669;
  font-weight: 600;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 12px;
}

.carousel-nav-wrap,
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 34px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid rgba(0, 74, 143, 0.15);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 74, 143, 0.08);
}

.carousel-btn:hover {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 127, 80, 0.35);
}

.carousel-btn svg,
.carousel-btn img {
  width: 22px;
  height: 22px;
}

.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 74, 143, 0.22);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-dot:hover {
  background: var(--color-orange);
}

.testimonial-dot.is-active {
  width: 28px;
  border-radius: 10px;
  background: var(--color-orange);
  box-shadow: 0 2px 8px rgba(255, 127, 80, 0.4);
}

/* -------------------------------------------------------------
   Gallery Section & Lightbox
   ------------------------------------------------------------- */
.gallery-section {
  padding: 90px 0;
  background: var(--color-bg-cream);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  background: var(--color-light-blue);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 43, 81, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay-icon {
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

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

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

.gallery-item:hover .gallery-overlay-icon {
  transform: scale(1);
}

/* Lightbox Modal */
.aka-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 40, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.aka-lightbox.is-active {
  display: flex;
}

.aka-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.aka-lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.aka-lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: var(--color-white);
  font-size: 2.2rem;
  background: transparent;
  cursor: pointer;
  line-height: 1;
}

/* -------------------------------------------------------------
   CTA Banner Component
   ------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-blue) 100%);
  border-radius: var(--radius-xl);
  padding: 70px 60px;
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 60px auto;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--color-soft-blue);
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 30px;
}

/* -------------------------------------------------------------
   Contact Cards & Footer
   ------------------------------------------------------------- */
.contact-cards-section {
  padding: 60px 0 30px;
  background-color: var(--color-light-blue);
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-info-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-blue);
  transition: var(--transition);
  text-decoration: none;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-orange);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  flex-shrink: 0;
}

.contact-card-text p {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-muted);
  margin: 0;
}

.contact-card-text .contact-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
}

.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  max-width: 380px;
}

.footer-brand img {
  height: 70px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(1.1);
}

.footer-brand .hours-block {
  margin-top: 14px;
  font-size: 0.98rem;
  color: var(--color-soft-blue);
}

.footer-brand .hours-block strong {
  color: var(--color-white);
  display: block;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.footer-nav-block h4 {
  color: var(--color-white);
  margin-bottom: 20px;
  font-size: 1.25rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--color-soft-blue);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--color-yellow);
  padding-left: 6px;
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
}

/* -------------------------------------------------------------
   Contact Page Form & Styles
   ------------------------------------------------------------- */
.contact-form-section {
  padding: 80px 0;
  background: var(--color-bg-cream);
}

.contact-form-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 50px 45px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-blue);
  position: relative;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border-blue);
  background-color: var(--color-light-blue);
  font-size: 1rem;
  color: var(--color-dark);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--color-orange);
  background-color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(254, 117, 59, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-weight: 500;
  display: none;
}

.form-alert.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-alert.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* -------------------------------------------------------------
   Teachers Page Cards
   ------------------------------------------------------------- */
.teacher-profile-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 50px 45px;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 45px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-blue);
}

.teacher-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 6px solid var(--color-white);
}

.teacher-bio h2 {
  margin-bottom: 16px;
  color: var(--color-primary);
}

.teacher-bio p {
  margin-bottom: 16px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.teacher-signature {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-orange);
  font-size: 1.15rem;
  margin-top: 10px;
}

/* -------------------------------------------------------------
   Classrooms Age Group Cards
   ------------------------------------------------------------- */
.classroom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.classroom-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  border: 1px solid var(--color-border-blue);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

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

.classroom-card .age-badge {
  display: inline-block;
  padding: 8px 18px;
  background-color: var(--color-light-blue);
  color: var(--color-accent-blue);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.classroom-card h3 {
  margin-bottom: 12px;
}

/* -------------------------------------------------------------
   404 Page Styles
   ------------------------------------------------------------- */
.error-404-section {
  padding: 100px 0;
  text-align: center;
}

.error-404-graphics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.error-404-graphics img {
  max-height: 140px;
  width: auto;
}

/* -------------------------------------------------------------
   Blog & Standard WP Post Layouts
   ------------------------------------------------------------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.post-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-blue);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.post-card-thumb {
  height: 220px;
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.88rem;
  color: var(--color-orange);
  font-weight: 600;
  margin-bottom: 10px;
}

.post-card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.post-card-body p {
  font-size: 0.98rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* -------------------------------------------------------------
   Accessibility (a11y) & WCAG Compliance
   ------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -120px;
  left: 24px;
  background-color: var(--color-orange);
  color: var(--color-white);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  z-index: 99999;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 24px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-orange) !important;
  outline-offset: 3px !important;
}

/* Custom Page Editor Content Container */
.custom-page-editor-content {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  border: 1px solid var(--color-border-blue);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  line-height: 1.8;
}

.custom-page-editor-content h2,
.custom-page-editor-content h3 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.custom-page-editor-content p {
  margin-bottom: 16px;
}

/* -------------------------------------------------------------
   Cookie Consent Persistence & Suppression Fix
   ------------------------------------------------------------- */
html.aka-cookie-accepted #cookie-notice,
html.aka-cookie-accepted .cookie-notice-container,
html.aka-cookie-accepted #cookie-law-info-bar,
html.aka-cookie-accepted .cky-consent-container,
html.aka-cookie-accepted .cmplz-cookiebanner,
html.aka-cookie-accepted .wp-block-jetpack-cookie-banner,
html.aka-cookie-accepted #moove_gdpr_cookie_modal,
html.aka-cookie-accepted #moove_gdpr_cookie_info_bar,
html.aka-cookie-accepted .cookie-banner,
html.aka-cookie-accepted #cookie-banner,
html.aka-cookie-accepted [id*="cookie-notice"],
html.aka-cookie-accepted [class*="cookie-notice"],
html.aka-cookie-accepted [class*="cky-consent"],
html.aka-cookie-accepted [id*="cookie-law-info"],
html.aka-cookie-accepted .aka-cookie-banner {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(100%) !important;
}

/* -------------------------------------------------------------
   Responsive Breakpoints
   ------------------------------------------------------------- */

/* Medium Desktops & Tablets (Landscape) (< 1200px) */
@media (max-width: 1199px) {
  .homepage-hero {
    padding: 130px 0 140px;
    min-height: auto;
  }

  /* About Section Tablet (< 1200px) */
  .about-section {
    padding: 80px 0;
  }

  .about-grid {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 96%;
    max-width: 810px;
    margin: 0 auto;
  }

  .about-images-cluster {
    order: 0;
    width: 346px;
    height: 346px;
    max-width: 346px;
    aspect-ratio: 0.993528;
    margin: 0 auto;
  }

  .about-img-top {
    height: 212px;
  }

  .about-img-bottom {
    height: 160px;
  }

  .about-img-right {
    height: 99px;
  }

  .about-text-col {
    order: 1;
    flex: none;
    width: 100%;
    max-width: 458px;
    gap: 30px;
    align-items: center;
    text-align: center;
    justify-content: center;
  }

  .about-description-block {
    align-items: center;
    text-align: center;
    gap: 18px;
    max-width: 632px;
  }

  .about-header-text h2 {
    font-size: 36px;
    line-height: 1.15em;
    text-align: center;
    margin-bottom: 14px;
  }

  .about-header-text .about-lead {
    font-size: 16px;
    line-height: 1.8em;
    text-align: center;
    margin: 0 auto;
  }

  .about-stats-card {
    border-radius: 16px;
    padding: 24px;
    gap: 20px;
    max-width: 424px;
    margin: 0 auto;
    justify-content: center;
  }

  .stats-counter-number {
    font-size: 44px;
  }

  .stats-counter-number .plus-sign {
    font-size: 34px;
  }

  .about-stats-card p {
    font-size: 14.5px;
    line-height: 1.6em;
    max-width: 260px;
  }

  /* Mission Section Tablet (< 1200px) */
  .mission-feature-wrap {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin: 40px auto 50px;
    width: 100%;
  }

  .mission-image-col {
    order: 0;
    width: 72%;
    max-width: 524px;
    display: flex;
    justify-content: center;
  }

  .mission-image-shape {
    width: 100%;
    max-width: 460px;
    aspect-ratio: 1.05179;
    margin: 0 auto;
  }

  .mission-widgets-col {
    order: 1;
    width: 87%;
    max-width: 600px;
    gap: 28px;
  }
  .services-grid,
  .steps-grid,
  .classroom-grid,
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .teacher-profile-card {
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 40px 30px;
  }
}

/* Tablets (Portrait) & Large Mobile (< 820px) */
@media (max-width: 820px) {
  :root {
    --container-padding: 20px;
  }

  /* Header */
  .navbar {
    padding: 14px 0;
  }

  .navbar-brand img,
  .custom-logo-link img,
  img.custom-logo {
    height: 68px;
    max-width: 140px;
  }

  .navbar-nav,
  .btn-header-cta {
    display: none !important;
  }

  .hamburger-btn {
    display: flex;
  }

  .mobile-nav-drawer {
    display: flex;
  }

  /* Subpage Hero Banners */
  .hero-banner-inner {
    padding: 95px 16px 85px;
    min-height: 250px;
  }

  .hero-banner-inner h1 {
    font-size: clamp(2rem, 5.5vw, 2.7rem);
    margin-bottom: 14px;
  }

  .hero-banner-inner p {
    font-size: 1.05rem;
    max-width: 90%;
  }

  .banner-wave-bottom {
    height: 18px;
  }

  /* Homepage Hero */
  .homepage-hero {
    padding: 100px 16px 120px;
    min-height: 520px;
  }

  .hero-content-wrap h1 {
    font-size: clamp(2.2rem, 6vw, 3rem);
    margin-bottom: 18px;
  }

  .hero-content-wrap p {
    font-size: 1.1rem;
    max-width: 92%;
    margin-bottom: 24px;
  }

  .hero-wave-bottom {
    height: 32px;
  }

  /* Section Spacing */
  .about-section,
  .services-section,
  .partnerships-section,
  .steps-section,
  .testimonials-section,
  .gallery-section,
  .contact-form-section,
  .classroom-cards-section,
  .error-404-section,
  .posts-section {
    padding: 60px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: clamp(1.8rem, 4.5vw, 2.2rem);
  }

  /* About Section Mobile (< 820px) - Exact .org Alignment */
  .about-section {
    padding: 60px 0;
  }

  .about-grid {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .about-text-col {
    order: 0; /* Text FIRST on mobile, matching .org */
    flex: none;
    width: 100%;
    max-width: 100%;
    gap: 28px;
    align-items: center;
    text-align: center;
    justify-content: center;
  }

  .about-description-block {
    align-items: center;
    text-align: center;
    gap: 16px;
    width: 100%;
  }

  .about-tag-shape {
    display: none !important; /* Matches .hidden-109jhu5 on .org */
  }

  .about-header-text h2 {
    font-size: 30px;
    line-height: 1.2em;
    text-align: center;
    margin-bottom: 12px;
  }

  .about-header-text .about-lead {
    font-size: 15px;
    line-height: 1.65em;
    text-align: center;
    margin: 0 auto;
  }

  .about-stats-card {
    border-radius: 16px;
    padding: 20px 20px 20px 24px;
    gap: 16px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    justify-content: center;
  }

  .stats-counter-number {
    font-size: 40px;
  }

  .stats-counter-number .plus-sign {
    font-size: 30px;
  }

  .about-stats-card p {
    font-size: 14px;
    line-height: 1.5em;
    max-width: 220px;
  }

  .about-images-cluster {
    order: 1; /* Images SECOND on mobile, matching .org */
    width: 89%;
    max-width: 313px;
    aspect-ratio: 0.993528;
    height: 313px;
    margin: 0 auto;
  }

  .about-img-top {
    height: 192px;
  }

  .about-img-bottom {
    height: 145px;
  }

  .about-img-right {
    height: 89px;
  }

  /* 4 floating shapes hidden on mobile matching .hidden-109jhu5 on .org */
  .about-cluster-shape {
    display: none !important;
  }

  /* Mission Section Mobile (< 820px) */
  .mission-section {
    padding: 60px 0;
  }

  .mission-feature-wrap {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px auto 40px;
    width: 100%;
  }

  .mission-image-col {
    flex: none;
    order: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .mission-image-shape {
    width: 100%;
    max-width: 332px;
    aspect-ratio: 1.05179;
    height: auto;
    margin: 0 auto;
  }

  .mission-widgets-col {
    flex: none;
    order: 1;
    width: 100%;
    max-width: 340px;
    gap: 24px;
    margin: 0 auto;
  }

  .mission-widget-item {
    gap: 18px;
    align-items: center;
  }

  .mission-widget-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .mission-widget-icon img {
    width: 30px;
    height: 30px;
  }

  .mission-widget-body h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  .mission-widget-body p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  /* Grid layouts collapse to single column where needed */
  .services-grid,
  .steps-grid,
  .classroom-grid,
  .contact-cards-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form-card {
    padding: 38px 26px;
  }

  .teacher-profile-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 24px;
    gap: 24px;
  }

  .teacher-photo {
    max-width: 300px;
    height: 320px;
    margin: 0 auto;
  }

  .cta-banner {
    padding: 48px 24px;
    margin: 40px auto;
  }
}

/* Standard Mobile Phones (< 540px) */
@media (max-width: 540px) {
  :root {
    --container-padding: 16px;
  }

  /* Header */
  .navbar {
    padding: 10px 0;
  }

  .navbar-brand img,
  .custom-logo-link img,
  img.custom-logo {
    height: 56px;
    max-width: 125px;
  }

  /* Homepage Hero */
  .homepage-hero {
    padding: 85px 12px 105px;
    min-height: 460px;
  }

  .hero-content-wrap h1 {
    font-size: clamp(1.95rem, 6.8vw, 2.35rem);
    line-height: 1.18;
    margin-bottom: 14px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  .hero-content-wrap p {
    font-size: 1.02rem;
    line-height: 1.5;
    margin-bottom: 22px;
  }

  .hero-content-wrap .btn,
  .homepage-hero .btn {
    width: 100%;
    max-width: 250px;
    padding: 12px 24px;
    font-size: 1.02rem;
  }

  .hero-wave-bottom {
    height: 24px;
  }

  /* Subpage Hero Banner */
  .hero-banner-inner {
    padding: 72px 12px 68px;
    min-height: 200px;
  }

  .hero-banner-inner h1 {
    font-size: clamp(1.8rem, 6.2vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .hero-banner-inner p {
    font-size: 0.96rem;
    line-height: 1.5;
    padding: 0 8px;
  }

  .banner-wave-bottom {
    height: 15px;
  }

  /* Typography & Headings */
  h1 { font-size: 2.1rem; line-height: 1.2; }
  h2 { font-size: 1.65rem; line-height: 1.25; }
  h3 { font-size: 1.3rem; line-height: 1.3; }

  .section-header {
    margin-bottom: 28px;
  }

  .section-header .section-tag-img {
    width: 26px;
    margin-bottom: 8px;
  }

  .section-header h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }

  .section-header p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  /* Sections */
  .about-section,
  .services-section,
  .partnerships-section,
  .steps-section,
  .testimonials-section,
  .gallery-section,
  .contact-form-section,
  .classroom-cards-section,
  .error-404-section,
  .posts-section {
    padding: 46px 0;
  }

  /* About Section Sub-540px Screen Refinements */
  .about-header-text h2 {
    font-size: 27px;
    line-height: 1.2;
  }

  .about-header-text .about-lead {
    font-size: 14.5px;
    line-height: 1.6;
  }

  .about-stats-card {
    padding: 18px 16px;
    gap: 14px;
    max-width: 330px;
    margin: 0 auto;
  }

  .stats-counter-number {
    font-size: 36px;
  }

  .stats-counter-number .plus-sign {
    font-size: 26px;
  }

  .about-stats-card p {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .about-images-cluster {
    width: 92%;
    max-width: 290px;
    height: 290px;
    margin: 0 auto;
  }

  .about-img-top {
    height: 178px;
  }

  .about-img-bottom {
    height: 135px;
  }

  .about-img-right {
    height: 82px;
  }

  /* Mission Section Sub-540px Screen Refinements */
  .mission-feature-wrap {
    margin: 24px auto 36px;
  }

  .mission-image-shape {
    max-width: 290px;
  }

  .mission-widgets-col {
    max-width: 320px;
  }

  /* Cards */
  .service-card,
  .step-card,
  .classroom-card {
    padding: 28px 18px;
    border-radius: var(--radius-lg);
  }

  .service-card h3,
  .step-card h3,
  .classroom-card h3 {
    font-size: 1.35rem;
  }

  .service-card p,
  .step-card p,
  .classroom-card p {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  /* Testimonials */
  .testimonial-card-inner {
    padding: 24px 20px 22px;
    border-radius: var(--radius-lg);
  }

  .testimonial-text {
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .author-name {
    font-size: 1.05rem;
  }

  .author-role {
    flex-wrap: wrap;
    gap: 6px;
  }

  .carousel-nav-wrap,
  .carousel-controls {
    margin-top: 24px;
    gap: 12px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item {
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
  }

  /* Teachers */
  .teacher-profile-card {
    padding: 26px 18px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    gap: 20px;
  }

  .teacher-photo {
    height: 260px;
    max-width: 260px;
    border-width: 4px;
  }

  .teacher-bio h2 {
    font-size: 1.55rem;
    margin-bottom: 12px;
  }

  .teacher-bio p {
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .teacher-signature {
    font-size: 1.05rem;
    margin-top: 14px;
  }

  /* Contact Page */
  .contact-cards-grid {
    gap: 12px;
  }

  .contact-info-card {
    padding: 18px 16px;
    gap: 14px;
    border-radius: var(--radius-md);
  }

  .contact-card-icon {
    width: 46px;
    height: 46px;
    padding: 10px;
  }

  .contact-card-text .contact-val {
    font-size: 1rem;
    word-break: break-all;
  }

  .contact-form-card {
    padding: 28px 16px;
    border-radius: var(--radius-lg);
  }

  .contact-form-card h2 {
    font-size: 1.55rem;
  }

  .form-control {
    font-size: 16px !important; /* Prevents auto-zoom on iOS */
    padding: 12px 14px;
  }

  .btn-submit {
    width: 100%;
    padding: 14px 20px;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 36px 18px;
    margin: 36px auto;
    border-radius: var(--radius-lg);
  }

  .cta-banner h2 {
    font-size: 1.55rem;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .cta-banner p {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .cta-banner .btn {
    width: 100%;
    max-width: 250px;
  }

  /* Download Pill */
  .download-pill {
    width: 100%;
    font-size: 0.88rem;
    padding: 12px 16px;
    justify-content: center;
    text-align: center;
    border-radius: var(--radius-full);
  }

  .download-pill svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  /* Footer */
  .site-footer {
    padding: 44px 0 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 26px;
    padding-bottom: 24px;
  }

  .footer-brand img {
    height: 50px;
    margin-bottom: 12px;
  }

  .footer-brand .hours-block {
    font-size: 0.92rem;
  }

  .footer-nav-block h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  .footer-nav {
    gap: 10px;
  }

  .footer-nav a {
    font-size: 1rem;
    padding: 4px 0;
  }

  .footer-bottom {
    font-size: 0.84rem;
    padding-top: 18px;
    text-align: center;
  }
}

/* Extra-Narrow Screens (iPhone SE, Galaxy Fold ~320px - 375px) */
@media (max-width: 375px) {
  :root {
    --container-padding: 12px;
  }

  .navbar-brand img,
  .custom-logo-link img,
  img.custom-logo {
    height: 48px;
    max-width: 110px;
  }

  .hero-content-wrap h1 {
    font-size: 1.8rem;
  }

  .hero-banner-inner h1 {
    font-size: 1.7rem;
  }

  .section-header h2 {
    font-size: 1.45rem;
  }

  .about-header-text h2 {
    font-size: 24px;
  }

  .about-stats-card {
    max-width: 290px;
    padding: 16px 14px;
  }

  .stats-counter-number {
    font-size: 32px;
  }

  .about-images-cluster {
    max-width: 260px;
    height: 260px;
    width: 95%;
  }

  .about-img-top {
    height: 160px;
  }

  .about-img-bottom {
    height: 120px;
  }

  .about-img-right {
    height: 74px;
  }

  .mission-image-shape {
    max-width: 260px;
  }

  .mission-widget-item {
    gap: 16px;
  }

  .mission-widget-icon {
    width: 58px;
    height: 58px;
  }

  .mission-widget-icon img {
    width: 28px;
    height: 28px;
  }

  .mission-widget-body h3 {
    font-size: 1.18rem;
  }

  .mission-widget-body p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .teacher-photo {
    height: 220px;
  }
}
