/* Landing page sections from the refreshed design. */
.toppers-section,.free-video-chapters{padding:80px 0;background:#f5f8ff}
.toppers-section__header,.free-video-chapters__header{text-align:center;margin-bottom:36px}
.toppers-slider-wrap{position:relative;padding:0 2px 36px;overflow:hidden}.toppers-section{background:radial-gradient(ellipse at 5% 20%,#cbe5ff 0,transparent 60%),radial-gradient(ellipse at 100% 90%,#f3dfd3 0,transparent 55%),#f7f9fc}.toppers-section__header{margin-bottom:56px}.toppersSwiper{padding:8px 8px 28px}
.topper-card{overflow:hidden;border:1px solid #dce6f6;border-radius:20px;background:#fff;height:100%;box-shadow:none}
.topper-card__photo-wrap{position:relative;aspect-ratio:1/1.06;background:#fff;display:grid;place-items:center}
.topper-card__photo-wrap img{width:100%;height:100%;object-fit:cover;object-position:center top}
.topper-card__initial{font-size:80px;font-weight:800;color:#1565c0}
.topper-card__score{position:absolute;z-index:1;bottom:-8px;left:50%;transform:translateX(-50%);min-width:74%;box-sizing:border-box;padding:8px 14px;border-radius:15px;background:#0b2d80;color:#ffe99a;font-size:clamp(30px,2.5vw,40px);line-height:1.15;font-weight:900;text-align:center;white-space:nowrap;box-shadow:0 10px 16px rgba(9,35,87,.28)}
.topper-card__body{box-sizing:border-box;min-height:112px;padding:20px 12px 18px;text-align:center;display:flex;flex-direction:column;justify-content:center}
.topper-card__name{font-size:22px;margin:3px 0;color:#102b50;text-transform:uppercase;line-height:1.25}
.topper-card__meta{margin:0;color:#64748b;font-size:14px;font-weight:600;line-height:1.45}
.toppers-section .swiper-slide,.testimonialsSwiper .swiper-slide{height:auto}
.testimonialsSwiper{margin-top:30px;padding-bottom:40px!important}
.testimonialsSwiper .testimonial-card{height:100%;box-sizing:border-box}
.testimonialsSwiper .swiper-pagination,.toppers-slider-wrap .swiper-pagination{bottom:0!important}
/* Keep slides usable before the lazy-loaded Swiper assets arrive. */
.toppersSwiper:not(.swiper-initialized),.testimonialsSwiper:not(.swiper-initialized){overflow-x:auto}
.toppersSwiper:not(.swiper-initialized)>.swiper-wrapper,.testimonialsSwiper:not(.swiper-initialized)>.swiper-wrapper{display:flex;gap:20px}
.toppersSwiper:not(.swiper-initialized) .swiper-slide{flex:0 0 220px}
.testimonialsSwiper:not(.swiper-initialized) .swiper-slide{flex:0 0 min(340px,85vw)}
.free-video-chapters{background:radial-gradient(circle at 20% 18%,rgba(216,234,255,.9),transparent 40%),linear-gradient(120deg,#f5f9ff 0%,#fff 64%,#f8fafc 100%)}
.free-video-chapters__header{margin-bottom:40px}
.free-video-chapters__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.free-video-card{box-sizing:border-box;border:1px solid #dce6f4;border-radius:20px;overflow:hidden;background:#fff;padding:12px;box-shadow:0 12px 28px rgba(35,76,130,.1)}
.free-video-card__frame{aspect-ratio:16/9;background:#0f172a;border-radius:12px;overflow:hidden}
.free-video-card__frame iframe{display:block;border:0;width:100%;height:100%}
.free-video-card__title{font-size:18px;font-weight:700;line-height:1.3;padding:16px 6px 8px;margin:0;color:#0b2d66}
.free-video-chapters__cta{text-align:center;margin-top:32px}
@media(max-width:900px){.free-video-chapters__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.toppers-section,.free-video-chapters{padding:48px 0}.free-video-chapters__grid{grid-template-columns:1fr;gap:18px}}
/* Match the supplied subjects and closing-banner reference. */
.subjects .subject-card{padding:32px;border:0;gap:32px;box-shadow:0 4px 20px rgba(0,0,0,.06)}
.subjects .subject-card::before{display:none}
.subjects .subject-card__left{flex:0 0 34%;gap:20px}
.subjects .subject-card__right{flex:1;min-width:0}
.subjects .subject-card__icon-box{width:80px;height:80px;flex:0 0 80px;transform:none;border-radius:16px}
.subjects .subject-card[data-subject="maths"] .subject-card__icon-box{background:linear-gradient(135deg,#e3f2fd,#bbdefb);color:#1565c0}
.subjects .subject-card__stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.subjects .subject-card__action{padding:14px 16px;border:1px solid #ffcfb3;border-radius:12px;background:linear-gradient(110deg,#fff5ed,#fff);gap:16px;box-shadow:0 6px 16px rgba(15,23,42,.04)}
.subjects .subject-card__price-sale{color:#ef5900;font-size:22px;font-weight:800}
.subjects .subject-card__price-mrp,.subjects .subject-card__price-save{display:none}
.subjects .subject-card__btn{background:linear-gradient(135deg,#ff7900,#f45100);color:white;border:0;border-radius:12px;padding:14px 22px;box-shadow:0 6px 16px rgba(255,111,0,.24)}
.subjects .subject-card__btn:hover{background:#e95000}
.subjects .subject-card__btn i{display:none}
.final-cta{background:linear-gradient(110deg,#1565c0,#1976d2);padding:100px 0;text-align:center}
.final-cta .final-cta__inner{max-width:none;background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none}
.final-cta .final-cta__price-new{color:#fff;background:none;-webkit-text-fill-color:#fff}
.final-cta .final-cta__badge{border-radius:12px}
@media(max-width:768px){.subjects .subject-card{padding:24px;flex-direction:column;align-items:stretch}.subjects .subject-card__left{flex-basis:auto}.subjects .subject-card__stats{gap:8px}.subjects .subject-card__action{flex-wrap:wrap}.final-cta{padding:60px 0}}
@media(max-width:480px){.subjects .subject-card__form,.subjects .subject-card__btn{width:100%}.subjects .subject-card__price-sale{font-size:20px}}
/* API subject names include Social Studies and Social Science. */
.subjects .subject-card[data-subject="social studies"] .subject-card__icon-box,
.subjects .subject-card[data-subject="social science"] .subject-card__icon-box,
.subjects .subject-card[data-subject="social"] .subject-card__icon-box {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #ef5900;
}
.toppers-pagination .swiper-pagination-bullet{width:10px;height:10px;background:#9fc2e9;opacity:.8}
.toppers-pagination .swiper-pagination-bullet-active{width:28px;border-radius:8px;background:#1565c0;opacity:1;box-shadow:0 5px 14px rgba(255,190,70,.4)}
.feature-card--highlighted{border-color:var(--color-primary);box-shadow:0 10px 24px rgba(21,101,192,.09)}
@media(max-width:600px){.toppers-section__header{margin-bottom:32px}.topper-card__score{font-size:30px}.topper-card__name{font-size:20px}}
/* Thin white frame around the Q-Sky artwork. */
.ai-section .ai-section__visual { padding: 12px; border-radius: 24px; }
.ai-section .ai-section__visual > img { border-radius: 12px; }
/* Thin white frame around the quiz artwork. */
.quiz-section .leaderboard { padding: 10px; border-radius: 24px; }
.quiz-section .leaderboard__link { display: block; }
.quiz-section .leaderboard__image { border-radius: 16px; }
/* Closing course panel, matching the dark reference design. */
.final-cta{padding:40px 0;background:repeating-linear-gradient(132deg,transparent 0 24px,rgba(255,255,255,.025) 25px 26px),linear-gradient(115deg,#162e53,#082342 52%,#34415b);isolation:isolate}
.final-cta::before{background:radial-gradient(circle at 15% 25%,rgba(43,109,220,.18),transparent 45%);pointer-events:none}
.final-cta::after{content:"";position:absolute;right:-150px;top:-260px;width:520px;height:520px;border:1px solid rgba(255,255,255,.06);border-radius:50%;pointer-events:none;z-index:-1}
.final-cta .final-cta__inner{max-width:1080px;box-sizing:border-box;margin:0 auto;padding:52px 48px;border:1px solid rgba(255,255,255,.24);border-radius:30px;background:linear-gradient(120deg,rgba(133,158,199,.24),rgba(106,113,131,.35));box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 20px 50px rgba(0,0,0,.15);backdrop-filter:blur(12px)}
.final-cta h2{font-size:clamp(32px,4.2vw,60px);line-height:1.05;letter-spacing:-1.5px;max-width:850px;margin:0 auto 20px}
.final-cta .final-cta__subtitle{max-width:760px;margin:0 auto 44px;font-size:20px;line-height:1.6;color:#d6e2f3}
.final-cta .final-cta__pricing{margin-bottom:40px;gap:16px}
.final-cta .final-cta__price-new{font-size:64px;line-height:1.2;color:#fff1bf;-webkit-text-fill-color:#fff1bf;font-weight:900}
.final-cta .final-cta__price-old{font-weight:700;color:#acbdd7}
.final-cta .final-cta__badge{border-radius:999px;background:#ff8500}
.final-cta .final-cta__buttons{gap:14px;margin-bottom:30px;align-items:center}
.final-cta .final-cta__buttons .btn{font-size:16px;padding:17px 28px;min-height:56px;border-radius:14px;box-sizing:border-box}
.final-cta .final-cta__buttons .btn--accent{color:#0b2d66!important;background:#f5f8ff!important}
.final-cta .final-cta__buttons .btn--ghost{background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.3)!important;color:#e7efff!important}
.final-cta .final-cta__visual{display:flex;justify-content:center;gap:12px;margin-top:0;flex-wrap:wrap}
.final-cta__trust-pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 14px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.08);color:#dbe5f4;font-size:14px;line-height:1.4}
.final-cta__trust-pill i{color:#ffd367;font-size:16px}.final-cta__trust-pill strong{color:#fff}
@media(max-width:600px){.final-cta{padding:32px 0}.final-cta .final-cta__inner{padding:36px 20px;border-radius:24px}.final-cta h2{letter-spacing:-.5px}.final-cta .final-cta__subtitle{font-size:16px;margin-bottom:28px}.final-cta .final-cta__price-new{font-size:46px}.final-cta .final-cta__price-old{font-size:22px}.final-cta .final-cta__pricing{gap:10px;margin-bottom:28px}.final-cta .final-cta__buttons form{width:100%}.final-cta .final-cta__buttons .btn{width:100%;padding:15px}.final-cta__trust-pill{font-size:12px}}

/* FAQ panel styling for the Class 9 reference layout. */
.faq-section{background:#f1f5ff;padding:80px 0}
.faq-section__header{margin-bottom:56px}
.faq-item{border-color:#dbe5f2;box-shadow:0 2px 5px rgba(15,42,82,.08)}
.faq-item:hover,.faq-item--open{border-color:#0b6dd9}
.faq-question.active{background:#fff}
.faq-question.active .faq-q-text{color:var(--color-text)}
.faq-question.active .faq-icon{color:#0b6dd9}
.faq-answer.open{background:#fff}

/* Keep the hero grid as a subtle background texture. */
.hero__grid-pattern{background-image:linear-gradient(rgba(138,181,235,.0001) 1px,transparent 1px),linear-gradient(90deg,rgba(138,181,235,.0001) 1px,transparent 1px)}