/* Editorial academic homepage. Scoped presentation only. */
.home-editorial {
 --home-border:color-mix(in srgb,var(--primary-deep) 18%,transparent);
 --home-inverse:var(--primary-ink);
 --home-dark:var(--primary-deep);
 --home-teal:#155EEF;
 --home-shadow:0 16px 28px -24px color-mix(in srgb,var(--primary-deep) 50%,transparent);
 --home-motion:260ms;
 color:var(--ink-2);
}
html[data-theme=dark] .home-editorial{--home-border:var(--line);--home-teal:var(--primary-deep)}
.main:has(.home-editorial){max-width:1280px}
.home-editorial .announce{background:var(--surface-solid);color:var(--ink-2);border:0;border-bottom:1px solid var(--home-border);border-radius:0;margin-bottom:20px;box-shadow:none;padding:12px 40px 12px 16px;font-size:12px}
.home-editorial .announce button{color:var(--ink);background:var(--primary-soft)}
.home-editorial .h-hero{position:relative;display:block;isolation:isolate;min-height:450px;padding:44px 40px;margin-bottom:0;overflow:hidden;border-radius:0;}
.home-editorial .h-hero:before{content:"";position:absolute;inset:0;z-index:-1;width:auto;height:auto;border-radius:0;filter:none;animation:none;background:linear-gradient(90deg,var(--surface-solid) 0%,color-mix(in srgb,var(--surface-solid) 96%,transparent) 33%,color-mix(in srgb,var(--surface-solid) 55%,transparent) 54%,transparent 74%)}
.home-editorial .h-hero:after{display:none}
.home-editorial .h-art{position:absolute;inset:0;z-index:-2;max-width:none;margin:0;}
.home-editorial .h-art:before,.home-editorial .h-art:after{display:none}
.home-editorial .h-art img{width:100%;height:100%;object-fit:cover;object-position:center 46%;border:0;border-radius:0;box-shadow:none;animation:none!important;transform:none!important}
.home-editorial .home-hero-copy{position:relative;max-width:510px}
.home-editorial .trust{background:none;border:0;box-shadow:none;padding:0;color:var(--primary);font-size:11px;animation:none}
.home-editorial .trust:before,.home-editorial .trust:after{display:none}
.home-editorial .h-hero h1{font-size:54px!important;line-height:1.1!important;margin:16px 0 12px;color:var(--ink);animation:none;letter-spacing:0}
.home-editorial .h-hero h2{font-size:28px;line-height:1.3;margin:0 0 18px;font-weight:600;color:var(--ink)}
.home-editorial .h-hero .lead{max-width:430px;font-size:14px;line-height:1.8;animation:none;margin-bottom:24px}
.home-editorial .h-cta{gap:10px;animation:none}
.home-editorial .h-cta .btn{min-height:46px;background:var(--primary)!important;box-shadow:none;transform:none!important;font-size:13px}
.home-editorial .h-cta .btn-ghost{background:var(--surface-solid)!important;color:var(--ink)!important;border-color:var(--home-border)!important}
.home-editorial .h-badges{margin-top:22px;gap:12px;animation:none;opacity:1;font-size:10px;color:var(--ink-2)}
.home-editorial .section{margin:56px 0}
.home-editorial .sec-head{text-align:left;max-width:none;margin-bottom:26px}
.home-editorial .sec-head h2{font-size:30px!important;margin:6px 0 10px}
.home-editorial .sec-head h2:after,.home-editorial .eyebrow:before,.home-editorial .eyebrow:after{display:none}
.home-editorial .sec-head .lead{font-size:14px;max-width:660px;margin:0}
.home-editorial .eyebrow{font-size:11px;color:var(--primary)!important}
.home-editorial .exam-cards{display:grid;grid-template-columns:1fr 1fr 1fr!important;gap:16px!important;perspective:none;align-items:stretch}
.home-editorial .home-exam{position:relative;display:flex;flex-direction:column;gap:10px;padding:24px!important;min-height:244px;border:1px solid var(--home-border)!important;border-radius:8px!important;background:var(--surface-solid)!important;box-shadow:none!important;transform:none!important;transform-style:flat;animation:none!important;transition:background var(--home-motion),box-shadow var(--home-motion)!important;transition-delay:0s!important;color:var(--ink-2);overflow:hidden}
.home-editorial .home-exam:nth-child(1){grid-row:span 2;background:var(--home-dark)!important;color:var(--home-inverse);border:0!important;justify-content:flex-start;border-radius:8px 8px 0 0!important}
.home-editorial .home-exam:nth-child(2){clip-path:polygon(0 0,calc(100% - 24px) 0,100% 24px,100% 100%,0 100%)}
.home-editorial .home-exam:nth-child(3){background:var(--primary-soft)!important;border-bottom:4px solid var(--primary)!important}
.home-editorial .home-exam:nth-child(4){border-left:4px solid var(--accent)!important}
.home-editorial .home-exam:nth-child(5){background:var(--home-teal)!important;color:var(--home-inverse);clip-path:polygon(0 0,100% 0,100% calc(100% - 24px),calc(100% - 24px) 100%,0 100%)}
.home-editorial .home-exam:before,.home-editorial .home-exam:after,.home-editorial .home-exam .spot,.home-editorial .home-exam .glare,.home-editorial .home-exam .ic:after{display:none!important}
.home-editorial .home-exam:hover{box-shadow:var(--home-shadow)!important;transform:none!important}
.home-editorial .home-exam:focus-visible{outline:0!important;box-shadow:inset 0 0 0 4px var(--gold)!important}
.home-editorial .home-exam-top{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-bottom:2px}
.home-editorial .exam-badge{position:static;background:transparent!important;color:inherit!important;border:1px solid currentColor!important;font-size:10px;border-radius:4px;padding:3px 8px;width:fit-content;opacity:.85}
.home-editorial .home-arrow{font-size:22px;line-height:1;transition:transform var(--home-motion)}
.home-editorial .home-exam:hover .home-arrow{transform:translate(3px,-3px)}
.home-editorial .home-exam .ic{display:grid;place-items:center;width:46px;height:46px;font-size:25px;border:0;box-shadow:none;animation:none!important;transform:none!important;background:var(--primary-soft)!important;border-radius:8px!important;margin:0}
.home-editorial .home-exam:nth-child(1) .ic{width:80px;height:80px;font-size:46px;margin:42px 0 20px;background:color-mix(in srgb,var(--home-inverse) 12%,transparent)!important}
.home-editorial .home-exam:nth-child(3) .ic{border-radius:50%!important;background:var(--surface-solid)!important}
.home-editorial .home-exam:nth-child(5) .ic{background:color-mix(in srgb,var(--home-inverse) 18%,transparent)!important}
.home-editorial .home-exam h3{font-size:25px;color:var(--ink)!important;margin:0;transform:none}
.home-editorial .home-exam:nth-child(1) h3{font-size:40px}
.home-editorial .home-exam:nth-child(1) h3,.home-editorial .home-exam:nth-child(5) h3{color:var(--home-inverse)!important}
.home-editorial .home-exam .meta{font-size:12px;line-height:1.65;color:inherit!important;margin:0;transform:none;opacity:.85}
.home-editorial .home-exam>span.meta{font-size:11px}
.home-editorial .home-exam-link{margin-top:auto;padding-top:14px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid currentColor;font-size:12px;font-weight:700;color:inherit;gap:12px}
.home-editorial .home-exam-link span{transition:transform var(--home-motion)}
.home-editorial .home-exam:hover .home-exam-link span{transform:translateX(5px)}
.home-editorial .about{border-top:1px solid var(--home-border);padding-top:44px;gap:48px}
.home-editorial .about .switcher{box-shadow:none;background:none!important;border:0!important;padding:0}
.home-editorial .feat-grid{gap:0;border-top:1px solid var(--home-border)}
.home-editorial .feat{background:transparent!important;border:0!important;border-bottom:1px solid var(--home-border)!important;box-shadow:none!important;border-radius:0!important;padding:28px 24px!important;transform:none!important}
.home-editorial .feat:before,.home-editorial .feat:after{display:none}
.home-editorial .feat .ic{background:var(--primary-soft);border-radius:8px;width:44px;height:44px;display:grid;place-items:center;font-size:22px}
.home-editorial .feat h3{font-size:17px}.home-editorial .feat p{font-size:13px}
.home-editorial .steps{gap:24px}
.home-editorial .step{background:transparent!important;border:0!important;border-top:2px solid var(--primary)!important;border-radius:0!important;box-shadow:none!important;padding:22px 0!important;transform:none!important}
.home-editorial .step:after{display:none}
.home-editorial .step:before{position:static;display:block;background:none;box-shadow:none;color:var(--primary);border-radius:0;margin-bottom:14px;font-size:24px}
.home-editorial .step h3{font-size:16px}.home-editorial .step p{font-size:13px}
.home-editorial .pricing{max-width:none;gap:24px}
.home-editorial .price-card{padding:30px!important;box-shadow:none!important;background:var(--surface-solid)!important;border:1px solid var(--home-border)!important}
.home-editorial .price-card.best{background:var(--primary-soft)!important;border:1px solid var(--primary)!important}
.home-editorial .price-card:before,.home-editorial .price-card:after{display:none!important}
.home-editorial .stats-strip{padding:28px 0;border-top:1px solid var(--home-border);border-bottom:1px solid var(--home-border);gap:0}
.home-editorial .stat-c{background:transparent!important;border:0!important;border-right:1px solid var(--home-border)!important;box-shadow:none!important;border-radius:0!important;padding:12px!important;font-size:12px}
.home-editorial .stat-c:last-child{border-right:0!important}
.home-editorial .stat-c:before,.home-editorial .stat-c:after{display:none}
.home-editorial .stat-c b{font-size:30px;color:var(--primary)!important;background:none;-webkit-text-fill-color:var(--primary)}
.home-editorial .faq .card{background:transparent!important;border:0!important;border-bottom:1px solid var(--home-border)!important;border-radius:0!important;box-shadow:none!important}
.home-editorial .final-cta{border-radius:0;background:var(--home-dark);box-shadow:none;text-align:left;padding:36px;color:var(--home-inverse);}
.home-editorial .final-cta:before,.home-editorial .final-cta:after{display:none}
.home-editorial .final-cta h2,.home-editorial .final-cta p{color:var(--home-inverse)}
@media(max-width:960px){
 .home-editorial .h-hero{min-height:440px;padding:36px 28px}
 .home-editorial .home-hero-copy{max-width:430px}
 .home-editorial .h-hero h1{font-size:46px!important}
 .home-editorial .h-hero:before{background:linear-gradient(90deg,var(--surface-solid) 0%,color-mix(in srgb,var(--surface-solid) 92%,transparent) 42%,color-mix(in srgb,var(--surface-solid) 35%,transparent) 80%)}
 .home-editorial .exam-cards{grid-template-columns:1fr 1fr!important}
 .home-editorial .home-exam:nth-child(1){grid-row:auto;grid-column:1/-1;min-height:230px}
 .home-editorial .home-exam:nth-child(1) .ic{position:absolute;right:28px;top:60px;margin:0}
 .home-editorial .home-exam:nth-child(1) .meta{max-width:65%}
 .home-editorial .home-exam:nth-child(1) h3{font-size:32px}
 .home-editorial .about{gap:28px}
}
@media(max-width:600px){
 .home-editorial .announce{font-size:10px;padding-left:0;margin-bottom:14px}
 .home-editorial .h-hero{padding:26px 20px 32px;min-height:425px}
 .home-editorial .home-hero-copy{max-width:none}
 .home-editorial .h-hero:before{background:color-mix(in srgb,var(--surface-solid) 88%,transparent)}
 .home-editorial .h-art img{object-position:65% center}
 .home-editorial .h-hero h1{font-size:40px!important}.home-editorial .h-hero h2{font-size:24px}
 .home-editorial .h-hero .lead{font-size:13px}.home-editorial .trust{font-size:9px}
 .home-editorial .h-badges{flex-wrap:wrap;font-size:9px;gap:8px}
 .home-editorial .section{margin:40px 0}.home-editorial .sec-head h2{font-size:26px!important}
 .home-editorial .sec-head .lead{font-size:13px}
 .home-editorial .exam-cards{grid-template-columns:1fr!important;gap:14px!important}
 .home-editorial .home-exam,.home-editorial .home-exam:last-child:nth-child(odd){min-height:220px;padding:22px!important;grid-column:auto}
 .home-editorial .home-exam:nth-child(1){min-height:260px}
 .home-editorial .home-exam:nth-child(1) .ic{width:64px;height:64px;font-size:36px;right:22px}
 .home-editorial .home-exam:nth-child(1) .meta{max-width:70%}
 .home-editorial .feat-grid{grid-template-columns:1fr 1fr}.home-editorial .feat{padding:20px 12px!important}
 .home-editorial .feat h3{font-size:15px}.home-editorial .feat p{font-size:12px}
 .home-editorial .steps{grid-template-columns:1fr 1fr;gap:18px}
 .home-editorial .stat-c{border-right:0!important}.home-editorial .stat-c b{font-size:26px}
 .home-editorial .price-card{padding:24px!important}.home-editorial .final-cta{padding:28px 22px}
}
@media(prefers-reduced-motion:reduce){html .home-editorial a.home-exam,.home-editorial .h-cta .btn,.home-editorial *,.home-editorial *:before,.home-editorial *:after{animation:none!important;transition:none!important;transform:none!important;opacity:1!important;translate:none!important;scale:1!important}}

/* Natural study imagery: readable copy, clear subject, stable framing. */
.home-editorial .h-art img{object-position:center 52%}
.home-editorial .h-hero.no-home-image{background:var(--primary-soft)}
.home-editorial .h-hero.no-home-image:before{background:transparent}
.home-editorial .sw-stage{aspect-ratio:3/2;height:auto;min-height:0;overflow:hidden;border-radius:8px;background:var(--primary-soft)}
.home-editorial .sw-stage img{width:100%;height:100%;object-fit:cover;object-position:center;max-height:none}
.home-editorial .sw-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.home-editorial .sw-tabs button{min-width:0;flex:1;font-size:11px;padding:10px 8px;border-radius:6px}
.home-editorial .about:not(:has(.switcher)){display:block}
@media(max-width:600px){.home-editorial .h-art{top:auto;height:230px}.home-editorial .h-art img{object-position:70% 35%}.home-editorial .h-hero{padding-bottom:255px}.home-editorial .h-hero:before{background:linear-gradient(180deg,var(--surface-solid) 0%,var(--surface-solid) calc(100% - 230px),transparent calc(100% - 205px))}.home-editorial .h-hero.no-home-image{padding-bottom:32px}.home-editorial .sw-tabs button{font-size:10px;padding:10px 5px}}


/* ======================================================== */
/* HIGH-END SAAS HOMEPAGE OVERHAUL (PreMed / Nearpeer Style)  */
/* ======================================================== */

/* 1. Feature Cards Grid ("Everything you need to succeed") */
.home-editorial .feat-grid,
.feat-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  border-top: none !important;
  margin-top: 24px !important;
}

.feat-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  border-radius: 18px !important;
  padding: 28px 24px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

.feat-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 32px -12px rgba(2, 150, 136, 0.16) !important;
  border-color: rgba(2, 150, 136, 0.3) !important;
}

.feat-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(2, 150, 136, 0.12) 0%, rgba(14, 165, 233, 0.12) 100%) !important;
  color: #155EEF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
  transition: transform 0.3s ease !important;
  flex-shrink: 0 !important;
}

.feat-icon i,
.feat-icon svg {
  width: 24px !important;
  height: 24px !important;
  stroke-width: 2.2 !important;
}

.feat-card:hover .feat-icon {
  transform: scale(1.08) !important;
}

.feat-card h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 8px !important;
  line-height: 1.35 !important;
}

.feat-card p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #64748b !important;
  margin: 0 !important;
}

/* 2. Exam Cards Grid ("Choose your exam") */
.home-editorial .exam-cards,
.exam-cards {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin-top: 24px !important;
}

.exam-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 18px !important;
  padding: 26px 24px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  color: inherit !important;
  box-sizing: border-box !important;
  position: relative !important;
  clip-path: none !important;
  grid-row: auto !important;
  min-height: 240px !important;
}

.exam-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 32px -12px rgba(2, 150, 136, 0.18) !important;
  border-color: rgba(2, 150, 136, 0.35) !important;
}

.exam-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
  width: 100% !important;
}

.exam-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  background: rgba(2, 150, 136, 0.08) !important;
  color: #155EEF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s ease !important;
}

.exam-icon i,
.exam-icon svg {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2 !important;
}

.exam-card:hover .exam-icon {
  transform: scale(1.06) !important;
}

.exam-badge {
  background: rgba(2, 150, 136, 0.1) !important;
  color: #155EEF !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  border: none !important;
}

.exam-card h3 {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 6px !important;
  line-height: 1.3 !important;
}

.exam-card p {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #64748b !important;
  margin: 0 0 16px !important;
  flex-grow: 1 !important;
}

.exam-meta-pills {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin-bottom: 16px !important;
}

.exam-meta-pill {
  background: #f1f5f9 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
}

.exam-card-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #155EEF !important;
  margin-top: auto !important;
  padding-top: 4px !important;
}

.arrow-icon {
  display: inline-flex !important;
  align-items: center !important;
  transition: transform 0.25s ease !important;
}

.arrow-icon i,
.arrow-icon svg {
  width: 15px !important;
  height: 15px !important;
}

.exam-card:hover .arrow-icon {
  transform: translateX(4px) !important;
}

/* 3. Stats Metrics Bar (Floating Glass Surface) */
.home-editorial .stats-strip,
.stats-strip,
.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  max-width: 1100px !important;
  margin: 40px auto !important;
  padding: 0 !important;
  border: none !important;
  box-sizing: border-box !important;
}

.stat-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  text-align: center !important;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.stat-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 24px -8px rgba(2, 150, 136, 0.12) !important;
}

.stat-number {
  font-size: 36px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #155EEF !important;
  line-height: 1.1 !important;
  margin-bottom: 6px !important;
  display: block !important;
  font-family: inherit !important;
}

.stat-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
  display: block !important;
  line-height: 1.3 !important;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .home-editorial .feat-grid,
  .feat-grid,
  .home-editorial .exam-cards,
  .exam-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .home-editorial .stats-strip,
  .stats-strip,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}

@media (max-width: 640px) {
  .home-editorial .feat-grid,
  .feat-grid,
  .home-editorial .exam-cards,
  .exam-cards {
    grid-template-columns: 1fr !important;
  }
  .stat-number {
    font-size: 28px !important;
  }
}

/* 4. Dark Mode Support */
html[data-theme="dark"] .feat-card,
html[data-theme="dark"] .exam-card,
html[data-theme="dark"] .stat-card {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .feat-card h3,
html[data-theme="dark"] .exam-card h3 {
  color: #f8fafc !important;
}

html[data-theme="dark"] .feat-card p,
html[data-theme="dark"] .exam-card p {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .exam-meta-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #94a3b8 !important;
}

html[data-theme="dark"] .stat-label {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .exam-card-link {
  color: #60A5FA !important;
}

html[data-theme="dark"] .feat-icon,
html[data-theme="dark"] .exam-icon {
  background: rgba(45, 212, 191, 0.12) !important;
  color: #60A5FA !important;
}

html[data-theme="dark"] .exam-badge {
  background: rgba(45, 212, 191, 0.12) !important;
  color: #60A5FA !important;
}


/* ── Student Reviews & Toppers Section ──────────────────────── */
.home-reviews-section {
  margin-top: 56px;
  margin-bottom: 24px;
}
.home-reviews-container {
  width: 100%;
}
.home-reviews-section .section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.home-reviews-section .section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary, #155EEF);
  margin: 0 0 8px;
}
.home-reviews-section h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--ink, #0f172a);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.home-reviews-section .section-head p {
  color: var(--muted, #64748B);
  font-size: 1rem;
  margin: 0;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--surface-solid, #ffffff);
  border: 1px solid var(--line, rgba(15, 23, 42, 0.08));
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(2, 150, 136, 0.10);
  border-color: rgba(2, 150, 136, 0.25);
}
html[data-theme="dark"] .review-card {
  background: #0f1e33 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
html[data-theme="dark"] .review-card:hover {
  border-color: rgba(45, 212, 191, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.review-score {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(2, 150, 136, 0.10);
  color: var(--primary, #155EEF);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
html[data-theme="dark"] .review-score {
  background: rgba(45, 212, 191, 0.14);
  color: #2DD4BF;
}
.review-quote {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-2, #334155);
  font-style: italic;
  margin: 0 0 20px;
  flex-grow: 1;
}
html[data-theme="dark"] .review-quote {
  color: #CBD5E1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line, rgba(15, 23, 42, 0.06));
}
html[data-theme="dark"] .review-author {
  border-top-color: rgba(255, 255, 255, 0.08);
}
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #155EEF 0%, #0B2C5C 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(2, 150, 136, 0.25);
}
img.author-avatar,
.author-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(2, 150, 136, 0.25);
  border: 2px solid rgba(2, 150, 136, 0.35);
}
.review-card.card-large {
  grid-column: span 2;
}
@media (max-width: 768px) {
  .review-card.card-large {
    grid-column: span 1;
  }
}
.author-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink, #0f172a);
  margin: 0 0 2px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
html[data-theme="dark"] .author-info h4 {
  color: #F1F5F9;
}
.author-info span {
  font-size: 0.76rem;
  color: var(--muted, #64748B);
  font-weight: 500;
  display: block;
}
html[data-theme="dark"] .author-info span {
  color: #94A3B8;
}


/* ── 3D Perspective Stage & Depth Tilt ───────────────────────── */
.perspective-stage {
  perspective: 1200px;
  perspective-origin: center center;
}

.card-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.25s ease;
  will-change: transform;
  overflow: hidden;
}

.card-glow-layer {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 0%, rgba(2, 150, 136, 0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card-3d:hover .card-glow-layer {
  opacity: 1;
}

/* ── 3D Swipe-In Animations on Scroll ────────────────────────── */
@keyframes swipeIn3DLeft {
  0% {
    opacity: 0;
    transform: perspective(1200px) rotateY(16deg) translateX(-35px) translateZ(-50px);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) translateX(0) translateZ(0);
  }
}

@keyframes swipeIn3DUp {
  0% {
    opacity: 0;
    transform: perspective(1200px) rotateX(16deg) translateY(35px) translateZ(-50px);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) rotateX(0deg) translateY(0) translateZ(0);
  }
}

@keyframes swipeIn3DRight {
  0% {
    opacity: 0;
    transform: perspective(1200px) rotateY(-16deg) translateX(35px) translateZ(-50px);
  }
  100% {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) translateX(0) translateZ(0);
  }
}

.swipe-in-left {
  opacity: 0;
}
.swipe-in-left.is-visible {
  animation: swipeIn3DLeft 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.swipe-in-up {
  opacity: 0;
}
.swipe-in-up.is-visible {
  animation: swipeIn3DUp 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s forwards;
}

.swipe-in-right {
  opacity: 0;
}
.swipe-in-right.is-visible {
  animation: swipeIn3DRight 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.24s forwards;
}

.reviews-main-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--ink, #0f172a);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.reviews-main-sub {
  color: var(--muted, #64748B);
  font-size: 1rem;
  margin: 0;
}


/* ── How It Works Section ────────────────────────────────────── */
.how-it-works-section {
  margin-top: 56px;
  margin-bottom: 24px;
}
.hiw-container {
  width: 100%;
}
.hiw-heading {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--ink, #0f172a);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.hiw-subheading {
  color: var(--muted, #64748B);
  font-size: 1rem;
  margin: 0;
}

/* ── Steps Grid ──────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 28px;
}

/* ── Staggered Swipe/Wipe-In Entry Transition ───────────────── */
.swipe-wipe {
  opacity: 0;
  transform: translateY(32px) scale(0.96);
  filter: blur(4px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--wipe-delay, 0s),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--wipe-delay, 0s),
              filter 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--wipe-delay, 0s);
  will-change: opacity, transform, filter;
}
.swipe-wipe.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* ── Step Card Base & Neon Glow Wrapper ──────────────────────── */
.step-card {
  position: relative;
  background: var(--surface-solid, #ffffff);
  border: 1px solid var(--line, rgba(15, 23, 42, 0.08));
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step-card.neon-card {
  position: relative;
  background: transparent !important;
  border: none !important;
  border-radius: 20px;
  padding: 2px !important; /* Exposes the rotating neon gradient */
  overflow: hidden;
  display: flex;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.step-card.neon-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 245, 212, 0.2), 0 4px 18px rgba(14, 165, 233, 0.16);
}

html[data-theme="dark"] .step-card.neon-card {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .step-card.neon-card:hover {
  box-shadow: 0 16px 42px rgba(0, 245, 212, 0.28), 0 4px 20px rgba(14, 165, 233, 0.24);
}

/* Moving Rotating Conic Gradient Neon Border */
.neon-border-glow {
  position: absolute;
  top: -150%;
  left: -150%;
  width: 400%;
  height: 400%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    #38BDF8 45deg,
    #0ea5e9 105deg,
    #10b981 165deg,
    transparent 225deg,
    #38BDF8 285deg,
    #0ea5e9 335deg,
    transparent 360deg
  );
  animation: rotateNeonBorder 5s linear infinite;
  z-index: 1;
  opacity: 0.65;
  transition: opacity 0.3s ease, filter 0.3s ease;
  pointer-events: none;
}

.step-card.neon-card:hover .neon-border-glow {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(0, 245, 212, 0.65));
  animation-duration: 2.8s;
}

/* Step 03 Primary Highlight (active-neon) */
.step-card.neon-card.active-neon {
  box-shadow: 0 8px 30px rgba(0, 245, 212, 0.22), 0 2px 14px rgba(14, 165, 233, 0.16);
}
.step-card.neon-card.active-neon .neon-border-glow {
  opacity: 1;
  animation-duration: 3.2s;
  filter: drop-shadow(0 0 10px rgba(0, 245, 212, 0.6));
}
.step-card.neon-card.active-neon:hover .neon-border-glow {
  opacity: 1;
  animation-duration: 2s;
  filter: drop-shadow(0 0 16px rgba(0, 245, 212, 0.85));
}

@keyframes rotateNeonBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Inner Card Surface */
.step-card-inner {
  position: relative;
  z-index: 2;
  background: var(--surface-solid, #ffffff);
  border-radius: 18px;
  padding: 26px 22px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: background 0.25s ease;
}

html[data-theme="dark"] .step-card-inner {
  background: #0f1e33 !important;
}

.step-card.neon-card.active-neon .step-card-inner {
  background: linear-gradient(180deg, rgba(0, 245, 212, 0.04) 0%, rgba(14, 165, 233, 0.06) 100%), var(--surface-solid, #ffffff);
}
html[data-theme="dark"] .step-card.neon-card.active-neon .step-card-inner {
  background: linear-gradient(180deg, rgba(0, 245, 212, 0.08) 0%, rgba(14, 165, 233, 0.1) 100%), #0f1e33 !important;
}

/* Number Badge (01, 02, 03, 04) */
.step-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.15);
  font-family: var(--sans, 'Plus Jakarta Sans', sans-serif);
  letter-spacing: -0.02em;
}
html[data-theme="dark"] .step-badge {
  color: rgba(255, 255, 255, 0.15);
}
.step-card.active-step .step-badge,
.step-card.neon-card.active-neon .step-badge {
  color: #38BDF8;
  opacity: 0.85;
}
html[data-theme="dark"] .step-card.active-step .step-badge,
html[data-theme="dark"] .step-card.neon-card.active-neon .step-badge {
  color: #38BDF8;
}

/* Step Icon Wrapper */
.step-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(2, 150, 136, 0.10);
  color: #155EEF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.step-icon-wrap svg,
.step-icon-wrap i {
  width: 22px;
  height: 22px;
}
.step-card:hover .step-icon-wrap {
  transform: scale(1.08);
  background: #155EEF;
  color: #ffffff;
}
html[data-theme="dark"] .step-icon-wrap {
  background: rgba(45, 212, 191, 0.14);
  color: #2DD4BF;
}
html[data-theme="dark"] .step-card:hover .step-icon-wrap {
  background: #2DD4BF;
  color: #081426;
}

.step-card.neon-card.active-neon .step-icon-wrap {
  background: rgba(0, 245, 212, 0.14);
  color: #155EEF;
}
html[data-theme="dark"] .step-card.neon-card.active-neon .step-icon-wrap {
  background: rgba(0, 245, 212, 0.2);
  color: #38BDF8;
}
.step-card.neon-card.active-neon:hover .step-icon-wrap {
  background: linear-gradient(135deg, #38BDF8, #0ea5e9);
  color: #081426;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink, #0f172a);
  margin: 0 0 8px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
html[data-theme="dark"] .step-card h3 {
  color: #F1F5F9;
}
.step-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted, #64748B);
  margin: 0;
}
html[data-theme="dark"] .step-card p {
  color: #94A3B8;
}

/* ── Integrated Easypaisa Payment Banner ─────────────────────── */
.hiw-payment-banner {
  background: linear-gradient(135deg, rgba(2, 150, 136, 0.08) 0%, rgba(11, 44, 92, 0.06) 100%);
  border: 1.5px solid rgba(2, 150, 136, 0.25);
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(2, 150, 136, 0.06);
}
html[data-theme="dark"] .hiw-payment-banner {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.10) 0%, rgba(11, 44, 92, 0.3) 100%);
  border-color: rgba(45, 212, 191, 0.25);
}
.ep-badge-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ep-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #155EEF;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
html[data-theme="dark"] .ep-tag {
  background: #2DD4BF;
  color: #081426;
}
.ep-details {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ep-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink, #0f172a);
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .ep-num {
  color: #F1F5F9;
}
.ep-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-solid, #ffffff);
  color: #155EEF;
  border: 1px solid rgba(2, 150, 136, 0.3);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.ep-copy-btn:hover {
  background: #155EEF;
  color: #ffffff;
  border-color: #155EEF;
  transform: translateY(-1px);
}
html[data-theme="dark"] .ep-copy-btn {
  background: #142236;
  color: #2DD4BF;
  border-color: rgba(45, 212, 191, 0.3);
}
html[data-theme="dark"] .ep-copy-btn:hover {
  background: #2DD4BF;
  color: #081426;
  border-color: #2DD4BF;
}
.ep-copy-btn svg,
.ep-copy-btn i {
  width: 14px;
  height: 14px;
}
.ep-note {
  font-size: 0.85rem;
  color: var(--muted, #64748B);
  margin: 0;
  font-weight: 500;
}
html[data-theme="dark"] .ep-note {
  color: #94A3B8;
}


/* ========================================================
   ABOUT EDUXPERTI - TIGHTENED VERTICAL SPACING & CRISP WHITE
   ======================================================== */

/* 1. Pull the container up and remove dead outer space */
.home-about-section,
.about-track-showcase,
section.about-track-showcase,
section.home-about-section {
  margin-top: 10px !important;    /* Pulls whole section tightly upward */
  margin-bottom: 30px !important;
  padding-top: 24px !important;   /* Tightened internal top padding */
  padding-bottom: 28px !important;
}

/* 2. Kill extra bottom margin/padding from preceding sections */
.home-exam-section,
section:has(.exam-cards),
.home-editorial .section:has(.exam-cards),
section:has(a[href*="/domain?id="]) {
  margin-bottom: 10px !important;
  padding-bottom: 0px !important;
}

/* 3. Pull internal elements closer to top inside About container */
.about-track-showcase > div:first-child > span:first-of-type,
.home-about-section > div:first-child > span:first-of-type,
section.about-track-showcase > div:first-child > span:first-of-type {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

/* 4. Force 100% Crisp White Typography (Light & Dark Mode) */
.home-about-section h2,
.about-track-showcase h2,
section.about-track-showcase h2,
section.home-about-section h2 {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 10px 0 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.home-about-section > div:first-child > p,
.about-track-showcase > div:first-child > p,
section.about-track-showcase p,
section.home-about-section p {
  color: #E2E8F0 !important;
  -webkit-text-fill-color: #E2E8F0 !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  margin: 0 0 20px 0 !important;
  opacity: 1 !important;
}

/* Ensure the pill badge stays bright */
.home-about-section > div:first-child > span:first-of-type,
.about-track-showcase > div:first-child > span:first-of-type,
section.about-track-showcase span {
  color: #93C5FD !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
