/* UrduTuts site styles */

:root {
  --brand: #2f85d8;
  --brand-2: #4d9be4;
  --brand-ink: #1c5fa3;
  --brand-text: #1f6fc0;
  --brand-soft: #eaf3fc;
  --accent: #ffb020;
  --accent-soft: #fff4dc;
  --ink: #0d1b2e;
  --ink-2: #2f4058;
  --muted: #64748b;
  --line: #e3e8f0;
  --line-2: #d3dbe7;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f9fbfd;
  --ok: #138a52;
  --ok-soft: #e4f6ec;
  --yt: #e62117;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(13, 27, 46, .06), 0 1px 1px rgba(13, 27, 46, .04);
  --shadow-2: 0 6px 20px -6px rgba(13, 27, 46, .16), 0 2px 6px rgba(13, 27, 46, .05);
  --shadow-3: 0 24px 48px -16px rgba(13, 27, 46, .28);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --wrap: 1240px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #2f85d8;
    --brand-2: #5aa2e8;
    --brand-ink: #9ccaf5;
    --brand-text: #6cb0f2;
    --brand-soft: #12243a;
    --accent: #ffc04d;
    --accent-soft: #2b2312;
    --ink: #e8eef7;
    --ink-2: #c3cedd;
    --muted: #8d9bb0;
    --line: #223047;
    --line-2: #2c3c56;
    --bg: #0b1320;
    --surface: #111b2b;
    --surface-2: #0f1827;
    --ok: #45c486;
    --ok-soft: #12291e;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 8px 24px -8px rgba(0, 0, 0, .6);
    --shadow-3: 0 24px 48px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--ink); }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.i { width: 20px; height: 20px; flex: none; }
.i-sm { width: 16px; height: 16px; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow-2); }
.muted { color: var(--muted); }
.urdu, [lang="ur"] { font-family: var(--urdu); }
.mb { margin-bottom: 36px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 15px; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #071224; } .btn-primary:hover { background: var(--brand-2); color: #071224; } }
.btn-ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-text); }
.btn-white { background: #fff; color: #0d1b2e; }
.btn-white:hover { background: #f1f5fb; color: #0d1b2e; }
.btn-yt { background: var(--yt); color: #fff; }
.btn-yt:hover { background: #c4170f; color: #fff; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.link-btn { background: none; border: 0; color: var(--brand-text); padding: 0; font-weight: 600; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand picture { display: block; line-height: 0; }
.brand img { display: block; width: auto; height: 40px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .nav-drop-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: 15px; background: none; border: 0; }
.main-nav > a:hover, .nav-drop-btn:hover, .main-nav > a.on { background: var(--brand-soft); color: var(--brand-text); }
.nav-drop { position: relative; }
.nav-drop-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 8px; display: none; }
.nav-drop.open .nav-drop-menu { display: block; }
@media (hover: hover) { .nav-drop:hover .nav-drop-menu { display: block; } .nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } }
.nav-drop-menu a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 550; font-size: 15px; }
.nav-drop-menu a:hover { background: var(--brand-soft); color: var(--brand-text); }
.nav-drop-menu a span { color: var(--muted); font-size: 13px; font-weight: 500; }
.head-search { flex: 1; max-width: 340px; margin-left: auto; position: relative; }
.head-search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.head-search input { width: 100%; height: 42px; padding: 0 14px 0 42px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 15px; }
.head-search input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.header-row .btn-yt { height: 40px; padding: 0 16px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); width: 42px; height: 42px; border-radius: 12px; color: var(--ink); align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 28px; background:
  radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%),
  radial-gradient(700px 360px at -10% 110%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), var(--surface); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 0, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0, transparent 65%); opacity: .55; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: #8a5a00; font-size: 13.5px; font-weight: 700; margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--accent); } }
.eyebrow.light { background: rgba(255,255,255,.16); color: #fff; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.hl { color: var(--brand); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .28em; background: var(--accent); opacity: .35; border-radius: 4px; z-index: -1; }
.hero-urdu { font-size: 22px; color: var(--ink-2); margin: 0 0 14px; line-height: 2.1; text-align: left; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 600px; }
.hero-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow-2); max-width: 600px; margin: 26px 0 16px; }
.hero-search .i { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: none; height: 44px; font: inherit; font-size: 16px; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow-2); }
.hero-search.slim { margin: 18px auto 8px 0; box-shadow: var(--shadow-1); }
.center .hero-search.slim { margin: 22px auto 0; }
.hero-pop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.hero-pop a { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.hero-pop a:hover { border-color: var(--brand); color: var(--brand-text); }

.hero-art { position: relative; height: 420px; }
.hero-tile { position: absolute; width: 74%; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-3); border: 4px solid var(--surface); background: #0d1b2e; aspect-ratio: 16 / 9; transition: transform .3s; }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile.t0 { top: 26%; left: 10%; z-index: 3; transform: rotate(-1.5deg); }
.hero-tile.t1 { top: 0; right: 0; width: 60%; z-index: 2; transform: rotate(3deg); }
.hero-tile.t2 { bottom: 0; right: 2%; width: 52%; z-index: 1; transform: rotate(-4deg); }
.hero-tile:hover { transform: rotate(0) scale(1.02); z-index: 5; }
.tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(5, 12, 24, .85)); color: #fff; font-size: 14px; font-weight: 650; }
.hero-badge { position: absolute; left: 0; bottom: 10px; z-index: 4; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-2); }
.hero-badge .i { width: 28px; height: 28px; color: var(--brand); }
.hero-badge b { display: block; font-size: 18px; }
.hero-badge span { font-size: 13px; color: var(--muted); }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 46px 0 0; }
.stats > div { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-1); }
.stats dt { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: none; }
.stats dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.3; }
.stats dd b { display: block; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 36px 0 64px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 4px; }
.sec-head p { color: var(--muted); margin: 0; }
.h-sm { font-size: 20px; font-weight: 750; margin-bottom: 16px; }

/* ---------- Lesson cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand), var(--brand-ink)); overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.75); }
.thumb-fallback .i { width: 40px; height: 40px; }
.play-dot { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--brand); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.play-dot .i { width: 22px; height: 22px; margin-left: 3px; }
.card:hover .play-dot, .hero-tile .play-dot, .course-hero-media .play-dot { opacity: 1; transform: none; }
.play-dot.big { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.play-dot.big .i { width: 30px; height: 30px; }
.dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(5, 12, 24, .82); color: #fff; font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dur-art { background: var(--accent); color: #2b1d00; }
.seen-badge { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 12px; font-weight: 700; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-title a:hover { color: var(--brand-text); }
.card-meta { display: flex; gap: 14px; color: var(--muted); font-size: 13.5px; margin-top: auto; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.course-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--c); }
.course-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--c); opacity: .07; transition: transform .4s; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); color: var(--ink); }
.course-card:hover::after { transform: scale(1.3); }
.course-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); margin-bottom: 10px; }
.course-icon .i { width: 26px; height: 26px; }
@media (prefers-color-scheme: dark) { .course-icon { color: color-mix(in srgb, var(--c) 60%, #fff); } }
.course-level { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.course-card h3 { font-size: 20px; font-weight: 800; margin: 0; }
.course-card p { color: var(--muted); margin: 0 0 8px; font-size: 15px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: 13.5px; font-weight: 550; margin-top: auto; padding-top: 8px; }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; color: var(--c); font-size: 15px; }
@media (prefers-color-scheme: dark) { .course-go { color: color-mix(in srgb, var(--c) 55%, #fff); } }
.course-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); font-style: normal; }
.course-progress[hidden] { display: none; }
.course-progress em { font-style: normal; font-weight: 650; white-space: nowrap; }
.bar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 6px; transition: width .4s; }

/* ---------- Topics ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.topic:hover { border-color: var(--brand); box-shadow: var(--shadow-1); color: var(--ink); }
.topic-ic { --c: var(--brand); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); flex: none; }
.topic > span:nth-child(2) { flex: 1; min-width: 0; }
.topic b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; }
.topic em { font-style: normal; color: var(--muted); font-size: 13.5px; }
.topic > .i { color: var(--muted); }

/* ---------- Voices ---------- */
.section-voices { background: linear-gradient(180deg, var(--brand-soft), transparent); }
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.voice { margin: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-1); }
.voice blockquote { margin: 0; font-size: 15.5px; color: var(--ink-2); position: relative; padding-top: 22px; }
.voice blockquote::before { content: "\201C"; position: absolute; top: -14px; left: -2px; font-size: 54px; line-height: 1; color: var(--brand); opacity: .35; font-family: Georgia, serif; }
.voice figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; }
.voice figcaption b { display: block; }
.voice figcaption a { color: var(--muted); font-size: 13px; }
.avatar { --h: 210; width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 750; font-size: 14px; color: hsl(var(--h) 55% 32%); background: hsl(var(--h) 70% 90%); overflow: hidden; }
@media (prefers-color-scheme: dark) { .avatar { color: hsl(var(--h) 70% 82%); background: hsl(var(--h) 35% 22%); } }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 40px; border-radius: 22px; color: #fff; background: radial-gradient(500px 200px at 90% 0, rgba(255,255,255,.18), transparent), linear-gradient(120deg, #1c5fa3, #2f85d8); box-shadow: var(--shadow-3); }
.cta-band h2 { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .9; }

/* ---------- Page head ---------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.025em; }
.page-head h1 small { font-size: .55em; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.page-head p { color: var(--ink-2); font-size: 17px; max-width: 760px; }
.page-head.center { text-align: center; padding-top: 64px; }
.page-head.center p { margin-left: auto; margin-right: auto; }
.big-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.big-ic .i { width: 30px; height: 30px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); font-weight: 550; }
.crumbs a:hover { color: var(--brand-text); }
.crumbs span { color: var(--ink-2); font-weight: 600; }
.crumbs .i { opacity: .6; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-top: 6px; }
.seg a { padding: 7px 16px; border-radius: 999px; color: var(--ink-2); font-weight: 650; font-size: 14px; }
.seg a.on { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .seg a.on { color: #071224; } }

/* ---------- Pager / empty ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 650; font-size: 15px; }
.pager a:hover { border-color: var(--brand); color: var(--brand-text); }
.pager span.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty > .i { width: 42px; height: 42px; color: var(--brand); }

/* ---------- Course page ---------- */
.course-hero { --c: var(--brand); color: #fff; padding: 36px 0 52px; background: radial-gradient(700px 300px at 85% 0, rgba(255,255,255,.18), transparent 70%), linear-gradient(125deg, color-mix(in srgb, var(--c) 82%, #000) 0%, var(--c) 100%); }
.course-hero .crumbs a, .course-hero .crumbs span, .course-hero .crumbs { color: rgba(255,255,255,.85); }
.course-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.course-hero .lead { color: rgba(255,255,255,.92); }
.course-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.course-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 22px 0 26px; }
.course-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 14.5px; }
.course-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.course-progress.big { margin: 0; min-width: 220px; color: rgba(255,255,255,.9); }
.course-progress.big .bar { background: rgba(255,255,255,.25); height: 8px; }
.course-progress.big .bar i { background: #fff; }
.course-hero-media { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); border: 4px solid rgba(255,255,255,.2); }
.course-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.media-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-weight: 650; font-size: 14.5px; }
.course-body { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.curriculum { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.curriculum li + li { border-top: 1px solid var(--line); }
.curriculum a { display: flex; align-items: center; gap: 16px; padding: 14px 18px; color: var(--ink); transition: background .15s; }
.curriculum a:hover { background: var(--surface-2); }
.num { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 750; font-size: 14px; }
.num .i { display: none; }
li.done .num { background: var(--ok); color: #fff; }
li.done .num span { display: none; }
li.done .num .i { display: block; }
.cur-thumb { width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--line); flex: none; }
.cur-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cur-text { flex: 1; min-width: 0; }
.cur-text b { display: block; font-weight: 650; font-size: 15.5px; line-height: 1.35; }
.cur-text em { font-style: normal; color: var(--muted); font-size: 13.5px; }
.cur-play { color: var(--muted); width: 26px; height: 26px; }
.curriculum a:hover .cur-play { color: var(--brand-text); }
.course-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h3 { font-size: 17px; font-weight: 750; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--ok); margin-top: 4px; }
.instructor { display: flex; gap: 14px; align-items: flex-start; }
.instructor img { border-radius: 50%; flex: none; }
.instructor span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.instructor b { display: block; font-size: 17px; }
.instructor p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Lesson page ---------- */
.lesson-wrap { padding-top: 20px; padding-bottom: 64px; }
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 32px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow-2); }
.player img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-btn { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--brand); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0,0,0,.35); transition: transform .2s, background .2s; }

.player-btn .i { width: 36px; height: 36px; margin-left: 5px; }
.player:hover .player-btn { transform: scale(1.08); background: #fff; }
.player-note { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(5, 12, 24, .75); color: #fff; font-size: 13.5px; font-weight: 650; }
.player.playing .player-btn, .player.playing .player-note, .player.playing img { display: none; }
.player-off img { filter: grayscale(.6) brightness(.45); opacity: 1; }
.player-off-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; gap: 10px; }
.player-off-msg .i { width: 34px; height: 34px; }
.player-off-msg p { max-width: 460px; margin: 0; }
.parts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.parts button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 650; font-size: 14px; }
.parts button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.lesson-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.lesson-pos { color: var(--muted); font-weight: 650; font-size: 14.5px; }
.lesson-head { margin: 24px 0 8px; }
.lesson-head h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 12px; }
.lesson-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.lesson-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.lesson-meta a { color: var(--muted); }
.lesson-meta a:hover { color: var(--brand-text); }
.lang-pill { padding: 2px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 12.5px; }
.js-mark.is-on { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }

.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); margin-top: 18px; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 23px; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 19px; margin: 1.3em 0 .4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose img { border-radius: 10px; margin: 8px 0; height: auto; }
.prose figure { margin: 1.2em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 4px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; }
.prose pre { background: #0d1b2e; color: #e8eef7; padding: 16px; border-radius: 10px; overflow-x: auto; font-size: 14px; }
.prose code { font-size: .92em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.also-in { margin-top: 18px; font-size: 15px; color: var(--muted); }
.also-in a { margin-left: 8px; font-weight: 650; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.tags-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.tags a { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 550; }
.tags a:hover { border-color: var(--brand); color: var(--brand-text); }

.lesson-side { position: sticky; top: 88px; display: grid; gap: 22px; max-height: calc(100vh - 104px); overflow: auto; scrollbar-width: thin; padding-bottom: 4px; }
.playlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.playlist-head { --c: var(--brand); padding: 16px 18px; color: #fff; background: linear-gradient(125deg, color-mix(in srgb, var(--c) 80%, #000), var(--c)); }
.playlist-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.playlist-head a { display: block; color: #fff; font-weight: 750; font-size: 17px; margin-top: 2px; }
.playlist-head .course-progress { color: rgba(255,255,255,.9); margin-top: 10px; }
.playlist-head .bar { background: rgba(255,255,255,.25); }
.playlist-head .bar i { background: #fff; }
.playlist-list { list-style: none; margin: 0; padding: 6px; max-height: 460px; overflow: auto; scrollbar-width: thin; }
.playlist-list a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; color: var(--ink-2); }
.playlist-list a:hover { background: var(--surface-2); }
.playlist-list li.on a { background: var(--brand-soft); color: var(--ink); }
.playlist-list .num { width: 28px; height: 28px; font-size: 12.5px; }
.playlist-list li.on .num { background: var(--brand); color: #fff; }
.pl-text b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.pl-text em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.side-related { display: grid; gap: 12px; }
.mini { display: flex; gap: 12px; color: var(--ink); align-items: flex-start; }
.mini-thumb { position: relative; width: 150px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; flex: none; background: var(--line); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-thumb .dur { font-size: 11.5px; right: 5px; bottom: 5px; }
.mini-text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; font-weight: 650; line-height: 1.35; }
.mini-text em { font-style: normal; color: var(--muted); font-size: 13px; }
.mini:hover b { color: var(--brand-text); }

/* ---------- Comments ---------- */
.comments { margin-top: 40px; }
.comments h2 { font-size: 22px; font-weight: 800; }
.comment-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 26px; }
.comment-form textarea, .comment-form input[type=text], .comment-form input[type=email] { width: 100%; font: inherit; font-size: 15.5px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; }
.comment-form textarea { resize: vertical; min-height: 100px; }
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin-top: 10px; }
.form-row input { height: 44px; }
.form-row .btn { height: 44px; }
.hp { position: absolute; left: -9999px; }
.replying { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.notice { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 550; }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.comment-list, .replies { list-style: none; margin: 0; padding: 0; }
.comment { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.comment-list > .comment:first-child { border-top: 0; }
.replies .comment { padding: 14px 0 4px; border-top: 0; }
.replies { margin-top: 6px; padding-left: 4px; border-left: 2px solid var(--line); padding-left: 16px; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 4px; }
.comment-head strong { font-weight: 700; font-size: 15px; }
.comment-head time { color: var(--muted); font-size: 13px; }
.staff-badge { padding: 1px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { .staff-badge { color: #071224; } }
.is-staff > .comment-main > .comment-text { background: var(--brand-soft); padding: 10px 14px; border-radius: 4px 12px 12px 12px; }
.comment-text { font-size: 15.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.comment-list.is-collapsed > .comment:nth-child(n+16) { display: none; }
.js-more-comments { margin-top: 10px; width: 100%; }
.reply-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 4px 0; margin-top: 4px; color: var(--muted); font-size: 13.5px; font-weight: 650; }
.reply-btn:hover { color: var(--brand-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 0; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 36px; }
.foot-grid h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.foot-grid > div > a:not(.brand) { display: block; color: var(--ink-2); padding: 4px 0; font-size: 15px; }
.foot-grid > div > a:not(.brand):hover { color: var(--brand-text); }
.foot-brand p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 340px; }
.foot-brand .urdu { font-size: 18px; color: var(--ink-2); line-height: 2.2; text-align: left; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-2); }
.foot-social a:hover { color: var(--brand-text); border-color: var(--brand); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 24px; color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .header-row .btn-yt span { display: none; }
  .header-row .btn-yt { width: 40px; padding: 0; }
  .lesson-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-3); display: none; max-height: calc(100vh - 68px); overflow: auto; }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop-btn { padding: 12px 14px; border-radius: 10px; width: 100%; justify-content: space-between; }
  .nav-drop-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 10px; min-width: 0; }
  .nav-drop-btn { display: none; }
  .head-search { max-width: none; }
  .hero-grid, .course-hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 300px; max-width: 560px; }
  .course-hero-media { max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .voice-grid { grid-template-columns: 1fr 1fr; }
  .lesson-grid, .course-body { grid-template-columns: 1fr; }
  .lesson-side, .course-side { position: static; max-height: none; overflow: visible; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .header-row { gap: 10px; height: 62px; }
  .main-nav { top: 62px; }
  .brand img { height: 34px; }
  .head-search input { height: 40px; font-size: 16px; }
  .header-row .btn-yt { display: none; }
  .hero { padding: 40px 0 20px; }
  .hero-art { height: 230px; }
  .hero-badge { display: none; }
  .hero-search { padding-left: 14px; }
  .hero-search .btn { padding: 0 14px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 14.5px; }
  .card-meta { font-size: 12.5px; gap: 10px; }
  .course-grid, .voice-grid, .topic-grid { grid-template-columns: 1fr; }
  .stats { gap: 10px; margin-top: 30px; }
  .stats > div { padding: 12px; gap: 10px; }
  .stats dt { width: 38px; height: 38px; }
  .stats dd b { font-size: 19px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section { padding: 44px 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .cur-thumb { display: none; }
  .curriculum a { padding: 12px 14px; gap: 12px; }
  .prose { padding: 18px; font-size: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .lesson-nav { flex-wrap: wrap; }
  .lesson-pos { order: -1; width: 100%; text-align: center; }
  .lesson-nav .btn { flex: 1; }
  .player { border-radius: 12px; margin: 0 -16px; border-radius: 0; }
  .player-btn { width: 66px; height: 66px; margin: -33px 0 0 -33px; }
  .mini-thumb { width: 128px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 400px) {
  .card-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
