/*
Theme Name: Kidshree School
Theme URI: https://kidshreeschool.edu.in
Author: Kidshree School
Author URI: https://kidshreeschool.edu.in
Description: Official WordPress theme for Kidshree School, Nandanama, Lakhisarai, Bihar. A modern, responsive school website theme with Royal Blue primary palette, animated sections, and a complete 8-page layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kidshree-school
Tags: education, school, responsive, one-column, two-columns, custom-menu, featured-images
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --secondary: #0ea5e9;
  --accent: #facc15;
  --background: #f0f6ff;
  --foreground: #0f172a;
  --muted: #e8f0fe;
  --muted-fg: #64748b;
  --border: #cbd5e1;
  --white: #ffffff;
  --radius: 0.75rem;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --shadow-sm: 0 2px 8px rgba(30,58,138,0.08);
  --shadow-md: 0 6px 20px rgba(30,58,138,0.12);
  --shadow-lg: 0 20px 40px rgba(30,58,138,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

ul { list-style: none; }

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

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.ks-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.ks-container-sm { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }
.ks-container-md { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

.ks-grid { display: grid; gap: 1.5rem; }
.ks-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ks-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ks-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ks-flex { display: flex; }
.ks-flex-center { display: flex; align-items: center; justify-content: center; }
.ks-text-center { text-align: center; }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#ks-scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
#ks-scroll-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.1s;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#ks-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
#ks-navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.ks-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.ks-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.ks-logo-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(29,78,216,0.3);
  flex-shrink: 0;
}
.ks-logo-text { display: none; }
.ks-logo-text strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}
.ks-logo-text span { font-size: 0.7rem; color: var(--muted-fg); }

.ks-nav-links { display: none; align-items: center; gap: 0.25rem; }
.ks-nav-links a {
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s, background 0.2s;
}
#ks-navbar.scrolled .ks-nav-links a { color: var(--foreground); }
.ks-nav-links a:hover,
.ks-nav-links a.active {
  color: var(--primary) !important;
  background: rgba(29,78,216,0.08);
}
#ks-navbar:not(.scrolled) .ks-nav-links a:hover {
  color: white !important;
  background: rgba(255,255,255,0.15);
}
.ks-nav-cta {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  background: var(--primary);
  color: white !important;
  font-weight: 600;
  font-size: 0.875rem;
  margin-left: 0.5rem;
  box-shadow: 0 2px 8px rgba(29,78,216,0.3);
}
.ks-nav-cta:hover { background: var(--primary-dark) !important; color: white !important; }

.ks-nav-phone {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
#ks-navbar.scrolled .ks-nav-phone { color: var(--primary); }
.ks-nav-phone svg { width: 14px; height: 14px; }

.ks-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: transparent;
}
.ks-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}
#ks-navbar.scrolled .ks-hamburger span { background: var(--foreground); }
.ks-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ks-hamburger.open span:nth-child(2) { opacity: 0; }
.ks-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#ks-mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.5rem 1.25rem;
}
#ks-mobile-menu.open { display: block; }
#ks-mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}
#ks-mobile-menu a:hover { background: var(--muted); color: var(--primary); }
#ks-mobile-menu a.ks-mobile-cta {
  background: var(--primary);
  color: white;
  text-align: center;
  font-weight: 600;
  margin-top: 0.5rem;
}
#ks-mobile-menu a.ks-mobile-phone {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.ks-page-hero {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 40%, #0369a1 100%);
  padding: 7rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ks-page-hero .float-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
}
.ks-page-hero .fs1 { width: 80px; height: 80px; top: 40px; left: 80px; animation: float 6s ease-in-out infinite; }
.ks-page-hero .fs2 { width: 100px; height: 100px; border-radius: 16px; bottom: 40px; right: 80px; animation: float2 8s ease-in-out infinite; transform: rotate(12deg); }
.ks-page-hero .ks-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}
.ks-page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: white;
  margin-bottom: 1rem;
}
.ks-page-hero p {
  color: rgba(186,230,255,0.9);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.ks-section-title { margin-bottom: 3rem; text-align: center; }
.ks-section-title.left { text-align: left; }
.ks-section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgba(29,78,216,0.1);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.ks-section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}
.ks-section-title p {
  color: var(--muted-fg);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}
.ks-section-title.left p { margin: 0; }

/* ============================================================
   CARDS
   ============================================================ */
.ks-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ks-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ks-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
}
.ks-btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow-sm); }
.ks-btn-primary:hover { background: var(--primary-dark); color: white; }
.ks-btn-outline-white {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  backdrop-filter: blur(4px);
}
.ks-btn-outline-white:hover { background: rgba(255,255,255,0.25); color: white; }
.ks-btn-white { background: white; color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.ks-btn-white:hover { background: #eff6ff; color: var(--primary); }
.ks-btn-ghost { color: var(--primary); font-weight: 600; gap: 0.375rem; padding: 0; background: none; }
.ks-btn-ghost:hover { gap: 0.625rem; color: var(--primary-dark); }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.ks-form-group { margin-bottom: 1.25rem; }
.ks-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.ks-form-input, .ks-form-textarea, .ks-form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: white;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ks-form-input:focus, .ks-form-textarea:focus, .ks-form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}
.ks-form-textarea { resize: vertical; min-height: 120px; }
.ks-form-error { color: #dc2626; font-size: 0.75rem; margin-top: 0.25rem; display: none; }
.ks-form-error.visible { display: block; }
.ks-form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  display: none;
}
.ks-form-success.visible { display: block; }
.ks-form-success h3 { color: #166534; margin-bottom: 0.5rem; }
.ks-form-success p { color: #4b7c5e; font-size: 0.9rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}
@keyframes float2 {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}
@keyframes float3 {
  0%,100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(20px) rotate(90deg); }
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.float-1 { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float2 8s ease-in-out infinite; }
.float-3 { animation: float3 7s ease-in-out infinite; }

.section-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-fade.visible { opacity: 1; transform: translateY(0); }

.gradient-text {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.img-zoom { overflow: hidden; }
.img-zoom .ks-img-inner { transition: transform 0.4s ease; }
.img-zoom:hover .ks-img-inner { transform: scale(1.06); }

/* ============================================================
   GRADIENT BACKGROUNDS
   ============================================================ */
.hero-gradient { background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 40%, #0369a1 100%); }
.stats-gradient { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); }
.cta-gradient { background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%); }
.bg-muted { background-color: var(--muted); }
.bg-white { background: white; }

/* ============================================================
   HERO SECTION (Home)
   ============================================================ */
.ks-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ks-hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  max-width: 780px;
}
.ks-hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.ks-hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  color: white;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.ks-hero h1 .accent { color: #fde68a; }
.ks-hero-desc {
  font-size: 1.1rem;
  color: rgba(186,230,255,0.95);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 640px;
}
.ks-hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.ks-hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ks-hero-stat {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.875rem;
  padding: 1rem;
  text-align: center;
}
.ks-hero-stat-val { font-size: 1.5rem; font-weight: 700; color: white; font-family: var(--font-heading); }
.ks-hero-stat-label { font-size: 0.7rem; color: rgba(186,230,255,0.8); margin-top: 0.25rem; }
.ks-hero-wave { position: absolute; bottom: 0; left: 0; right: 0; }
.ks-hero-floating { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ks-hero-floating .fshape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ============================================================
   WHY CHOOSE US CARDS
   ============================================================ */
.ks-feature-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* ============================================================
   STATS
   ============================================================ */
.ks-stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.ks-stat-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.ks-stat-val { font-size: 2.5rem; font-weight: 700; color: white; font-family: var(--font-heading); }
.ks-stat-label { color: #93c5fd; font-size: 0.85rem; margin-top: 0.5rem; }

/* ============================================================
   PROGRAM CARDS
   ============================================================ */
.ks-program-card { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s; }
.ks-program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ks-program-card-top { padding: 2rem 1.5rem; text-align: center; color: white; }
.ks-program-card-top .ks-picon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.ks-program-card-top h3 { font-size: 1rem; color: white; margin-bottom: 0.25rem; }
.ks-program-card-top span { font-size: 0.75rem; color: rgba(255,255,255,0.8); }
.ks-program-card-body { padding: 1rem 1.25rem; background: white; }
.ks-program-card-body p { font-size: 0.8rem; color: var(--muted-fg); line-height: 1.6; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.ks-testimonial-card { padding: 1.75rem; }
.ks-testimonial-stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; color: #f59e0b; font-size: 0.875rem; }
.ks-testimonial-text { font-style: italic; color: var(--muted-fg); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.25rem; }
.ks-testimonial-author { display: flex; align-items: center; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.ks-testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.875rem;
  flex-shrink: 0;
}
.ks-testimonial-name { font-weight: 600; font-size: 0.875rem; color: var(--foreground); }
.ks-testimonial-role { font-size: 0.75rem; color: var(--muted-fg); }

/* ============================================================
   GALLERY
   ============================================================ */
.ks-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ks-gallery-item { border-radius: 1rem; overflow: hidden; cursor: pointer; position: relative; }
.ks-gallery-item-inner {
  width: 100%; aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: flex-end; justify-content: flex-end;
  padding: 1rem;
  transition: transform 0.4s ease;
}
.ks-gallery-item:hover .ks-gallery-item-inner { transform: scale(1.06); }
.ks-gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.3s;
  display: flex; align-items: center; justify-content: center;
  border-radius: 1rem;
}
.ks-gallery-item:hover .ks-gallery-overlay { background: rgba(0,0,0,0.2); }
.ks-gallery-view-btn {
  opacity: 0;
  background: rgba(0,0,0,0.4);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity 0.3s;
}
.ks-gallery-item:hover .ks-gallery-view-btn { opacity: 1; }
.ks-gallery-label {
  width: 100%;
}
.ks-gallery-cat {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.375rem;
}
.ks-gallery-title { color: white; font-size: 0.78rem; font-weight: 600; }
.ks-gallery-icon { font-size: 2rem; margin-bottom: auto; }

/* Lightbox */
#ks-lightbox {
  position: fixed; inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center; justify-content: center;
}
#ks-lightbox.open { display: flex; }
.ks-lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,0.1);
  border: none; color: white; cursor: pointer; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.ks-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.ks-lightbox-prev, .ks-lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; color: white;
  cursor: pointer; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.ks-lightbox-prev:hover, .ks-lightbox-next:hover { background: rgba(255,255,255,0.2); }
.ks-lightbox-prev { left: 1rem; }
.ks-lightbox-next { right: 1rem; }
.ks-lightbox-content { max-width: 640px; width: calc(100% - 6rem); border-radius: 1.25rem; overflow: hidden; }
.ks-lightbox-img { width: 100%; height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; }
.ks-lightbox-img .lb-icon { font-size: 4.5rem; margin-bottom: 1rem; }
.ks-lightbox-img .lb-title { font-weight: 700; font-size: 1.25rem; text-align: center; padding: 0 1rem; }
.ks-lightbox-img .lb-cat { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-top: 0.5rem; }
.ks-lightbox-caption { background: white; padding: 1rem; text-align: center; }
.ks-lightbox-caption p { font-size: 0.85rem; color: var(--muted-fg); }

/* Gallery filter */
.ks-gallery-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 2.5rem; }
.ks-filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: none;
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.ks-filter-btn.active, .ks-filter-btn:hover {
  background: var(--primary);
  color: white;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.ks-faq-item { background: white; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; margin-bottom: 0.75rem; box-shadow: var(--shadow-sm); }
.ks-faq-btn {
  width: 100%; padding: 1.125rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  color: var(--foreground); text-align: left; gap: 1rem;
}
.ks-faq-btn:hover { background: var(--muted); }
.ks-faq-btn .ks-faq-icon { font-size: 1rem; color: var(--muted-fg); flex-shrink: 0; transition: transform 0.3s; }
.ks-faq-btn.open .ks-faq-icon { transform: rotate(180deg); color: var(--primary); }
.ks-faq-body { display: none; padding: 0 1.5rem 1.25rem; font-size: 0.875rem; color: var(--muted-fg); line-height: 1.7; }
.ks-faq-body.open { display: block; }

/* ============================================================
   ADMISSIONS STEPS
   ============================================================ */
.ks-steps-grid { display: grid; gap: 1.5rem; }
.ks-step { background: white; border: 1px solid var(--border); border-radius: 1rem; padding: 1.75rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s; }
.ks-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ks-step-num {
  width: 56px; height: 56px;
  border-radius: 1rem;
  background: var(--primary);
  color: white; font-weight: 700; font-size: 1.125rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(29,78,216,0.3);
  font-family: var(--font-heading);
}
.ks-step h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.ks-step p { font-size: 0.82rem; color: var(--muted-fg); line-height: 1.6; }

/* ============================================================
   CONTACT CARDS
   ============================================================ */
.ks-contact-card { padding: 1.5rem; border-radius: 1rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s; }
.ks-contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ks-contact-icon { margin-bottom: 0.75rem; font-size: 1.5rem; }
.ks-contact-type { font-size: 0.7rem; color: var(--muted-fg); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 0.375rem; }
.ks-contact-val { font-weight: 700; font-size: 0.9rem; color: var(--foreground); margin-bottom: 0.25rem; }
.ks-contact-sub { font-size: 0.75rem; color: var(--muted-fg); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#ks-back-to-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 800;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(29,78,216,0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  font-size: 1.25rem;
}
#ks-back-to-top.visible { opacity: 1; transform: translateY(0); }
#ks-back-to-top:hover { background: var(--primary-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.ks-footer { background: #0f172a; color: #94a3b8; }
.ks-footer-main { padding: 3.5rem 1.5rem; }
.ks-footer-grid { display: grid; gap: 2.5rem; max-width: 1280px; margin: 0 auto; }
.ks-footer-brand .ks-logo-text strong,
.ks-footer-brand .ks-logo-text span { color: #94a3b8; }
.ks-footer-brand .ks-logo-text strong { color: white; }
.ks-footer-desc { font-size: 0.875rem; color: #64748b; line-height: 1.7; margin: 1rem 0 1.25rem; }
.ks-footer-social { display: flex; gap: 0.75rem; }
.ks-social-btn {
  width: 36px; height: 36px;
  border-radius: 0.5rem;
  background: #1e293b;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8;
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.ks-social-btn.instagram:hover { background: #db2777; color: white; }
.ks-social-btn.facebook:hover { background: #2563eb; color: white; }
.ks-social-btn.twitter:hover { background: #0ea5e9; color: white; }
.ks-footer-col h3 { color: white; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.ks-footer-col ul li { margin-bottom: 0.625rem; }
.ks-footer-col ul li a { font-size: 0.875rem; color: #64748b; transition: color 0.2s; }
.ks-footer-col ul li a:hover { color: white; }
.ks-footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.875rem; }
.ks-footer-contact-item svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; width: 15px; height: 15px; }
.ks-footer-contact-item a { color: #64748b; }
.ks-footer-contact-item a:hover { color: white; }
.ks-footer-contact-item span { color: #64748b; }
.ks-footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 1.5rem;
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; color: #475569;
}
.ks-footer-bottom button {
  background: none; border: none; color: #475569;
  cursor: pointer; font-size: 0.75rem; font-family: inherit;
  transition: color 0.2s;
}
.ks-footer-bottom button:hover { color: white; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.ks-about-stat {
  background: rgba(29,78,216,0.06);
  border: 1px solid rgba(29,78,216,0.15);
  border-radius: 0.875rem;
  padding: 1rem;
  text-align: center;
}
.ks-about-stat-val { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.ks-about-stat-label { font-size: 0.7rem; color: var(--muted-fg); margin-top: 0.25rem; }
.ks-principal-card { padding: 2.5rem; }
.ks-principal-avatar {
  width: 112px; height: 112px;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 2rem;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.ks-trust-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: white; border: 1px solid var(--border);
  border-radius: 0.875rem; padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.ks-trust-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ks-trust-dot { width: 24px; height: 24px; border-radius: 50%; background: rgba(29,78,216,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.ks-trust-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* ============================================================
   PROGRAMS PAGE
   ============================================================ */
.ks-program-detail { background: white; border: 1px solid; border-radius: 1.5rem; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.ks-program-detail:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.ks-program-detail-left { padding: 2.5rem; text-align: center; color: white; }
.ks-program-detail-left .ks-p-icon { font-size: 3.75rem; margin-bottom: 1rem; }
.ks-program-detail-left h2 { font-size: 1.5rem; color: white; margin-bottom: 0.5rem; }
.ks-program-detail-left .ks-p-age { color: rgba(255,255,255,0.8); font-size: 0.875rem; font-weight: 500; }
.ks-program-meta { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ks-program-meta-item {
  background: rgba(255,255,255,0.15);
  border-radius: 0.625rem;
  padding: 0.625rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.9);
}
.ks-program-meta-item strong { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.65); margin-bottom: 0.25rem; }
.ks-program-detail-right { padding: 2rem; }
.ks-program-detail-right p { color: var(--muted-fg); line-height: 1.75; margin-bottom: 1.5rem; }
.ks-program-features-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.ks-program-features { display: grid; gap: 0.625rem; }
.ks-program-feature { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; }
.ks-program-feature .ks-check { font-size: 0.875rem; flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   FACILITIES PAGE
   ============================================================ */
.ks-facility-section { margin-bottom: 4rem; }
.ks-facility-icon-card {
  width: 100%; height: 260px;
  border-radius: 1.5rem; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: white; text-align: center;
  padding: 2rem;
  transition: transform 0.4s ease;
}
.ks-facility-section:hover .ks-facility-icon-card { transform: scale(1.02); }
.ks-facility-icon-card .ks-fac-icon { font-size: 3.75rem; margin-bottom: 1rem; }
.ks-facility-icon-card h3 { font-size: 1.25rem; color: white; }
.ks-facility-bullet { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; margin-bottom: 0.625rem; }
.ks-facility-bullet .ks-fac-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }

/* Facilities quick nav */
.ks-facilities-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 1.5rem 0; }
.ks-fac-nav-item { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; text-decoration: none; padding: 0.75rem 1rem; border-radius: 0.875rem; transition: background 0.2s; }
.ks-fac-nav-item:hover { background: var(--muted); }
.ks-fac-nav-icon { width: 48px; height: 48px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow-sm); }
.ks-fac-nav-label { font-size: 0.7rem; font-weight: 600; color: var(--foreground); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.ks-post-content { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem; }
.ks-post-content h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.ks-post-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted-fg); font-size: 0.85rem; margin-bottom: 2rem; }
.ks-post-body { color: var(--muted-fg); line-height: 1.85; font-size: 1rem; }
.ks-post-body p { margin-bottom: 1.25rem; }
.ks-post-body h2, .ks-post-body h3 { color: var(--foreground); margin: 2rem 0 0.75rem; }
.ks-post-body img { border-radius: 0.75rem; margin: 1.5rem auto; }
.ks-post-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.ks-post-body ul li { margin-bottom: 0.375rem; }

/* Archive */
.ks-archive { max-width: 960px; margin: 0 auto; padding: 4rem 1.5rem; }
.ks-archive-title { font-size: 2rem; margin-bottom: 2rem; }
.ks-post-card { background: white; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); transition: transform 0.3s, box-shadow 0.3s; }
.ks-post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ks-post-card-body { padding: 1.75rem; }
.ks-post-card-body h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.ks-post-card-body h2 a { color: var(--foreground); }
.ks-post-card-body h2 a:hover { color: var(--primary); }
.ks-post-excerpt { color: var(--muted-fg); font-size: 0.9rem; line-height: 1.7; margin-top: 0.75rem; }
.ks-read-more { color: var(--primary); font-weight: 600; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 1rem; }

/* ============================================================
   MISC
   ============================================================ */
.ks-divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.ks-py-20 { padding: 5rem 0; }
.ks-py-16 { padding: 4rem 0; }
.ks-py-14 { padding: 3.5rem 0; }
.ks-check-item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.ks-check-item .ks-check { color: var(--primary); font-size: 0.875rem; flex-shrink: 0; margin-top: 2px; }

/* 404 */
.ks-404 { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.5rem; }
.ks-404 h1 { font-size: 5rem; color: var(--primary); margin-bottom: 0.5rem; }
.ks-404 h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.ks-404 p { color: var(--muted-fg); margin-bottom: 2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 640px) {
  .ks-hero-stats { grid-template-columns: repeat(4, 1fr); }
  .ks-grid-2-sm { grid-template-columns: repeat(2, 1fr); }
  .ks-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .ks-logo-text { display: block; }
}
@media (min-width: 768px) {
  .ks-nav-phone { display: flex; }
  .ks-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .ks-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .ks-footer-bottom { flex-direction: row; justify-content: space-between; }
  .ks-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .ks-grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ks-nav-links { display: flex; }
  .ks-hamburger { display: none; }
  .ks-footer-grid { grid-template-columns: repeat(4, 1fr); }
  .ks-steps-grid { grid-template-columns: repeat(4, 1fr); }
  .ks-gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .ks-grid-2-lg { grid-template-columns: repeat(2, 1fr); }
  .ks-grid-3-lg { grid-template-columns: repeat(3, 1fr); }
}
