/* ============================================================
   THEME — colors change karne ke liye sirf ye variables badlo
   ============================================================ */
:root {
  --bg:        #F4F7F5;
  --surface:   #FFFFFF;
  --ink:       #14231C;
  --ink-soft:  #4E6157;
  --line:      #DFE8E2;
  --primary:   #0C7B4D;   /* buttons, links */
  --primary-d: #095C3A;
  --accent:    #F2B01E;   /* price highlight */
  --wa:        #1FAF57;   /* WhatsApp green */
  --radius:    14px;
  --shadow:    0 6px 24px rgba(20, 35, 28, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4, .logo { font-family: 'Sora', 'Inter', sans-serif; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.2; }
h2 { font-size: 1.35rem; margin: 2rem 0 .9rem; }
h3 { font-size: 1.05rem; }

a { color: var(--primary); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.1rem; }
.section { padding: 2.6rem 0; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
/* nav -> see bottom */

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 340px at 85% -60px, rgba(12,123,77,.14), transparent 65%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 3.2rem 0 3rem;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(12,123,77,.09);
  border: 1px solid rgba(12,123,77,.22);
  padding: .3rem .8rem; border-radius: 99px; margin-bottom: 1rem;
}
.hero-sub { color: var(--ink-soft); max-width: 620px; margin: .8rem auto 1.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700; font-size: 1rem;
  padding: .8rem 1.6rem;
  border-radius: 99px;
  border: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(12,123,77,.35); }
.btn-primary:hover { background: var(--primary-d); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.94); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Category rail ---------- */
.cat-rail {
  display: flex; gap: .5rem; overflow-x: auto;
  padding-bottom: .6rem; margin-bottom: 1.4rem;
  -webkit-overflow-scrolling: touch;
}
.cat-pill {
  flex: 0 0 auto;
  font-weight: 600; font-size: .92rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .45rem 1rem; border-radius: 99px;
  white-space: nowrap;
}
.cat-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Course cards ---------- */
.grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img-auto {
  display: flex; align-items: center; justify-content: center;
}
.card-img-auto span {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: 3rem; color: rgba(255,255,255,.9);
}
.hue-0 { background: linear-gradient(135deg, #0C7B4D, #063A24); }
.hue-1 { background: linear-gradient(135deg, #14532D, #A3E635); }
.hue-2 { background: linear-gradient(135deg, #0F766E, #042F2E); }
.hue-3 { background: linear-gradient(135deg, #166534, #FACC15); }
.hue-4 { background: linear-gradient(135deg, #065F46, #34D399); }

.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-cat {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(12,123,77,.09);
  padding: .15rem .55rem; border-radius: 99px;
}
.card-short { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.card-meta { color: var(--ink-soft); font-size: .82rem; }

.price-row { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.price-row-lg { margin: 1rem 0 1.2rem; }
.price {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.25rem;
  background: rgba(242,176,30,.18);
  border-bottom: 3px solid var(--accent);
  padding: 0 .35rem;
}
.price-row-lg .price { font-size: 1.7rem; }
.price-old { color: var(--ink-soft); text-decoration: line-through; font-size: .95rem; }
.save-chip {
  font-size: .75rem; font-weight: 700; color: #7C2D12;
  background: rgba(242,176,30,.25);
  padding: .15rem .5rem; border-radius: 99px;
}

.empty { text-align: center; color: var(--ink-soft); padding: 2rem 0; }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-item h4 { margin-bottom: .3rem; }
.trust-item p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Course landing ---------- */
.course-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 2.6rem 0; }
.course-hero-grid { display: grid; gap: 2rem; grid-template-columns: 1.2fr .8fr; align-items: center; }
.course-hero-media img, .hero-cover { width: 100%; border-radius: var(--radius); }
.hero-cover { aspect-ratio: 16/10; }
.mini-note { font-size: .85rem; color: var(--ink-soft); margin-top: .7rem; }

.course-detail-grid { display: grid; gap: 2.2rem; grid-template-columns: 1.4fr .8fr; align-items: start; }

.learn-list, .steps-list { padding-left: 1.2rem; display: grid; gap: .45rem; }
.learn-list li::marker { color: var(--primary); font-weight: 700; }
.outline-list {
  counter-reset: mod; list-style: none; display: grid; gap: .5rem;
}
.outline-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .65rem .9rem .65rem 3rem;
  position: relative;
  font-weight: 500; font-size: .95rem;
}
.outline-list li::before {
  counter-increment: mod; content: counter(mod, decimal-leading-zero);
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: .85rem;
  color: var(--primary);
}

.buy-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  position: sticky; top: 80px;
}
.buy-points { list-style: none; margin: 1rem 0; display: grid; gap: .45rem; font-size: .92rem; color: var(--ink-soft); }
.buy-points li::before { content: '✓ '; color: var(--primary); font-weight: 800; }

/* ---------- Checkout ---------- */
.checkout-wrap { max-width: 640px; }
.order-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0 .5rem;
  font-weight: 600;
}
.order-ref { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.order-ref span { font-size: .82rem; }

.pay-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 1.6rem; }
.pay-card {
  background: var(--surface);
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.pay-card h3 { color: var(--primary); margin-bottom: .3rem; }
.pay-number { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; }
.pay-name { font-size: .88rem; color: var(--ink-soft); }

.tick {
  width: 68px; height: 68px; margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Footer + WhatsApp float ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 1.6rem 0 2rem; margin-top: 2rem; }
.footer-inner { text-align: center; color: var(--ink-soft); font-size: .88rem; display: grid; gap: .4rem; }

.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(31,175,87,.45);
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .course-hero-grid, .course-detail-grid { grid-template-columns: 1fr; }
  .course-hero-media { order: -1; }
  .buy-box { position: static; }
  .logo { font-size: 1rem; }
}

/* ---------- Logo ---------- */
.logo-dot { color: var(--primary); }
.hero h1 { max-width: 720px; margin: 0 auto; }

.logo-img { height: 36px; width: auto; display: block; }

/* ---------- Auth & member area ---------- */
.auth-wrap { max-width: 440px; }
.auth-form label { display: block; font-weight: 600; font-size: .88rem; margin: .9rem 0 .3rem; }
.auth-form label small { color: var(--ink-soft); font-weight: 400; }
.auth-form input {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--surface); box-sizing: border-box;
}
.auth-form .btn { margin-top: 1.2rem; }
.form-error {
  background: rgba(192,57,43,.08); border: 1px solid #C0392B; color: #C0392B;
  padding: .6rem 1rem; border-radius: 10px; font-weight: 600; font-size: .9rem; margin-top: .8rem;
}
.empty-box {
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1.6rem; margin-top: 1.2rem; max-width: 560px;
}
.btn-sm-inline { padding: .45rem 1rem; font-size: .85rem; margin-top: .4rem; align-self: flex-start; }









/* ---------- Watermark overlay (Bunny videos) ---------- */



/* ---------- LMS course player ---------- */













.side-head h3 { font-size: 1rem; margin-bottom: .7rem; }

.progress-row strong { font-family: 'Sora', sans-serif; }






.module summary::-webkit-details-marker { display: none; }
.module summary::after { content: '›'; margin-left: auto; transform: rotate(90deg); color: var(--ink-soft); transition: transform .15s; }

/* ============================================================
   WATCH PAGE — Mobile fix (replaces old watch CSS)
   ============================================================ */
.watch-page { padding-top: .8rem; }
.watch-back { font-size: .9rem; margin-bottom: .6rem; }

/* Desktop: video left, sidebar right */
.watch-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.4rem;
  align-items: start;
}
.watch-main { min-width: 0; }

/* Player 16:9 */
.player-box {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.player-box iframe {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  border: 0;
}
.player-error {
  display: flex; align-items: center; justify-content: center;
  background: #14231C; color: #fff; padding: 1.5rem;
  text-align: center; border-radius: 12px;
}
.doc-box { aspect-ratio: auto; height: 65vh; }

/* Lesson bar below player */
.lesson-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .9rem;
}
.lesson-title { font-size: 1.1rem; margin: 0; flex: 1; min-width: 160px; }
.lesson-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.nav-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: #fff; border: 1px solid #DFE8E2;
  color: #14231C; font-size: 1rem; font-weight: 700;
}
.nav-arrow.disabled { opacity: .3; pointer-events: none; }
.btn-done {
  background: rgba(12,123,77,.12); color: #095C3A;
  border: 1.5px solid #0C7B4D; border-radius: 99px;
  font-weight: 700; font-size: .88rem; padding: .5rem 1.1rem; cursor: pointer;
}

/* Sidebar */
.course-side {
  background: #fff;
  border: 1px solid #DFE8E2;
  border-radius: 14px;
  overflow: hidden;
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
.side-head { padding: 1rem 1rem .8rem; border-bottom: 1px solid #DFE8E2; }
.side-head h3 { font-size: .95rem; margin-bottom: .6rem; line-height: 1.3; }
.progress-row { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: .3rem; }
.progress-track { height: 7px; background: #DFE8E2; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: #0C7B4D; border-radius: 99px; }
.progress-count { font-size: .76rem; color: #4E6157; margin-top: .3rem; }

/* Module accordion */
.module { border-bottom: 1px solid #DFE8E2; }
.module summary {
  display: flex; align-items: center; gap: .5rem;
  padding: .8rem 1rem; cursor: pointer; list-style: none;
  font-weight: 700; font-size: .88rem;
}
.module summary::-webkit-details-marker { display: none; }
.module summary::after {
  content: '›'; margin-left: auto; color: #4E6157;
  transform: rotate(90deg); display: inline-block; transition: transform .15s;
}
.module[open] summary::after { transform: rotate(-90deg); }
.module-num {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(12,123,77,.12); color: #095C3A;
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 .72rem 'Sora', sans-serif;
}
.module-name { flex: 1; }
.module-count { font-size: .72rem; color: #4E6157; margin-right: .2rem; }
.module-lessons { padding: 0 .5rem .5rem; }
.lesson {
  display: flex; gap: .5rem; align-items: center;
  padding: .5rem .6rem; border-radius: 8px;
  color: #14231C; font-size: .88rem; font-weight: 500;
  text-decoration: none;
}
.lesson:hover { background: #F4F7F5; }
.lesson.active { background: rgba(12,123,77,.1); color: #095C3A; font-weight: 700; }
.lesson-ic {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #DFE8E2; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .65rem; color: #4E6157;
}
.lesson-ic.done { background: #0C7B4D; border-color: #0C7B4D; color: #fff; font-weight: 800; }

/* Watermark */
.wm-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.wm-overlay span {
  position: absolute; top: 12%; left: 10%;
  font: 600 11px/1.2 Inter, sans-serif;
  color: rgba(255,255,255,.45);
  text-shadow: 0 0 3px rgba(0,0,0,.4);
  transition: top 1.2s ease, left 1.2s ease;
  white-space: nowrap;
}

/* ============================================================
   MOBILE — stacked layout
   ============================================================ */
@media (max-width: 760px) {
  .watch-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Sidebar comes AFTER video on mobile */
  .watch-main { order: 1; }
  .course-side {
    order: 2;
    position: static;
    max-height: none;
    border-radius: 12px;
  }

  /* Lesson bar: title on top, buttons below */
  .lesson-bar {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    margin-top: .7rem;
  }
  .lesson-title { font-size: 1rem; }
  .lesson-actions {
    display: flex;
    gap: .4rem;
    align-items: center;
  }
  .lesson-actions form { flex: 1; }
  .lesson-actions form .btn,
  .lesson-actions form .btn-done {
    width: 100%;
    text-align: center;
    display: block;
    padding: .65rem 1rem;
    font-size: .9rem;
  }
}

/* ---------- Free courses strip ---------- */
.free-strip { background: var(--primary); padding: 1.4rem 0; }
.free-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.free-strip h3 { color: #fff; font-size: 1.1rem; margin-bottom: .2rem; }
.free-strip p { color: rgba(255,255,255,.8); font-size: .9rem; }
.free-strip .btn { background: #fff; color: var(--primary); flex-shrink: 0; }
.free-strip .btn:hover { background: var(--bg); }
@media(max-width:600px){ .free-strip-inner { flex-direction: column; text-align: center; } }
.free-badge { background: rgba(12,123,77,.15); color: #095C3A; font-weight: 800; font-size: .85rem; padding: .3rem .8rem; border-radius: 99px; }
