/* ===========================================================
   Shishu Tirtha School — Playgroup & Pre-Primary
   Colorful, playful static site stylesheet
   =========================================================== */

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

:root{
  --red:    #FF6B6B;
  --orange: #FFA94D;
  --yellow: #FFD93D;
  --green:  #6BCB77;
  --teal:   #35C6C1;
  --blue:   #4D96FF;
  --purple: #A66CFF;
  --pink:   #FF8FB1;
  --navy:   #1B4965;
  --cream:  #FFF8E7;
  --cream-2:#FFF1D6;
  --ink:    #2B2B2B;
  --white:  #ffffff;

  --shadow: 0 10px 30px rgba(27,73,101,0.15);
  --radius: 26px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }

body{
  font-family:'Poppins', sans-serif;
  color:var(--ink);
  background:var(--cream);
  overflow-x:hidden;
  line-height:1.6;
}

h1,h2,h3,h4,.brand,.btn,nav a{
  font-family:'Baloo 2', cursive;
}

img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
.container{ max-width:1180px; margin:0 auto; padding:0 24px; }

/* ---------- Decorative blobs ---------- */
.blob{
  position:absolute;
  border-radius:50%;
  filter:blur(2px);
  opacity:0.55;
  z-index:0;
  animation:float 7s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform:translateY(0) rotate(0deg); }
  50%{ transform:translateY(-18px) rotate(8deg); }
}

/* ---------- Top info bar ---------- */
.topbar{
  background:var(--navy);
  color:var(--cream);
  font-size:0.85rem;
  padding:6px 0;
}
.topbar .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}
.topbar a{ color:var(--yellow); }
.topbar .social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;height:26px;
  background:rgba(255,255,255,0.15);
  border-radius:50%;
  margin-left:6px;
  font-size:0.9rem;
}

/* ---------- Navbar ---------- */
header.site-header{
  background:var(--white);
  position:sticky;
  top:0;
  z-index:999;
  box-shadow:0 4px 18px rgba(27,73,101,0.08);
}
nav.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 24px;
  max-width:1180px;
  margin:0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  font-size:1.4rem;
  color:var(--navy);
}
.brand img{ width:54px; height:54px; border-radius:50%; }
.brand small{
  display:block;
  font-family:'Poppins',sans-serif;
  font-weight:500;
  font-size:0.7rem;
  color:var(--red);
}
.nav-links{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}
.nav-links a{
  padding:10px 16px;
  border-radius:50px;
  font-weight:600;
  color:var(--navy);
  transition:.25s;
}
.nav-links a:hover, .nav-links a.active{
  background:var(--yellow);
  color:var(--navy);
}
.nav-links .btn{ margin-left:6px; }
.nav-toggle{
  display:none;
  background:none;
  border:none;
  font-size:1.8rem;
  color:var(--navy);
  cursor:pointer;
}

@media(max-width:900px){
  .nav-links{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    background:var(--white);
    flex-direction:column;
    align-items:stretch;
    padding:10px 20px 20px;
    box-shadow:0 12px 20px rgba(0,0,0,0.08);
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ text-align:center; }
  .nav-toggle{ display:block; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;
  padding:12px 28px;
  border-radius:50px;
  font-weight:700;
  border:none;
  cursor:pointer;
  transition:.25s;
}
.btn-primary{
  background:var(--red);
  color:var(--white);
  box-shadow:0 8px 20px rgba(255,107,107,0.4);
}
.btn-primary:hover{ transform:translateY(-3px) scale(1.03); background:#ff5252; }
.btn-outline{
  background:transparent;
  border:2px solid var(--navy);
  color:var(--navy);
}
.btn-outline:hover{ background:var(--navy); color:var(--white); }
.btn-yellow{ background:var(--yellow); color:var(--navy); box-shadow:0 8px 20px rgba(255,217,61,0.5);}
.btn-yellow:hover{ transform:translateY(-3px) scale(1.03); }

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding:80px 0 110px;
  background:linear-gradient(135deg,var(--cream) 0%, var(--cream-2) 100%);
  overflow:hidden;
}
.hero .container{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:40px;
  align-items:center;
  position:relative;
  z-index:2;
}
.hero h1{
  font-size:3rem;
  color:var(--navy);
  line-height:1.15;
  margin-bottom:18px;
}
.hero h1 .hl1{ color:var(--red); }
.hero h1 .hl2{ color:var(--teal); }
.hero p{
  font-size:1.1rem;
  max-width:520px;
  margin-bottom:28px;
  color:#4a4a4a;
}
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-badges{
  display:flex;
  gap:14px;
  margin-top:34px;
  flex-wrap:wrap;
}
.hero-badge{
  background:var(--white);
  padding:10px 16px;
  border-radius:16px;
  box-shadow:var(--shadow);
  font-weight:600;
  font-size:0.9rem;
  display:flex;
  align-items:center;
  gap:8px;
}
.hero-art{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
}
.hero-photo-frame{
  width:100%;
  max-width:420px;
  aspect-ratio:1/1;
  border-radius:40% 60% 55% 45% / 50% 45% 55% 50%;
  background:linear-gradient(135deg,var(--yellow),var(--orange));
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
  border:6px solid var(--white);
}
.hero-photo-frame img{ width:100%; height:100%; object-fit:cover; }

@media(max-width:900px){
  .hero .container{ grid-template-columns:1fr; text-align:center; }
  .hero p{ margin-left:auto; margin-right:auto; }
  .hero-cta{ justify-content:center; }
  .hero-badges{ justify-content:center; }
  .hero h1{ font-size:2.3rem; }
}

/* Wave divider */
.wave{
  display:block;
  width:100%;
  line-height:0;
}
.wave svg{ width:100%; height:80px; display:block; }

/* ---------- Section basics ---------- */
section{ padding:70px 0; position:relative; }
.section-tag{
  display:inline-block;
  background:var(--yellow);
  color:var(--navy);
  padding:6px 18px;
  border-radius:50px;
  font-weight:700;
  font-size:0.85rem;
  margin-bottom:14px;
}
.section-title{
  font-size:2.2rem;
  color:var(--navy);
  margin-bottom:14px;
}
.section-sub{
  max-width:640px;
  color:#555;
  margin-bottom:40px;
}
.center{ text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- Cards / grids ---------- */
.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media(max-width:900px){
  .grid-2,.grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:600px){
  .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; }
}

.card{
  background:var(--white);
  border-radius:var(--radius);
  padding:32px 26px;
  box-shadow:var(--shadow);
  transition:.3s;
  position:relative;
  overflow:hidden;
}
.card:hover{ transform:translateY(-8px); }
.card .emoji{
  width:64px; height:64px;
  border-radius:20px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.8rem;
  margin-bottom:18px;
}
.bg-red{ background:#FFE3E3; } .bg-orange{ background:#FFEBD6; }
.bg-yellow{ background:#FFF6D6; } .bg-green{ background:#E4F9E6; }
.bg-teal{ background:#DDF7F6; } .bg-blue{ background:#E1EDFF; }
.bg-purple{ background:#F0E5FF; } .bg-pink{ background:#FFE6EE; }

.card h3{ color:var(--navy); margin-bottom:10px; font-size:1.2rem; }
.card p{ color:#555; font-size:0.95rem; }

/* colored top border variants */
.card.c-red{ border-top:6px solid var(--red); }
.card.c-orange{ border-top:6px solid var(--orange); }
.card.c-yellow{ border-top:6px solid var(--yellow); }
.card.c-green{ border-top:6px solid var(--green); }
.card.c-teal{ border-top:6px solid var(--teal); }
.card.c-blue{ border-top:6px solid var(--blue); }
.card.c-purple{ border-top:6px solid var(--purple); }
.card.c-pink{ border-top:6px solid var(--pink); }

/* ---------- Photo placeholder (swap with real photos) ---------- */
.photo-slot{
  width:100%;
  aspect-ratio:4/3;
  border-radius:20px;
  background:repeating-linear-gradient(135deg,#f1f1f1,#f1f1f1 10px,#e9e9e9 10px,#e9e9e9 20px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#9a9a9a;
  font-size:0.8rem;
  text-align:center;
  border:2px dashed #c9c9c9;
  overflow:hidden;
}
.photo-slot img{ width:100%; height:100%; object-fit:cover; }
.photo-slot .cam{ font-size:1.8rem; }

/* ---------- Alternating panel sections ---------- */
.panel{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:center;
}
.panel.reverse .panel-text{ order:2; }
@media(max-width:900px){
  .panel{ grid-template-columns:1fr; }
  .panel.reverse .panel-text{ order:0; }
}
.panel-text h2{ color:var(--navy); margin-bottom:16px; font-size:2rem; }
.panel-text p{ color:#555; margin-bottom:16px; }
.panel-text ul li{
  margin-bottom:10px;
  padding-left:30px;
  position:relative;
  font-weight:500;
}
.panel-text ul li::before{
  content:'✓';
  position:absolute;
  left:0; top:0;
  width:22px; height:22px;
  background:var(--green);
  color:white;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:0.75rem;
}

/* ---------- Stats strip ---------- */
.stats{
  background:var(--navy);
  color:var(--white);
  padding:46px 0;
}
.stats .grid-4{ text-align:center; }
.stats h3{ font-size:2.3rem; color:var(--yellow); font-family:'Baloo 2',cursive; }
.stats p{ opacity:0.85; font-size:0.9rem; }

/* ---------- Testimonials ---------- */
.testimonial{
  background:var(--white);
  border-radius:var(--radius);
  padding:28px;
  box-shadow:var(--shadow);
}
.testimonial .stars{ color:var(--yellow); margin-bottom:10px; letter-spacing:2px; }
.testimonial .who{
  display:flex; align-items:center; gap:12px; margin-top:16px;
}
.testimonial .avatar{
  width:46px;height:46px;border-radius:50%;
  background:linear-gradient(135deg,var(--pink),var(--purple));
  display:flex;align-items:center;justify-content:center;color:white;font-weight:700;
}

/* ---------- CTA banner ---------- */
.cta-banner{
  background:linear-gradient(120deg,var(--teal),var(--blue));
  color:white;
  border-radius:var(--radius);
  padding:50px 40px;
  text-align:center;
  box-shadow:var(--shadow);
}
.cta-banner h2{ font-size:2rem; margin-bottom:12px; }
.cta-banner p{ opacity:0.95; margin-bottom:24px; }

/* ---------- Gallery ---------- */
.filter-bar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:34px;
}
.filter-btn{
  padding:9px 20px;
  border-radius:50px;
  border:2px solid var(--navy);
  background:transparent;
  color:var(--navy);
  font-weight:600;
  cursor:pointer;
  font-family:'Poppins',sans-serif;
  transition:.2s;
}
.filter-btn.active, .filter-btn:hover{ background:var(--navy); color:white; }
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
@media(max-width:900px){ .gallery-grid{ grid-template-columns:repeat(2,1fr);} }
@media(max-width:560px){ .gallery-grid{ grid-template-columns:1fr;} }
.gallery-item{ cursor:pointer; }

/* ---------- Lightbox ---------- */
.lightbox{
  position:fixed; inset:0;
  background:rgba(27,73,101,0.92);
  display:none;
  align-items:center; justify-content:center;
  flex-direction:column;
  z-index:5000;
  padding:20px;
}
.lightbox.open{ display:flex; }
.lightbox .box{ max-width:700px; width:100%; text-align:center; }
.lightbox .photo-slot{ aspect-ratio:4/3; background:#2c5877; border-color:#4d7595; color:#cfe4f2; }
.lightbox .close-lb{
  margin-top:18px; background:var(--yellow); color:var(--navy);
  border:none; padding:10px 24px; border-radius:50px; font-weight:700; cursor:pointer;
}

/* ---------- Tables (fees / courses) ---------- */
.table-wrap{ overflow-x:auto; border-radius:20px; box-shadow:var(--shadow); }
table{ width:100%; border-collapse:collapse; background:var(--white); min-width:520px; }
table th{
  background:var(--navy); color:white; padding:16px; text-align:left; font-family:'Baloo 2',cursive;
}
table td{ padding:14px 16px; border-bottom:1px solid #eee; }
table tr:last-child td{ border-bottom:none; }
table tr:nth-child(even){ background:#FFFBF0; }

/* ---------- Accordion (FAQ) ---------- */
.accordion-item{
  background:var(--white);
  border-radius:16px;
  box-shadow:var(--shadow);
  margin-bottom:14px;
  overflow:hidden;
}
.accordion-head{
  padding:18px 22px;
  display:flex; justify-content:space-between; align-items:center;
  cursor:pointer; font-weight:700; color:var(--navy);
}
.accordion-body{
  max-height:0; overflow:hidden; transition:max-height .3s ease;
  padding:0 22px;
  color:#555;
}
.accordion-item.open .accordion-body{ padding-bottom:18px; }
.accordion-head .arrow{ transition:.3s; color:var(--red); font-size:1.2rem; }
.accordion-item.open .arrow{ transform:rotate(180deg); }

/* ---------- Timeline (Admission process) ---------- */
.timeline{ position:relative; padding-left:34px; }
.timeline::before{
  content:''; position:absolute; left:9px; top:0; bottom:0; width:4px;
  background:linear-gradient(var(--red),var(--yellow),var(--teal),var(--purple));
  border-radius:4px;
}
.t-step{ position:relative; margin-bottom:34px; }
.t-step::before{
  content:''; position:absolute; left:-34px; top:2px; width:22px; height:22px;
  border-radius:50%; background:var(--white); border:5px solid var(--red);
}
.t-step h4{ color:var(--navy); margin-bottom:6px; }
.t-step p{ color:#555; font-size:0.95rem; }

/* ---------- Legal pages ---------- */
.legal-content h2{ color:var(--navy); margin:28px 0 12px; font-size:1.4rem; }
.legal-content h2:first-child{ margin-top:0; }
.legal-content p, .legal-content li{ color:#4a4a4a; margin-bottom:10px; }
.legal-content ul{ padding-left:22px; list-style:disc; }
.legal-content .updated{
  display:inline-block; background:var(--yellow); padding:6px 16px; border-radius:50px;
  font-weight:600; margin-bottom:24px; color:var(--navy);
}

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
@media(max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-info-item{
  display:flex; gap:16px; margin-bottom:22px; align-items:flex-start;
}
.contact-info-item .ic{
  width:48px; height:48px; border-radius:14px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:1.3rem; color:white;
}
form.school-form{
  background:var(--white); padding:32px; border-radius:var(--radius); box-shadow:var(--shadow);
}
.school-form label{ font-weight:600; color:var(--navy); font-size:0.9rem; display:block; margin-bottom:6px; }
.school-form input, .school-form select, .school-form textarea{
  width:100%; padding:12px 14px; border-radius:12px; border:2px solid #eee;
  margin-bottom:18px; font-family:'Poppins',sans-serif; font-size:0.95rem; background:#FFFCF5;
}
.school-form input:focus, .school-form select:focus, .school-form textarea:focus{
  outline:none; border-color:var(--teal);
}
.name-split{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
}
.name-split input{ margin-bottom:0; }
@media(max-width:560px){
  .name-split{ grid-template-columns:1fr; gap:0; }
  .name-split input{ margin-bottom:12px; }
}
.map-slot{
  border-radius:20px; overflow:hidden; box-shadow:var(--shadow); margin-top:26px;
}
.map-slot iframe{ width:100%; height:300px; border:0; display:block; }

/* ---------- Footer ---------- */
footer{
  background:var(--navy);
  color:#dce8f0;
  padding:60px 0 20px;
  margin-top:40px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:32px;
  margin-bottom:34px;
}
@media(max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
footer h4{ color:var(--yellow); margin-bottom:16px; font-family:'Baloo 2',cursive; font-size:1.1rem; }
footer .fbrand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
footer .fbrand img{ width:46px; height:46px; border-radius:50%; }
footer p{ font-size:0.9rem; opacity:0.85; }
footer ul li{ margin-bottom:10px; }
footer ul li a{ opacity:0.85; font-size:0.9rem; transition:.2s; }
footer ul li a:hover{ opacity:1; color:var(--yellow); }
footer .fsocial{ display:flex; gap:10px; margin-top:14px; }
footer .fsocial a{
  width:38px;height:38px;border-radius:50%; background:rgba(255,255,255,0.1);
  display:flex; align-items:center; justify-content:center;
}
footer .fsocial a:hover{ background:var(--yellow); color:var(--navy); }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.15);
  padding-top:20px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:0.85rem; opacity:0.8;
}
.footer-bottom a{ opacity:1; }

/* ---------- Page header (inner pages) ---------- */
.page-hero{
  padding:60px 0;
  text-align:center;
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,var(--cream),var(--cream-2));
}
.page-hero h1{ font-size:2.6rem; color:var(--navy); }
.breadcrumb{ margin-top:10px; color:#666; font-weight:600; }
.breadcrumb a{ color:var(--red); }

/* ---------- Floating WhatsApp / scrolltop ---------- */
.float-btns{
  position:fixed; right:24px; bottom:24px; z-index:1500;
  display:flex; flex-direction:column; gap:12px;
}
.float-btn{
  width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; color:white; box-shadow:0 8px 20px rgba(0,0,0,0.25);
  animation:pulse 2.2s infinite;
}
.float-btn.wa{ background:#25D366; }
.float-btn.top{ background:var(--navy); font-size:1.2rem; animation:none; display:none; }
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(37,211,102,0.5);}
  70%{ box-shadow:0 0 0 14px rgba(37,211,102,0);}
  100%{ box-shadow:0 0 0 0 rgba(37,211,102,0);}
}

/* ---------- misc ---------- */
.tag-pill{
  display:inline-block; padding:5px 14px; border-radius:50px; font-size:0.75rem; font-weight:700;
  margin-bottom:10px;
}
