/* =============================================
   KidsCave Learning Platform - Main Stylesheet
   ============================================= */

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

:root {
  --primary: #6C3CE1;
  --primary-light: #9B6BE8;
  --primary-dark: #4A1FA8;
  --secondary: #FF6B35;
  --accent: #FFD700;
  --green: #4CAF50;
  --blue: #00B4D8;
  --pink: #FF6B9D;
  --teal: #009688;
  --white: #FFFFFF;
  --light: #FFF9F0;
  --gray: #6B7280;
  --dark: #1F2937;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 40px rgba(0,0,0,0.18);
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
}

/* ===================== HEADER ===================== */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 25px rgba(108,60,225,0.35);
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-svg-wrap {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(255,215,0,0.5);
  overflow: hidden;
  animation: logoBounce 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
}

@keyframes logoBounce {
  from { transform: scale(0) rotate(-180deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-kids { color: var(--accent); font-size: 24px; font-weight: 900; letter-spacing: -0.5px; }
.logo-cave { color: white;        font-size: 24px; font-weight: 900; letter-spacing: -0.5px; }
.logo-tag  { color: rgba(255,255,255,0.7); font-size: 9px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }

/* NAV */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.main-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.18);
  color: white;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  border: none;
}
.hamburger span {
  width: 24px; height: 3px;
  background: white;
  border-radius: 3px;
  transition: var(--transition);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* MOBILE MENU */
.mobile-menu {
  background: var(--primary-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-menu.open { max-height: 600px; }
.mobile-menu-inner { padding: 10px 20px 20px; }
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 12px 0;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu a i { width: 22px; text-align: center; font-size: 16px; color: var(--accent); }

/* ===================== FOOTER ===================== */
footer {
  background: linear-gradient(135deg, #12053a 0%, #1e0c5e 100%);
  color: white;
  padding: 60px 24px 24px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: rgba(108,60,225,0.12);
  border-radius: 50%;
  top: -200px; right: -100px;
  pointer-events: none;
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-logo .logo-kids { font-size: 30px; }
.footer-brand-logo .logo-cave { font-size: 30px; }
.footer-brand-logo .logo-svg-wrap { width: 52px; height: 52px; }

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: white; }
.footer-col a i { font-size: 12px; color: var(--accent); width: 14px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 1.5;
}
.contact-item i { color: var(--accent); font-size: 15px; margin-top: 2px; flex-shrink: 0; }

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-btn {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  color: white;
  transition: var(--transition);
}
.social-btn:hover { transform: translateY(-4px) scale(1.05); }
.social-btn.fb   { background: #1877F2; box-shadow: 0 4px 15px rgba(24,119,242,0.4); }
.social-btn.ig   { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); box-shadow: 0 4px 15px rgba(220,39,67,0.4); }
.social-btn.tw   { background: #1DA1F2; box-shadow: 0 4px 15px rgba(29,161,242,0.4); }
.social-btn.yt   { background: #FF0000; box-shadow: 0 4px 15px rgba(255,0,0,0.4); }

.footer-bottom {
  max-width: 1300px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===================== CHAT WIDGET ===================== */
.chat-widget {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
}

.chat-toggle-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #e0530f);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 5px 25px rgba(255,107,53,0.55);
  transition: var(--transition);
  animation: chatPulse 2.5s ease-in-out infinite;
}
.chat-toggle-btn:hover { transform: scale(1.12); }

@keyframes chatPulse {
  0%,100% { box-shadow: 0 5px 25px rgba(255,107,53,0.55); }
  50%      { box-shadow: 0 5px 40px rgba(255,107,53,0.85); }
}

.chat-box {
  position: absolute;
  bottom: 76px; right: 0;
  width: 330px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.22);
  overflow: hidden;
  display: none;
  flex-direction: column;
  transform-origin: bottom right;
  animation: chatOpen 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.chat-box.open { display: flex; }

@keyframes chatOpen {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.chat-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}
.chat-avatar {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.chat-head-info h5 { font-size: 14px; font-weight: 800; }
.chat-head-info small { font-size: 11px; opacity: 0.75; }
.chat-close {
  margin-left: auto;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 28px; height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.chat-close:hover { background: rgba(255,255,255,0.3); }

.chat-messages {
  height: 260px;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafafa;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  animation: msgSlide 0.3s ease-out;
}
@keyframes msgSlide {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.chat-msg.bot  { background: #ede8ff; color: var(--dark); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--primary); color: white; border-bottom-right-radius: 4px; align-self: flex-end; }

.chat-footer {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: white;
  border-top: 1px solid #eee;
}
.chat-footer input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.25s;
}
.chat-footer input:focus { border-color: var(--primary); }
.chat-send {
  width: 42px; height: 42px;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 17px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-send:hover { background: var(--primary-dark); transform: scale(1.08); }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp    { from { opacity:0; transform:translateY(30px);  } to { opacity:1; transform:translateY(0);   } }
@keyframes fadeInDown  { from { opacity:0; transform:translateY(-30px); } to { opacity:1; transform:translateY(0);   } }
@keyframes fadeInLeft  { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0);   } }
@keyframes fadeInRight { from { opacity:0; transform:translateX(40px);  } to { opacity:1; transform:translateX(0);   } }
@keyframes bounceIn {
  0%   { opacity:0; transform:scale(0.3);  }
  50%  { opacity:1; transform:scale(1.08); }
  70%  { transform:scale(0.92); }
  100% { transform:scale(1);   }
}
@keyframes float {
  0%,100% { transform:translateY(0);    }
  50%     { transform:translateY(-14px); }
}
@keyframes spin       { to { transform:rotate(360deg); } }
@keyframes shimmer    { 0%,100%{opacity:1} 50%{opacity:0.5} }
@keyframes tada {
  0%,100%{transform:scale(1) rotate(0deg);}
  10%,30%,50%,70%{transform:scale(1.15) rotate(-4deg);}
  20%,40%,60%,80%{transform:scale(1.15) rotate(4deg);}
}
@keyframes confettiFall {
  0%   { transform: translateY(-10px) rotate(0deg); opacity:1; }
  100% { transform: translateY(80px)  rotate(360deg); opacity:0; }
}
@keyframes shake {
  0%,100%{transform:translateX(0)}
  20%,60%{transform:translateX(-8px)}
  40%,80%{transform:translateX(8px)}
}
@keyframes countUp { from { opacity:0; transform:scale(0.5); } to { opacity:1; transform:scale(1); } }
@keyframes starPop {
  0%  { transform:scale(0) rotate(-60deg); opacity:0; }
  60% { transform:scale(1.3) rotate(10deg); opacity:1; }
  100%{ transform:scale(1) rotate(0deg); opacity:1; }
}
@keyframes slide-in-top { from{transform:translateY(-20px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes typing { from{width:0} to{width:100%} }

.animate-on-scroll { opacity:0; transform:translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-on-scroll.visible { opacity:1; transform:translateY(0); }

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, #6C3CE1 0%, #9B3DC8 50%, #FF6B35 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 50px 24px;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.hero-bg-circle:nth-child(1) { width:600px;height:600px; top:-250px;right:-150px; }
.hero-bg-circle:nth-child(2) { width:400px;height:400px; bottom:-180px;left:-100px; }
.hero-bg-circle:nth-child(3) { width:200px;height:200px; top:40%;left:55%; animation:float 6s ease-in-out infinite; }

.hero-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-text h1 {
  font-size: 54px;
  font-weight: 900;
  color: white;
  line-height: 1.08;
  margin-bottom: 22px;
  animation: fadeInLeft 0.8s ease-out 0.3s both;
}
.hero-text h1 .highlight { color: var(--accent); display: block; }
.hero-text p {
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  margin-bottom: 36px;
  animation: fadeInLeft 0.8s ease-out 0.5s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInLeft 0.8s ease-out 0.7s both;
}

.btn { display:inline-flex; align-items:center; gap:8px; padding:14px 30px; border-radius:50px; font-family:inherit; font-weight:800; font-size:15px; text-decoration:none; cursor:pointer; border:none; transition:var(--transition); }
.btn-white  { background:white; color:var(--primary); box-shadow:0 5px 20px rgba(255,255,255,0.35); }
.btn-white:hover  { transform:translateY(-3px); box-shadow:0 10px 30px rgba(255,255,255,0.45); }
.btn-outline { background:transparent; color:white; border:2.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background:rgba(255,255,255,0.12); border-color:white; }
.btn-primary { background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:white; box-shadow:0 5px 20px rgba(108,60,225,0.4); }
.btn-primary:hover { transform:translateY(-3px); box-shadow:0 10px 30px rgba(108,60,225,0.5); }
.btn-secondary { background:linear-gradient(135deg,var(--secondary),#e0530f); color:white; box-shadow:0 5px 20px rgba(255,107,53,0.4); }
.btn-secondary:hover { transform:translateY(-3px); box-shadow:0 10px 30px rgba(255,107,53,0.5); }

/* Hero Visual - Floating Cards */
.hero-visual {
  animation: fadeInRight 0.8s ease-out 0.4s both;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 420px;
  width: 100%;
}

.hero-card-item {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.28);
  border-radius: 22px;
  padding: 24px 18px;
  text-align: center;
  color: white;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  animation: bounceIn 0.6s ease-out both;
}
.hero-card-item:nth-child(1){animation-delay:0.6s}
.hero-card-item:nth-child(2){animation-delay:0.8s}
.hero-card-item:nth-child(3){animation-delay:1.0s}
.hero-card-item:nth-child(4){animation-delay:1.2s}
.hero-card-item:hover { background:rgba(255,255,255,0.25); transform:translateY(-6px) scale(1.03); }
.hero-card-item .hci-icon { font-size:38px; margin-bottom:10px; animation:float 3s ease-in-out infinite; }
.hero-card-item:nth-child(2) .hci-icon { animation-delay:0.5s; }
.hero-card-item:nth-child(3) .hci-icon { animation-delay:1s; }
.hero-card-item:nth-child(4) .hci-icon { animation-delay:1.5s; }
.hero-card-item h4 { font-size:13px; font-weight:800; opacity:0.92; }

/* Floating particles */
.particles-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  font-size: 18px;
  animation: float var(--dur,4s) ease-in-out infinite var(--delay,0s);
  opacity: 0.55;
}

/* ===================== PAGE BANNER ===================== */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 70px 24px 50px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  animation: fadeInDown 0.6s ease-out;
}
.page-banner::before {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  bottom: -150px; right: -80px;
  pointer-events: none;
}
.page-banner .banner-icon { font-size: 60px; margin-bottom: 15px; animation: float 3s ease-in-out infinite; display:block; }
.page-banner h1 { font-size: 44px; font-weight: 900; margin-bottom: 12px; text-shadow: 0 3px 15px rgba(0,0,0,0.2); }
.page-banner p  { font-size: 16px; opacity: 0.9; max-width: 550px; margin: 0 auto; line-height: 1.65; }

/* ===================== SECTION COMMON ===================== */
.section { padding: 70px 24px; }
.section-inner { max-width: 1300px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header .badge {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.section-header h2 { font-size: 38px; font-weight: 900; color: var(--primary); margin-bottom: 10px; }
.section-header p  { font-size: 16px; color: var(--gray); max-width: 520px; margin: 0 auto; }

/* ===================== FEATURES GRID (HOME) ===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: 22px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: var(--transition);
  border: 2px solid transparent;
  animation: fadeInUp 0.6s ease-out both;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(108,60,225,0.04));
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-10px) scale(1.01); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.feature-card:hover::after { opacity: 1; }

.fc-icon {
  width: 80px; height: 80px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.feature-card:hover .fc-icon { animation: tada 0.6s ease-in-out; }
.feature-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--dark); }
.feature-card p  { font-size: 13px; color: var(--gray); line-height: 1.65; }

/* icon colors */
.ic-purple { background: #f0e8ff; }
.ic-orange  { background: #fff0e8; }
.ic-yellow  { background: #fffae0; }
.ic-green   { background: #e8f5e9; }
.ic-blue    { background: #e0f7ff; }
.ic-pink    { background: #ffe8f2; }
.ic-teal    { background: #e0f8f4; }
.ic-red     { background: #ffe8e8; }
.ic-indigo  { background: #e8ecff; }
.ic-lime    { background: #f0ffe0; }

/* ===================== STATS ===================== */
.stats-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 65px 24px;
}
.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item { color: white; animation: fadeInUp 0.6s ease-out both; }
.stat-num   { font-size: 52px; font-weight: 900; color: var(--accent); line-height: 1; display: block; }
.stat-unit  { font-size: 20px; font-weight: 900; color: var(--accent); }
.stat-label { font-size: 15px; opacity: 0.8; margin-top: 6px; }

/* ===================== ALPHABET PAGE ===================== */
.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 24px;
}

.alpha-card {
  background: white;
  border-radius: 18px;
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 3px solid transparent;
  animation: bounceIn 0.5s ease-out both;
  user-select: none;
}
.alpha-card:hover { transform: scale(1.12) rotate(-2deg); box-shadow: var(--shadow-hover); }
.alpha-card.speaking { animation: tada 0.6s; }

.alpha-emoji  { font-size: 26px; margin-bottom: 4px; display: block; }
.alpha-letter { font-size: 44px; font-weight: 900; line-height: 1; margin-bottom: 4px; display: block; }
.alpha-word   { font-size: 11px; color: var(--gray); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: block; }

/* ===================== NUMBERS SLIDER ===================== */
.numbers-section { padding: 50px 24px 70px; }
.slider-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.slider-container {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-hover);
}
.slider-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.slide {
  min-width: 100%;
  padding: 60px 40px 70px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.slide-num-big { font-size: 130px; font-weight: 900; line-height: 1; text-shadow: 0 6px 20px rgba(0,0,0,0.25); animation: countUp 0.5s ease-out; }
.slide-num-eng { font-size: 34px; font-weight: 800; }
.slide-num-tel { font-size: 26px; opacity: 0.88; }
.slide-num-objs{ font-size: 38px; letter-spacing: 6px; line-height: 1.4; }
.slide-num-word{ font-size: 15px; opacity: 0.75; font-weight: 600; }

.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}
.slider-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.slider-btn:hover { background: var(--primary-dark); transform: scale(1.12); }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #ddd; cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--primary); width: 28px; border-radius: 6px; }

/* ===================== QUIZ PAGE ===================== */
.quiz-outer {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.quiz-start-screen, .quiz-play-screen, .quiz-result-screen {
  background: white;
  border-radius: 28px;
  padding: 50px 40px;
  box-shadow: var(--shadow-hover);
  animation: fadeInUp 0.6s ease-out;
  text-align: center;
}

.quiz-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.quiz-cat-btn {
  background: white;
  border: 3px solid #eee;
  border-radius: 18px;
  padding: 20px 16px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}
.quiz-cat-btn .cat-icon { font-size: 30px; }
.quiz-cat-btn:hover, .quiz-cat-btn.selected { border-color: var(--primary); background: #f0e8ff; color: var(--primary); }

.quiz-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.quiz-score-badge { background: #f0e8ff; color: var(--primary); padding: 8px 18px; border-radius: 50px; font-weight: 800; font-size: 15px; }
.quiz-timer-badge {
  background: var(--secondary);
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 17px;
  min-width: 60px;
  text-align: center;
  transition: background 0.3s;
}
.quiz-timer-badge.urgent { background: #f44336; animation: shimmer 0.5s infinite; }

.quiz-progress-bar { height: 8px; background: #eee; border-radius: 4px; margin-bottom: 30px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 4px; transition: width 0.4s ease; }

.quiz-q-num { font-size: 13px; color: var(--gray); font-weight: 600; margin-bottom: 10px; }
.quiz-question { font-size: 24px; font-weight: 900; color: var(--dark); margin-bottom: 35px; line-height: 1.4; }
.quiz-question .q-emoji { font-size: 48px; display: block; margin-bottom: 10px; }

.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt-btn {
  padding: 18px 14px;
  border: 3px solid #eee;
  border-radius: 18px;
  background: white;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.opt-btn:hover:not(:disabled) { border-color: var(--primary); background: #f0e8ff; transform: scale(1.03); }
.opt-btn.correct { border-color: var(--green); background: #e8f5e9; color: var(--green); }
.opt-btn.wrong   { border-color: #f44336; background: #ffebee; color: #f44336; animation: shake 0.5s ease-out; }

.result-trophy   { font-size: 80px; display: block; margin-bottom: 20px; animation: bounceIn 0.7s ease-out; }
.result-score    { font-size: 64px; font-weight: 900; color: var(--primary); line-height: 1; }
.result-label    { font-size: 16px; color: var(--gray); margin-top: 6px; }
.result-grade    { display: inline-block; background: var(--accent); color: var(--dark); font-size: 28px; font-weight: 900; padding: 10px 30px; border-radius: 50px; margin: 20px 0; }
.result-msg      { font-size: 18px; color: var(--dark); font-weight: 700; line-height: 1.5; }

/* ===================== FLASHCARDS PAGE ===================== */
.flashcard-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 50px 24px 70px;
  text-align: center;
}

.fc-category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.fc-tab {
  padding: 10px 22px;
  border-radius: 50px;
  border: 2.5px solid #ddd;
  background: white;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.fc-tab.active, .fc-tab:hover { background: var(--primary); color: white; border-color: var(--primary); }

.flashcard-stage { perspective: 1200px; margin-bottom: 30px; cursor: pointer; }
.flashcard-inner {
  position: relative;
  height: 260px;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
  transform-style: preserve-3d;
}
.flashcard-stage.flipped .flashcard-inner { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  backface-visibility: hidden;
  box-shadow: var(--shadow-hover);
}
.card-face-front {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}
.card-face-back {
  background: linear-gradient(135deg, var(--secondary), #e0530f);
  color: white;
  transform: rotateY(180deg);
}
.card-word  { font-size: 60px; font-weight: 900; }
.card-emoji { font-size: 50px; margin-bottom: 10px; }
.card-hint  { font-size: 13px; opacity: 0.7; margin-top: 10px; }
.card-answer{ font-size: 42px; font-weight: 900; }
.card-desc  { font-size: 15px; opacity: 0.88; margin-top: 10px; line-height: 1.5; }

.fc-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.fc-counter { font-size: 15px; color: var(--gray); font-weight: 700; }

/* ===================== DRAWING PAGE ===================== */
.drawing-section { padding: 40px 24px 70px; max-width: 980px; margin: 0 auto; }
.drawing-toolbox {
  background: white;
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tool-group { display: flex; align-items: center; gap: 8px; }
.tool-label { font-size: 12px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-right: 2px; }

.color-swatch {
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
}
.color-swatch:hover, .color-swatch.selected { border-color: var(--dark); transform: scale(1.2); }

.brush-size-btn {
  border-radius: 50%;
  border: 2.5px solid #ddd;
  background: #333;
  cursor: pointer;
  transition: var(--transition);
}
.brush-size-btn:hover, .brush-size-btn.selected { border-color: var(--primary); transform: scale(1.15); }

.tool-btn {
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-btn:hover { transform: translateY(-2px); }
.tool-btn.eraser  { background: #fff3e0; color: #f57c00; }
.tool-btn.clear   { background: #ffebee; color: #e53935; }
.tool-btn.save    { background: #e8f5e9; color: #43a047; }
.tool-btn.fill-btn{ background: #e3f2fd; color: #1976d2; }

.drawing-canvas-wrap {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  cursor: crosshair;
  background: white;
}
#drawCanvas { display: block; width: 100%; touch-action: none; }

.drawing-templates {
  margin-top: 25px;
}
.drawing-templates h4 { font-size: 15px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.template-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.template-btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: 2.5px solid #eee;
  background: white;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.template-btn:hover { border-color: var(--primary); background: #f0e8ff; color: var(--primary); }

/* ===================== RHYMES PAGE ===================== */
.rhymes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 24px 70px;
}
.rhyme-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out both;
  text-decoration: none;
  color: inherit;
  display: block;
}
.rhyme-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.rhyme-thumb {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 80px;
}
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.rhyme-card:hover .play-overlay { opacity: 1; }
.play-circle {
  width: 62px; height: 62px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.rhyme-info { padding: 20px; }
.rhyme-info h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.rhyme-info p  { font-size: 13px; color: var(--gray); line-height: 1.55; }
.rhyme-tag { display: inline-block; background: #f0e8ff; color: var(--primary); padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700; margin-bottom: 8px; }

/* ===================== TELUGU LEARNING ===================== */
.telugu-section { padding: 40px 24px 70px; max-width: 1100px; margin: 0 auto; }
.telugu-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.te-tab {
  padding: 11px 24px;
  border-radius: 50px;
  border: 2.5px solid #ddd;
  background: white;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.te-tab.active, .te-tab:hover { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 5px 20px rgba(108,60,225,0.3); }

.telugu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 12px;
}
.te-card {
  background: white;
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 2.5px solid transparent;
  animation: bounceIn 0.45s ease-out both;
}
.te-card:hover { transform: scale(1.12); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.te-char   { font-size: 30px; font-weight: 700; display: block; line-height: 1.2; margin-bottom: 4px; color: var(--dark); }
.te-roman  { font-size: 11px; color: var(--gray); font-weight: 700; display: block; }
.te-meaning{ font-size: 10px; color: var(--primary); font-weight: 600; display: block; margin-top: 2px; }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.compare-card {
  background: white;
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: 2.5px solid transparent;
}
.compare-card:hover { transform: scale(1.04); border-color: var(--primary); box-shadow: var(--shadow-hover); }
.compare-emoji { font-size: 32px; flex-shrink: 0; }
.compare-words { flex: 1; }
.compare-eng { font-size: 16px; font-weight: 800; color: var(--dark); }
.compare-tel { font-size: 18px; font-weight: 700; color: var(--primary); margin-top: 3px; }
.compare-roman { font-size: 11px; color: var(--gray); font-weight: 600; }

/* ===================== GK PAGE ===================== */
.gk-section { padding: 50px 24px 70px; max-width: 1100px; margin: 0 auto; }
.gk-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.gk-cat-card {
  background: white;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.6s ease-out both;
  transition: var(--transition);
  cursor: pointer;
}
.gk-cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.gk-cat-icon { font-size: 42px; margin-bottom: 14px; animation: float 3s ease-in-out infinite; }
.gk-cat-card h3 { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.gk-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}
.gk-fact i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.gk-fact strong { color: var(--dark); font-weight: 700; }

/* ===================== TESTS PAGE ===================== */
.tests-outer {
  max-width: 750px;
  margin: 40px auto;
  padding: 0 24px 80px;
}

.test-setup-screen, .test-play-screen, .test-result-screen {
  background: white;
  border-radius: 28px;
  padding: 50px 40px;
  box-shadow: var(--shadow-hover);
  animation: fadeInUp 0.6s ease-out;
}

.test-subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 25px;
}
.test-subj-btn {
  background: white;
  border: 3px solid #eee;
  border-radius: 16px;
  padding: 18px 12px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  transition: var(--transition);
  text-align: center;
}
.test-subj-btn .subj-icon { font-size: 28px; display: block; margin-bottom: 6px; }
.test-subj-btn:hover, .test-subj-btn.selected { border-color: var(--primary); background: #f0e8ff; color: var(--primary); }

.test-level-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 25px;
  flex-wrap: wrap;
}
.level-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2.5px solid #ddd;
  background: white;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.level-btn:hover, .level-btn.selected { background: var(--primary); color: white; border-color: var(--primary); }

.test-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f4ff;
  border-radius: 16px;
  padding: 16px 22px;
  margin-bottom: 24px;
}
.test-stat { text-align: center; }
.test-stat-val { font-size: 24px; font-weight: 900; color: var(--primary); }
.test-stat-label { font-size: 11px; color: var(--gray); font-weight: 600; text-transform: uppercase; }

.test-progress-bar { height: 8px; background: #eee; border-radius: 4px; margin-bottom: 28px; overflow: hidden; }
.test-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 4px; transition: width 0.4s ease; }

.test-question { font-size: 22px; font-weight: 800; color: var(--dark); margin-bottom: 30px; line-height: 1.45; text-align: center; }
.test-options { display: flex; flex-direction: column; gap: 12px; }
.test-opt-btn {
  padding: 16px 22px;
  border: 2.5px solid #eee;
  border-radius: 16px;
  background: white;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}
.test-opt-btn .opt-label { width: 30px; height: 30px; border-radius: 8px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; transition: var(--transition); }
.test-opt-btn:hover:not(:disabled) { border-color: var(--primary); background: #f0e8ff; }
.test-opt-btn:hover:not(:disabled) .opt-label { background: var(--primary); color: white; }
.test-opt-btn.correct { border-color: var(--green); background: #e8f5e9; color: var(--green); }
.test-opt-btn.wrong   { border-color: #f44336; background: #ffebee; color: #f44336; animation: shake 0.5s ease-out; }
.test-opt-btn.correct .opt-label { background: var(--green); color: white; }
.test-opt-btn.wrong   .opt-label { background: #f44336; color: white; }

/* Result */
.result-header { text-align: center; padding-bottom: 30px; border-bottom: 1px solid #eee; margin-bottom: 30px; }
.result-grade-circle {
  width: 150px; height: 150px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-hover);
  font-weight: 900;
}
.grade-pct  { font-size: 38px; line-height: 1; }
.grade-letter { font-size: 24px; }
.result-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rb-item { background: #f8f4ff; border-radius: 14px; padding: 18px; text-align: center; }
.rb-val { font-size: 28px; font-weight: 900; color: var(--primary); }
.rb-label { font-size: 12px; color: var(--gray); font-weight: 600; text-transform: uppercase; margin-top: 4px; }
.result-perf-msg { text-align: center; margin-top: 25px; }
.perf-emoji { font-size: 60px; display: block; animation: bounceIn 0.7s ease-out 0.3s both; }
.perf-msg { font-size: 20px; font-weight: 800; color: var(--dark); margin-top: 10px; }
.result-actions { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ===================== ABOUT PAGE ===================== */
.about-section { padding: 60px 24px 80px; max-width: 1100px; margin: 0 auto; }
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 70px; }
.about-intro-visual { display: flex; justify-content: center; }
.about-big-icon { font-size: 160px; animation: float 4s ease-in-out infinite; }
.about-intro-text h2 { font-size: 36px; font-weight: 900; color: var(--primary); margin-bottom: 18px; line-height: 1.2; }
.about-intro-text p  { font-size: 15px; color: var(--gray); line-height: 1.8; margin-bottom: 16px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 50px;
}
.value-card {
  background: white;
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.6s ease-out both;
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.value-icon { font-size: 44px; display: block; margin-bottom: 14px; animation: float 3s ease-in-out infinite; }
.value-card h4 { font-size: 17px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.value-card p  { font-size: 13px; color: var(--gray); line-height: 1.65; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.team-card {
  background: white;
  border-radius: 22px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  animation: bounceIn 0.6s ease-out both;
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.team-avatar { font-size: 60px; display: block; margin-bottom: 12px; }
.team-card h4 { font-size: 16px; font-weight: 800; color: var(--dark); }
.team-card span { font-size: 13px; color: var(--primary); font-weight: 600; }

/* ===================== TOAST NOTIFICATION ===================== */
.toast {
  position: fixed;
  top: 90px; right: 24px;
  background: var(--primary);
  color: white;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 30px rgba(108,60,225,0.5);
  z-index: 9998;
  animation: slide-in-top 0.4s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Confetti pieces */
.confetti-piece {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9997;
  animation: confettiFall 1.2s ease-out forwards;
}

/* ===================== HOME NEWSLETTER ===================== */
.newsletter-section {
  background: linear-gradient(135deg, var(--secondary), #cc4400);
  padding: 60px 24px;
  text-align: center;
  color: white;
}
.newsletter-section h2 { font-size: 32px; font-weight: 900; margin-bottom: 10px; }
.newsletter-section p  { font-size: 16px; opacity: 0.9; margin-bottom: 30px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1;
  padding: 14px 22px;
  border-radius: 50px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  min-width: 200px;
}
.newsletter-form button {
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  background: var(--accent);
  color: var(--dark);
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}
.newsletter-form button:hover { transform: scale(1.05); }

/* ===================== HOW IT WORKS ===================== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.how-step {
  animation: fadeInUp 0.6s ease-out both;
}
.how-num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.how-step h4 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--dark); }
.how-step p  { font-size: 14px; color: var(--gray); line-height: 1.65; }

/* ===================== RESPONSIVE ===================== */
@media(max-width: 1024px) {
  .hero-text h1 { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .how-grid    { grid-template-columns: 1fr; max-width: 500px; }
}

@media(max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 35px; }
  .hero-text h1 { font-size: 36px; }
  .hero-cards-grid { grid-template-columns: 1fr 1fr; }
  .page-banner h1 { font-size: 32px; }
  .section-header h2 { font-size: 28px; }
  .quiz-options { grid-template-columns: 1fr; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .about-big-icon { font-size: 100px; }
  .test-subject-grid { grid-template-columns: repeat(2, 1fr); }
  .result-breakdown  { grid-template-columns: 1fr; }
  .quiz-start-screen, .quiz-play-screen, .quiz-result-screen,
  .test-setup-screen, .test-play-screen, .test-result-screen { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media(max-width: 480px) {
  .header-inner { height: 62px; }
  .logo-kids, .logo-cave { font-size: 20px; }
  .hero-text h1 { font-size: 28px; }
  .hero-btns { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-num { font-size: 38px; }
  .chat-box { width: 290px; }
  .chat-widget { bottom: 20px; right: 16px; }
  .slide-num-big { font-size: 90px; }
  .quiz-category-grid { grid-template-columns: 1fr; }
  .test-subject-grid { grid-template-columns: repeat(2, 1fr); }
}
