/*
Theme Name: GS Kids Smart School
Theme URI: http://192.168.5.12/gskids
Author: G.S. Kids Smart School
Description: Professional school website theme for G.S. Kids Smart School
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: gskids-theme
*/

/* =============================================
   CSS VARIABLES & RESET
   ============================================= */
:root {
  --primary:     #65318e;
  --primary-dark:#4a2068;
  --accent:      #ffc720;
  --accent-dark: #e6a800;
  --green:       #328a59;
  --light-bg:    #f5f0ff;
  --header-scroll-bg: #EBE1FF;
  --white:       #ffffff;
  --text-dark:   #282828;
  --text-mid:    #555555;
  --text-light:  #888888;
  --border:      #e8dff5;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 8px 30px rgba(0,0,0,.12);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.15);
  --radius:      14px;
  --radius-lg:   24px;
  --transition:  all .3s ease;
  --font-main:   'Sniglet', 'Segoe UI', sans-serif;
  --font-heading:'Fredoka', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.hero h1,
.nav-link,
.btn,
.logo-text .school-name,
.feature-card h3,
.program-card h3,
.news-card h3,
.testimonial-card .name,
.smart-item-text h4,
.contact-info h3,
.contact-form-wrap h3,
.footer-col h4,
.cta-inner h2,
.page-hero h1,
.page-content h2 {
  font-family: var(--font-heading);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 50px 0; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
.section-tag {
  display: inline-block;
  background: rgba(101,49,142,.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
  font-family: var(--font-heading);
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto 50px;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,166,35,.4);
}

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

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

/* =============================================
   TOP BAR
   ============================================= */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  padding: 8px 0;
  font-family: var(--font-heading);
}

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

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

.top-bar a { color: rgba(255,255,255,.85); }
.top-bar a:hover { color: var(--accent); }

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

.top-bar-item svg { width: 14px; height: 14px; flex-shrink: 0; }

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease;
  border-bottom: 2px solid transparent;
}

.site-header.scrolled {
  background: var(--header-scroll-bg);
  box-shadow: 0 4px 20px rgba(101,49,142,.12);
  border-bottom-color: rgba(101,49,142,.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg { width: 26px; height: 26px; fill: white; }

.logo-text { line-height: 1.2; }
.logo-text .school-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.logo-text .school-tag {
  font-size: 11px;
  color: var(--accent-dark);
  font-weight: 600;
  display: block;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 6px; }

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-item.current-menu-item > .nav-link,
.nav-item.current-menu-ancestor > .nav-link {
  color: var(--primary);
  background: var(--light-bg);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-item.current-menu-item > .nav-link {
  background: rgba(101,49,142,.12);
}

.nav-link .arrow {
  width: 14px;
  height: 14px;
  transition: transform .3s;
}

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

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover {
  background: var(--light-bg);
  color: var(--primary);
  padding-left: 28px;
}

/* .header-cta { margin-left: 12px; } */

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #7b3aaf 100%);
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
}

.hero-shape-1 {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -200px; right: -150px;
}
.hero-shape-2 {
  width: 300px; height: 300px;
  background: var(--white);
  bottom: -100px; left: -80px;
}
.hero-shape-3 {
  width: 200px; height: 200px;
  background: var(--accent);
  bottom: 100px; right: 200px;
  opacity: .05;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .7; }
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 .highlight {
  color: var(--accent);
  position: relative;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.hero-stat-item {}
.hero-stat-num {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
  margin-top: 4px;
}

/* =============================================
   NOTICE TICKER
   ============================================= */
.notice-bar {
  background: var(--accent);
  padding: 12px 0;
  overflow: hidden;
}

.notice-bar .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.notice-label {
  background: var(--primary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-heading);
}

.notice-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.notice-track {
  display: flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.notice-track:hover { animation-play-state: paused; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.notice-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  font-family: var(--font-heading);
}

.notice-item::before {
  content: '★';
  margin-right: 10px;
  color: var(--primary);
}

/* =============================================
   FEATURES / WHY US
   ============================================= */
.features { background: var(--light-bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 10px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform .4s ease;
}

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

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

.feature-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  transition: var(--transition);
}

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

.icon-blue   { background: rgba(101,49,142,.12); }
.icon-orange { background: rgba(255,199,32,.18); }
.icon-green  { background: rgba(50,138,89,.12);  }
.icon-purple { background: rgba(101,49,142,.15); }
.icon-teal   { background: rgba(26,188,156,.12); }
.icon-red    { background: rgba(231,76,60,.12);  }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-placeholder {
  text-align: center;
  color: rgba(255,255,255,.9);
  padding: 40px;
}

.about-img-placeholder .school-icon-lg {
  font-size: 80px;
  display: block;
  margin-bottom: 20px;
}

.about-img-placeholder h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.about-img-placeholder p {
  font-size: 15px;
  opacity: .85;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-badge .big-num {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  display: block;
}

.about-badge .label {
  font-size: 13px;
  font-weight: 600;
  opacity: .9;
}

.about-content .section-subtitle {
  margin: 0 0 30px;
  text-align: left;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0 36px;
}

.about-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-point .tick {
  width: 24px;
  height: 24px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.about-point span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

/* =============================================
   PROGRAMS / CLASSES
   ============================================= */
.programs { background: var(--light-bg); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

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

.program-header {
  padding: 32px 24px 24px;
  position: relative;
}

.program-emoji {
  font-size: 44px;
  display: block;
  margin-bottom: 14px;
}

.program-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.program-card .age-tag {
  font-size: 12px;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  background: rgba(255,255,255,.2);
  padding: 3px 12px;
  border-radius: 50px;
  display: inline-block;
}

.program-body {
  padding: 20px 24px 28px;
}

.program-body p {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.6;
}

.program-features {
  text-align: left;
}

.program-features li {
  font-size: 13px;
  color: var(--text-dark);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.program-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
}

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

/* Program card color schemes */
.prog-nursery .program-header { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.prog-lkg     .program-header { background: linear-gradient(135deg, #e67e22, #d35400); }
.prog-ukg     .program-header { background: linear-gradient(135deg, #f39c12, #e67e22); }
.prog-primary .program-header { background: linear-gradient(135deg, #27ae60, #229954); }
.prog-middle  .program-header { background: linear-gradient(135deg, #2980b9, #1a6aa1); }
.prog-senior  .program-header { background: linear-gradient(135deg, #8e44ad, #7d3c98); }

/* =============================================
   SMART FEATURES / FACILITIES
   ============================================= */
.smart-features { background: var(--white); }

.smart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.smart-list { display: flex; flex-direction: column; gap: 20px; }

.smart-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--white);
}

.smart-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(6px);
}

.smart-item-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.smart-item-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.smart-item-text p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

.smart-visual {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  color: var(--white);
  text-align: center;
}

.smart-visual h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

.smart-visual p {
  font-size: 15px;
  opacity: .85;
  margin-bottom: 36px;
}

.stats-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-box {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
}

.stat-box .num {
  font-size: 38px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-box .lbl {
  font-size: 12px;
  opacity: .8;
  margin-top: 6px;
  font-weight: 500;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { background: var(--light-bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

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

.quote-icon {
  font-size: 50px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}

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

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.author-info .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.author-info .role {
  font-size: 13px;
  color: var(--text-light);
}

.stars {
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 4px;
}

/* =============================================
   CALL TO ACTION BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #7b3aaf 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: rgba(245,166,35,.15);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 18px;
  color: rgba(255,255,255,.85);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   LATEST NEWS / BLOG
   ============================================= */
.latest-news { background: var(--white); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.news-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  position: relative;
  overflow: hidden;
}

.news-date-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--accent);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
}

.news-body { padding: 24px; }

.news-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: block;
}

.news-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-card h3 a { color: inherit; }
.news-card h3 a:hover { color: var(--accent); }

.news-card p {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 18px;
  line-height: 1.7;
}

.read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.read-more:hover { color: var(--accent); gap: 10px; }

/* =============================================
   GALLERY STRIP
   ============================================= */
.gallery-strip { background: var(--light-bg); padding: 60px 0; }

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

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover { transform: scale(1.03); }
.gallery-item:nth-child(1) { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.gallery-item:nth-child(2) { background: linear-gradient(135deg, #27ae60, #1e8449); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg, #2980b9, #1a6aa1); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg, #f39c12, #d35400); }
.gallery-item:nth-child(5) { background: linear-gradient(135deg, #8e44ad, #7d3c98); }
.gallery-item:nth-child(6) { background: linear-gradient(135deg, #16a085, #0d6e5d); }
.gallery-item:nth-child(7) { background: linear-gradient(135deg, #c0392b, #a93226); }
.gallery-item:nth-child(8) { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74,32,104,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: white;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
}

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

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--light-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:hover .contact-item-icon {
  background: var(--primary);
  transform: scale(1.1);
}

.contact-item-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-item-text p,
.contact-item-text a {
  font-size: 14px;
  color: var(--text-mid);
}

.contact-item-text a:hover { color: var(--accent); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(101,49,142,.3);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form-wrap h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.contact-form-wrap p {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 28px;
}

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

.wpcf7-form .form-group {
  margin-bottom: 18px;
}

.wpcf7-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 7px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(101,49,142,.12);
}

.wpcf7-form textarea { height: 120px; resize: vertical; }

.wpcf7-form input[type="submit"] {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 40px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  margin-top: 6px;
}

.wpcf7-form input[type="submit"]:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,166,35,.4);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
}

.footer-top { padding: 70px 0 50px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
}

.footer-brand .site-logo { margin-bottom: 20px; }
.footer-brand .logo-text .school-name { color: var(--white); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

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

.footer-links { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links a::before {
  content: '›';
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}

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

.footer-contact-items { display: flex; flex-direction: column; gap: 14px; }

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(255,255,255,.75);
}

.footer-contact-item span:first-child {
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

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

/* =============================================
   INNER PAGES
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), #7b3aaf);
  padding: 70px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}

.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,.5); }

.page-content { padding: 70px 0; }
.page-content h2 { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.page-content p { color: var(--text-mid); line-height: 1.8; margin-bottom: 20px; }
.page-content ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-content ul li::before { content: '✓'; color: var(--green); font-weight: 800; }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 20px rgba(101,49,142,.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  border: none;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-4px);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .about-grid    { grid-template-columns: 1fr; gap: 40px; }
  .smart-grid    { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 40px; }
  .gallery-grid  { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .top-bar { display: none; }

  .hamburger { display: flex; }

  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 9999;
    padding: 20px;
  }

  .main-nav.open { display: flex; }

  .nav-item { width: 100%; text-align: center; }

  .nav-link {
    font-size: 18px;
    padding: 14px 24px;
    justify-content: center;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--light-bg);
    border-radius: var(--radius);
    margin-top: 4px;
    display: none;
  }

  .nav-item.open .dropdown { display: block; }

  .header-cta { display: none; }

  .close-nav {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-dark);
  }

  .hero { min-height: 70vh; padding: 60px 0; }
  .hero-stats { gap: 24px; }

  .section-pad { padding: 55px 0; }

  .about-points { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

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

  .programs-grid { grid-template-columns: 1fr 1fr; }

  .wpcf7-form .form-row { grid-template-columns: 1fr; }

  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .programs-grid { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero-actions  { flex-direction: column; }
}

.main-nav ul,
.main-nav li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 20px; /* controls space between menu & button */
}

.header-cta.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 15px 22px;   /* reduced */
    border-radius: 30px;  /* smoother, not too round */

    font-size: 14px;
    font-weight: 600;

    line-height: 1;
    cursor: pointer;

    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.site-header .container {
  max-width: 1290px;
}

/* =============================================
   KIDZEE-STYLE ENHANCEMENTS
   ============================================= */

/* Colorful wavy section separators */
.features::before {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--green), var(--primary));
  background-size: 200% auto;
  animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Playful program card header colors */
.prog-nursery .program-header { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.prog-lkg     .program-header { background: linear-gradient(135deg, #f39c12, #e67e22); }
.prog-ukg     .program-header { background: linear-gradient(135deg, #ffc720, #f39c12); }
.prog-primary .program-header { background: linear-gradient(135deg, #27ae60, #229954); }
.prog-middle  .program-header { background: linear-gradient(135deg, #65318e, #4a2068); }
.prog-senior  .program-header { background: linear-gradient(135deg, #6D2A93, #4a2068); }

/* Kidzee-style logo text */
.logo-text .school-name {
  color: var(--primary);
  font-size: 20px;
  letter-spacing: -0.5px;
}

.logo-text .school-tag {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 600;
}

/* Fun hover on feature cards */
.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--white);
}

/* Notice bar — yellow like Kidzee */
.notice-bar {
  background: var(--accent);
}

/* Testimonial quote icon in purple */
.quote-icon {
  color: var(--primary);
}

/* Stars in gold */
.stars { color: var(--accent-dark); font-size: 16px; }

/* Program features tick in green */
.program-features li::before { color: var(--green); }

/* Footer underline accent in yellow */
.footer-col h4::after { background: var(--accent); }

/* Footer link hover in accent */
.footer-links a::before { color: var(--accent); }

/* Smooth card border radius upgrade */
.feature-card,
.program-card,
.testimonial-card,
.news-card,
.contact-form-wrap { border-radius: var(--radius-lg); }

/* Kidzee-style btn-primary (purple bg, not yellow) */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(101,49,142,.4);
}

/* Header CTA button stays accent yellow for contrast */
.header-cta.btn {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  font-weight: 700;
}

.header-cta.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--primary-dark);
}

/* Kidzee-style contact form input border focus */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  border-radius: var(--radius);
  border-color: var(--border);
}

.wpcf7-form input[type="submit"] {
  background: var(--primary);
  border-radius: 50px;
}

.wpcf7-form input[type="submit"]:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 25px rgba(101,49,142,.4);
}

/* Kidzee-style scrollbar */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--light-bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 20px; opacity: .5; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* Active nav link purple underline */
.nav-link.active {
  color: var(--primary);
  font-weight: 700;
}

/* Smart item hover border in purple */
.smart-item:hover {
  border-color: var(--primary);
  background: var(--light-bg);
}

/* Kidzee-style contact item icon hover */
.contact-item:hover .contact-item-icon {
  background: var(--primary);
}
