/* ==========================================================================
   SMARTKIDZ — PREMIUM RED & YELLOW DESIGN SYSTEM v3.0
   Brand Identity: Merah Enerjik #E52421 | Kuning Ceria #FFD500
   Typography: Nunito 900 (Body) + Poppins 900 (Headings) + Fredoka One
   ========================================================================== */

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

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  /* ── Core Palette ── */
  --red:              #E52421;
  --red-dark:         #C91A17;
  --red-deeper:       #A31411;
  --red-light:        #FFF0F0;
  --red-mid:          #FFCECE;

  --yellow:           #FFD500;
  --yellow-dark:      #E0BB00;
  --yellow-deeper:    #C49500;
  --yellow-light:     #FFFCE6;
  --yellow-pale:      #FFF9CC;

  --green:            #009A44;
  --green-light:      #E8F7EF;
  --blue:             #005BAC;
  --blue-light:       #E8F2FC;
  --purple:           #702F8A;
  --purple-light:     #F5EDF9;

  /* ── Neutrals ── */
  --ink:              #0F172A;
  --ink-soft:         #1E293B;
  --body-text:        #374151;
  --muted:            #6B7280;
  --border:           #F1F5F9;
  --border-yellow:    #FFE066;
  --bg-page:          #FFFDF7;
  --bg-soft:          #F8FAFC;
  --white:            #FFFFFF;

  /* ── Gradients ── */
  --grad-red:         linear-gradient(135deg, #FF4A47 0%, #E52421 50%, #C91A17 100%);
  --grad-yellow:      linear-gradient(135deg, #FFED4A 0%, #FFD500 50%, #E0BB00 100%);
  --grad-hero:        linear-gradient(135deg, #FFF9E6 0%, #FFFDF7 40%, #FFF5F5 100%);
  --grad-dark:        linear-gradient(135deg, #0F172A 0%, #1A2744 100%);

  /* ── Shadows ── */
  --shadow-xs:        0 1px 4px rgba(0,0,0,0.06);
  --shadow-sm:        0 4px 12px rgba(0,0,0,0.06);
  --shadow-md:        0 8px 24px rgba(229,36,33,0.10), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg:        0 20px 50px rgba(229,36,33,0.15), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-xl:        0 32px 80px rgba(229,36,33,0.20), 0 12px 32px rgba(0,0,0,0.08);
  --shadow-yellow:    0 12px 30px rgba(255,213,0,0.45);
  --shadow-card:      0 2px 8px rgba(0,0,0,0.04), 0 8px 30px rgba(0,0,0,0.07);

  /* ── Radii ── */
  --r-xs:   6px;
  --r-sm:   12px;
  --r-md:   20px;
  --r-lg:   28px;
  --r-xl:   40px;
  --r-2xl:  56px;
  --r-pill: 9999px;

  /* ── Transitions ── */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:   0.3s;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--body-text);
  background: var(--bg-page);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Nunito', sans-serif;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.25;
}

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

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

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 90px 0; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

/* ==========================================================================
   4. TYPOGRAPHY & BADGES
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

.badge-yellow {
  background: var(--yellow);
  color: #000;
  box-shadow: 0 4px 14px rgba(255,213,0,0.5);
}

.badge-red {
  background: var(--red-light);
  color: var(--red);
  border: 1.5px solid var(--red-mid);
}

.badge-green {
  background: var(--green-light);
  color: var(--green);
  border: 1.5px solid #A7E8C5;
}

.badge-blue {
  background: var(--blue-light);
  color: var(--blue);
  border: 1.5px solid #BDD7F5;
}

.badge-purple {
  background: var(--purple-light);
  color: var(--purple);
  border: 1.5px solid #D8BFF0;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Aliases for backwards compat ── */
.section-badge       { @extend .badge; }
.section-badge.red   { @extend .badge-red; }
.section-badge.green { @extend .badge-green; }
.section-badge.blue  { @extend .badge-blue; }
.section-badge.purple { @extend .badge-purple; }
/* Inline fallbacks */
.section-badge               { display:inline-flex; align-items:center; gap:7px; font-family:'Poppins',sans-serif; font-size:0.78rem; font-weight:800; text-transform:uppercase; letter-spacing:1.5px; padding:7px 18px; border-radius:var(--r-pill); margin-bottom:16px; background:var(--yellow); color:#000; box-shadow:0 4px 14px rgba(255,213,0,0.4); }
.section-badge.red           { background:var(--red-light); color:var(--red); border:1.5px solid var(--red-mid); box-shadow:none; }
.section-badge.green         { background:var(--green-light); color:var(--green); border:1.5px solid #A7E8C5; box-shadow:none; }
.section-badge.blue          { background:var(--blue-light); color:var(--blue); border:1.5px solid #BDD7F5; box-shadow:none; }
.section-badge.purple        { background:var(--purple-light); color:var(--purple); border:1.5px solid #D8BFF0; box-shadow:none; }
.section-title-wrap          { text-align:center; max-width:720px; margin:0 auto 55px; }
.section-subtitle            { font-size:1.05rem; color:var(--muted); line-height:1.7; }

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: var(--r-pill);
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}

.btn:hover::after {
  background: rgba(255,255,255,0.12);
}

.btn-primary {
  padding: 14px 30px;
  background: var(--grad-red);
  color: #fff;
  box-shadow: 0 8px 24px rgba(229,36,33,0.40), 0 2px 8px rgba(229,36,33,0.20);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(229,36,33,0.50), 0 4px 12px rgba(229,36,33,0.25);
  color: #fff;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-yellow {
  padding: 14px 30px;
  background: var(--grad-yellow);
  color: #000;
  box-shadow: 0 8px 24px rgba(255,213,0,0.45), 0 2px 8px rgba(255,213,0,0.20);
  border-color: rgba(0,0,0,0.06);
}

.btn-yellow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(255,213,0,0.60);
  color: #000;
}

.btn-outline-primary {
  padding: 12px 26px;
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

.btn-outline-primary:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229,36,33,0.35);
}

.btn-outline-white {
  padding: 14px 30px;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}

.btn-lg { padding: 16px 38px; font-size: 1.0rem; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }

/* ==========================================================================
   6. TOPBAR
   ========================================================================== */
.topbar {
  background: var(--red);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 9px 0;
  border-bottom: 3px solid var(--yellow);
}

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

.topbar-info {
  display: flex;
  gap: 22px;
}

.topbar-info span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.topbar-info i {
  color: var(--yellow);
}

.topbar-social {
  display: flex;
  gap: 8px;
}

.topbar-social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.78rem;
  transition: all 0.2s var(--ease-bounce);
}

.topbar-social a:hover {
  background: var(--yellow);
  color: #000;
  transform: translateY(-3px) scale(1.15);
}

/* ==========================================================================
   7. NAVBAR (HEADER)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s var(--ease);
}

.navbar.scrolled {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.10);
}

.navbar .container {
  max-width: 1400px;
  padding: 0 20px;
}

.navbar-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  height: 78px;
}

.brand-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s var(--ease-bounce);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.04);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1E293B;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s var(--ease);
  position: relative;
  letter-spacing: -0.2px;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--red);
  background: rgba(229, 36, 33, 0.08);
}

.nav-link.active {
  color: var(--red);
  background: rgba(229, 36, 33, 0.10);
  font-weight: 900;
}

/* ── Dropdown Menu (Informasi) ── */
.nav-item.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-arrow {
  font-size: 0.72rem;
  transition: transform 0.25s var(--ease);
}

.nav-item.dropdown:hover .dropdown-arrow,
.nav-item.dropdown.show .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #FFFFFF;
  border-radius: var(--r-lg);
  padding: 12px;
  min-width: 270px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(229, 36, 33, 0.06);
  border: 2px solid var(--border-yellow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Little pointer notch at top */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border-top: 2px solid var(--border-yellow);
  border-left: 2px solid var(--border-yellow);
  z-index: 2;
}

/* Invisible Bridge to prevent losing hover when cursor moves down */
.dropdown-menu::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  height: 25px;
  background: transparent;
  z-index: 1;
}

/* Hover on Desktop & Open State */
@media (min-width: 769px) {
  .nav-item.dropdown:hover .dropdown-menu,
  .nav-item.dropdown.hover-active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.nav-item.dropdown.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--body-text);
  transition: all 0.2s var(--ease);
}

.dropdown-item:hover {
  background: var(--bg-soft);
  transform: translateX(4px);
}

.dropdown-item.active {
  background: var(--red-light);
}

.dropdown-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-bounce);
}

.dropdown-item:hover .dropdown-item-icon {
  transform: scale(1.12);
}

.dropdown-item-icon.red    { background: var(--red-light); color: var(--red); }
.dropdown-item-icon.green  { background: var(--green-light); color: var(--green); }
.dropdown-item-icon.purple { background: var(--purple-light); color: var(--purple); }
.dropdown-item-icon.blue   { background: var(--blue-light); color: var(--blue); }

.dropdown-item-content {
  display: flex;
  flex-direction: column;
}

.dropdown-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.dropdown-item.active .dropdown-title {
  color: var(--red);
}

.dropdown-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.3;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-actions .btn-yellow {
  padding: 10px 20px;
  font-size: 0.86rem;
  box-shadow: 0 4px 14px rgba(255, 213, 0, 0.4);
}

.menu-toggle {
  display: none;
  background: var(--red-light);
  border: none;
  color: var(--red);
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s;
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover {
  background: var(--red);
  color: #fff;
}
  justify-content: center;
}

.menu-toggle:hover {
  background: var(--red);
  color: #fff;
}

/* ==========================================================================
   8. HERO SECTION
   ========================================================================== */
.hero-section {
  background: var(--grad-hero);
  padding: 70px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Animated background blobs */
.hero-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,213,0,0.18) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: blobFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,36,33,0.10) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
  animation: blobFloat 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 55px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 20px;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 16px rgba(229,36,33,0.12);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 22px;
  border: 2px solid var(--yellow);
  animation: fadeSlideDown 0.6s var(--ease-bounce) both;
}

.hero-tag i { color: var(--yellow); }

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
  animation: fadeSlideUp 0.7s var(--ease) 0.1s both;
}

.hero-title .hl-red {
  color: var(--red);
}

.hero-title .hl-yellow-box {
  background: var(--yellow);
  color: #000;
  padding: 3px 12px;
  border-radius: 10px;
  display: inline-block;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.75;
  animation: fadeSlideUp 0.7s var(--ease) 0.2s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
  animation: fadeSlideUp 0.7s var(--ease) 0.3s both;
}

/* ── Stats Row ── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 2px dashed rgba(229,36,33,0.18);
  animation: fadeSlideUp 0.7s var(--ease) 0.4s both;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* ── Hero Visual Card ── */
.hero-visual {
  position: relative;
  animation: fadeSlideUp 0.8s var(--ease) 0.15s both;
}

/* ── Hero Image Card ── */
.hero-image-card {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(229, 36, 33, 0.18), 0 12px 30px rgba(255, 213, 0, 0.25);
  border: 4px solid var(--yellow);
  background: #FFFFFF;
  line-height: 0;
}

.hero-main-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.hero-image-card:hover .hero-main-img {
  transform: scale(1.03);
}

.hero-img-overlay-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--yellow);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

/* ── Floating Badges ── */
.hero-float-badge {
  position: absolute;
  background: #fff;
  border: 2.5px solid var(--yellow);
  border-radius: var(--r-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.hero-float-badge.top-right {
  top: -20px;
  right: -20px;
  animation: floatBadge 4s ease-in-out infinite;
}

.hero-float-badge.bottom-left {
  bottom: -24px;
  left: -24px;
  animation: floatBadge 5s ease-in-out 1.5s infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.float-icon.red    { background: var(--red-light); color: var(--red); }
.float-icon.yellow { background: var(--yellow); color: #000; }

/* ==========================================================================
   9. WAVE DIVIDERS
   ========================================================================== */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ==========================================================================
   10. USP TICKER STRIP
   ========================================================================== */
.usp-strip {
  background: var(--yellow);
  border-top: 2px solid var(--yellow-dark);
  border-bottom: 2px solid var(--yellow-dark);
  padding: 0;
  overflow: hidden;
}

.usp-strip-inner {
  display: flex;
  align-items: center;
  gap: 0;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  white-space: nowrap;
  font-weight: 900;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: #000;
  border-right: 2px solid rgba(0,0,0,0.12);
}

.usp-item i {
  color: var(--red);
  font-size: 1rem;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   11. PROGRAM CARDS — GLASSMORPHISM + HOVER
   ========================================================================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

@media (min-width: 1100px) {
  .programs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .programs-grid > .program-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .programs-grid > .program-card:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

.program-card {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--border);
  transition: all 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}

.program-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: transparent;
  border: 2px solid transparent;
  transition: border-color 0.3s var(--ease);
  pointer-events: none;
  z-index: 3;
}

.program-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: var(--shadow-xl);
}

.program-card:hover::before {
  border-color: var(--yellow);
}

.program-card-header {
  padding: 32px 28px 24px;
  background: linear-gradient(145deg, var(--yellow-pale) 0%, #fff 100%);
  border-bottom: 2px solid var(--border-yellow);
  position: relative;
  overflow: hidden;
}

.program-card-header::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(229,36,33,0.05);
}

.program-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 18px;
  transition: transform 0.3s var(--ease-bounce);
}

.program-card:hover .program-icon-box {
  transform: scale(1.1) rotate(-5deg);
}

/* Icon variants */
.program-icon-box.red,
.program-icon-box.orange { background: var(--red-light); color: var(--red); }
.program-icon-box.yellow  { background: var(--yellow); color: #000; }
.program-icon-box.green   { background: var(--green-light); color: var(--green); }
.program-icon-box.blue    { background: var(--blue-light); color: var(--blue); }
.program-icon-box.purple  { background: var(--purple-light); color: var(--purple); }

.program-card-title {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.program-card-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

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

.program-meta-list {
  list-style: none;
  margin-bottom: 22px;
}

.program-meta-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--body-text);
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}

.program-meta-list li:last-child { border-bottom: none; }

.program-meta-list li i {
  color: var(--green);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.program-price-box {
  background: linear-gradient(135deg, var(--yellow-pale) 0%, #fff 100%);
  padding: 16px 20px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
  border: 2px solid var(--border-yellow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  margin-bottom: 3px;
}

.price-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--red);
}

.price-val span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

/* ==========================================================================
   12. FEATURE BOXES
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 24px;
}

.feature-box {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-box::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-yellow);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  transform-origin: center;
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--yellow);
}

.feature-box:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: transform 0.3s var(--ease-bounce);
}

.feature-box:hover .feature-icon {
  transform: scale(1.12) rotate(-8deg);
}

.feature-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ==========================================================================
   13. FRANCHISE BANNER — VIBRANT SMARTKIDZ RED + YELLOW
   ========================================================================== */
.franchise-banner {
  background: linear-gradient(135deg, #E52421 0%, #C91A17 50%, #9B110F 100%);
  border-radius: var(--r-2xl);
  padding: 70px 60px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  border: 4px solid var(--yellow);
  box-shadow: var(--shadow-xl), 0 10px 40px rgba(229, 36, 33, 0.35);
}

.franchise-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 0, 0.28) 0%, transparent 65%);
  animation: blobFloat 12s ease-in-out infinite;
}

.franchise-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
  animation: blobFloat 9s ease-in-out 2s infinite reverse;
}

.franchise-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.franchise-title {
  color: #FFFFFF;
  font-size: 2.4rem;
  margin-bottom: 18px;
  line-height: 1.2;
}

.franchise-desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  margin-bottom: 30px;
  line-height: 1.75;
}

.franchise-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 36px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #FFFFFF;
}

.perk-item i { color: var(--yellow); }

.franchise-box-card {
  background: rgba(0, 0, 0, 0.22);
  border: 2px solid rgba(255, 213, 0, 0.7);
  border-radius: var(--r-xl);
  padding: 38px 30px;
  backdrop-filter: blur(16px);
  text-align: center;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.franchise-box-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(255,213,0,0.3), transparent, rgba(255,213,0,0.1));
  pointer-events: none;
}

.franchise-box-price {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--yellow);
  margin: 10px 0;
  text-shadow: 0 2px 12px rgba(255,213,0,0.5);
}

/* ==========================================================================
   14. TESTIMONIAL CARDS
   ========================================================================== */
.testimonial-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 36px 30px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 5rem;
  color: var(--yellow);
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.5;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--yellow);
}

.testimonial-stars {
  color: var(--yellow-dark);
  font-size: 1.05rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-style: italic;
  color: var(--body-text);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ==========================================================================
   15. FAQ ACCORDION
   ========================================================================== */
/* ==========================================================================
   15. FAQ ACCORDION — MODERN PREMIUM CARDS
   ========================================================================== */
.faq-item {
  background: #FFFFFF;
  border-radius: var(--r-lg);
  border: 2px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.faq-item:hover {
  border-color: var(--yellow);
  box-shadow: 0 8px 25px rgba(255, 213, 0, 0.15);
  transform: translateY(-2px);
}

.faq-item.open {
  border-color: var(--yellow);
  border-left: 6px solid var(--red);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.faq-question:hover,
.faq-item.open .faq-question {
  color: var(--red);
}

.faq-q-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.faq-num-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--yellow-pale);
  color: #92400E;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-yellow);
  transition: all 0.25s var(--ease);
}

.faq-item.open .faq-num-badge {
  background: var(--red);
  color: #FFFFFF;
  border-color: var(--red);
}

.faq-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--red);
  color: #FFFFFF;
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(229, 36, 33, 0.35);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  font-size: 0.96rem;
  color: var(--body-text);
  line-height: 1.8;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding: 0 24px 22px 72px;
}

@media (max-width: 640px) {
  .faq-item.open .faq-answer {
    padding: 0 20px 20px 20px;
  }
}

/* ==========================================================================
   16. FORMS & INPUTS
   ========================================================================== */
.form-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 45px 40px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
}

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

.form-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.form-label span.req { color: var(--red); }

.form-control {
  width: 100%;
  padding: 13px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.97rem;
  color: var(--body-text);
  background: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.2s var(--ease);
  outline: none;
}

.form-control:focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(229,36,33,0.10);
}

select.form-control { cursor: pointer; }
textarea.form-control { min-height: 120px; resize: vertical; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
.footer {
  background: var(--ink);
  color: #94A3B8;
  padding: 80px 0 32px;
  border-top: 5px solid var(--red);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--yellow);
  margin-top: 5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--yellow);
  border-radius: 3px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 11px; }

.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.footer-links a:hover {
  color: var(--yellow);
  transform: translateX(5px);
}

.footer-links a i { font-size: 0.7rem; color: var(--yellow); }

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.88rem;
}

.footer-contact-item i { color: var(--yellow); font-size: 1rem; margin-top: 3px; }

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  transition: all 0.25s var(--ease-bounce);
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-social-link:hover {
  background: var(--yellow);
  color: #000;
  transform: translateY(-5px) scale(1.15);
  border-color: var(--yellow);
}

.footer-logo-wrap {
  background: #fff;
  border-radius: var(--r-md);
  padding: 10px 16px;
  display: inline-block;
  margin-bottom: 20px;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: #94A3B8;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--yellow);
}

/* ==========================================================================
   18. FLOATING WHATSAPP
   ========================================================================== */
.floating-wa-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
  transition: all 0.3s var(--ease-bounce);
  animation: waPulse 3s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 8px 28px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0.12); }
}

.floating-wa-btn:hover {
  transform: scale(1.15) rotate(10deg);
  color: #fff;
  animation: none;
  box-shadow: 0 12px 36px rgba(37,211,102,0.6);
}

/* ==========================================================================
   19. SCROLL ANIMATIONS
   ========================================================================== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   20. NUMBER COUNTER ANIMATION
   ========================================================================== */
.counter-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--red);
}

/* ==========================================================================
   21. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid          { grid-template-columns: 1fr; }
  .hero-visual        { max-width: 500px; margin: 0 auto; }
  .franchise-grid     { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section-padding    { padding: 60px 0; }
  .hero-section       { padding: 50px 0 70px; }
  .hero-stats         { grid-template-columns: repeat(3, 1fr); }
  .nav-menu           { display: none; }
  .nav-menu.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    border-bottom: 3px solid var(--yellow);
    gap: 8px;
    z-index: 999;
  }
  .nav-menu.mobile-open .nav-link {
    width: 100%;
    padding: 10px 16px;
    justify-content: space-between;
  }
  .nav-menu.mobile-open .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 1px solid var(--border-yellow);
    background: var(--bg-soft);
    margin: 6px 0 10px 0;
    width: 100%;
  }
  .nav-menu.mobile-open .dropdown-menu::before {
    display: none;
  }
  .menu-toggle        { display: flex !important; }
  .form-grid-2        { grid-template-columns: 1fr; }
  .franchise-banner   { padding: 40px 24px; }
  .hero-float-badge.top-right,
  .hero-float-badge.bottom-left { display: none; }
}

@media (max-width: 640px) {
  .topbar             { display: none; }
  .hero-title         { font-size: 1.95rem; }
  .section-title      { font-size: 1.65rem; }
  .hero-stats         { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid        { grid-template-columns: 1fr; }
  .footer-bottom      { flex-direction: column; text-align: center; }
  .form-card          { padding: 25px 18px; }
  .programs-grid      { grid-template-columns: 1fr; }
  .features-grid      { grid-template-columns: 1fr; }
}

/* Compat aliases needed by blade views */
.btn-blue     { @extend .btn; background: var(--blue); color:#fff; }
.btn-blue:hover { background: var(--blue); opacity: 0.85; color: #fff; }

.mint-green-light { background: var(--green-light); }
.mint-green       { color: var(--green); }
.playful-purple   { color: var(--purple); }
.playful-purple-light { background: var(--purple-light); }
.smart-blue       { color: var(--blue); }
.smart-blue-light { background: var(--blue-light); }
.primary-orange   { color: var(--red); }
.primary-orange-light { background: var(--red-light); }
.sunny-yellow     { color: var(--yellow-dark); }
.sunny-yellow-light { background: var(--yellow-pale); }

/* Sections that reference old variable names as inline values */
:root {
  --primary-orange:         var(--red);
  --primary-orange-light:   var(--red-light);
  --smart-blue:             var(--blue);
  --smart-blue-light:       var(--blue-light);
  --sunny-yellow:           var(--yellow-dark);
  --sunny-yellow-light:     var(--yellow-pale);
  --mint-green:             var(--green);
  --mint-green-light:       var(--green-light);
  --playful-purple:         var(--purple);
  --playful-purple-light:   var(--purple-light);
  --dark-slate:             var(--ink);
  --dark-text:              var(--body-text);
  --muted-text:             var(--muted);
  --light-border:           var(--border);
  --bg-cream:               var(--bg-page);
  --bg-light:               var(--bg-soft);
  --brand-red:              var(--red);
  --brand-red-light:        var(--red-light);
  --brand-yellow:           var(--yellow);
  --brand-yellow-light:     var(--yellow-light);
  --brand-red-gradient:     var(--grad-red);
  --brand-red-glow:         0 0 25px rgba(229,36,33,0.35);
  --brand-red-hover:        var(--red-dark);
  --brand-yellow-hover:     var(--yellow-dark);
  --accent-green:           var(--green);
  --accent-green-light:     var(--green-light);
  --accent-blue:            var(--blue);
  --accent-blue-light:      var(--blue-light);
  --accent-purple:          var(--purple);
  --accent-purple-light:    var(--purple-light);
  --border-yellow:          var(--border-yellow);
  --shadow-md:              var(--shadow-md);
  --shadow-lg:              var(--shadow-lg);
  --shadow-sm:              var(--shadow-sm);
  --shadow-xl:              var(--shadow-xl);
  --radius-sm:              var(--r-sm);
  --radius-md:              var(--r-md);
  --radius-lg:              var(--r-lg);
  --radius-xl:              var(--r-xl);
  --radius-pill:            var(--r-pill);
}

/* ==========================================================================
   20. PAGINATION — CLEAN RED & YELLOW PILL
   ========================================================================== */
nav[role="navigation"] svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: inline-block;
  vertical-align: middle;
}

.custom-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 40px auto 20px;
  width: 100%;
}

