/* ============================================================
   courses.css — /courses page

   Rang SIRF theme.css ke token se. Ek bhi hardcoded rang nahi —
   theme badle to yeh page apne aap saath badal jayega.
   ============================================================ */

.crs-hero {
  padding: 72px 0 8px;
}
.crs-eyebrow {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.crs-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.12;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 18px;
}
.crs-lead {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0;
}

/* ============================================================
   /course/<slug> — detail + kharidne ka dabba
   Rang yahan bhi sirf theme.css ke token se.
   ============================================================ */
.crs-detail { padding-block: 40px 72px; }

.cd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.cd-back { margin: 0 0 20px; font-size: .86rem; }
.cd-back a { color: var(--text-dim); text-decoration: none; }
.cd-back a:hover { color: var(--accent); }

.cd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cd-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.15;
}
.cd-summary {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 24px;
}

.cd-sec {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 28px;
}
.cd-sec h2 {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.cd-syl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: syl; }
.cd-syl li {
  counter-increment: syl;
  display: flex;
  gap: 14px;
  font-size: .98rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.cd-syl li::before {
  content: counter(syl, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent);
  flex: none;
  padding-top: .18em;
}

.cd-ment { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cd-ment li {
  display: flex;
  gap: 11px;
  font-size: .96rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.cd-ment li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: .55em;
  border-radius: var(--r-pill);
  background: var(--accent);
}

.cd-sebi {
  font-size: .78rem;
  line-height: 1.5;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin: 36px 0 0;
}

/* ---------- kharidne ka dabba ---------- */
.cd-side { position: sticky; top: 92px; }
.cd-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.cd-box h3 {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.cd-plan {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  margin-bottom: 9px;
  cursor: pointer;
  font: inherit;
  transition: border-color .12s ease;
}
.cd-plan:hover { border-color: var(--border-strong); }
.cd-plan.on { border-color: var(--accent); border-width: 2px; padding: 12px 14px; }
.cd-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.cd-plan-name { font-size: .93rem; font-weight: 500; color: var(--text); }
.cd-plan-price { font-family: var(--font-display); font-size: 1.06rem; font-weight: 500; color: var(--text); }
.cd-plan-was { font-size: .8rem; color: var(--text-dim); text-decoration: line-through; margin-right: 6px; }
.cd-plan-note { font-size: .76rem; color: var(--text-dim); margin-top: 4px; }

.cd-coupon { display: flex; gap: 7px; margin: 14px 0 12px; }
.cd-coupon input {
  flex: 1; min-width: 0;
  font: inherit;
  font-size: .86rem;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--surface);
  color: var(--text);
  text-transform: uppercase;
}
.cd-coupon button {
  font: inherit;
  font-size: .84rem;
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xs);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}
.cd-msg { font-size: .8rem; line-height: 1.45; margin: 0 0 12px; }
.cd-msg.good { color: var(--accent-strong); }
.cd-msg.bad { color: var(--error); }

.cd-box .btn { width: 100%; justify-content: center; }
.cd-fine {
  font-size: .72rem;
  line-height: 1.45;
  color: var(--text-dim);
  text-align: center;
  margin: 11px 0 0;
}

@media (max-width: 900px) {
  .cd-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cd-side { position: static; }
}
@media (max-width: 640px) {
  .crs-detail { padding-top: 24px; }
}

/* ============================================================
   Student feedback -- /courses page par
   Ek bhi na ho to poora hissa chhupa rehta hai.
   ============================================================ */
.tst-sec { padding-block: clamp(44px, 6vw, 76px) 0; }
.tst-sec[hidden] { display: none; }
.tst-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.tst-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--text);
  margin: 0;
}
.tst-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.tst-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; flex-direction: column; min-width: 0;
}
.tst-card blockquote {
  margin: 0 0 18px;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text);
}
.tst-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.tst-face {
  position: relative; width: 46px; height: 46px; flex: none;
  border-radius: var(--r-pill); overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center;
}
.tst-face img { width: 100%; height: 100%; object-fit: cover; }
.tst-face span { font-family: var(--font-mono); font-size: .9rem; color: var(--text-dim); }
.tst-nm { min-width: 0; }
.tst-nm b { display: block; font-size: .88rem; font-weight: 500; color: var(--text); }
.tst-nm span { font-size: .78rem; color: var(--text-dim); }

/* ============================================================
   /courses -- course chunne ka page
   Rang sirf theme.css ke token se. Ek bhi naya rang nahi.
   ============================================================ */
.crs-hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}
@media (max-width: 860px) { .crs-hero-in { grid-template-columns: 1fr; gap: 28px; } }

.crs-loading { color: var(--text-dim); font-size: .88rem; padding: 30px 0; }

.crs-stats { display: flex; gap: 26px; margin-top: 24px; flex-wrap: wrap; }
.crs-stats div { display: flex; flex-direction: column; gap: 1px; }
.crs-stats b { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 500; color: var(--text); }
.crs-stats span { font-size: .78rem; color: var(--text-dim); }

/* ---- chadhti line par course ke nishaan ---- */
/* Wahi wajah. */
.crs-path[hidden] { display: none; }
.crs-path svg { width: 100%; height: auto; overflow: visible; }
.pl-fill { fill: url(#crsg); opacity: .55; }
.pl-real { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pl-next { fill: none; stroke: var(--border-strong); stroke-width: 1.5; stroke-dasharray: 4 5; }
.crs-node { cursor: pointer; }
.crs-node circle {
  fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5;
  transition: fill .2s var(--ease), stroke .2s var(--ease);
}
.crs-node .rn { font-family: var(--font-mono); font-size: 11.5px; fill: var(--text-dim); transition: fill .2s; }
.crs-node:hover circle, .crs-node:focus circle { fill: var(--accent); stroke: var(--accent); }
.crs-node:hover .rn, .crs-node:focus .rn { fill: var(--on-accent); }
.crs-cap { font-size: 12px; fill: var(--text-muted); }
.crs-pathnote { margin-top: 10px; font-size: .75rem; color: var(--text-dim); text-align: center; }
@media (max-width: 560px) { .crs-path { display: none; } }

/* ---- course ka bada card ---- */
.crs-tilt { perspective: 1200px; margin-bottom: 20px; scroll-margin-top: 84px; }
.crs-cover {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.crs-tilt:hover .crs-cover { box-shadow: var(--shadow-md); }

/* kinare par roshni -- cursor ke peeche chalti hai */
.crs-cover::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  padding: 1.5px;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              var(--accent), transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s var(--ease);
  pointer-events: none; z-index: 3;
}
.crs-tilt:hover .crs-cover::after { opacity: 1; }

/* Photo ka panel grid ke saath khinchta hai.
   aspect-ratio SIRF tab jab card neeche-upar ho jaye -- auto height
   wale grid me aspect-ratio + min-height:100% aapas me uljhte hain
   aur panel text ke upar chadh jaata hai. */
.crs-media {
  position: relative; min-width: 0; min-height: 300px;
  background: var(--surface-2); overflow: hidden;
}
.crs-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.crs-tag {
  position: absolute; top: 13px; left: 13px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 500;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--text-muted);
}
.crs-tag.live { background: var(--accent); color: var(--on-accent); }
.crs-tag i {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; display: block;
  animation: crs-pulse 1.7s infinite;
}
@keyframes crs-pulse { 0%, 45% { opacity: 1 } 55%, 100% { opacity: .25 } }
@media (prefers-reduced-motion: reduce) { .crs-tag i { animation: none } }

.crs-body { padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; min-width: 0; }
.crs-rn { font-family: var(--font-mono); font-size: .74rem; color: var(--accent); margin-bottom: 8px; }
.crs-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 500; color: var(--text);
  margin: 0 0 9px; overflow-wrap: break-word;
}
.crs-body > p { font-size: .92rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 16px; max-width: 48ch; }

.crs-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.crs-pills b {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 400;
  color: var(--text-muted); background: var(--surface-2);
  padding: 4px 10px; border-radius: var(--r-sm);
}
.crs-pills b.hh { background: var(--accent-light); color: var(--accent-strong); }

.crs-buyrow { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.crs-total { display: flex; align-items: baseline; gap: 7px; }
.crs-from { font-size: .74rem; color: var(--text-dim); }
.crs-total b { font-family: var(--font-mono); font-size: 1.45rem; font-weight: 500; color: var(--text); }
.crs-buy {
  margin-left: auto; padding: 11px 24px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--on-accent);
  font-size: .9rem; font-weight: 500; text-decoration: none;
  transition: background .15s var(--ease);
}
.crs-buy:hover { background: var(--accent-strong); }

@media (max-width: 860px) {
  .crs-cover { grid-template-columns: 1fr; transform: none !important; }
  .crs-media { min-height: 0; aspect-ratio: 16/10; }
  .crs-tilt { perspective: none; }
  .crs-cover::after { display: none; }
  .crs-buy { margin-left: 0; flex-basis: 100%; text-align: center; }
}

/* ---- mentoring band ---- */
.mnt { padding-block: clamp(44px, 6vw, 76px) 0; }
.mnt[hidden] { display: none; }
.mnt-band {
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--r-lg); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
  align-items: stretch;
}
.mnt-band.no-photo { grid-template-columns: 1fr; }
.mnt-media { position: relative; min-width: 0; min-height: 340px; background: var(--accent-strong); overflow: hidden; }
.mnt-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mnt-in { padding: clamp(24px, 3.4vw, 40px); min-width: 0; }
.mnt-in h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.9vw, 2.05rem);
  font-weight: 500; color: inherit; margin: 0 0 12px; line-height: 1.16;
}
.mnt-in > p { font-size: .92rem; line-height: 1.62; opacity: .84; max-width: 46ch; margin: 0 0 22px; }
.mnt-items { display: grid; gap: 12px; }
.mnt-item { display: flex; gap: 13px; align-items: flex-start; }
.mnt-item b { font-family: var(--font-mono); font-size: .72rem; opacity: .6; flex: none; padding-top: 3px; }
.mnt-item span { font-size: .9rem; line-height: 1.5; opacity: .95; }
@media (max-width: 820px) {
  .mnt-band { grid-template-columns: 1fr; }
  .mnt-media { min-height: 0; aspect-ratio: 16/10; }
}

/* ---- aakhri hissa ---- */
.crs-end { padding-block: clamp(42px, 6vw, 74px) 0; }
.crs-end-in {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px); align-items: center;
}
.crs-end h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 500; color: var(--text); margin: 0 0 12px; line-height: 1.14;
}
.crs-end p { font-size: .92rem; color: var(--text-muted); line-height: 1.6; max-width: 50ch; margin: 0; }
.crs-end-cta {
  display: inline-block; margin-top: 20px; padding: 12px 26px;
  border-radius: var(--r-pill); background: var(--accent);
  color: var(--on-accent); font-size: .92rem; font-weight: 500; text-decoration: none;
}
.crs-pick { background: var(--surface-2); border-radius: var(--r-lg); padding: 20px; }
.crs-pick[hidden] { display: none; }
.crs-pick h4 { font-size: .8rem; margin: 0 0 13px; color: var(--text); }
.crs-pickrow {
  display: grid; grid-template-columns: auto 1fr; gap: 11px;
  font-size: .86rem; color: var(--text-muted); padding: 8px 0;
  line-height: 1.45; border-top: 1px solid var(--border);
}
.crs-pickrow:first-child { border-top: 0; }
.crs-pickrow b { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); padding-top: 2px; }
@media (max-width: 760px) { .crs-end-in { grid-template-columns: 1fr; } }

.crs-sebi {
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: 24px 46px;
  border-top: 1px solid var(--border);
  font-size: .74rem; color: var(--text-dim); line-height: 1.55; max-width: 80ch;
}

/* ============================================================
   /course/<slug> ke baaki hisse
   ============================================================ */
.cd-main { min-width: 0; }

/* ginti ki patti -- dono page par */
.crs-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.crs-fact {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  min-width: 0;
}
.crs-fact b { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 500; color: var(--text); }
.crs-fact span { font-size: .7rem; color: var(--text-dim); }

.crs-dot {
  width: 7px; height: 7px; border-radius: var(--r-pill);
  background: var(--accent); flex: none; display: inline-block;
  animation: crs-pulse 1.7s infinite;
}
@media (prefers-reduced-motion: reduce) { .crs-dot { animation: none } }

.crs-empty { text-align: center; padding: 48px 20px 64px; }
.crs-empty[hidden] { display: none; }
.crs-empty h2 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
  color: var(--text); margin: 0 0 10px;
}
.crs-empty p { font-size: .92rem; color: var(--text-muted); max-width: 44ch; margin: 0 auto 22px; }

/* ---- module wala syllabus ---- */
.cd-sylhead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.cd-sylhead h2 { margin: 0; }
.cd-sylhead button {
  font: inherit; font-size: .8rem; color: var(--accent);
  margin-left: auto; background: none; border: 0; cursor: pointer; padding: 0;
}
.cd-mods { display: grid; gap: 7px; }
.cd-mod {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.cd-modh {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 15px; cursor: pointer; list-style: none;
}
.cd-modh::-webkit-details-marker { display: none; }
.cd-modn { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); flex: none; }
.cd-modt { flex: 1; min-width: 0; font-size: .92rem; font-weight: 500; color: var(--text); }
.cd-modm { font-family: var(--font-mono); font-size: .72rem; color: var(--text-dim); flex: none; }
.cd-chev {
  flex: none; width: 14px; height: 14px; color: var(--text-dim);
  transition: transform .2s var(--ease);
}
.cd-mod[open] .cd-chev { transform: rotate(180deg); }
.cd-modb { padding: 0 15px 13px 41px; }
.cd-modb ul { margin: 0; padding: 0; }
.cd-modb li {
  font-size: .86rem; color: var(--text-muted); line-height: 1.5;
  padding: 6px 0; border-top: 1px solid var(--border); list-style: none;
}
/* bina naam wale module (purana seedha-list wala syllabus) */
.cd-mod.plain .cd-modh { display: none; }
.cd-mod.plain .cd-modb { padding: 12px 15px; }
@media (max-width: 480px) {
  .cd-modb { padding-left: 15px; }
  .cd-modm { display: none; }
}

/* ---- card par Live / Recorded ke slab ---- */
.crs-buy-box { margin-top: auto; }
.crs-slabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 15px; }
.crs-slab {
  text-align: left; font: inherit; min-width: 0;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  padding: 11px 13px; cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.crs-slab:hover { border-color: var(--border-strong); }
.crs-slab.on { border-color: var(--accent); background: var(--accent-tint); }
.crs-slab-top { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.crs-slab-n { font-size: .82rem; font-weight: 500; color: var(--text); }
.crs-slab-p { font-family: var(--font-mono); font-size: 1rem; font-weight: 500; color: var(--text); }
.crs-slab-s { font-size: .7rem; color: var(--text-dim); margin-top: 4px; line-height: 1.4; }
.crs-was {
  font-family: var(--font-mono); font-size: .78rem;
  color: var(--text-dim); margin-right: 6px;
}
.crs-total s.crs-was { font-size: .85rem; }
@media (max-width: 460px) { .crs-slabs { grid-template-columns: 1fr; } }

/* ---- intro video (detail page) ---- */
.cd-intro { margin-bottom: 22px; }
.cd-intro[hidden] { display: none; }
.cd-intro-box {
  position: relative; aspect-ratio: 16/9; max-width: 100%;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.cd-intro-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- ye course kiske liye hai ---- */
.cd-for { display: grid; gap: 9px; }
.cd-forrow {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.cd-forrow b {
  flex: none; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--accent-light); color: var(--accent-strong);
}
.cd-forrow.no b { background: var(--surface-2); color: var(--text-dim); }
.cd-forrow span { font-size: .9rem; line-height: 1.5; color: var(--text-muted); min-width: 0; }
