@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --sky: #60A5FA;
  --sun: #FBBF24;
  --grass: #34D399;
  --lavender: #A78BFA;
  --rose: #F472B6;
  --cream: #FFFBEB;
  --radius: 24px;
  --shadow: 0 10px 30px -5px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: #1e293b;
  background: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand { font-family: 'Baloo 2', cursive }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 80px;
}
.brand {
  text-decoration: none; display: flex; align-items: center; gap: 12px;
  font-size: 26px; font-weight: 800; color: #0f172a;
}
.brand img { height: 48px; width: auto }
.site-nav { display: flex; gap: 32px; align-items: center }
.site-nav a {
  text-decoration: none; color: #475569; font-weight: 700; font-size: 17px;
  transition: color .2s;
}
.site-nav a:hover { color: var(--sky) }
.site-nav .enroll-link {
  background: var(--sky); color: #fff; padding: 10px 24px; border-radius: 99px;
  box-shadow: 0 4px 12px rgba(96,165,250,0.3);
  transition: transform .2s, box-shadow .2s;
}
.site-nav .enroll-link:hover {
  transform: translateY(-2px); box-shadow: 0 8px 16px rgba(96,165,250,0.4); color: #fff;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer }
.nav-toggle span { display: block; width: 25px; height: 3px; background: #334155; margin: 5px 0; border-radius: 3px }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px }
.section { padding: 80px 0 }
.section.alt { background: rgba(255,255,255,0.6); border-radius: 40px; margin: 20px }

/* Hero */
.hero {
  position: relative; padding: 100px 0 120px; text-align: center; overflow: hidden;
}
.hero-content { position: relative; z-index: 10; max-width: 700px; margin: 0 auto }
.hero h1 {
  font-size: 56px; line-height: 1.1; margin-bottom: 24px; color: #0f172a;
  text-shadow: 2px 2px 0 #fff;
}
.hero p { font-size: 20px; color: #475569; margin-bottom: 32px }
.hero-actions { display: flex; gap: 16px; justify-content: center }
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 16px;
  text-decoration: none; font-weight: 700; font-size: 18px;
  transition: transform .2s, box-shadow .2s; cursor: pointer; border: none;
}
.btn.primary {
  background: var(--sky); color: #fff;
  box-shadow: 0 8px 20px rgba(96,165,250,0.3);
}
.btn.primary:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(96,165,250,0.4) }
.btn.ghost {
  background: #fff; color: var(--sky);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.btn.ghost:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0,0,0,0.08) }

/* Hero Background Elements */
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 1 }
.cloud {
  position: absolute; background: #fff; border-radius: 100px; opacity: 0.8;
  filter: blur(2px); animation: float 20s infinite linear;
}
.cloud::after {
  content: ''; position: absolute; top: -50%; left: 10%; width: 50%; height: 150%;
  background: inherit; border-radius: 50%;
}
.c1 { width: 120px; height: 50px; top: 10%; left: -10%; animation-duration: 45s }
.c2 { width: 180px; height: 70px; top: 20%; left: -15%; animation-duration: 60s; animation-delay: -20s }
.c3 { width: 100px; height: 40px; top: 15%; right: -10%; animation-duration: 50s; animation-direction: reverse }
@keyframes float { 0% { transform: translateX(0) } 100% { transform: translateX(120vw) } }

.rainbow {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 320px;
  background: radial-gradient(circle at 50% 100%, 
    transparent 45%, 
    var(--lavender) 45%, var(--lavender) 50%,
    var(--sky) 50%, var(--sky) 55%, 
    var(--grass) 55%, var(--grass) 60%,
    var(--sun) 60%, var(--sun) 65%,
    var(--rose) 65%, var(--rose) 70%,
    transparent 70%);
  opacity: 0.6;
}

.sun {
  position: absolute; top: 40px; right: 10%; width: 80px; height: 80px;
  background: var(--sun); border-radius: 50%;
  box-shadow: 0 0 40px var(--sun);
  animation: pulse 4s infinite ease-in-out;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.1); opacity: 1; } }

.hills {
  position: absolute; bottom: -50px; left: 0; width: 100%; height: 120px;
  background: var(--grass); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: scaleX(1.5);
}

/* Section Header */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px }
.section-header h2 { font-size: 42px; color: #0f172a; margin: 16px 0 }
.section-header p { font-size: 18px; color: #64748b }
.icon-badge {
  width: 64px; height: 64px; background: #fff; border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.06); margin-bottom: 8px;
}

/* Cards */
.cards { display: grid; gap: 30px }
.cards.three { grid-template-columns: repeat(3, 1fr) }

/* Trust Signals */
.trust-signals { margin-bottom: 80px; text-align: center; }
.trust-header h3 { font-size: 28px; color: #334155; margin-bottom: 30px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { 
  background: #fff; padding: 20px; border-radius: var(--radius); 
  box-shadow: 0 4px 6px rgba(0,0,0,0.02); display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform 0.2s;
}
.trust-item:hover { transform: translateY(-4px); }
.trust-icon { 
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; 
}
.trust-item span { font-weight: 700; color: #475569; font-size: 15px; line-height: 1.3; }

/* Card Styles */
.card {
  background: #fff; border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 2px solid transparent;
}
.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
  border-color: rgba(96,165,250,0.3);
}
.card-icon {
  width: 56px; height: 56px; background: #F1F5F9; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card h3 { font-size: 22px; margin: 0 0 12px; color: #0f172a }
.card p { margin: 0; color: #64748b; font-size: 16px }

/* Teacher Cards */
.teacher-card { text-align: center }
.teacher-img {
  width: 80px; height: 80px; background: #F8FAFC; border-radius: 50%;
  margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
  font-size: 36px; border: 4px solid #E2E8F0;
}
img.teacher-img {
  object-fit: cover;
  display: block;
}
.teacher-role {
  display: block; font-weight: 700; color: var(--sky); margin-bottom: 6px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px;
}
.teacher-qual {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
}
.teacher-bio {
  font-size: 15px;
  color: #334155;
  line-height: 1.5;
}

/* Staff Grouping */
.staff-group {
  margin-bottom: 60px;
}
.group-title {
  text-align: center;
  color: var(--sky);
  font-size: 28px;
  margin-bottom: 30px;
  font-family: 'Baloo 2', cursive;
}
.cards.centered {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}
.cards.centered .card {
  max-width: 350px;
  width: 100%;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center }
.chip {
  display: inline-flex; padding: 10px 14px; border-radius: 999px;
  background: #fff; border: 2px dashed #86efac; color: #065f46; box-shadow: var(--shadow);
}

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.gallery-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow) }
.gallery-card img { width: 100%; height: 250px; object-fit: contain; background: #f8fafc; display: block; }
.gallery-card figcaption { padding: 10px 14px; font-weight: 600; color: #334155 }

.contact-wrap { display: grid; gap: 20px; grid-template-columns: 1.2fr 1fr; align-items: start }
.contact-info-col { display: flex; flex-direction: column; gap: 20px }
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.contact-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed #e5e7eb }
.contact-row:last-child { border-bottom: 0 }
.label { font-weight: 700; color: #334155 }
.value { font-weight: 700 }
.contact-actions { display: flex; gap: 12px; margin-top: 14px }

.contact-form { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow) }
.form-row { display: grid; gap: 8px; margin-bottom: 12px }
.form-row input, .form-row textarea {
  padding: 12px 14px; border-radius: 12px; border: 2px solid #e5e7eb; font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(96,165,250,0.25);
}
.form-note { color: #64748b; font-size: 13px; margin-top: 6px }

.site-footer { padding: 40px 0; margin-top: 60px }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start }
.footer-col { display: flex; flex-direction: column; gap: 10px }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px }
.footer-brand img { width: 40px; height: 40px }
.footer-tagline { margin: 0; color: #64748b; font-weight: 600 }
.contact-col { align-items: flex-start }
.footer-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #334155; font-weight: 700;
  padding: 6px 0;
  transition: color .2s;
}
.footer-link:hover { color: var(--sky) }

.copyright-col { width: 100%; border-top: 1px solid #e2e8f0; padding-top: 20px; text-align: center; margin-top: 10px }
.copyright { color: #94a3b8; font-size: 14px }
.creator-credit {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease;
  cursor: pointer;
}
.creator-credit:hover { color: var(--sky); text-decoration: underline }

/* Modal Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(15, 23, 42, 0.4); 
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}
.modal-content {
  background-color: #fff;
  margin: 15% auto; 
  padding: 30px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  text-align: center;
  animation: slideIn 0.3s ease;
}
.close-modal {
  color: #94a3b8;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.close-modal:hover,
.close-modal:focus {
  color: #0f172a;
  text-decoration: none;
}
.creator-info h3 {
  font-family: "Baloo 2", cursive;
  font-size: 24px;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 20px;
}
.creator-details p {
  margin: 12px 0;
  color: #334155;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.creator-details a {
  color: var(--sky);
  font-weight: 700;
}
.creator-details a:hover {
  text-decoration: underline;
}

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

@media (max-width: 900px) {
  .cards.three { grid-template-columns: 1fr 1fr }
  .gallery-grid { grid-template-columns: 1fr 1fr }
  .contact-wrap { grid-template-columns: 1fr }
  .trust-grid { grid-template-columns: repeat(2, 1fr) }
}
@media (max-width: 640px) {
  .site-nav { 
    display: none; 
    flex-direction: column; 
    position: absolute; 
    top: 70px; 
    right: 20px; 
    background: #fff; 
    padding: 20px; 
    border-radius: var(--radius); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    width: 200px; 
    gap: 15px; 
    z-index: 101;
  }
  .site-nav.active { display: flex; }
  .nav-toggle { display: inline-block }
  .cards.three, .cards.four { grid-template-columns: 1fr }
  .gallery-grid { grid-template-columns: 1fr }
  .hero { padding: 40px 0 60px }
  .hero h1 { font-size: 36px; margin-bottom: 16px }
  .hero p { font-size: 16px; margin-bottom: 24px }
  .section-header h2 { font-size: 32px }
  .section-header p { font-size: 16px }
  .section { padding: 40px 0 }
  .card { padding: 20px }
  .header-inner { height: 70px }
  .brand { font-size: 22px }
  .brand img { height: 36px }
  .rainbow { width: 90%; height: 160px }
  .footer-inner { flex-direction: column; align-items: center; text-align: center }
  .footer-col { align-items: center }
  .trust-grid { grid-template-columns: 1fr }
}
