/* Junior Technology Course. Clean ed-tech look: white surfaces, one purple brand colour,
   thin borders, pastel icon tiles, dark footer. Flat: no glow, no blur, no gradients. */
:root {
  /* Colours from the Junior Tecnology channel logo: carbon black, PCB green, sign yellow. */
  --brand: #1e7b3c;
  --brand-dark: #166230;
  --brand-soft: #e7f4ea;
  --ink: #15191c;
  --yellow: #ffd12a;
  --yellow-deep: #f5a623;
  --lime: #8bc34a;
  --cream: #f5f4ef;
  --bg: #fafaf7;
  --carbon: #15191c;
  --dots: radial-gradient(rgba(255,255,255,.075) 1.3px, transparent 1.6px) 0 0 / 14px 14px;
  --card: #ffffff;
  --text: #1b2124;
  --muted: #5f6672;
  --subtle: #9aa0ac;
  --line: #e7e6e0;
  --green: #1e9e4a;
  --green-soft: #e3f7ec;
  --red: #d93b3b;
  --red-soft: #fdeeee;
  --amber-soft: #fff5db;
  --sky-soft: #e6f4ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; width: 100%; }
body { margin: 0; font-family: 'Inter', 'Noto Sans Devanagari', system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; width: 100%; }
::selection { background: var(--brand-soft); color: var(--ink); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
/* Content uses ~88% of the screen on desktop; the header bar runs edge to edge. */
.container { width: 100%; margin: 0 auto; padding: 0 16px; }
.container-wide { width: 100%; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } .container-wide { padding: 0 24px; } }
@media (min-width: 1024px) { .container { width: 88%; max-width: 1760px; padding: 0; } .container-wide { padding: 0 40px; } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.center { text-align: center; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14.5px; line-height: 1.25; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--brand); background: transparent; color: var(--brand); cursor: pointer; white-space: nowrap; transition: background-color .15s ease, color .15s ease, border-color .15s ease; text-decoration: none !important; }
.btn:hover { background: var(--brand-soft); color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 17px; height: 17px; }
.btn-primary, .btn-amber { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover, .btn-amber:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: #f4f5f8; color: var(--ink); }
.btn-danger { color: var(--red); border-color: #f2c4c4; }
.btn-danger:hover { background: var(--red-soft); color: var(--red); }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-block { width: 100%; }
button:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand::before { content: ''; display: block; width: 40px; height: 40px; border-radius: 50%; background: #111 url(../images/logo.jpg) center / cover; box-shadow: 0 0 0 2px rgba(255,209,42,.35); flex: none; }
.brand small { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--brand); background: var(--brand-soft); padding: 3px 7px; border-radius: 6px; }

/* Header */
.announce { background: var(--brand); color: #fff; text-align: center; font-size: 13.5px; font-weight: 500; padding: 8px 16px; }
.announce b { background: var(--yellow); color: var(--ink); font-size: 11px; padding: 2px 8px; border-radius: 6px; margin-right: 8px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.site-header.scrolled { border-bottom-color: transparent; box-shadow: 0 6px 24px -10px rgba(27,33,36,.18); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.site-header .brand small { display: none; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links > a, .nav-drop > button { white-space: nowrap; color: var(--ink); font: inherit; font-weight: 500; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-links > a:hover, .nav-drop > button:hover { text-decoration: none; background: #f4f5f8; }
.nav-links a.active { color: var(--brand); font-weight: 600; }
.nav-drop { position: relative; }
.nav-drop > button { border: 1px solid var(--line); }
.nav-drop > button::after { content: ''; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 2px; }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.12); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: 14px; }
.nav-menu a:hover { background: var(--bg); text-decoration: none; }
.nav-menu a small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.nav-menu .ni { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--bg); color: var(--brand); border: 1px solid var(--line); }
.nav-menu .ni .icon { width: 18px; height: 18px; }
.nav-search { margin-left: auto; position: relative; flex: 0 1 340px; min-width: 180px; }
.nav-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--subtle); pointer-events: none; }
.nav-search input { width: 100%; font: inherit; font-size: 14px; padding: 9px 12px 9px 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.nav-search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .login { color: var(--ink); font-weight: 600; padding: 0 6px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; place-items: center; }
.menu-btn:hover { background: #f4f5f8; }
.menu-btn .icon { width: 24px; height: 24px; }
@media (max-width: 1180px) { .nav { gap: 14px; } .nav-links > a { padding: 8px 8px; } .nav-search { flex-basis: 220px; } }
@media (max-width: 960px) {
  .nav { height: 60px; }
  .brand { font-size: 17px; }
  .brand::before { width: 32px; height: 32px; font-size: 13px; }
  .menu-btn { display: grid; }
  .nav-links, .nav-cta, .nav-search { display: none; }
}

/* Mobile drawer (right side) */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(16,24,40,.45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(320px, 86vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); visibility: hidden; }
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
body.drawer-open .mobile-drawer { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head .brand small { display: none; }
.drawer-close { width: 40px; height: 40px; border-radius: 10px; border: 0; background: #f4f5f8; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.drawer-nav { padding: 10px; display: grid; gap: 2px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 15px; }
.drawer-nav a .icon { color: var(--muted); }
.drawer-nav a:hover { background: var(--bg); text-decoration: none; }
.drawer-nav a.active { background: var(--brand-soft); color: var(--brand); }
.drawer-nav a.active .icon { color: var(--brand); }
.drawer-foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer-lang { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); font-weight: 500; }
.drawer-cta { display: grid; gap: 10px; }
@media (min-width: 961px) { .drawer-backdrop, .mobile-drawer { display: none; } }

/* Language switch */
.lang-switch { display: inline-flex; background: #f1f2f6; border-radius: 8px; padding: 3px; gap: 2px; }
.lang-switch a { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 6px; line-height: 1.2; }
.lang-switch a:hover { text-decoration: none; color: var(--ink); }
.lang-switch a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.08); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: #fff; }
.section.tint { background: var(--cream); }
.band { background: #fff; padding: 72px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tight { padding: 8px 0 56px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 4px; }
.sec-head p { color: var(--muted); margin: 0; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.more .icon { width: 17px; height: 17px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-courses { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 1024px) { .grid-courses:has(> :nth-child(-n+2):last-child) { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4, .grid-courses { grid-template-columns: 1fr; } .section, .band { padding: 52px 0; } }

/* ---------- Home: banner carousel ---------- */
.banners { padding: 40px 0 0; }
.banner-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 10px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.banner-track::-webkit-scrollbar { display: none; }
.banner-track a { scroll-snap-align: start; border-radius: 16px; overflow: hidden; aspect-ratio: 12 / 5.4; background: var(--brand-soft); display: block; box-shadow: 0 10px 30px -18px rgba(27,33,36,.5); transition: transform .2s; }
.banner-track a:hover { transform: translateY(-3px); }
.banner-track img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; min-height: 8px; }
.banner-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: #d5d8e1; cursor: pointer; transition: width .2s, background .2s; }
.banner-dots button.on { width: 22px; background: var(--brand); }
@media (max-width: 760px) { .banner-track { grid-auto-columns: 100%; } .banners { padding-top: 28px; } }

/* ---------- Home: hero (carbon block like the channel logo, real photo of the teacher) ---------- */
.hero { background: var(--dots), var(--carbon); color: #fff; padding: 60px 0 124px; position: relative; overflow: hidden; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-chip { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); padding: 5px 14px 5px 5px; border-radius: 999px; margin-bottom: 22px; color: #e8eaed; }
.hero-chip img { width: 28px; height: 28px; border-radius: 50%; }
.hero-chip b { color: var(--yellow); }
.hero h1 { color: #fff; font-size: clamp(32px, 4.3vw, 56px); line-height: 1.07; letter-spacing: -.03em; font-weight: 800; max-width: 13em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { font-size: 17.5px; color: #c9cdd2; max-width: 33em; margin: 0 0 28px; line-height: 1.6; }
.hero-search { display: flex; align-items: center; gap: 8px; max-width: 580px; background: #fff; border-radius: 14px; padding: 7px 7px 7px 16px; }
.hero-search > .icon { color: var(--subtle); width: 20px; height: 20px; }
.hero-search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 15.5px; padding: 9px 4px; background: transparent; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-search .btn { padding: 12px 24px; border-radius: 10px; background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 700; }
.hero-search .btn:hover { background: #f5c400; border-color: #f5c400; color: var(--ink); }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; }
.popular span { color: #9aa1a9; margin-right: 2px; }
.popular a { color: #e8eaed; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 5px 12px; font-weight: 500; }
.popular a:hover { border-color: var(--yellow); color: var(--yellow); text-decoration: none; }
.hero-stats { display: flex; gap: 0; margin: 36px 0 0; }
.hero-stats div { padding: 0 28px; border-left: 1px solid rgba(255,255,255,.14); }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.hero-stats dd { margin: 3px 0 0; font-size: 13.5px; color: #9aa1a9; }

/* Teacher photo card */
.hero-photo { position: relative; justify-self: end; width: min(100%, 430px); margin-right: 18px; }
.hero-photo::before { content: ''; position: absolute; inset: 22px -18px -18px 22px; border-radius: 22px; background: var(--yellow); }
.hp-frame { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 470 / 560; background: #222; }
.hp-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.hp-frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.hp-name { position: absolute; left: 22px; bottom: 20px; z-index: 1; }
.hp-name b { display: block; font-size: 22px; letter-spacing: -.01em; }
.hp-name span { font-size: 14px; color: #d6d9dd; }
.hp-badge { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; padding: 9px 14px 9px 10px; border-radius: 12px; box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); }
.hp-badge .icon { width: 20px; height: 20px; }
.hp-yt { left: -34px; top: 34px; }
.hp-yt .icon { color: #ff0033; }
.hp-hi { right: -30px; top: 46%; }
.hp-hi .icon { color: var(--brand); }
@media (max-width: 960px) { .hero { padding: 36px 0 100px; } .hero .container { grid-template-columns: 1fr; gap: 40px; } .hero-photo { justify-self: center; width: min(86%, 380px); margin: 0 18px 18px 0; } .hp-yt { left: -14px; } .hp-hi { right: -14px; } }
@media (max-width: 480px) { .hero-search .btn { padding: 11px 14px; } .hero-stats div { padding: 0 16px; } .hero-stats dt { font-size: 23px; } }

/* Trust card, half over the hero */
.trust { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 18px; margin-top: -64px; box-shadow: 0 24px 50px -28px rgba(27,33,36,.35); border: 1px solid var(--line); }
.trust > div { display: flex; align-items: center; gap: 14px; padding: 22px; border-left: 1px solid var(--line); }
.trust > div:first-child { border-left: 0; }
.trust .ti { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.trust .ti .icon { width: 23px; height: 23px; }
.trust .t1 { background: var(--brand-soft); color: var(--brand); }
.trust .t2 { background: #e6f4ff; color: #1f78c8; }
.trust .t3 { background: var(--amber-soft); color: #a86b00; }
.trust .t4 { background: var(--green-soft); color: var(--green); }
.trust span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.trust b { display: block; color: var(--ink); font-size: 15px; font-weight: 700; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } .trust > div:nth-child(3) { border-left: 0; } .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 420px) { .trust > div { padding: 14px 12px; gap: 10px; } .trust .ti { width: 38px; height: 38px; } }

/* Category tiles: three solid colours */
.cats-section { padding: 36px 0 8px; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: 18px; min-height: 190px; color: #fff; transition: transform .2s, box-shadow .2s; }
.cat:hover { text-decoration: none; color: #fff; transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(27,33,36,.6); }
.cat::after { content: ''; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cat > .icon { width: 34px; height: 34px; margin-bottom: 8px; }
.cat b { font-size: 20px; letter-spacing: -.01em; }
.cat span { font-size: 14px; opacity: .85; }
.cat em { margin-top: auto; padding-top: 14px; font-style: normal; font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.cat em .icon { width: 17px; height: 17px; transition: transform .2s; }
.cat:hover em .icon { transform: translateX(4px); }
.cat-hw { background: var(--dots), var(--carbon); }
.cat-hw > .icon { color: var(--yellow); }
.cat-sw { background: var(--brand); }
.cat-sw > .icon { color: var(--lime); }
.cat-combo { background: var(--yellow); color: var(--ink); }
.cat-combo:hover { color: var(--ink); }
.cat-combo::after { background: rgba(255,255,255,.35); }
@media (max-width: 900px) { .cats { grid-template-columns: 1fr; } .cat { min-height: 0; } }

/* Course filter (home) */
.filter { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.filter button { font: inherit; font-weight: 600; font-size: 14.5px; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.filter button:hover { color: var(--ink); }
.filter button.on { color: var(--brand); border-bottom-color: var(--brand); }

/* Teacher: one dark card, real photo on the left */
.teacher { display: grid; grid-template-columns: 340px 1fr; background: var(--ink); color: #b9bec7; border-radius: 16px; overflow: hidden; }
.teacher-photo { position: relative; min-height: 100%; }
.teacher-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.teacher-logo { background: var(--dots), #0e1012; display: grid; place-items: center; min-height: 320px; }
.teacher-logo img { position: relative !important; inset: auto !important; width: 78% !important; height: auto !important; border-radius: 50%; object-fit: contain !important; }
.teacher-tag { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.teacher-tag .icon { width: 17px; height: 17px; color: #ff0033; }
.teacher-copy { padding: 36px 40px; }
.teacher-kicker { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.teacher h2 { color: #fff; font-size: clamp(26px, 2.6vw, 34px); margin: 0 0 8px; }
.teacher-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin: 0 0 14px; }
.teacher-meta span { display: inline-flex; align-items: center; gap: 6px; }
.teacher-meta .icon { width: 16px; height: 16px; }
.teacher-about { font-size: 15.5px; line-height: 1.65; color: #d3d7de; margin: 0 0 16px; max-width: 46em; }
.teacher-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.teacher-topics span { font-size: 13px; font-weight: 500; color: #e4e6ea; padding: 5px 11px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.teacher-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 24px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.teacher-stats div { padding: 14px 0 14px 18px; border-left: 1px solid rgba(255,255,255,.12); }
.teacher-stats div:first-child { border-left: 0; padding-left: 0; }
.teacher-stats dt { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.teacher-stats dd { margin: 3px 0 0; font-size: 13px; }
.teacher-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-yt { background: #ff0033; border-color: #ff0033; color: #fff; }
.btn-yt:hover { background: #e0002d; border-color: #e0002d; color: #fff; }
@media (max-width: 900px) {
  .teacher { grid-template-columns: 1fr; }
  .teacher-photo { aspect-ratio: 4 / 3; }
  .teacher-copy { padding: 24px 20px; }
  .teacher-stats { grid-template-columns: 1fr 1fr; }
  .teacher-stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .teacher-stats div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .teacher-actions .btn { flex: 1; }
}

/* How to buy: purple band */
.how { background: var(--brand); color: #c9cdd2; border-radius: 20px; padding: 36px 40px; display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.how::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; border: 50px solid rgba(255,255,255,.06); }
.how h2 { font-size: 26px; margin: 0; color: #fff; }
.how ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; z-index: 1; }
.how li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.how li::before { content: counter(s); grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 17px; }
.how li b { font-size: 16px; color: #fff; }
.how li span { font-size: 14px; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; padding: 26px 22px; } .how ol { grid-template-columns: 1fr; gap: 18px; } }

/* Course cards (batch style) */
.course-card { background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; color: var(--text); }
.course-card { box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.course-card:hover { box-shadow: 0 22px 40px -26px rgba(27,33,36,.45); border-color: #d6d9e3; transform: translateY(-4px); }
.course-card { transition: box-shadow .2s, border-color .2s, transform .2s; }
.course-card a { color: inherit; }
.course-card a:hover { text-decoration: none; }
.thumb { position: relative; aspect-ratio: 16/9; background: var(--brand-soft); overflow: hidden; display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; color: #fff; background: var(--brand); }
.thumb .ph::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.thumb .ph .icon { position: absolute; right: 22px; bottom: 20px; width: 54px; height: 54px; stroke-width: 1.5; opacity: .9; }
.thumb .ph strong { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; max-width: 72%; position: relative; z-index: 1; }
.thumb .ph small { font-size: 11px; font-weight: 700; letter-spacing: .1em; opacity: .75; margin-bottom: 6px; }
.thumb.sw .ph { background: var(--ink); }
.thumb.combo .ph { background: var(--yellow); color: var(--ink); }
.thumb .tag { position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--ink); font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; z-index: 2; }
.thumb .off { position: absolute; right: 10px; bottom: 10px; background: var(--green); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; z-index: 2; }
.course-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-body h3 { font-size: 17px; font-weight: 700; margin: 0; letter-spacing: -.01em; line-height: 1.35; }
.course-body .lang { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-meta .icon { width: 15px; height: 15px; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.price { font-size: 22px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.mrp { color: var(--subtle); text-decoration: line-through; font-size: 14px; }
.save { color: var(--green); font-weight: 700; font-size: 13px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.card-actions .btn { padding: 9px 12px; font-size: 13.5px; text-transform: uppercase; letter-spacing: .03em; }

.thumb .tag, .thumb .off { box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* Feature cards */
.feature { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.feature .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic.blue { background: var(--sky-soft); color: #1f78c8; }
.feature .ic.dark { background: var(--ink); color: #fff; }
.feature .ic.green { background: var(--green-soft); color: var(--green); }
.feature .ic.amber { background: var(--amber-soft); color: #a86b00; }
.feature .ic.red { background: var(--red-soft); color: var(--red); }
.feature .ic .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }
a.feature { color: inherit; }
a.feature:hover { text-decoration: none; border-color: var(--brand); }

/* Steps */
.steps { counter-reset: s; position: relative; }
.step { background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.step h3 { font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Reviews (real ones from the database) */
.review-card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.review-card .stars { margin: 0; letter-spacing: 1px; }
.review-card .stars span { color: #dcdfe6; }
.review-card blockquote { margin: 0; flex: 1; color: #3a404a; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.35; }
.review-card figcaption b { display: block; color: var(--ink); font-size: 14.5px; }
.stars { color: var(--yellow-deep); letter-spacing: 2px; margin-bottom: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--brand); background: var(--brand-soft); flex: none; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.faq-wrap h2 { font-size: clamp(22px, 2.6vw, 30px); }
.faq-wrap .muted { margin: 0 0 18px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 2px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { color: var(--muted); margin: 0 0 16px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 20px; } }

/* Inner page header: same purple as the home hero */
.page-hero { background: var(--dots), var(--carbon); color: #c9cdd2; padding: 40px 0 44px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid rgba(255,255,255,.05); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); }
.page-hero p { color: #c9cdd2; margin: 0; font-size: 16px; }
.page-hero .course-meta, .page-hero .course-meta span { color: #fff !important; }
.page-hero .course-meta .icon { color: var(--yellow); }
.breadcrumb { font-size: 13.5px; color: #9aa1a9; margin-bottom: 10px; }
.breadcrumb a { color: #9aa1a9; }
.breadcrumb a:hover { color: #fff; }

/* Tabs (pill filters) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs a { padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }
.tabs a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.tabs a.active { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Footer: full-width dark block with a help strip on top */
.site-footer { background: #14181b; margin-top: 72px; color: #a9afb9; font-size: 14px; }
.footer-cta { background: var(--brand); color: #c9cdd2; }
.footer-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.footer-cta strong { display: block; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.footer-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-wa { background: #25d366; border-color: #25d366; color: #0b2e17; }
.btn-wa:hover { background: #20bd5b; border-color: #20bd5b; color: #0b2e17; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0 44px; }
.site-footer .brand { color: #fff; font-size: 20px; }
.site-footer .brand small { display: none; }
.footer-about p { margin: 16px 0 20px; max-width: 30em; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; }
.footer-social a:hover { background: var(--brand); border-color: var(--brand); }
.footer-social .icon { width: 19px; height: 19px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 16px 8px 12px; border-radius: 10px; background: #000; border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.1; }
.store-badge small { display: block; font-size: 10.5px; font-weight: 500; opacity: .8; }
.store-badge:hover { text-decoration: none; color: #fff; border-color: #fff; }
.site-footer h4 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin: 6px 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer li a { color: #a9afb9; }
.site-footer li a:hover { color: #fff; text-decoration: none; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; word-break: break-word; }
.footer-contact .icon { width: 17px; height: 17px; color: #7f8794; margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #7f8794; }
.pay-note { display: inline-flex; align-items: center; gap: 6px; }
.pay-note .icon { width: 16px; height: 16px; color: var(--green); }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 40px 0 32px; } .footer-grid > div:last-child { grid-column: 1 / -1; } .footer-cta-actions, .footer-cta-actions .btn { width: 100%; } }

/* ---------- Loading ---------- */
/* Thin top bar on every navigation; the full screen only appears if the page takes a moment. */
#loadbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; opacity: 0; z-index: 99999; background: var(--brand); pointer-events: none; }
.page-loader { position: fixed; inset: 0; z-index: 99998; display: grid; place-items: center; background: rgba(255,255,255,.94); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, visibility 0s linear .15s; }
.page-loader.is-visible, html.page-loading .page-loader { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s ease .35s, visibility 0s linear .35s; }
.loader-box { display: grid; justify-items: center; gap: 18px; }
.loader-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 19px; letter-spacing: -.04em; }
.loader-line { width: 120px; height: 3px; border-radius: 3px; background: var(--brand-soft); overflow: hidden; position: relative; }
.loader-line::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 3px; background: var(--brand); animation: loaderSlide 1s ease-in-out infinite; }
@keyframes loaderSlide { from { left: -40%; } to { left: 100%; } }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: #fff #fff transparent transparent; animation: spin .7s linear infinite; }
.btn:not(.btn-primary):not(.btn-dark):not(.btn-amber).is-loading::after { border-color: var(--brand) var(--brand) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader-line::after { animation-duration: 2.4s; } }

/* ---------- Everything below: course page, forms, student area, admin ---------- */
/* Course detail */
.detail { display: grid; grid-template-columns: 1fr 370px; gap: 32px; align-items: start; }
.buy-card { position: sticky; top: 88px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.buy-card .body { padding: 22px; }
.buy-card .price { font-size: 32px; }
.buy-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: 14.5px; }
.buy-list li { display: flex; gap: 10px; align-items: center; }
.buy-list .icon { width: 18px; height: 18px; color: var(--green); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 24px; }
.learn-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; list-style: none; padding: 0; margin: 0; }
.learn-list li { display: flex; gap: 10px; }
.learn-list .icon { width: 18px; height: 18px; color: var(--green); margin-top: 3px; }
.curriculum .sec { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.curriculum summary { padding: 14px 18px; cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary span { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.lesson-row .icon { width: 18px; height: 18px; color: var(--subtle); }
.lesson-row .t { flex: 1; }
.lesson-row a { color: var(--ink); font-weight: 600; }
.lesson-row .free { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 2px 9px; border-radius: 999px; }
@media (max-width: 960px) {
  .detail { display: flex; flex-direction: column; }
  .detail > div { order: 2; }
  .detail > .buy-card { order: 1; margin-bottom: 24px; position: static; }
  .learn-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .field input, .field select, .field textarea, .input { font-size: 16px; }
}

/* Forms & Clean Auth */
.auth-wrap {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px;
  background: radial-gradient(circle at 50% 0%, rgba(30, 123, 60, 0.05) 0%, transparent 65%), var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 48px -12px rgba(16, 24, 40, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 38px 32px;
  border: 1px solid var(--line);
}
.auth-header {
  text-align: center;
  margin-bottom: 26px;
}
.auth-header h1 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.auth-header p {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: #1e293b; }
.field input, .field select, .field textarea, .input { width: 100%; font: inherit; font-size: 14.5px; padding: 11px 14px; border: 1px solid #dcdcd7; border-radius: 10px; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,123,60,.16); }
.field input:disabled { background: #f6f6f3; color: var(--muted); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.field-error { color: var(--red); font-size: 12.5px; margin-top: 5px; font-weight: 500; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #334155; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .auth-wrap { padding: 24px 14px; }
  .auth-card { padding: 28px 20px; border-radius: 16px; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Alerts */
.alert { padding: 13px 16px; border-radius: 14px; margin-bottom: 18px; font-size: 14.5px; }
.alert-success { background: var(--green-soft); color: #0b5f44; }
.alert-error { background: var(--red-soft); color: #9b2420; }
.alert-info { background: var(--brand-soft); color: var(--brand); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #f1f1ee; color: var(--muted); white-space: nowrap; }
.badge .icon { width: 13px; height: 13px; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: #8a5a00; }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--brand-soft); color: var(--brand); }
.badge-yellow { background: var(--yellow); color: var(--ink); }

/* Student area */
.account-tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.progress { height: 8px; background: #efeee9; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.player-layout { display: grid; grid-template-columns: 1fr 360px; min-height: calc(100vh - 72px); }
.player-main { padding: 22px 24px 40px; min-width: 0; }
.player-box { background: #111; border-radius: 20px; overflow: hidden; aspect-ratio: 16/9; position: relative; }
.player-box video { width: 100%; height: 100%; display: block; background: #000; }
.watermark { position: absolute; color: rgba(255,255,255,.3); font-size: 13px; pointer-events: none; transition: all 1s; user-select: none; }
.audio-track-btn { background: rgba(255,255,255,.14); color: #f1f5f9; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.audio-track-btn:hover { background: rgba(255,255,255,.24); color: #fff; }
.audio-track-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 2px 8px rgba(30,123,60,.4); }
.player-side { background: #fff; border-left: 1px solid var(--line); overflow-y: auto; max-height: calc(100vh - 72px); position: sticky; top: 72px; }
.player-side .side-head { padding: 18px; border-bottom: 1px solid var(--line); }
.player-side .sec-title { padding: 12px 18px; background: #f7f6f2; font-weight: 700; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.player-side a.l { display: flex; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; align-items: flex-start; }
.player-side a.l:hover { background: #fafaf7; text-decoration: none; }
.player-side a.l.current { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); font-weight: 600; }
.player-side a.l .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d4d4cf; flex: none; margin-top: 1px; display: grid; place-items: center; color: transparent; }
.player-side a.l.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.player-side a.l .dot .icon { width: 12px; height: 12px; }
.lesson-notes { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-top: 18px; white-space: pre-line; color: #3a3f4a; }
@media (max-width: 960px) { .player-layout { grid-template-columns: 1fr; } .player-side { max-height: none; position: static; border-left: 0; border-top: 1px solid var(--line); } .player-main { padding: 14px 16px 24px; } }

/* Pay page */
.pay-card { max-width: 840px; margin: 0 auto; }
.pay-grid { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: center; }
.pay-qr { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.pay-qr svg { width: 100%; height: auto; display: block; }
.pay-steps ol { padding-left: 20px; color: var(--muted); }
.pay-done-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }
.pay-done-icon .icon { width: 38px; height: 38px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #c98a00; animation: pulse 1.2s infinite; display: inline-block; }
@keyframes pulse { 50% { opacity: .25; } }
@media (max-width: 720px) { .pay-grid { grid-template-columns: 1fr; } .pay-qr { max-width: 260px; margin: 0 auto; } }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td a { color: var(--ink); }
.nowrap { white-space: nowrap; }

/* Prose */
.prose { max-width: 820px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); }
.prose h2 { font-size: 20px; margin-top: 1.4em; }
.prose p, .prose li { color: #3a3f4a; }
@media (max-width: 640px) { .prose { padding: 22px; } }

/* WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.15); z-index: 60; color: #fff; }
.wa-float .icon { width: 28px; height: 28px; }

/* Pagination (Laravel default markup) */
nav[role=navigation] { font-size: 14px; }
nav[role=navigation] svg { width: 18px; height: 18px; }

/* ---------- Admin ---------- */
body.admin-body { background: #f6f6f3; }
.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.admin-side { background: #fff; border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { margin: 0 10px 26px; font-size: 21px; }
.admin-side nav a, .admin-side nav button { display: flex; align-items: center; gap: 11px; width: 100%; color: #3a3f4a; padding: 10px 12px; border-radius: 12px; font: inherit; font-size: 14.5px; font-weight: 500; margin-bottom: 2px; background: none; border: 0; cursor: pointer; text-align: left; }
.admin-side nav a .icon, .admin-side nav button .icon { width: 19px; height: 19px; }
.admin-side nav a:hover, .admin-side nav button:hover { background: #f4f4f1; color: var(--ink); text-decoration: none; }
.admin-side nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.admin-side .count { margin-left: auto; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.admin-side .side-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); margin: 20px 12px 8px; }
.admin-main { padding: 28px 32px 60px; min-width: 0; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-top h1 { font-size: 26px; margin: 0; }
.admin-top p { margin: 2px 0 0; color: var(--muted); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.stat .label { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.stat .value { font-size: 28px; font-weight: 800; margin-top: 4px; letter-spacing: -.03em; }
.stat .ic { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); color: #a86b00; }
.stat .ic.amber { background: var(--amber-soft); }
.stat .ic.green { background: var(--green-soft); color: var(--green); }
.stat .ic.dark { background: var(--ink); color: #fff; }
.stat .ic:not(.amber):not(.green):not(.dark) { background: var(--brand-soft); color: var(--brand); }
.stat .ic .icon { width: 20px; height: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 16px; margin: 0; letter-spacing: -.01em; }
.card-head a { font-size: 14px; font-weight: 600; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input { max-width: 300px; }
.toolbar select.input { max-width: 200px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }
details.inline > summary { list-style: none; }
details.inline > summary::-webkit-details-marker { display: none; }
.bars { display: flex; align-items: flex-end; gap: 6px; padding: 16px 20px 14px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: flex-end; height: 170px; }
.bars .b i { width: 100%; max-width: 30px; border-radius: 6px; background: var(--brand); min-height: 3px; }
.bars .b:last-child i { background: var(--yellow-deep); }
.bars .b span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.sec-box { border: 1px solid var(--line); border-radius: 18px; background: #fff; margin-bottom: 16px; overflow: hidden; }
.sec-box > .head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #faf9f5; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lesson-item { border-bottom: 1px solid var(--line); }
.lesson-item > summary { display: flex; align-items: center; gap: 12px; padding: 13px 18px; cursor: pointer; list-style: none; }
.lesson-item > summary::-webkit-details-marker { display: none; }
.lesson-item > summary .icon { width: 18px; height: 18px; color: var(--subtle); }
.lesson-item[open] > summary { background: #fcfbf8; }
.lesson-item .edit { padding: 6px 18px 18px; background: #fcfbf8; }
.upload-zone { border: 1.5px dashed #d4d4cf; border-radius: 16px; padding: 16px; background: #fff; }
.upload-bar { height: 8px; background: #efeee9; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.upload-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.admin-menu-btn { display: none; }
@media (max-width: 960px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: fixed; z-index: 80; left: 0; top: 0; width: 264px; transform: translateX(-100%); transition: transform .2s; }
  .admin.open .admin-side { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .admin-main { padding: 18px 16px 50px; }
  .admin-menu-btn { display: inline-flex; }
}
.admin-side .brand { white-space: nowrap; font-size: 19px; }
.admin-side .brand small { font-size: 10px; }
.sec-box > .head form, .sec-box form { align-items: center; }
/* Reviews, doubts, quiz, search */
.review-form { background: var(--cream); border-radius: 16px; padding: 16px; margin-bottom: 18px; }
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin-bottom: 8px; }
.stars-input input { display: none; }
.stars-input label { font-size: 28px; color: #d9d6cc; cursor: pointer; line-height: 1; }
.stars-input label:hover, .stars-input label:hover ~ label, .stars-input input:checked ~ label { color: var(--yellow-deep); }
.review { border-top: 1px solid var(--line); padding: 16px 0 6px; }
.review p { margin: 8px 0 0; color: #3a3f4a; }
.review .stars { letter-spacing: 1px; color: var(--yellow-deep); }
.quiz-strip { display: grid; gap: 8px; margin-top: 18px; }
.quiz-link { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; color: var(--ink); font-weight: 700; }
.quiz-link:hover { border-color: var(--ink); text-decoration: none; }
.quiz-link .icon { margin-left: auto; width: 18px; height: 18px; }
.doubts { margin-top: 26px; }
.doubt { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 16px; margin-top: 12px; }
.doubt p { margin: 4px 0 0; }
.doubt .a { margin-top: 10px; background: var(--cream); border-radius: 12px; padding: 10px 12px; }
.search-box { display: flex; gap: 10px; margin-bottom: 18px; max-width: 560px; }
.quiz-q { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.quiz-q h3 { font-size: 16.5px; }
.quiz-opt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-top: 8px; cursor: pointer; }
.quiz-opt input { accent-color: var(--brand); }
.quiz-opt.right { border-color: var(--green); background: var(--green-soft); }
.quiz-opt.wrong { border-color: var(--red); background: var(--red-soft); }
.explain { margin-top: 10px; font-size: 14px; color: var(--muted); }
.live-card { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.live-date { width: 70px; flex: none; text-align: center; background: var(--brand-soft); color: var(--brand); border-radius: 16px; padding: 10px 0; font-weight: 800; line-height: 1.1; }
.live-date small { display: block; font-size: 12px; font-weight: 700; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; }
.yt-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--ink); display: block; }
.yt-card:hover { text-decoration: none; border-color: #d0cfc8; }
.yt-card .pic { position: relative; aspect-ratio: 16/9; background: #111; }
.yt-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.yt-card .pic span { position: absolute; inset: 0; margin: auto; width: 54px; height: 38px; border-radius: 12px; background: #ff0033; display: grid; place-items: center; color: #fff; }
.yt-card h3 { font-size: 15.5px; padding: 12px 14px 14px; margin: 0; }

/* First paint: a soft fade so pages do not flash */
main, .admin-main { animation: fadein .25s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main, .admin-main { animation: none; } }

/* Admin sidebar: scrolls by itself, thin scrollbar */
.admin-side { scrollbar-width: thin; scrollbar-color: #d9d8d2 transparent; overscroll-behavior: contain; }
.admin-side::-webkit-scrollbar { width: 6px; }
.admin-side::-webkit-scrollbar-thumb { background: #d9d8d2; border-radius: 6px; }

/* Toast messages */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 9000; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 12px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.14); font-size: 14.5px; font-weight: 500; animation: toastin .3s cubic-bezier(.2,.8,.2,1); transition: opacity .35s, transform .35s; }
.toast.out { opacity: 0; transform: translateY(-8px); }
.toast-ic { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.toast-success .toast-ic { background: var(--green-soft); color: var(--green); }
.toast-error { border-color: #f1c9c7; }
.toast-error .toast-ic { background: var(--red-soft); color: var(--red); }
.toast span:nth-child(2) { flex: 1; padding-top: 2px; }
.toast button { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--subtle); cursor: pointer; padding: 0 4px; }
@keyframes toastin { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 640px) { .toasts { left: 16px; right: 16px; max-width: none; } }

/* ==========================================================================
   Top-Class EdTech Conversion & Modern Animation Suite
   ========================================================================== */

/* Glow & Shimmer Keyframes */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 123, 60, 0.45); }
  50% { box-shadow: 0 0 0 14px rgba(30, 123, 60, 0); }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes marqueeSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Infinite Marquee Bar */
.trust-marquee {
  width: 100%;
  overflow: hidden;
  background: #0f172a;
  color: #f8fafc;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  position: relative;
}

.trust-marquee-track {
  display: inline-flex;
  gap: 40px;
  animation: marqueeSlide 38s linear infinite;
}

.trust-marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.marquee-item b {
  color: #10b981;
}

.marquee-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

/* Bento Grid Curriculum Features */
.bento-section {
  padding: 60px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08);
  border-color: #1e7b3c;
}

.bento-8 { grid-column: span 8; }
.bento-4 { grid-column: span 4; }
.bento-6 { grid-column: span 6; }
.bento-12 { grid-column: span 12; }

@media (max-width: 960px) {
  .bento-8, .bento-4, .bento-6 { grid-column: span 12; }
}

.bento-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.bento-icon-badge.green { background: #e7f7ed; color: #1e7b3c; }
.bento-icon-badge.blue { background: #e0f2fe; color: #0284c7; }
.bento-icon-badge.purple { background: #f3e8ff; color: #7e22ce; }
.bento-icon-badge.amber { background: #fef3c7; color: #d97706; }

.bento-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--ink);
}

.bento-card p {
  color: #4b5563;
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.bento-tag {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
}

/* Enhanced Course Card High-Converting Elements */
.course-card {
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.12);
}

.featured-shimmer-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
  overflow: hidden;
  z-index: 5;
}

.featured-shimmer-badge::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2.2s infinite;
}

.course-features-checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0 16px;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
}

.course-features-checklist li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.course-features-checklist li svg {
  color: #10b981;
  width: 15px;
  height: 15px;
  flex: none;
}

/* Floating Live Social Proof (FOMO) Toast */
.fomo-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 8000;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  transform: translateY(120px);
  opacity: 0;
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), opacity .4s ease;
  pointer-events: none;
}

.fomo-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.fomo-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e7b3c, #10b981);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex: none;
}

.fomo-content {
  font-size: 12.5px;
  line-height: 1.35;
  color: #334155;
}

.fomo-content b {
  color: #0f172a;
}

.fomo-time {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Mobile Sticky Bottom Conversion Bar */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid #e5e7eb;
    padding: 10px 16px;
    z-index: 9500;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform .3s ease;
  }

  .mobile-sticky-bar.visible {
    transform: translateY(0);
  }

  .ms-info {
    display: flex;
    flex-direction: column;
  }

  .ms-price {
    font-size: 18px;
    font-weight: 900;
    color: #1e7b3c;
    line-height: 1.1;
  }

  .ms-mrp {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
  }

  .ms-save {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
  }

  .ms-btn {
    background: #1e7b3c;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(30, 123, 60, 0.35);
  }
}

