/* =========================================================
   CWA SCIENCE CLASSES - Main Stylesheet
   Mobile-first, 3D animated, stylish coaching website
========================================================= */

:root{
  --primary: #4C3CE3;
  --primary-dark: #372AAE;
  --primary-light: #7A6BFF;
  --accent: #FF6B6B;
  --accent2: #00C2A8;
  --gold: #FFA630;
  --dark: #14142B;
  --dark2: #1E1E3F;
  --gray: #6E6E8F;
  --light-bg: #F7F6FF;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(76,60,227,0.12);
  --shadow-strong: 0 20px 45px rgba(20,20,43,0.18);
  --font-head: 'Baloo 2', 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --header-h: 66px;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* =========================================================
   MOBILE-FRIENDLY LAYOUT
   The site now uses a real "width=device-width" viewport, so
   every @media (max-width: ...) rule below applies naturally
   on phones/tablets — no forced desktop canvas, no manual
   pinch-zoom needed, no scaled-canvas side effects on fixed
   elements (header, video modal, WhatsApp button).
========================================================= */
body{
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
button{ font-family: inherit; cursor:pointer; border:none; background:none; }
input, select{ font-family: inherit; }

.section-container{
  width:100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.text-gradient{
  background: linear-gradient(90deg, var(--primary), var(--accent2), var(--accent), var(--primary));
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 5s linear infinite;
}
@keyframes gradientFlow{ to{ background-position: 250% center; } }

.section-tag{
  display:inline-block;
  font-weight:700;
  color: var(--primary);
  background: rgba(76,60,227,0.09);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  margin-bottom: 12px;
  letter-spacing:.3px;
  animation: tagFloat 3.4s ease-in-out infinite;
}
@keyframes tagFloat{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-4px);} }
.section-title{
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.25;
}
.section-desc{
  color: var(--gray);
  font-size: 1rem;
  max-width: 560px;
}
.section-head{ margin-bottom: 34px; text-align:center; }
.section-head.light .section-desc, .section-head.light .section-title{ color: #fff; }
.section-head.light .section-desc{ color: rgba(255,255,255,0.85); margin:0 auto; }
.section-head .section-desc{ margin: 0 auto; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight:700;
  font-size: 0.95rem;
  transition: all .3s ease;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--accent), #FF8E53);
  color:#fff;
  box-shadow: 0 10px 22px rgba(255,107,107,0.4);
}
.btn-primary:hover{ transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 28px rgba(255,107,107,0.5); }
.btn-outline{
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.6);
  color:#fff;
  backdrop-filter: blur(6px);
}
.btn-outline:hover{ background:#fff; color: var(--primary); }
.btn-block{ width:100%; }

/* ============ PRELOADER ============ */
#preloader{
  position:fixed; inset:0; z-index:9999;
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hide{ opacity:0; visibility:hidden; }
.loader-orbit{ position:relative; width:100px; height:100px; }
.loader-core{
  position:absolute; top:50%; left:50%; width:22px; height:22px;
  background:#fff; border-radius:50%; transform:translate(-50%,-50%);
  box-shadow:0 0 20px #fff;
}
.orbit{
  position:absolute; inset:0; border:2px solid rgba(255,255,255,0.25); border-radius:50%;
  animation: spin 3s linear infinite;
}
.orbit1{ animation-duration: 2s; }
.orbit2{ transform: rotate(60deg); animation-duration: 3s; }
.orbit3{ transform: rotate(120deg); animation-duration: 4s; }
.orbit .e{
  position:absolute; top:-4px; left:50%; width:8px; height:8px; background: var(--gold);
  border-radius:50%; transform: translateX(-50%);
}
@keyframes spin{ to{ transform: rotate(360deg);} }
.loader-text{ color:#fff; margin-top:26px; font-family: var(--font-head); font-weight:700; letter-spacing:1px; }
.loader-text span{ display:block; font-size:.75rem; font-weight:400; opacity:.7; margin-top:4px; }

/* ---- legacy base rules (header, contact, footer) kept so layout primitives exist ---- */
/* ============ HEADER ============ */
.site-header{
  position: sticky; top:0; z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(20,20,43,0.06);
  height: var(--header-h);
  transition: box-shadow .3s ease;
}
.nav-container{
  max-width:1200px; margin:0 auto; padding:0 18px; height:100%;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-logo{ width:42px; height:42px; object-fit:contain; filter: drop-shadow(0 4px 8px rgba(76,60,227,.35)); }
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-main{ font-family: var(--font-head); font-weight:800; font-size:1.02rem; color: var(--dark); letter-spacing:.2px; }
.brand-main em{ font-style:normal; color: var(--primary); }
.brand-sub{ font-size:0.62rem; font-weight:600; color: var(--accent); letter-spacing:1.2px; text-transform:uppercase; }

.main-nav{ display:flex; align-items:center; gap:22px; }
.nav-link{ font-weight:600; font-size:.93rem; color: var(--dark2); position:relative; padding:6px 2px; }
.nav-link::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--accent);
  transition: width .3s ease;
}
.nav-link:hover::after, .nav-link.active::after{ width:100%; }
.nav-cta{
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color:#fff; padding:9px 18px; border-radius:30px; font-weight:700; font-size:.88rem;
  display:flex; align-items:center; gap:6px;
  box-shadow: 0 8px 18px rgba(76,60,227,.35);
}

.hamburger{ display:none; flex-direction:column; gap:5px; width:30px; z-index:600; }
.hamburger span{ height:3px; width:100%; background:var(--dark); border-radius:2px; transition:.3s; }
.hamburger.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px){
  .main-nav{ display:none; }
  .hamburger{ display:flex; }
}


/* ============ WHY SECTION ============ */
.why-section{ padding: 70px 0; background:#fff; }
.why-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; }
.why-card{
  background: var(--light-bg); border-radius: var(--radius); padding: 26px; text-align:center;
  transition: transform .3s ease, background .3s ease;
}
.why-card:hover{ transform: translateY(-8px); background:#fff; box-shadow: var(--shadow-strong); }
.why-icon{
  width:64px; height:64px; margin:0 auto 14px; border-radius:50%;
  background: linear-gradient(135deg, var(--primary), var(--accent2)); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.5rem;
}
.why-card h3{ font-family: var(--font-head); font-size:1.08rem; margin-bottom:8px; }
.why-card p{ color: var(--gray); font-size:.88rem; }
@media (max-width:860px){ .why-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width:560px){ .why-grid{ grid-template-columns: 1fr; } }

/* ============ CONTACT ============ */
.contact-section{ padding: 70px 0; background: var(--light-bg); }
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items:stretch; }
.contact-info{ display:flex; flex-direction:column; gap:20px; }
.contact-item{ display:flex; gap:16px; align-items:flex-start; background:#fff; padding:18px; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }
.ci-icon{
  width:46px; height:46px; border-radius:14px; flex-shrink:0;
  background: linear-gradient(135deg, var(--primary), var(--accent2)); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.15rem;
}
.contact-item h4{ font-size:.92rem; margin-bottom:4px; }
.contact-item a, .contact-item p{ color: var(--gray); font-size:.9rem; font-weight:600; }
.contact-item a{ color: var(--primary); }

.contact-socials{ display:flex; gap:12px; margin-top:6px; }
.social-btn{
  width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.2rem; transition:.3s;
}
.social-btn:hover{ transform: translateY(-4px); }
.social-btn.yt{ background:#FF0000; }
.social-btn.fb{ background:#1877F2; }
.social-btn.wa{ background:#25D366; }
.social-btn.ig{ background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }

.contact-map{ border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-soft); min-height:320px; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } .contact-map{ min-height:260px; } }

/* ============ FOOTER ============ */
.site-footer{ background: var(--dark); color:#c6c4e0; }
.footer-top{ padding: 56px 0 30px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr; gap: 32px; }
.footer-logo{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-logo img{ width:46px; height:46px; }
.footer-logo h3{ font-family: var(--font-head); color:#fff; font-size:1.1rem; }
.footer-logo p{ font-size:.76rem; color: var(--accent); font-weight:700; letter-spacing:.5px; text-transform:uppercase; }
.footer-about{ font-size:.87rem; line-height:1.7; margin-bottom:18px; color:#a9a6ca; }
.footer-socials{ display:flex; gap:12px; }
.footer-socials a{
  width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center;
  transition:.3s; color:#fff;
}
.footer-socials a:hover{ background: var(--accent); transform: translateY(-3px); }

.footer-col h4{ color:#fff; font-family: var(--font-head); font-size:1rem; margin-bottom:18px; position:relative; padding-bottom:8px; }
.footer-col h4::after{ content:''; position:absolute; left:0; bottom:0; width:32px; height:3px; background: var(--accent); border-radius:2px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col ul a{ font-size:.88rem; color:#a9a6ca; transition:.25s; }
.footer-col ul a:hover{ color: var(--accent2); padding-left:4px; }

.footer-phone{ display:block; font-size:1.3rem; font-weight:800; color: var(--gold); margin-bottom:12px; }
.footer-phone:hover{ color: var(--accent); }
.footer-address{ font-size:.85rem; color:#a9a6ca; margin-bottom:12px; display:flex; gap:8px; align-items:flex-start; }
.footer-email{ font-size:.85rem; color:#a9a6ca; display:flex; align-items:center; gap:8px; }
.footer-email:hover{ color: var(--accent2); }

.footer-bottom{ border-top:1px solid rgba(255,255,255,0.08); padding: 18px 0; text-align:center; font-size:.82rem; color:#8b88ab; }

@media (max-width:900px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns: 1fr; text-align:center; }
  .footer-logo{ justify-content:center; }
  .footer-col h4::after{ left:50%; transform:translateX(-50%); }
  .footer-socials{ justify-content:center; }
  .contact-item{ text-align:left; }
  .footer-address{ justify-content:center; }
}


.subject-icon-3d{ display:flex; align-items:center; justify-content:center; color:#fff; }
.subject-icon-3d.physics{ background: linear-gradient(145deg, #6C63FF, #4C3CE3); }
.subject-icon-3d.chemistry{ background: linear-gradient(145deg, #00E0B8, #00A98F); }
.subject-icon-3d.maths{ background: linear-gradient(145deg, #FFB84D, #FF8A00); }
@keyframes spin{ to{ transform: rotate(360deg);} }

/* =========================================================
   TOPPERS-WISDOM STYLE DESIGN LAYER
   Dark navy header, gold CTA buttons, light-blue hero with a
   round photo + floating chips, toppers ticker, dark About
   section, floating social bar on the right.
   Colours are editable from Admin -> Website Content.
========================================================= */
:root{
  --nav: #16213E;
  --navy: #0F1A33;
  --gold: #FFB400;
  --gold-dark: #E59E00;
  --ink: #0F1A33;
  --soft-blue: #E3EEFF;
  --cream: #FDF9F2;
  --font-head: 'Poppins', 'Baloo 2', sans-serif;
  --header-h: 72px;
}
body{ background:#fff; }

.center-head{ text-align:center; margin-bottom:34px; }
.big-title{ font-family: var(--font-head); font-weight:700; font-size: clamp(1.7rem, 4.4vw, 2.6rem); color: var(--ink); line-height:1.2; letter-spacing:-.5px; }
.big-sub{ color: var(--gray); max-width: 620px; margin: 12px auto 0; font-size:1.02rem; }
.soft-tag{ display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color: var(--primary); background: rgba(67,56,202,.09); padding:6px 14px; border-radius:30px; margin-bottom:12px; }
.gold-tag{ color: var(--gold); font-weight:700; font-size:.82rem; margin-bottom:6px; letter-spacing:.3px; }
.left-title{ font-family: var(--font-head); font-weight:700; font-size: clamp(1.4rem,3vw,1.9rem); color: var(--ink); margin-bottom:26px; }

.btn-gold{
  background: var(--gold); color: var(--ink); font-weight:700; border-radius:12px;
  box-shadow: 0 6px 16px rgba(255,180,0,.35); padding:13px 26px;
}
.btn-gold:hover{ background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,180,0,.45); }
.btn-primary{ background: var(--gold); color: var(--ink); box-shadow: 0 6px 16px rgba(255,180,0,.35); border-radius:12px; }
.btn-primary:hover{ background: var(--gold-dark); box-shadow: 0 10px 22px rgba(255,180,0,.45); transform: translateY(-2px); }

/* ---- base rules carried over (hamburger, drawer, hero slides, notice marquee) ---- */
.main-nav{ display:flex; align-items:center; gap:22px; }
.hamburger{ display:none; flex-direction:column; gap:5px; width:30px; z-index:600; }
.hamburger span{ height:3px; width:100%; background:var(--dark); border-radius:2px; transition:.3s; }
.hamburger.open span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; }
.hamburger.open span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }


/* ============ MOBILE DRAWER ============ */
.mobile-drawer{
  position:fixed; top:0; right:-300px; width:280px; height:100%;
  background:#fff; z-index: 700; padding: 90px 24px 24px;
  box-shadow: -10px 0 30px rgba(0,0,0,.15);
  transition: right .35s cubic-bezier(.6,0,.3,1);
  display:flex; flex-direction:column; gap:6px;
}
.mobile-drawer.open{ right:0; }
.mdrawer-link{ padding:13px 10px; font-weight:600; border-radius:10px; display:flex; align-items:center; gap:10px; color:var(--dark2); }
.mdrawer-link i{ color: var(--primary); width:18px; }
.mdrawer-link:active, .mdrawer-link:hover{ background: var(--light-bg); }
.mdrawer-cta{
  margin-top:10px; text-align:center; background: linear-gradient(135deg, var(--accent), #FF8E53);
  color:#fff; padding:13px; border-radius:12px; font-weight:700; display:flex; align-items:center; justify-content:center; gap:8px;
}
.mdrawer-social{ display:flex; gap:14px; justify-content:center; margin-top:24px; }
.mdrawer-social a{
  width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: var(--light-bg); color: var(--primary); font-size:1.1rem;
}
.drawer-overlay{
  position:fixed; inset:0; background:rgba(20,20,43,0.5); z-index:650; opacity:0; visibility:hidden; transition:.3s;
}
.drawer-overlay.open{ opacity:1; visibility:visible; }

.hero-slider{ position:relative; z-index:2; }
.hero-slide{ display:none; margin:0 auto; }
.hero-slide.active{ display:grid; animation: fadeSlide .8s ease; }
@keyframes fadeSlide{ from{ opacity:0; transform: translateY(18px);} to{ opacity:1; transform:translateY(0);} }
@keyframes badgeFloat{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }
@keyframes floatY{ 0%,100%{ transform: translateY(0) rotate(0deg);} 50%{ transform: translateY(-24px) rotate(15deg);} }
.hero-dots{ display:flex; justify-content:center; gap:9px; margin-top:26px; position:relative; z-index:3; }
.hero-dots .dot{ width:9px; height:9px; border-radius:50%; cursor:pointer; transition:.3s; }
.hero-dots .dot.active{ width:26px; border-radius:6px; }
.hero-content, .hero-visual{ min-width:0; }
/* ============ NOTICE MARQUEE ============ */
.notice-bar{
  display:flex; align-items:stretch; background: var(--dark);
  overflow:hidden; position:relative; z-index:5;
}
.notice-label{
  background: linear-gradient(135deg, var(--accent), #FF8E53);
  color:#fff; font-weight:800; font-size:.8rem; padding: 10px 18px;
  display:flex; align-items:center; gap:8px; white-space:nowrap; flex-shrink:0;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
  padding-right:30px;
}
.marquee-wrap{ flex:1; overflow:hidden; display:flex; align-items:center; }
.marquee-track{
  display:inline-flex; white-space:nowrap; color:#fff; font-weight:600; font-size:.85rem; padding-left:16px;
  animation: marquee 32s linear infinite;
}
.marquee-track span{ padding-right:6px; }
@keyframes marquee{ 0%{ transform: translateX(0);} 100%{ transform: translateX(-50%);} }
.notice-bar:hover .marquee-track{ animation-play-state: paused; }


/* ============ HEADER (dark navy) ============ */
.site-header{
  position: sticky; top:0; z-index: 500; height: var(--header-h);
  background: var(--nav); backdrop-filter:none;
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.nav-container{ max-width:1320px; padding:0 24px; gap:20px; }
.brand{ gap:12px; }
.brand-logo{ width:50px; height:50px; border-radius:50%; background:#fff; padding:3px; border:2px solid var(--gold); object-fit:contain; filter:none; }
.brand-main{ color:#fff; font-family:'Poppins',sans-serif; font-weight:700; font-size:1.12rem; letter-spacing:0; }
.brand-sub{ color: var(--gold); font-size:.6rem; font-weight:800; letter-spacing:1.4px; }
.main-nav{ gap:30px; margin-left:auto; margin-right:auto; }
.nav-link{ color:#C9D1E6; font-weight:500; font-size:.97rem; padding:6px 0; transition:color .25s; }
.nav-link::after{ background: var(--gold); bottom:-6px; }
.nav-link:hover, .nav-link.active{ color:#fff; }
.nav-actions{ display:flex; align-items:center; gap:12px; }
.nav-btn2{
  display:inline-flex; align-items:center; gap:8px; padding:9px 20px; border-radius:30px;
  border:1.5px solid rgba(255,255,255,.35); color:#fff; font-weight:600; font-size:.88rem; transition:.25s;
}
.nav-btn2:hover{ background:rgba(255,255,255,.12); border-color:#fff; }
.nav-cta{
  background: var(--gold); color: var(--ink); padding:10px 20px; border-radius:10px; font-weight:700; font-size:.88rem;
  box-shadow:none; display:inline-flex; align-items:center; gap:6px; transition:.25s;
}
.nav-cta:hover{ background: var(--gold-dark); transform: translateY(-1px); }
.hamburger span{ background:#fff; }

@media (max-width: 1000px){
  .main-nav, .nav-btn2{ display:none; }
  .nav-actions{ margin-left:auto; }
  .hamburger{ display:flex; }
}

/* ============ MOBILE DRAWER ============ */
.mobile-drawer{ background: var(--nav); }
.mdrawer-link{ color:#DCE3F5; }
.mdrawer-link i{ color: var(--gold); }
.mdrawer-link:active, .mdrawer-link:hover{ background: rgba(255,255,255,.08); }
.mdrawer-cta{ background: var(--gold); color: var(--ink); }
.mdrawer-social a{ background: rgba(255,255,255,.1); color:#fff; }

/* ============ HERO ============ */
.hero{
  position:relative; overflow:hidden; min-height: 610px; padding: 50px 0 34px;
  background: linear-gradient(135deg, #EAF2FF 0%, #FFFFFF 45%, #DCEAFF 100%);
  display:flex; flex-direction:column; justify-content:center;
}
.hero-bg-img{
  position:absolute; inset:0; background-size:cover; background-position:center; opacity:.28; z-index:0; pointer-events:none;
}
.hero-bg-img::after{ content:''; position:absolute; inset:0; background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,.25)); }
.hero-slider{ position:relative; z-index:2; }
.hero-slide{
  max-width:1320px; padding:0 24px; gap:30px; align-items:center;
  grid-template-columns: 1.05fr .95fr;
}
.hero-badge{
  display:inline-flex; align-items:center; gap:12px; background: linear-gradient(135deg,#1B2A55,#14204A);
  border:1.5px solid var(--gold); border-radius:16px; padding:12px 20px 12px 14px; margin-bottom:22px;
  box-shadow: 0 10px 26px rgba(15,26,51,.25);
}
.hb-medal{ width:42px; height:42px; border-radius:50%; background: radial-gradient(circle at 30% 30%, #FFD866, var(--gold-dark)); color:#7A4B00; display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0; }
.hb-t{ display:flex; flex-direction:column; line-height:1.25; }
.hb-t small{ color: var(--gold); font-weight:800; font-size:.62rem; letter-spacing:1px; text-transform:uppercase; }
.hb-t b{ color:#fff; font-weight:600; font-size:.98rem; }
.hero-title{ font-family: var(--font-head); font-weight:700; line-height:1.15; margin-bottom:16px; letter-spacing:-1px; }
.hero-title .line1, .hero-title .line2{ font-size: clamp(2rem, 5vw, 3.4rem); color: var(--ink); margin:0; }
.hero-title .highlight{ color: var(--gold-dark); }
.hero-title .highlight::after{ display:none; }
.hero-desc{ font-size:1.08rem; color:#2B3A5E; max-width:560px; margin-bottom:26px; }
.hero-btns{ gap:14px; margin-bottom:30px; }
.hero .btn{ border-radius:12px; padding:14px 26px; font-size:.97rem; }
.hero .btn-outline{ background:transparent; border:2px solid var(--ink); color: var(--ink); backdrop-filter:none; }
.hero .btn-outline:hover{ background: var(--ink); color:#fff; }
.hero-stats{ display:flex; flex-wrap:wrap; gap:0; }
.hero-stats .stat{ padding:0 24px; border-left:1.5px solid rgba(15,26,51,.18); display:flex; flex-direction:column; }
.hero-stats .stat:first-child{ padding-left:0; border-left:none; }
.hero-stats b{ font-family: var(--font-head); font-size:1.5rem; font-weight:700; color: var(--ink); line-height:1.2; }
.hero-stats .num{ font-size:inherit; color:inherit; font-weight:inherit; font-family:inherit; }
.hero-stats small{ font-size:.78rem; color:#4A5878; font-weight:500; text-transform:none; letter-spacing:0; }

.hero-visual{ position:relative; display:flex; align-items:center; justify-content:center; min-height:470px; }
.hero-circle{
  position:relative; width: min(100%, 440px); aspect-ratio:1/1; border-radius:50%;
  border:3px solid var(--gold); background: radial-gradient(circle at 50% 40%, #FFF3CC 0%, #FFE9A8 45%, #FFD86B 100%);
  box-shadow: 0 0 0 14px rgba(255,180,0,.12), 0 30px 60px rgba(15,26,51,.18);
  display:flex; align-items:flex-end; justify-content:center; overflow:visible;
}
.hero-circle{ overflow:hidden; }
.hero-circle .hero-float-img{
  position:absolute; inset:0; width:100%; max-width:none; height:100%;
  object-fit:cover; object-position:center 12%; animation:none; filter:none;
  mix-blend-mode:multiply; /* white photo background melts into the gold circle */
}
.hero-chip{
  position:absolute; background:#fff; border-radius:12px; padding:9px 15px; box-shadow: 0 8px 22px rgba(15,26,51,.15);
  display:flex; flex-direction:column; line-height:1.25; z-index:3; animation: badgeFloat 4.5s ease-in-out infinite;
}
.hero-chip b{ font-size:.86rem; color: var(--ink); font-weight:700; }
.hero-chip small{ font-size:.7rem; color:#5B6A8C; }
.hc1{ top:10%; left:2%; } .hc2{ top:6%; right:0; animation-delay:.8s; }
.hc3{ bottom:20%; left:-4%; animation-delay:1.4s; } .hc4{ bottom:22%; right:-4%; animation-delay:.4s; }
.hero-nametag{
  position:absolute; bottom:2%; left:50%; transform:translateX(-50%); z-index:4;
  background: var(--gold); color: var(--ink); padding:11px 26px; border-radius:12px; text-align:center;
  box-shadow: 0 10px 24px rgba(255,180,0,.45); display:flex; flex-direction:column; line-height:1.25; white-space:nowrap;
}
.hero-nametag b{ font-size:1.02rem; font-weight:700; }
.hero-nametag small{ font-size:.72rem; font-weight:600; opacity:.85; }
.hero-dots{ margin-top:10px; }
.hero-dots .dot{ background: rgba(15,26,51,.2); }
.hero-dots .dot.active{ background: var(--gold-dark); }

/* ============ TOPPERS TICKER ============ */
.ticker-section{ background: linear-gradient(180deg,#E3EEFF,#EEF4FF); padding:20px 0 6px; overflow:hidden; }
.ticker-track{ display:flex; gap:14px; width:max-content; animation: tickerMove 45s linear infinite; padding-left:14px; }
.ticker-section:hover .ticker-track{ animation-play-state:paused; }
@keyframes tickerMove{ to{ transform: translateX(-33.333%); } }
.ticker-pill{
  display:flex; align-items:center; gap:10px; background: var(--navy); color:#fff; padding:9px 20px 9px 10px;
  border-radius:40px; flex-shrink:0; box-shadow: 0 6px 16px rgba(15,26,51,.2);
}
.ticker-pill img, .tp-av{ width:34px; height:34px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.tp-av{ background: #3A3320; color: var(--gold); font-weight:700; display:flex; align-items:center; justify-content:center; font-size:.9rem; border:1px solid rgba(255,180,0,.4); }
.tp-t{ display:flex; flex-direction:column; line-height:1.25; }
.tp-t b{ font-size:.82rem; font-weight:700; }
.tp-t small{ font-size:.66rem; color: var(--gold); font-weight:700; }

/* ============ NOTICE ============ */
.notice-bar{ background: var(--nav); }
.notice-label{ background: var(--gold); color: var(--ink); clip-path: polygon(0 0,100% 0,90% 100%,0 100%); }

/* ============ SUBJECTS ============ */
.subjects-strip{ padding: 60px 0 50px; background: linear-gradient(180deg,#EEF4FF 0%, #E4EEFF 100%); }
.subjects-strip .section-container{ display:block; }
.subject-cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; max-width:1100px; margin:0 auto; }
.subject-card{
  display:flex; align-items:center; gap:16px; text-align:left; background:#fff; border:1.5px solid #E6ECF7;
  border-radius:18px; padding:20px 22px; box-shadow: 0 6px 18px rgba(15,26,51,.06); transition:.3s;
}
.subject-card:hover{ transform: translateY(-5px); border-color:#C7B8FF; box-shadow: 0 14px 30px rgba(67,56,202,.15); }
.subject-icon-3d{ width:62px; height:62px; margin:0; border-radius:16px; font-size:1.55rem; flex-shrink:0; transform:none; animation:none; box-shadow:none; }
.subject-card h3{ font-family: var(--font-head); font-size:1.15rem; font-weight:700; margin-bottom:3px; color: var(--ink); }
.subject-card p{ font-size:.82rem; color:#6A7796; }

/* ============ PROMO ============ */
.promo-section{ padding: 0 0 50px; background: linear-gradient(180deg,#E4EEFF 0%, #EEF4FF 100%); }
.promo-img{ margin-bottom:16px; border-radius:22px; overflow:hidden; box-shadow: 0 14px 34px rgba(15,26,51,.15); }
.promo-img img{ width:100%; height:auto; display:block; }
.promo-text{
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
  background: linear-gradient(120deg, var(--navy), #243A7A 60%, #4338CA); color:#fff; border-radius:22px; padding:34px 40px;
  box-shadow: 0 16px 40px rgba(15,26,51,.25); border:1.5px solid rgba(255,180,0,.5);
}
.promo-text h3{ font-family: var(--font-head); font-size: clamp(1.4rem,3vw,2rem); font-weight:700; color: var(--gold); margin-bottom:6px; }
.promo-text p{ color:#D6DDF2; max-width:620px; }

/* ============ PROUD MOMENTS ============ */
.toppers-section{ background: var(--cream); padding: 70px 0 60px; }
.proud-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap:26px; }
.proud-card{ background:transparent; text-align:center; }
.proud-img{ position:relative; aspect-ratio:1/1; border-radius:6px; overflow:hidden; background:#EDE6D6; box-shadow: 0 10px 24px rgba(15,26,51,.12); }
.proud-img img{ width:100%; height:100%; object-fit:cover; transition: transform .5s; }
.proud-card:hover .proud-img img{ transform: scale(1.06); }
.proud-ph{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:3.4rem; color:#C8B98F; background: linear-gradient(160deg,#F4ECD9,#E6DAB8); }
.proud-cap{ margin-top:12px; display:flex; flex-direction:column; align-items:center; gap:2px; }
.proud-rank{ background: var(--gold); color: var(--ink); font-weight:800; font-size:.72rem; padding:3px 12px; border-radius:20px; margin-bottom:4px; }
.proud-cap b{ font-size:1.02rem; color: var(--ink); font-weight:700; }
.proud-cap small{ font-size:.78rem; color:#6A7796; font-weight:600; }

/* batches section on cream/white */
.batches-section{ background: linear-gradient(180deg,#F3F7FF,#FFFFFF); }

/* ============ ABOUT (dark) ============ */
.about-section{ background: var(--navy); color:#fff; padding: 80px 0; }
.about-grid{ display:grid; grid-template-columns: 1fr 1.15fr; gap:50px; align-items:start; }
.about-left .gold-tag{ margin-bottom:14px; }
.about-img-frame{ width:100%; max-width:280px; border:2px solid var(--gold); border-radius:22px; background:#161E36; overflow:hidden; margin-bottom:26px; }
.about-img-frame img{ width:100%; border-radius:0; box-shadow:none; display:block; object-fit:cover; aspect-ratio: 4/4.6; object-position: top; }
.about-role{ color: var(--gold); font-weight:600; font-size:.95rem; margin-bottom:12px; }
.about-text{ color:#C9D1E6; font-size:.98rem; line-height:1.75; margin-bottom:24px; max-width:560px; }
.about-name{ font-family: var(--font-head); font-size: clamp(2rem,4.6vw,3.3rem); font-weight:700; color: var(--gold); line-height:1.1; margin-bottom:26px; letter-spacing:-1px; }
.about-cards{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; }
.about-card{
  position:relative; border-radius:20px; overflow:hidden; min-height:224px; background-size:cover; background-position:center;
  background-color:#1C2A52; background-image: linear-gradient(135deg,#1E2F5E,#2B1F63);
  display:flex; align-items:center; padding:16px; box-shadow: 0 12px 28px rgba(0,0,0,.3);
}
.about-card-in{
  width:100%; background: rgba(15,20,40,.62); backdrop-filter: blur(3px); border:1px solid rgba(255,255,255,.14);
  border-radius:16px; padding:18px;
}
.ac-tag{ display:inline-block; background:#C1352B; color: var(--gold); font-weight:800; font-size:.62rem; letter-spacing:1.1px; padding:4px 11px; border-radius:20px; margin-bottom:10px; }
.about-card h4{ font-size:1.02rem; font-weight:700; line-height:1.3; margin-bottom:7px; color:#fff; }
.about-card p{ font-size:.8rem; color:#D6DDF2; line-height:1.55; }

/* ============ WHY ============ */
.why-section{ background:#fff; padding:76px 0; }
.why-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.why-card{ background:#F5F8FF; border:1.5px solid #E6ECF7; border-radius:20px; padding:28px 24px; text-align:left; transition:.3s; }
.why-card:hover{ background:#fff; transform: translateY(-6px); box-shadow: 0 16px 34px rgba(15,26,51,.1); }
.why-icon{ width:54px; height:54px; margin:0 0 16px; border-radius:14px; background: linear-gradient(135deg, var(--nav), #2A3F7E); color: var(--gold); font-size:1.3rem; }
.why-card h3{ font-family: var(--font-head); font-size:1.08rem; font-weight:700; color: var(--ink); margin-bottom:8px; }
.why-card p{ font-size:.9rem; color:#5B6A8C; line-height:1.6; }

/* ============ JOIN ============ */
.join-section{ background: var(--soft-blue); padding: 76px 0; overflow:hidden; }
.join-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:50px; align-items:center; }
.join-logo{ width:58px; height:58px; border-radius:50%; border:2px solid #C1352B; background:#fff; padding:3px; object-fit:contain; margin-bottom:18px; }
.join-text h2{ font-family: var(--font-head); font-size: clamp(1.7rem,3.8vw,2.5rem); font-weight:600; color: var(--ink); line-height:1.2; margin-bottom:14px; }
.join-p{ color:#5B6A8C; font-size:1rem; margin-bottom:20px; max-width:520px; }
.join-points{ display:flex; flex-direction:column; gap:10px; margin-bottom:26px; }
.join-points li{ display:flex; align-items:center; gap:10px; font-size:.95rem; color:#2B3A5E; font-weight:500; }
.join-points i{ color:#C1352B; }
.join-btn{ display:inline-flex; align-items:center; gap:10px; background: var(--navy); color:#fff; font-weight:700; padding:14px 24px; border-radius:12px; transition:.25s; }
.join-btn:hover{ background:#1B2A55; transform: translateY(-2px); }
.join-btn i{ color: var(--gold); font-size:1.3rem; }
.join-carousel{ position:relative; }
.jc-stage{ position:relative; width:100%; aspect-ratio: 16/10; border-radius:22px; overflow:hidden; background:#fff; box-shadow: 0 16px 40px rgba(15,26,51,.18); }
.jc-slide{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition: opacity .7s ease; }
.jc-slide.active{ opacity:1; }
.jc-dots{ display:flex; justify-content:center; gap:8px; margin-top:16px; }
.jc-dots span{ width:8px; height:8px; border-radius:50%; background:#BBC6DE; cursor:pointer; transition:.3s; }
.jc-dots span.active{ width:28px; border-radius:6px; background:#C1352B; }

/* result section (purple) readability */
.result-section .section-tag{ background: rgba(255,255,255,.16); color:#fff; }
.result-section .text-gradient{ background:none; -webkit-text-fill-color: var(--gold); color: var(--gold); animation:none; }
.result-section{ background: linear-gradient(150deg, #0F1A33, #1B2A66 60%, #2D2F8F); }
.batches-section .section-tag{ background: rgba(255,180,0,.16); color:#B57A00; }
.batches-section .text-gradient{ background:none; -webkit-text-fill-color: var(--gold-dark); color: var(--gold-dark); animation:none; }

/* ============ CONTACT ============ */
.contact-section{ background: #F5F8FF; padding:76px 0; }
.ci-icon{ background: linear-gradient(135deg, var(--nav), #2A3F7E); color: var(--gold); }
.contact-item{ border:1.5px solid #E6ECF7; box-shadow:none; }
.contact-item a{ color: var(--primary); }

/* ============ FOOTER ============ */
.site-footer{ background:#080F22; color:#B7C0DA; }
.footer-logo img{ width:48px; height:48px; border-radius:50%; background:#fff; padding:3px; border:2px solid var(--gold); object-fit:contain; }
.footer-logo h3{ font-family:'Poppins',sans-serif; }
.footer-logo p{ color: var(--gold); }
.footer-about, .footer-col ul a, .footer-address, .footer-email{ color:#9AA6C6; }
.footer-col h4{ font-family:'Poppins',sans-serif; font-weight:600; }
.footer-col h4::after{ background: var(--gold); }
.footer-col ul a:hover, .footer-email:hover{ color: var(--gold); }
.footer-phone{ color: var(--gold); }
.footer-socials a:hover{ background: var(--gold); color: var(--ink); }

/* ============ FLOATING SOCIAL BAR ============ */
.float-social{
  position:fixed; right:14px; top:50%; transform:translateY(-50%); z-index:900;
  display:flex; flex-direction:column; gap:12px; padding:14px 8px; background:#fff; border-radius:40px;
  box-shadow: 0 12px 34px rgba(15,26,51,.28);
}
.float-social .fs{
  width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.25rem; transition: transform .25s; box-shadow: inset 0 -4px 8px rgba(0,0,0,.18), 0 3px 8px rgba(0,0,0,.2);
}
.float-social .fs:hover{ transform: scale(1.14); }
.fs.wa{ background: linear-gradient(160deg,#4BE07D,#16A34A); }
.fs.tg{ background: linear-gradient(160deg,#4FC3F7,#0288D1); }
.fs.ig{ background: linear-gradient(160deg,#F77FB0,#D81B7A); }
.fs.xx{ background: linear-gradient(160deg,#333,#000); }
.fs.yt{ background: linear-gradient(160deg,#FF6B6B,#DC2626); }
.fs.fb{ background: linear-gradient(160deg,#5C9BFF,#2563EB); }
.fs.gen{ background: linear-gradient(160deg,#6B7FD7,#4338CA); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px){
  .hero-slide{ grid-template-columns:1fr; text-align:center; }
  .hero-content{ display:flex; flex-direction:column; align-items:center; }
  .hero-desc{ margin-left:auto; margin-right:auto; }
  .hero-btns{ justify-content:center; }
  .hero-stats{ justify-content:center; }
  .hero-visual{ order:-1; min-height:auto; margin-bottom:10px; }
  .hero-circle{ width: min(78vw, 360px); }
  .proud-grid{ grid-template-columns: repeat(3,1fr); }
  .about-grid, .join-grid{ grid-template-columns:1fr; }
  .why-grid{ grid-template-columns: 1fr 1fr; }
}

/* ============ BATCHES ============ */
.batches-section{ padding: 70px 0; background: var(--light-bg); }
.batch-tabs{
  display:flex; justify-content:center; gap:16px; flex-wrap:wrap; margin-bottom: 34px;
}
/* Batch tabs as compact "poster" cards: badge (FREE/PAID) + image/icon + Class label,
   all visible at a glance so students instantly know what each batch is & its status. */
.batch-tab{
  position:relative; display:flex; flex-direction:column; align-items:center; gap:8px;
  width:118px; padding: 16px 10px 12px; border-radius: 16px; font-weight:700; font-size:.92rem;
  background:#fff; color: var(--dark2); box-shadow: var(--shadow-soft); transition:.3s; text-align:center;
}
.batch-tab.active, .batch-tab:hover{
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); color:#fff;
  transform: translateY(-4px); box-shadow: var(--shadow-strong);
}
.batch-tab:active{ transform: scale(.94); }
.batch-tab-badge{
  position:absolute; top:-9px; right:-6px; display:inline-flex; align-items:center; gap:4px;
  font-size:.6rem; font-weight:800; letter-spacing:.3px; padding:3px 8px; border-radius:20px;
  text-transform:uppercase; box-shadow: 0 2px 6px rgba(0,0,0,.15); z-index:2;
}
.batch-tab-badge.free{ background:#0e9f6e; color:#fff; }
.batch-tab-badge.paid{ background:#d63333; color:#fff; }
.batch-tab-media{ width:56px; height:56px; border-radius:14px; overflow:hidden; flex-shrink:0; }
.batch-tab-img{ width:100%; height:100%; object-fit:cover; display:block; }
.batch-tab-icon{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.35rem; border-radius:14px;
}
.batch-tab-label{ font-size:.86rem; line-height:1.2; }

.batch-panel{ display:none; }
.batch-panel.active{ display:block; animation: fadeSlide .5s ease; }

.batch-panel-head{
  display:flex; align-items:center; gap:16px; background:#fff; padding:20px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow-soft); margin-bottom: 28px; flex-wrap:wrap;
}
.batch-panel-icon{
  width:60px; height:60px; border-radius:18px; display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; color:#fff; flex-shrink:0;
}
.batch-panel-img{
  width:88px; height:88px; border-radius:18px; overflow:hidden; flex-shrink:0; box-shadow: var(--shadow-soft);
}
.batch-panel-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.batch-panel-info{ flex:1; min-width:180px; }
.batch-panel-head h3{ font-family: var(--font-head); font-size:1.3rem; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.batch-panel-head p{ color: var(--gray); font-size:.88rem; }
.batch-panel-price{ margin-left:auto; text-align:right; }
.batch-panel-price .price-val{ font-family:var(--font-head); font-weight:800; font-size:1.3rem; color:var(--primary); }

.batch-badge{
  display:inline-flex; align-items:center; gap:5px; font-size:.68rem; font-weight:800; letter-spacing:.4px;
  padding:4px 10px; border-radius:20px; vertical-align:middle; text-transform:uppercase;
}
.batch-badge.free{ background:#e2f9ee; color:#0e9f6e; }
.batch-badge.paid{ background:#fdeeee; color:#d63333; }

.batch-locked-banner{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; background:#fff3f3; border:1px dashed #ff9b9b;
  color:#c23b3b; padding:14px 18px; border-radius: var(--radius-sm); margin-bottom:24px; font-size:.88rem; font-weight:600;
}
.batch-locked-banner i{ font-size:1.1rem; }
.batch-locked-banner .btn-sm-inline{ margin-left:auto; padding:8px 18px; font-size:.8rem; }

.subject-block.locked-subject .subject-block-title{ opacity:.75; }

.chapter-card.locked{ opacity:.85; }
.chapter-lock-overlay{
  position:absolute; top:10px; right:10px; width:30px; height:30px; border-radius:50%;
  background: rgba(255,107,107,0.15); color: var(--accent); display:flex; align-items:center; justify-content:center; font-size:.85rem;
}
.chapter-btn.locked-btn{ background: #eee !important; color: #999 !important; cursor:not-allowed; }
.chapter-btn.locked-btn:hover{ filter:none; background:#eee !important; color:#999 !important; }

/* ---- SUBJECT ACCORDION (Disha-Classes style: chapters live INSIDE the subject,
        tap subject header to expand/collapse; video plays inline inside chapter) ---- */
.subject-block{
  margin-bottom: 18px; background:#fff; border-radius: var(--radius);
  box-shadow: var(--shadow-soft); overflow:hidden;
  transition: box-shadow .3s ease;
}
.subject-block.open{ box-shadow: var(--shadow-strong); }
.subject-block-title{
  width:100%; display:flex; align-items:center; gap:12px; font-family: var(--font-head); font-weight:700; font-size:1.1rem;
  padding: 16px 18px; color: var(--dark2); text-align:left; cursor:pointer;
  transition: background .25s ease;
}
.subject-block-title:hover{ background: rgba(76,60,227,0.04); }
.subject-block-title i{
  width:38px; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:1rem;
  flex-shrink:0;
}
.subject-block-title .chap-count{
  margin-left:auto; font-family: var(--font-body); font-style:normal; font-weight:700; font-size:.68rem;
  color: var(--primary); background: rgba(76,60,227,0.09); padding:4px 10px; border-radius:20px;
  white-space:nowrap; letter-spacing:.3px; text-transform:uppercase;
}
.subject-block-title .sb-chevron{
  width:auto; height:auto; background:none; color: var(--gray); font-size:.85rem;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.subject-block.open .sb-chevron{ transform: rotate(180deg); color: var(--primary); }

.subject-body{
  display:grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s cubic-bezier(.4,0,.2,1);
}
.subject-block.open .subject-body{ grid-template-rows: 1fr; }
.subject-body-inner{ overflow:hidden; min-height:0; }

.chapter-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr)); gap:16px; padding: 4px 18px 18px; }

/* staggered chapter entrance every time subject opens */
.subject-block .chapter-card{ opacity:0; transform: translateY(16px); }
.subject-block.open .chapter-card{ animation: chapIn .5s cubic-bezier(.22,1,.36,1) forwards; }
.subject-block.open .chapter-card:nth-child(1){ animation-delay:.06s; }
.subject-block.open .chapter-card:nth-child(2){ animation-delay:.13s; }
.subject-block.open .chapter-card:nth-child(3){ animation-delay:.2s; }
.subject-block.open .chapter-card:nth-child(4){ animation-delay:.27s; }
.subject-block.open .chapter-card:nth-child(5){ animation-delay:.34s; }
.subject-block.open .chapter-card:nth-child(n+6){ animation-delay:.4s; }
@keyframes chapIn{ to{ opacity:1; transform: translateY(0); } }

.chapter-card{
  background: var(--light-bg); border:1px solid #ECE9FF; border-radius: var(--radius-sm); padding: 16px; 
  transition: transform .3s ease, box-shadow .3s ease; position:relative; overflow:hidden;
}
.chapter-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.chapter-card::before{
  content:''; position:absolute; top:0; left:0; width:5px; height:100%;
  background: linear-gradient(180deg, var(--primary), var(--accent2));
}
.chapter-num{ font-size:.72rem; font-weight:700; color: var(--accent); text-transform:uppercase; letter-spacing:.6px; }
.chapter-title{ font-weight:700; font-size:1rem; margin: 6px 0 12px; color: var(--dark); min-height:44px; }
.chapter-meta{ display:flex; align-items:center; gap:6px; font-size:.78rem; color: var(--gray); margin-bottom:14px; }
.chapter-actions{ display:flex; gap:10px; }
.chapter-btn{
  flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:10px; border-radius:10px;
  font-weight:700; font-size:.82rem; transition:.25s;
}
.chapter-btn.video{ background: linear-gradient(135deg, var(--primary), var(--primary-light)); color:#fff; }
.chapter-btn.video:hover{ filter:brightness(1.08); }
.chapter-btn.pdf{ background: rgba(255,107,107,0.12); color: var(--accent); }
.chapter-btn.pdf:hover{ background: var(--accent); color:#fff; }
.chapter-btn.video.watching{ background: linear-gradient(135deg, #d63333, var(--accent)); }

/* ---- INLINE VIDEO PLAYER (video khulta hai batch ke ANDAR, chapter card ke neeche) ---- */
.chapter-card.video-open{ grid-column: 1 / -1; box-shadow: var(--shadow-strong); background:#fff; }
.chapter-inline-video{
  margin-top: 14px; border-radius: 14px; overflow:hidden; background: var(--dark);
  box-shadow: 0 14px 34px rgba(20,20,43,0.35);
  animation: ivIn .5s cubic-bezier(.22,1,.36,1);
}
@keyframes ivIn{ from{ opacity:0; transform: translateY(18px) scale(.97); } to{ opacity:1; transform: translateY(0) scale(1); } }
.iv-head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  color:#fff; padding: 10px 14px; font-size:.84rem; font-weight:700;
  background: linear-gradient(90deg, var(--primary-dark), var(--dark));
}
.iv-head span{ display:flex; align-items:center; gap:8px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.iv-head span i{ color: var(--gold); animation: labelIconPulse 2s ease-in-out infinite; }
.iv-close{
  width:30px; height:30px; border-radius:50%; flex-shrink:0; color:#fff;
  background: rgba(255,255,255,0.14); display:flex; align-items:center; justify-content:center;
  transition: background .25s ease, transform .25s ease;
}
.iv-close:hover{ background: var(--accent); transform: rotate(90deg); }
.iv-frame{ position:relative; width:100%; padding-top:56.25%; }
.iv-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

@media (max-width:700px){
  .batch-tab{ width:96px; padding:12px 6px 10px; }
  .batch-tab-media{ width:46px; height:46px; }
  .batch-tab-label{ font-size:.78rem; }
  .batch-panel-head{ padding:16px; gap:12px; }
  .batch-panel-price{ margin-left:0; width:100%; text-align:left; }
  .chapter-grid{ grid-template-columns: 1fr; }
  .chapter-actions{ flex-wrap:wrap; }
  .chapter-btn{ flex: 1 1 100%; }
}
@media (max-width:420px){
  .batch-tab{ width:84px; }
  .batch-panel-icon, .batch-panel-img{ width:60px; height:60px; }
}

/* ============ VIDEO MODAL ============ */
.video-modal{
  position:fixed; inset:0; background: rgba(10,10,25,0.88); z-index: 2000;
  display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:.3s;
  padding: 16px;
}
.video-modal.open{ opacity:1; visibility:visible; }
.video-modal-inner{ width:100%; max-width: 860px; }
.video-modal-frame{ position:relative; width:100%; padding-top:56.25%; border-radius:16px; overflow:hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.video-modal-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-modal-close{
  display:flex; margin-left:auto; margin-bottom:10px; color:#fff; font-size:1.5rem;
  width:42px; height:42px; align-items:center; justify-content:center; background: rgba(255,255,255,0.1); border-radius:50%;
}
.video-modal-title{ color:#fff; text-align:center; margin-top:12px; font-weight:600; }

/* ============ RESULT SECTION ============ */
.result-section{
  position:relative; padding: 70px 0; overflow:hidden;
  background: linear-gradient(150deg, var(--primary-dark), var(--primary) 60%, #6C4FF5);
}
.result-bg-anim{ position:absolute; inset:0; opacity:0.4;
  background-image: radial-gradient(circle at 15% 20%, rgba(255,255,255,0.12) 0, transparent 40%),
                     radial-gradient(circle at 85% 75%, rgba(255,255,255,0.1) 0, transparent 45%);
}
/* Floating decorative particles behind the result card */
.result-particles{ position:absolute; inset:0; overflow:hidden; z-index:1; pointer-events:none; }
.result-particles span{
  position:absolute; display:block; border-radius:50%;
  background: rgba(255,255,255,0.35); opacity:0.7;
  animation: resultFloatUp linear infinite;
}
.result-particles span:nth-child(1){ width:14px; height:14px; left:6%;  animation-duration:9s;  animation-delay:0s; }
.result-particles span:nth-child(2){ width:10px; height:10px; left:18%; animation-duration:12s; animation-delay:1.5s; background:rgba(255,214,102,.5); }
.result-particles span:nth-child(3){ width:20px; height:20px; left:32%; animation-duration:14s; animation-delay:.5s; }
.result-particles span:nth-child(4){ width:8px;  height:8px;  left:48%; animation-duration:8s;  animation-delay:2.2s; background:rgba(0,194,168,.5); }
.result-particles span:nth-child(5){ width:16px; height:16px; left:63%; animation-duration:11s; animation-delay:1s; }
.result-particles span:nth-child(6){ width:12px; height:12px; left:77%; animation-duration:10s; animation-delay:2.8s; background:rgba(255,214,102,.5); }
.result-particles span:nth-child(7){ width:9px;  height:9px;  left:88%; animation-duration:13s; animation-delay:.2s; }
.result-particles span:nth-child(8){ width:18px; height:18px; left:96%; animation-duration:15s; animation-delay:3.4s; background:rgba(0,194,168,.4); }
@keyframes resultFloatUp{
  0%{ transform: translateY(110%) scale(0.8) rotate(0deg); opacity:0; }
  10%{ opacity:0.8; }
  90%{ opacity:0.6; }
  100%{ transform: translateY(-140%) scale(1.3) rotate(180deg); opacity:0; }
}

.result-box{
  position:relative; z-index:2;
  background:#fff; border-radius: 24px; padding: 30px; max-width: 760px; margin:0 auto;
  box-shadow: var(--shadow-strong);
  animation: resultBoxPop .7s cubic-bezier(.34,1.56,.64,1) both, resultBoxGlow 3.5s ease-in-out infinite 1s;
}
@keyframes resultBoxPop{
  0%{ transform: scale(.85) translateY(30px); opacity:0; }
  100%{ transform: scale(1) translateY(0); opacity:1; }
}
@keyframes resultBoxGlow{
  0%,100%{ box-shadow: var(--shadow-strong), 0 0 0 rgba(255,255,255,0); }
  50%{ box-shadow: var(--shadow-strong), 0 0 32px rgba(255,255,255,0.35); }
}

.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; margin-bottom: 20px; }
.form-group{ display:flex; flex-direction:column; gap:8px; opacity:0; transform: translateY(16px); animation: formGroupIn .6s ease forwards; }
.form-group:nth-child(1){ animation-delay:.15s; }
.form-group:nth-child(2){ animation-delay:.3s; }
@keyframes formGroupIn{ to{ opacity:1; transform: translateY(0); } }
.form-group label{ font-weight:700; font-size:.86rem; color: var(--dark2); display:flex; align-items:center; gap:6px; }
.form-group label i{ color: var(--primary); display:inline-block; animation: labelIconPulse 2.4s ease-in-out infinite; }
@keyframes labelIconPulse{ 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.25); } }
.form-group select, .form-group input{
  padding: 13px 16px; border-radius: 12px; border:2px solid #E7E4FF; font-size:.95rem;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .2s ease;
  background: var(--light-bg);
}
.form-group select:hover, .form-group input:hover{ border-color: var(--primary-light); }
.form-group select:focus, .form-group input:focus{
  outline:none; border-color: var(--primary); background:#fff; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76,60,227,0.18);
}
.form-hint{ text-align:center; font-size:.78rem; color: var(--gray); margin-top:14px; }
@media (max-width:600px){ .form-row{ grid-template-columns:1fr; } }

/* Animated submit button: gradient sheen sweep + shimmer icon */
#resultForm .btn-primary{
  position:relative; overflow:hidden; background-size:220% 220%;
  background-image: linear-gradient(120deg, var(--accent), var(--gold), var(--accent));
  animation: resultBtnGradient 4s ease infinite;
}
@keyframes resultBtnGradient{ 0%{ background-position:0% 50%; } 50%{ background-position:100% 50%; } 100%{ background-position:0% 50%; } }
#resultForm .btn-primary::after{
  content:''; position:absolute; top:0; left:-60%; width:40%; height:100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); animation: resultBtnSheen 2.6s ease-in-out infinite;
}
@keyframes resultBtnSheen{ 0%{ left:-60%; } 55%,100%{ left:130%; } }
#resultForm .btn-primary:active{ transform: scale(.97); }
#resultForm .btn-primary i{ animation: magnifySpin 3s ease-in-out infinite; display:inline-block; }
@keyframes magnifySpin{ 0%,100%{ transform: rotate(0deg) scale(1); } 50%{ transform: rotate(-12deg) scale(1.15); } }
/* Loading state (added/removed via JS while a lookup request is in flight) */
#resultForm .btn-primary.loading{ pointer-events:none; opacity:.85; }
#resultForm .btn-primary.loading i{ animation: spin .7s linear infinite; }

.result-output{ margin-top:26px; animation: resultOutputIn .6s cubic-bezier(.22,1,.36,1) both; }
@keyframes resultOutputIn{
  0%{ opacity:0; transform: translateY(24px) scale(.97); }
  100%{ opacity:1; transform: translateY(0) scale(1); }
}
.result-card-header{ display:flex; align-items:center; gap:14px; margin-bottom:18px; padding-bottom:18px; border-bottom:2px dashed #eee; }
.result-avatar{
  width:56px; height:56px; border-radius:50%; flex-shrink:0;
  background: linear-gradient(135deg, var(--primary), var(--accent2)); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.5rem;
  animation: avatarPop .55s cubic-bezier(.34,1.56,.64,1) both, avatarRing 2.4s ease-in-out infinite .6s;
}
@keyframes avatarPop{ 0%{ transform: scale(0) rotate(-90deg); } 100%{ transform: scale(1) rotate(0deg); } }
@keyframes avatarRing{ 0%,100%{ box-shadow: 0 0 0 0 rgba(76,60,227,0.35);} 50%{ box-shadow: 0 0 0 10px rgba(76,60,227,0); } }
.result-card-header h3{ font-family: var(--font-head); font-size:1.2rem; }
.result-card-header p{ color: var(--gray); font-size:.86rem; }

.table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.result-table{ width:100%; border-collapse: collapse; min-width:560px; }
.result-table th{
  background: var(--light-bg); color: var(--dark2); font-size:.78rem; text-transform:uppercase;
  padding: 10px 8px; text-align:center; letter-spacing:.4px;
}
.result-table tbody tr{ opacity:0; transform: translateX(-14px); animation: rowSlideIn .5s ease forwards; }
.result-table tbody tr:nth-child(1){ animation-delay:.05s; }
.result-table tbody tr:nth-child(2){ animation-delay:.15s; }
.result-table tbody tr:nth-child(3){ animation-delay:.25s; }
.result-table tbody tr:nth-child(4){ animation-delay:.35s; }
.result-table tbody tr:nth-child(5){ animation-delay:.45s; }
.result-table tbody tr:nth-child(n+6){ animation-delay:.5s; }
@keyframes rowSlideIn{ to{ opacity:1; transform: translateX(0); } }
.result-table tbody tr:hover{ background: rgba(76,60,227,0.05); }
.result-table td{ text-align:center; padding: 12px 8px; font-weight:600; font-size:.9rem; border-bottom:1px solid #f0f0f5; transition: background .2s ease; }
.result-table td:first-child{ text-align:left; font-weight:700; color: var(--primary); }
.grade-pill{ padding:4px 10px; border-radius:20px; font-weight:800; font-size:.78rem; color:#fff; display:inline-block; animation: gradePop .5s cubic-bezier(.34,1.56,.64,1) both .3s; }
@keyframes gradePop{ 0%{ transform: scale(0); } 70%{ transform: scale(1.2); } 100%{ transform: scale(1); } }

.result-summary{
  margin-top: 20px; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(76,60,227,0.08), rgba(0,194,168,0.08));
  display:flex; flex-wrap:wrap; gap:16px; justify-content: space-between; align-items:center;
}
.summary-item{ text-align:center; flex:1; min-width:110px; opacity:0; transform: translateY(10px); animation: formGroupIn .5s ease forwards; }
.summary-item:nth-child(1){ animation-delay:.2s; }
.summary-item:nth-child(2){ animation-delay:.35s; }
.summary-item:nth-child(3){ animation-delay:.5s; }
.summary-item .val{ font-family: var(--font-head); font-size:1.4rem; font-weight:800; color: var(--primary); display:inline-block; }
.summary-item .lab{ font-size:.74rem; color: var(--gray); text-transform:uppercase; font-weight:700; }

.result-error{
  margin-top:24px; background: #FFF3F3; border:2px dashed #FFB4B4; color:#D33; padding: 20px; border-radius: 14px;
  display:flex; align-items:center; gap:14px; animation: shake .5s ease, errorPulse 1.8s ease-in-out infinite .5s;
}
.result-error i{ font-size:1.6rem; animation: errorIconWiggle 1.6s ease-in-out infinite; }
@keyframes shake{ 0%,100%{ transform: translateX(0);} 20%{ transform: translateX(-8px);} 40%{ transform: translateX(8px);} 60%{ transform: translateX(-5px);} 80%{ transform: translateX(5px);} }
@keyframes errorPulse{ 0%,100%{ box-shadow: 0 0 0 0 rgba(255,68,68,0.15);} 50%{ box-shadow: 0 0 0 8px rgba(255,68,68,0);} }
@keyframes errorIconWiggle{ 0%,100%{ transform: rotate(0deg);} 25%{ transform: rotate(-15deg);} 75%{ transform: rotate(15deg);} }


/* ============ AOS-lite fallback ============ */
[data-aos]{ transition-property: transform, opacity; }

/* =========================================================
   MOBILE (<= 700px) — compact, PC-like density
========================================================= */
@media (max-width: 700px){
  :root{ --header-h: 60px; }
  .section-container{ padding: 0 14px; }
  .nav-container{ padding:0 12px; }
  .brand-logo{ width:40px; height:40px; }
  .brand-main{ font-size:.9rem; }
  .brand-sub{ font-size:.5rem; letter-spacing:1px; }
  .nav-cta{ padding:8px 14px; font-size:.78rem; }

  .hero{ padding: 22px 0 26px; min-height:auto; }
  .hero-slide{ padding:0 14px; }
  .hero-badge{ padding:9px 14px 9px 10px; margin-bottom:14px; border-radius:13px; }
  .hb-medal{ width:34px; height:34px; font-size:1rem; }
  .hb-t b{ font-size:.82rem; }
  .hero-title .line1, .hero-title .line2{ font-size:1.65rem; }
  .hero-desc{ font-size:.88rem; margin-bottom:16px; }
  .hero .btn{ padding:11px 20px; font-size:.84rem; }
  .hero-btns{ gap:10px; margin-bottom:18px; }
  .hero-stats .stat{ padding:0 14px; }
  .hero-stats b{ font-size:1.15rem; }
  .hero-stats small{ font-size:.66rem; }
  .hero-circle{ width: min(70vw, 270px); box-shadow: 0 0 0 8px rgba(255,180,0,.12), 0 18px 34px rgba(15,26,51,.18); }
  .hero-chip{ padding:6px 10px; border-radius:10px; }
  .hero-chip b{ font-size:.66rem; } .hero-chip small{ font-size:.55rem; }
  .hc1{ top:2%; left:0; } .hc2{ top:0; right:0; } .hc3{ bottom:24%; left:0; } .hc4{ bottom:24%; right:0; }
  .hero-nametag{ padding:8px 16px; }
  .hero-nametag b{ font-size:.8rem; } .hero-nametag small{ font-size:.6rem; }

  .ticker-section{ padding:14px 0 4px; }
  .ticker-pill{ padding:7px 14px 7px 8px; }
  .ticker-pill img, .tp-av{ width:28px; height:28px; }
  .tp-t b{ font-size:.7rem; } .tp-t small{ font-size:.56rem; }

  .notice-label{ font-size:.68rem; padding:8px 14px; padding-right:24px; }
  .marquee-track{ font-size:.74rem; }

  .big-title{ font-size:1.45rem; }
  .big-sub{ font-size:.84rem; }
  .center-head{ margin-bottom:22px; }

  .subjects-strip{ padding:34px 0 26px; }
  .subject-cards{ grid-template-columns:1fr; gap:10px; }
  .subject-card{ padding:14px 16px; border-radius:14px; }
  .subject-icon-3d{ width:48px; height:48px; font-size:1.2rem; border-radius:13px; }
  .subject-card h3{ font-size:1rem; } .subject-card p{ font-size:.76rem; }

  .promo-section{ padding-bottom:30px; }
  .promo-text{ padding:22px 20px; border-radius:16px; }
  .promo-text p{ font-size:.84rem; }
  .promo-img{ border-radius:14px; }

  .toppers-section{ padding:40px 0 36px; }
  .proud-grid{ grid-template-columns: repeat(2,1fr); gap:14px; }
  .proud-cap b{ font-size:.86rem; } .proud-cap small{ font-size:.66rem; } .proud-rank{ font-size:.62rem; }

  .about-section, .batches-section, .result-section, .why-section, .contact-section, .join-section{ padding: 42px 0; }
  .about-grid{ gap:28px; }
  .about-img-frame{ max-width:210px; margin-bottom:18px; }
  .about-text{ font-size:.86rem; }
  .about-name{ font-size:2rem; margin-bottom:18px; }
  .about-cards{ gap:10px; }
  .about-card{ min-height:176px; padding:9px; border-radius:14px; }
  .about-card-in{ padding:11px; border-radius:11px; }
  .ac-tag{ font-size:.5rem; padding:3px 8px; margin-bottom:6px; }
  .about-card h4{ font-size:.76rem; margin-bottom:4px; } .about-card p{ font-size:.62rem; }

  .why-grid{ grid-template-columns:1fr 1fr; gap:12px; }
  .why-card{ padding:16px 12px; border-radius:14px; }
  .why-icon{ width:40px; height:40px; font-size:1rem; margin-bottom:10px; border-radius:11px; }
  .why-card h3{ font-size:.84rem; } .why-card p{ font-size:.68rem; }

  .join-grid{ gap:26px; }
  .join-text h2{ font-size:1.5rem; } .join-p{ font-size:.86rem; }
  .join-points li{ font-size:.84rem; }
  .join-btn{ padding:12px 18px; font-size:.86rem; }

  .contact-item{ padding:14px; gap:12px; }
  .ci-icon{ width:40px; height:40px; font-size:1rem; }
  .contact-item h4{ font-size:.84rem; } .contact-item a, .contact-item p{ font-size:.8rem; }
  .social-btn{ width:42px; height:42px; font-size:1.05rem; }

  .footer-top{ padding:38px 0 22px; }
  .footer-grid{ gap:22px; }
  .footer-about{ font-size:.78rem; }
  .footer-col ul a{ font-size:.8rem; }
  .footer-phone{ font-size:1.1rem; }
  .footer-address, .footer-email{ font-size:.76rem; }
  .footer-bottom{ font-size:.7rem; padding:14px 0; }

  .float-social{ right:6px; padding:9px 5px; gap:8px; border-radius:30px; }
  .float-social .fs{ width:34px; height:34px; font-size:1rem; }

  /* Batches */
  .batch-tabs{ gap:10px; margin-bottom:22px; }
  .batch-panel-head{ padding:14px; gap:12px; }
  .batch-panel-head h3{ font-size:1.05rem; }
  .batch-panel-head p{ font-size:.76rem; }
  .batch-panel-img, .batch-panel-icon{ width:58px; height:58px; }
  .subject-block-title{ padding:13px 14px; font-size:.95rem; gap:10px; }
  .subject-block-title i{ width:32px; height:32px; font-size:.85rem; border-radius:10px; }
  .subject-block-title .chap-count{ font-size:.58rem; padding:3px 8px; }
  .chapter-grid{ grid-template-columns: repeat(2,1fr); gap:10px; padding:2px 12px 14px; }
  .chapter-card{ padding:12px; }
  .chapter-num{ font-size:.58rem; }
  .chapter-title{ font-size:.8rem; min-height:34px; margin:5px 0 8px; }
  .chapter-desc{ display:none; }
  .chapter-meta{ font-size:.64rem; margin-bottom:10px; }
  .chapter-actions{ gap:6px; flex-wrap:wrap; }
  .chapter-btn{ padding:8px 6px; font-size:.68rem; border-radius:8px; flex:1 1 auto; }
  .chapter-card.video-open{ grid-column:1 / -1; }
  .iv-head{ font-size:.74rem; padding:8px 10px; }
  .batch-locked-banner{ font-size:.76rem; padding:12px 14px; }

  /* Result */
  .result-box{ padding:20px 14px; border-radius:18px; }
  .form-group select, .form-group input{ padding:11px 14px; font-size:.88rem; }
  .form-group label{ font-size:.78rem; }
  .result-table{ min-width:480px; }
  .section-title{ font-size:1.35rem; }
  .section-desc{ font-size:.84rem; }
  .section-tag{ font-size:.68rem; padding:5px 12px; margin-bottom:8px; }
  .section-head{ margin-bottom:20px; }
}
@media (max-width: 360px){
  .chapter-title{ font-size:.74rem; }
  .why-card p{ font-size:.64rem; }
  .brand-main{ font-size:.8rem; }
}

/* ============ Utility: reduce motion ============ */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
