/* =========================================================
   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; }

/* ============ 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; }
}

/* ============ 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 ============ */
.hero{
  position:relative; overflow-x:hidden;
  background: radial-gradient(circle at 20% 20%, #EFECFF 0%, #ffffff 55%);
  padding: 46px 0 40px;
  min-height: 640px;
  display:flex; flex-direction:column; justify-content:center;
}
.hero-bg-shapes{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.hero-bg-shapes .shape{
  position:absolute; border-radius:50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent2));
  opacity:0.15; filter: blur(6px);
  animation: floatY 7s ease-in-out infinite;
}
.shape.s1{ width:180px; height:180px; top:-40px; left:-60px; animation-duration:8s; }
.shape.s2{ width:120px; height:120px; bottom:60px; left:8%; background: linear-gradient(135deg, var(--gold), var(--accent)); animation-duration:6s; }
.shape.s3{ width:220px; height:220px; top:20%; right:-80px; animation-duration:9s; }
.shape.s4{ width:90px; height:90px; bottom:-30px; right:20%; background: linear-gradient(135deg, var(--accent2), var(--primary)); animation-duration:5s; }
@keyframes floatY{ 0%,100%{ transform: translateY(0) rotate(0deg);} 50%{ transform: translateY(-24px) rotate(15deg);} }

.hero-slider{ position:relative; z-index:2; }
.hero-slide{
  display:none;
  max-width:1200px; margin:0 auto; padding: 0 18px;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px; align-items:center;
}
.hero-slide.active{ display:grid; animation: fadeSlide .8s ease; }
@keyframes fadeSlide{ from{ opacity:0; transform: translateY(18px);} to{ opacity:1; transform:translateY(0);} }

.hero-eyebrow{
  display:inline-block; font-weight:700; color: var(--primary); background:#fff;
  padding:7px 16px; border-radius:30px; font-size:.82rem; margin-bottom:16px;
  box-shadow: var(--shadow-soft);
}
.hero-title{ font-family: var(--font-head); font-weight:900; line-height:1.12; margin-bottom:16px; }
.hero-title .line1{ display:block; font-size: clamp(1.7rem, 4.6vw, 2.7rem); color: var(--dark); }
.hero-title .line2{ display:block; font-size: clamp(1.7rem, 4.6vw, 2.7rem); color: var(--dark); margin-top:4px; }
.hero-title .highlight{ color: var(--accent); position:relative; display:inline-block; }
.hero-title .highlight::after{
  content:''; position:absolute; left:0; bottom:2px; width:100%; height:6px; border-radius:4px;
  background: linear-gradient(90deg, var(--gold), var(--accent)); opacity:.35;
  transform-origin:left; animation: hlSweep 3s ease-in-out infinite;
}
@keyframes hlSweep{ 0%,100%{ transform: scaleX(.25);} 50%{ transform: scaleX(1);} }
.hero-desc{ font-size:1.02rem; color: var(--gray); max-width:520px; margin-bottom:26px; }
.hero-btns{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:34px; }
.hero .btn-outline{ background: rgba(76,60,227,0.08); border:2px solid rgba(76,60,227,0.3); color: var(--primary); }
.hero .btn-outline:hover{ background: var(--primary); color:#fff; }

.hero-stats{ display:flex; flex-wrap:wrap; gap:26px; }
.hero-stats .stat{ display:flex; flex-direction:column; }
.hero-stats .num{ font-family: var(--font-head); font-size:1.6rem; font-weight:800; color: var(--primary); }
.hero-stats small{ font-size:.75rem; color: var(--gray); font-weight:600; text-transform:uppercase; letter-spacing:.5px; }

.hero-visual{ position:relative; display:flex; align-items:center; justify-content:center; }
.hero-3d-card{ position:relative; width:100%; max-width:360px; }
.hero-teacher-img{
  width:100%; border-radius: 30px;
  animation: heroFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 35px rgba(76,60,227,.35));
}
@keyframes heroFloat{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-16px);} }
.hero-float-img{ width:100%; max-width:420px; animation: heroFloat 6s ease-in-out infinite; filter: drop-shadow(0 20px 35px rgba(76,60,227,.25)); }

.float-badge{
  position:absolute; background:#fff; padding:9px 14px; border-radius:14px;
  box-shadow: var(--shadow-strong); font-weight:700; font-size:.8rem; display:flex; align-items:center; gap:7px;
  animation: badgeFloat 4s ease-in-out infinite;
}
.float-badge i{ color: var(--primary); }
.fb1{ top:6%; left:-8%; animation-delay:.2s; }
.fb2{ top:35%; right:-10%; animation-delay:1s; color: var(--accent2); }
.fb2 i{ color: var(--accent2); }
.fb3{ bottom:22%; left:-12%; animation-delay:1.6s; }
.fb3 i{ color: var(--gold); }
.fb4{ bottom:2%; right:-4%; animation-delay:.8s; }
.fb4 i{ color: var(--accent); }
@keyframes badgeFloat{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }

@media (max-width: 860px){
  .hero-slide{ grid-template-columns: 1fr; text-align:center; }
  .hero-desc{ margin-left:auto; margin-right:auto; }
  .hero-btns{ justify-content:center; }
  .hero-stats{ justify-content:center; }
  .hero-visual{ margin-top:20px; order:-1; }
  .hero-3d-card{ max-width:260px; }
  .float-badge{ font-size:.68rem; padding:6px 10px; }
  .fb1{ left:2%; } .fb2{ right:2%; } .fb3{ left:2%; } .fb4{ right:2%; }
}

.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%; background: rgba(76,60,227,0.25); cursor:pointer; transition:.3s; }
.hero-dots .dot.active{ width:26px; border-radius:6px; background: var(--primary); }

.scroll-down{
  position:absolute; bottom:14px; left:50%; transform:translateX(-50%);
  width:36px; height:36px; border-radius:50%; background:#fff; box-shadow: var(--shadow-soft);
  display:flex; align-items:center; justify-content:center; color: var(--primary); z-index:3;
  animation: bounce 2s infinite;
}
@keyframes bounce{ 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,6px);} }

/* ============ 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; }

/* ============ SUBJECTS STRIP ============ */
.subjects-strip{ padding: 46px 0 20px; background: var(--light-bg); }
.subjects-strip .section-container{
  display:grid; grid-template-columns: repeat(3,1fr); gap:20px;
}
.subject-card{
  background:#fff; border-radius: var(--radius); padding: 28px 18px; text-align:center;
  box-shadow: var(--shadow-soft); transition: transform .35s ease, box-shadow .35s ease;
}
.subject-card:hover{ transform: translateY(-10px) rotate(-1deg); box-shadow: var(--shadow-strong); }
.subject-icon-3d{
  width:76px; height:76px; margin:0 auto 14px; border-radius:22px;
  display:flex; align-items:center; justify-content:center; font-size:1.9rem; color:#fff;
  box-shadow: 0 14px 24px rgba(0,0,0,0.15);
  transform: perspective(400px) rotateX(8deg);
  animation: iconWiggle 4s ease-in-out infinite;
}
@keyframes iconWiggle{ 0%,100%{ transform: perspective(400px) rotateX(8deg) rotateY(0deg);} 50%{ transform: perspective(400px) rotateX(8deg) rotateY(14deg);} }
.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); }
.subject-card h3{ font-family: var(--font-head); font-size:1.25rem; margin-bottom:6px; }
.subject-card p{ color: var(--gray); font-size:.88rem; }
@media (max-width:700px){ .subjects-strip .section-container{ grid-template-columns:1fr; } }

/* ============ ABOUT ============ */
.about-section{ padding: 70px 0; background:#fff; overflow-x:hidden; }
.about-grid{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap:50px; align-items:center; }
.about-visual{ display:flex; justify-content:center; }
.about-img-frame{ position:relative; width:100%; max-width:340px; }
.about-img-frame img{
  width:100%; border-radius:28px; box-shadow: var(--shadow-strong);
  position:relative; z-index:2;
}
.about-ring{ position:absolute; border-radius:50%; border:3px dashed rgba(76,60,227,0.25); z-index:1; }
.r1{ width:110%; height:110%; top:-5%; left:-5%; animation: spin 30s linear infinite; }
.r2{ width:122%; height:122%; top:-11%; left:-11%; border-color: rgba(0,194,168,0.2); animation: spin 40s linear infinite reverse; }
.exp-badge{
  position:absolute; bottom:-16px; right:-10px; z-index:3;
  background: linear-gradient(135deg, var(--accent), #FF8E53); color:#fff;
  width:100px; height:100px; border-radius:50%;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  box-shadow: 0 14px 26px rgba(255,107,107,0.45);
  animation: badgeFloat 3.5s ease-in-out infinite;
}
.exp-num{ font-family: var(--font-head); font-size:1.7rem; font-weight:900; line-height:1; }
.exp-label{ font-size:.62rem; font-weight:700; text-align:center; line-height:1.2; margin-top:2px; }

.about-role{ color: var(--accent2); font-weight:700; margin-bottom:14px; }
.about-text{ color: var(--gray); margin-bottom:18px; }
.about-points{ display:flex; flex-direction:column; gap:10px; margin-bottom:26px; }
.about-points li{ display:flex; align-items:center; gap:10px; font-weight:600; color: var(--dark2); font-size:.94rem; }
.about-points i{ color: var(--accent2); font-size:1.05rem; }

@media (max-width:860px){
  .about-grid{ grid-template-columns:1fr; text-align:center; }
  .about-points li{ justify-content:center; }
}

/* ============ 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);} }

/* ============ 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; }
}

/* ============ FLOATING BUTTONS ============ */
.floating-whatsapp{
  position:fixed; bottom:24px; right:20px; z-index: 900;
  width:56px; height:56px; border-radius:50%; background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.8rem;
  box-shadow: 0 10px 26px rgba(37,211,102,0.5);
  animation: pulseWA 2.4s infinite;
}
@keyframes pulseWA{
  0%{ box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  70%{ box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

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

/* =========================================================
   MOBILE COMPACT — "PC-like" density on phones
   Desktop jaisi hi feel: multi-column grids + chhote compact
   elements, taaki mobile par kuch bhi zyada bada/zoomed na lage.
   (Ye block file ke END me hai isliye upar ke purane mobile
    rules ko override kar deta hai.)
========================================================= */
@media (max-width: 700px){
  :root{ --header-h: 58px; }
  .section-container{ padding: 0 14px; }

  /* Header compact */
  .brand-logo{ width:34px; height:34px; }
  .brand-main{ font-size:.88rem; }
  .brand-sub{ font-size:.54rem; }

  /* Hero compact (PC-like proportions, no giant zoomed look) */
  .hero{ padding: 24px 0 30px; min-height: auto; }
  .hero-visual{ margin-top: 4px; }
  .hero-float-img{ max-width: 225px; }
  .hero-title .line1, .hero-title .line2{ font-size: 1.4rem; }
  .hero-desc{ font-size: .85rem; margin-bottom: 16px; }
  .hero-eyebrow{ font-size: .68rem; padding: 5px 12px; margin-bottom: 10px; }
  .btn{ padding: 10px 18px; font-size: .82rem; }
  .hero-btns{ gap: 10px; margin-bottom: 18px; }
  .hero-stats{ gap: 14px; }
  .hero-stats .num{ font-size: 1.2rem; }
  .hero-stats small{ font-size: .6rem; }
  .hero-dots{ margin-top: 16px; }

  /* Section headings compact */
  .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; }

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

  /* Subjects strip: PC jaisi hi 3-column row */
  .subjects-strip{ padding: 26px 0 10px; }
  .subjects-strip .section-container{ grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .subject-card{ padding: 14px 6px; border-radius: 14px; }
  .subject-icon-3d{ width: 44px; height: 44px; font-size: 1.1rem; border-radius: 13px; margin-bottom: 8px; }
  .subject-card h3{ font-size: .86rem; }
  .subject-card p{ font-size: .58rem; }

  /* Sections compact padding */
  .about-section, .batches-section, .result-section, .why-section, .contact-section{ padding: 42px 0; }

  /* About compact */
  .about-img-frame{ max-width: 225px; }
  .exp-badge{ width: 72px; height: 72px; bottom: -10px; right: -4px; }
  .exp-num{ font-size: 1.15rem; }
  .exp-label{ font-size: .48rem; }
  .about-role{ font-size: .84rem; }
  .about-text{ font-size: .84rem; }
  .about-points li{ font-size: .8rem; }

  /* Batches compact */
  .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 accordion compact */
  .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; }

  /* Chapters: PC jaisa 2-column grid (bada single-column zoom look hataya) */
  .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; } /* compact: lambi description mobile par hide */
  .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 compact */
  .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; }

  /* Why cards: PC jaisa 2-column grid */
  .why-grid{ grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-card{ padding: 16px 10px; }
  .why-icon{ width: 44px; height: 44px; font-size: 1.05rem; margin-bottom: 10px; }
  .why-card h3{ font-size: .84rem; }
  .why-card p{ font-size: .68rem; }

  /* Contact compact */
  .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 compact */
  .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; }

  .floating-whatsapp{ width: 48px; height: 48px; font-size: 1.5rem; bottom: 16px; right: 14px; }
}

@media (max-width: 360px){
  .chapter-title{ font-size: .74rem; }
  .why-card p{ font-size: .64rem; }
}

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