/* ========================================================
   SAIRAM CLASSES — styles.css
   Colorful, kid-friendly, mobile-first design
   ======================================================== */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: #fffdf4;
  color: #333;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

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

/* ── Typography helpers ── */
.section-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 2rem;
  color: #1a1a6e;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 5px;
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff);
  border-radius: 99px;
  margin: 0.5rem auto 0;
}

/* ── Buttons ── */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-whatsapp img { width: 22px; height: 22px; }
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: #1a1a6e;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  border: 3px solid #1a1a6e;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-call:hover { background: #1a1a6e; color: #fff; }

/* ═══════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
═══════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.7rem 1.2rem 0.7rem 0.8rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  animation: bounce 2.5s infinite;
  transition: transform 0.2s;
}
.wa-float img { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.07); animation: none; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #fff9db 0%, #e0f7fa 50%, #fce4ec 100%);
  padding: 1.5rem 1.5rem 2rem;
  border-bottom: 5px solid #ffd93d;
  position: relative;
  overflow: hidden;
}

/* Decorative circles */
.hero::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,217,61,0.18) 0%, transparent 70%);
  top: -80px; left: -80px;
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(107,203,119,0.15) 0%, transparent 70%);
  bottom: -60px; right: -60px;
  border-radius: 50%;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-icon {
  font-size: 2.8rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.brand {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #1a1a6e, #c01f5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.tagline {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #555;
  text-transform: uppercase;
}

.admission-badge {
  background: linear-gradient(135deg, #d63031, #e17055);
  color: #fff;
  font-family: 'Baloo 2', cursive;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(214,48,49,0.35);
  animation: pulse 2s infinite;
}
.admission-badge span {
  color: #ffd93d;
  font-size: 1.4rem;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(214,48,49,0.35); }
  50%       { box-shadow: 0 6px 24px rgba(214,48,49,0.6); }
}

.hero-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-text h2 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #1a1a6e;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.highlight-pink { color: #c01f5c; }

.hero-text p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-mascots {
  font-size: 4rem;
  letter-spacing: 0.3rem;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.1));
}

.hero-mottos {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}
.hero-mottos span {
  background: #fff;
  color: #c01f5c;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 2px solid #ffd93d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ═══════════════════════════════════════════
   SUBJECTS SECTION
═══════════════════════════════════════════ */
.subjects-section {
  padding: 4rem 1.5rem;
  background: #fff;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.subject-card {
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.subject-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: 0.15;
  background: #fff;
}
.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.subject-card.yellow  { background: linear-gradient(145deg, #fff3cd, #ffd93d22); border: 3px solid #ffd93d; }
.subject-card.green   { background: linear-gradient(145deg, #d4edda, #6bcb7722); border: 3px solid #6bcb77; }
.subject-card.blue    { background: linear-gradient(145deg, #cce5ff, #4d96ff22); border: 3px solid #4d96ff; }
.subject-card.pink    { background: linear-gradient(145deg, #fce4ec, #e91e6322); border: 3px solid #e91e63; }
.subject-card.purple  { background: linear-gradient(145deg, #ede7f6, #9c27b022); border: 3px solid #9c27b0; }
.subject-card.orange  { background: linear-gradient(145deg, #fff3e0, #ff980022); border: 3px solid #ff9800; }

.subject-icon {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  display: block;
}
.subject-card.yellow .subject-icon  { color: #e65100; }
.subject-card.green  .subject-icon  { color: #1b5e20; }
.subject-card.blue   .subject-icon  { color: #0d47a1; }
.subject-card.pink   .subject-icon  { color: #880e4f; }
.subject-card.purple .subject-icon  { color: #4a148c; }
.subject-card.orange .subject-icon  { color: #bf360c; }

.subject-card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #1a1a6e;
}
.subject-card p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
}
.subject-card p em {
  font-style: normal;
  font-weight: 700;
  color: #888;
}

/* ═══════════════════════════════════════════
   COURSE LIST (numbered)
═══════════════════════════════════════════ */
.courselist-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #fffde7, #e8f5e9);
}

.course-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.course-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a6e;
  transition: transform 0.2s;
}
.course-item:hover { transform: translateX(6px); }

.num {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.icon {
  font-size: 1.4rem;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.name { flex: 1; }
.name small { font-size: 0.82rem; font-weight: 600; color: #777; margin-left: 0.25rem; }

.c1 { background: #fff0f6; border: 2px solid #f48fb1; }
.c1 .num { background: #e91e63; }
.c2 { background: #fff8e1; border: 2px solid #ffd54f; }
.c2 .num { background: #ff9800; }
.c3 { background: #e8f5e9; border: 2px solid #81c784; }
.c3 .num { background: #4caf50; }
.c4 { background: #e3f2fd; border: 2px solid #64b5f6; }
.c4 .num { background: #2196f3; }
.c5 { background: #f3e5f5; border: 2px solid #ba68c8; }
.c5 .num { background: #9c27b0; }
.c6 { background: #fbe9e7; border: 2px solid #ff8a65; }
.c6 .num { background: #ff5722; }

/* ═══════════════════════════════════════════
   WHY SAIRAM CLASSES
═══════════════════════════════════════════ */
.why-section {
  padding: 4rem 1.5rem;
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.why-card {
  background: linear-gradient(145deg, #f9f9ff, #eef2ff);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 2px solid #e0e7ff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  border-color: #4d96ff;
}
.why-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.why-card h4 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a6e;
  margin-bottom: 0.4rem;
}
.why-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   TEACHER SECTION
═══════════════════════════════════════════ */
.teacher-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #fce4ec, #e8eaf6);
}

.teacher-card {
  max-width: 550px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 3px solid #f8bbd0;
  position: relative;
}
.teacher-card::before {
  content: '⭐';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  background: #fff;
  padding: 0 6px;
}

.teacher-badge {
  display: inline-block;
  background: linear-gradient(135deg, #d63031, #e84393);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.35rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}
.teacher-name {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, #1a1a6e, #c01f5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}
.teacher-sub {
  font-size: 1rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 1.25rem;
}
.teacher-features {
  list-style: none;
  text-align: left;
  display: inline-block;
  margin-bottom: 1.25rem;
}
.teacher-features li {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  padding: 0.3rem 0;
}
.teacher-quote {
  font-style: italic;
  font-weight: 700;
  color: #c01f5c;
  font-size: 0.95rem;
  background: #fff9f0;
  border-left: 4px solid #ffd93d;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-align: left;
}

/* ═══════════════════════════════════════════
   ENQUIRY SECTION
═══════════════════════════════════════════ */
.enquiry-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #1a1a6e 0%, #0d47a1 100%);
  text-align: center;
  color: #fff;
}
.enquiry-section h2 {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.enquiry-section > p {
  font-size: 1.05rem;
  opacity: 0.88;
  margin-bottom: 2rem;
}

/* Contact CTA cards */
.contact-cards {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 220px;
}
.contact-card:hover { transform: translateY(-3px); }

.contact-card.wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
}
.contact-card.wa img { width: 30px; height: 30px; }

.contact-card.call {
  background: #ffd93d;
  color: #1a1a6e;
  box-shadow: 0 4px 16px rgba(255,217,61,0.4);
}
.call-icon { font-size: 1.8rem; }

.contact-card div { display: flex; flex-direction: column; }
.contact-card strong { font-size: 0.85rem; opacity: 0.85; }
.contact-card span { font-size: 1.2rem; font-weight: 900; }

/* Enquiry form */
.enquiry-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(6px);
}
.enquiry-form h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #ffd93d;
}
.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.form-row input,
.form-row select {
  flex: 1;
  min-width: 160px;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}
.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder {
  color: rgba(255,255,255,0.55);
}
.enquiry-form select option { color: #333; background: #fff; }
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  border-color: #ffd93d;
}
.enquiry-form textarea {
  resize: vertical;
  margin-bottom: 0.75rem;
  display: block;
}
.form-submit {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 0.9rem;
  border-radius: 14px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: #111132;
  color: #ccc;
  padding: 2.5rem 1.5rem 1rem;
}
.footer-inner {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}
.footer-logo {
  font-family: 'Baloo 2', cursive;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffd93d;
  display: block;
  margin-bottom: 0.4rem;
}
.footer-brand p,
.footer-links p {
  font-size: 0.9rem;
  line-height: 2;
}
.footer-links a {
  color: #81d4fa;
  font-weight: 700;
  transition: color 0.2s;
}
.footer-links a:hover { color: #ffd93d; }
.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  border-top: 1px solid #222;
  padding-top: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.footer-dev {
  text-align: center;
  font-size: 0.78rem;
  color: #444;
  margin-top: 0.4rem;
  padding-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.dev-brand {
  font-weight: 800;
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.dev-contact {
  color: #6bcb77;
  font-weight: 700;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.dev-contact:hover { color: #ffd93d; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero-mascots { font-size: 2.5rem; }
  .hero-cta { flex-direction: column; }
  .btn-whatsapp, .btn-call { width: 100%; justify-content: center; }
  .contact-cards { flex-direction: column; align-items: center; }
  .contact-card { width: 100%; max-width: 320px; justify-content: center; }
  .enquiry-form { padding: 1.25rem; }
  .wa-float span { display: none; }
  .wa-float { padding: 0.7rem; border-radius: 50%; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 400px) {
  .brand { font-size: 1.5rem; }
  .logo-icon { font-size: 2rem; }
}

/* ═══════════════════════════════════════════
   HERO POSTER SLIDER
═══════════════════════════════════════════ */
.hero-poster-slider {
  position: relative;
  width: 280px;
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0,0,0,0.18);
  border: 4px solid #fff;
}
.slider-track { position: relative; width: 100%; aspect-ratio: 9/16; }

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
  border-radius: 16px;
}
.slide.active { opacity: 1; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 6px;
  background: rgba(255,255,255,0.85);
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.dot.active { background: #c01f5c; transform: scale(1.3); }

@media (max-width: 700px) {
  .hero-poster-slider { width: 100%; max-width: 320px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════
   TEACHER CARD (with photo)
═══════════════════════════════════════════ */
.teacher-card {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 3px solid #f8bbd0;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}
.teacher-photo-wrap {
  flex-shrink: 0;
  width: 260px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border: 4px solid #fce4ec;
}
.teacher-photo {
  width: 100%;
  display: block;
  object-fit: cover;
}
.teacher-info { flex: 1; min-width: 220px; text-align: left; }
.teacher-info .teacher-badge { display: inline-block; margin-bottom: 0.75rem; }
.teacher-info .teacher-features { padding-left: 0; }

@media (max-width: 600px) {
  .teacher-card { flex-direction: column; align-items: center; text-align: center; }
  .teacher-photo-wrap { width: 100%; max-width: 320px; }
  .teacher-info { text-align: center; }
}
