/* =====================================================================
   My Learning v2: course content, lecture cards, lecture page.
   Shares the design tokens and buttons of theme.css.
   ===================================================================== */
.stu-body {
  --t-red: #E5383B; --t-red-2: #C92A2D; --t-red-soft: #FDECEC;
  --t-green: #1CAB55; --t-green-2: #158A44; --t-green-soft: #E7F7EE;
  --t-purple: #5B3DF5; --t-purple-2: #4527D9; --t-purple-soft: #EEEAFE;
  --t-dark: #0B0F19; --t-dark-2: #151B2B;
  --t-ink: #111827; --t-text: #374151; --t-muted: #6B7280; --t-line: #E8EAEE; --t-grey: #F5F6F8;
  --t-r: 14px;
  --s-red: #E5383B; --s-red-soft: #FDECEC;
  /* Brief palette: navy banner, teal progress, lavender info cards, tinted subject panels */
  --navy: #0f2a44; --navy-2: #12355a;
  --teal: #0f766e; --teal-2: #14b8a6; --teal-soft: #e6f6f3;
  --lav: #ede9fe; --lav-2: #ddd6fe; --lav-ink: #4c3fb5;
  --tint-a: #e6f6f3; --tint-b: #eef1fb; --tint-c: #fdecec; --tint-d: #fff4e6;
  --font: "Bornomala", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.stu-body.lang-bn { --font: "Bornomala", "Plus Jakarta Sans", system-ui, sans-serif; }
.stu-body .icon { flex-shrink: 0; }

/* Buttons */
.stu-body .tbtn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-weight: 700; font-size: .92rem; padding: .7rem 1.15rem; border-radius: 10px; border: 1px solid transparent; transition: background .2s, color .2s, transform .2s; white-space: nowrap; cursor: pointer; font-family: inherit; text-decoration: none; line-height: 1.2; }
.stu-body .tbtn .icon { width: 17px; height: 17px; }
.stu-body .tbtn:hover { transform: none; }
.stu-body .tbtn-sm { padding: .45rem .8rem; font-size: .84rem; border-radius: 8px; }
.stu-body .tbtn-red { background: var(--t-red); color: #fff; }
.stu-body .tbtn-red:hover { background: var(--t-red-2); color: #fff; }
.stu-body .tbtn-green { background: var(--t-green); color: #fff; }
.stu-body .tbtn-green:hover { background: var(--t-green-2); color: #fff; }
.stu-body .tbtn-purple { background: var(--t-purple); color: #fff; }
.stu-body .tbtn-purple:hover { background: var(--t-purple-2); color: #fff; }
.stu-body .tbtn-ghostdark { background: #fff; color: var(--t-ink); border-color: var(--t-line); }
.stu-body .tbtn-ghostdark:hover { border-color: var(--t-ink); color: var(--t-ink); }

.stu-lang { display: inline-grid; place-items: center; height: 36px; min-width: 40px; padding: 0 .6rem; border: 1px solid var(--s-line, #e7e9ee); border-radius: 8px; font-weight: 700; font-size: .8rem; color: var(--t-ink); background: #fff; }
.stu-lang:hover { border-color: var(--t-red); color: var(--t-red); }
.stu-free { margin-left: auto; font-size: .66rem; font-weight: 700; background: var(--t-green-soft); color: var(--t-green); padding: .1rem .4rem; border-radius: 4px; }

/* Course head */
.lc-back { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--t-muted); }
.lc-back .icon { width: 15px; height: 15px; }
.lc-back:hover { color: var(--t-red); }
.lc-head { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; background: var(--t-dark); color: rgba(255, 255, 255, .78); border-radius: 10px; padding: 22px 24px; margin-bottom: 16px; }
.lc-head .lc-back { color: rgba(255, 255, 255, .65); }
.lc-head .lc-back:hover { color: #fff; }
.lc-head-main { flex: 1; min-width: 260px; }
.lc-head h1 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 8px 0 4px; line-height: 1.3; }
.lc-sub { font-size: .86rem; }
.lc-sub b { color: #fff; font-size: 1rem; }
.lc-bar { height: 8px; background: rgba(255, 255, 255, .14); border-radius: 8px; overflow: hidden; margin: 12px 0 6px; max-width: 520px; }
.lc-bar span { display: block; height: 100%; background: var(--t-green); border-radius: 8px; }
.lc-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lc-wa { background: #25d366; color: #fff; }
.lc-wa:hover { background: #1ebe5b; color: #fff; }

/* Today's live class */
.lc-live, .ll-livebox { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--t-line); border-left: 4px solid var(--t-red); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.lc-live-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--t-red-soft); color: var(--t-red); display: grid; place-items: center; position: relative; }
.lc-live-ic .icon { width: 22px; height: 22px; }
.lc-live-t { flex: 1; min-width: 180px; }
.lc-live-t small, .ll-livebox small { display: block; font-size: .75rem; font-weight: 700; color: var(--t-red); text-transform: uppercase; letter-spacing: .04em; }
.lc-live-t strong, .ll-livebox strong { display: block; color: var(--t-ink); }
.lc-live-t span, .ll-livebox span { font-size: .86rem; color: var(--t-muted); }
.ll-livebox > div { flex: 1; min-width: 180px; }
.ll-note { font-size: .84rem; color: var(--t-muted); }

/* Stats */
.lc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.lc-stats > div { background: #fff; border: 1px solid var(--t-line); border-radius: 8px; padding: 14px 16px; }
.lc-stats small { display: block; font-size: .78rem; color: var(--t-muted); }
.lc-stats strong { display: block; font-size: 1.35rem; color: var(--t-ink); margin-top: 2px; }

/* Blocks */
.lc-block { background: #fff; border: 1px solid var(--t-line); border-radius: 8px; padding: 18px 20px; margin-bottom: 16px; }
.lc-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lc-block-head h2 { font-size: 1.1rem; margin: 0; color: var(--t-ink); }
.lc-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; background: var(--t-grey); border-radius: 8px; padding: .3rem .6rem; color: var(--t-text); }
.lc-chip .icon { width: 14px; height: 14px; }
.lc-empty { color: var(--t-muted); font-size: .9rem; margin: 0; }
.lc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.lc-two .lc-block { margin-bottom: 16px; }

/* Subject accordion + lecture cards */
.lc-acc details { border: 1px solid var(--t-line); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.lc-acc summary { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; background: var(--t-grey); }
.lc-acc summary::-webkit-details-marker { display: none; }
.lc-acc-ic { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--t-red); display: grid; place-items: center; }
.lc-acc-ic .icon { width: 18px; height: 18px; }
.lc-acc-t { flex: 1; min-width: 0; }
.lc-acc-t strong { display: block; color: var(--t-ink); font-size: .96rem; }
.lc-acc-t small { color: var(--t-muted); font-size: .78rem; }
.lc-acc .caret { width: 18px; height: 18px; color: var(--t-muted); transition: transform .2s; }
.lc-acc details[open] .caret { transform: rotate(180deg); }
.lc-lectures { padding: 10px; display: grid; gap: 8px; }
.lc-lecture { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--t-line); border-radius: 10px; background: #fff; color: inherit; transition: border-color .2s, box-shadow .2s; }
.lc-lecture:hover { border-color: #b9bec8; }
.lc-l-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--t-purple-soft); color: var(--t-purple); display: grid; place-items: center; }
.lc-l-ic .icon { width: 18px; height: 18px; }
.lc-lecture.done .lc-l-ic { background: var(--t-green); color: #fff; }
.lc-l-body { flex: 1; min-width: 0; }
.lc-l-no { display: block; font-size: .74rem; font-weight: 700; color: var(--t-red); letter-spacing: .02em; }
.lc-l-body strong { display: block; color: var(--t-ink); font-size: .94rem; line-height: 1.4; }
.lc-l-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lc-l-chips span { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; padding: .18rem .5rem; border-radius: 6px; background: var(--t-grey); color: var(--t-muted); }
.lc-l-chips .icon { width: 13px; height: 13px; }
.lc-l-chips .c-video { background: var(--t-red-soft); color: var(--t-red); }
.lc-l-chips .c-mat { background: #E8F1FD; color: #1D64C8; }
.lc-l-chips .c-quiz { background: var(--t-purple-soft); color: var(--t-purple); }
.lc-l-go { width: 18px; height: 18px; color: #c4c8d0; }

/* Exam and notice rows */
.lc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--t-line); }
.lc-row:first-of-type { border-top: 0; }
.lc-row-n { width: 46px; height: 46px; border-radius: 10px; background: var(--t-purple-soft); color: var(--t-purple); display: grid; place-items: center; line-height: 1; text-align: center; }
.lc-row-n b { font-size: 1rem; }
.lc-row-n small { display: block; font-size: .64rem; }
.lc-row-t { flex: 1; min-width: 0; }
.lc-row-t strong { display: block; color: var(--t-ink); font-size: .92rem; }
.lc-row-t small { color: var(--t-muted); font-size: .8rem; }
.lc-notice { padding: 10px 0; border-top: 1px solid var(--t-line); }
.lc-notice:first-of-type { border-top: 0; }
.lc-notice small { color: var(--t-muted); font-size: .76rem; }
.lc-notice strong { display: block; color: var(--t-ink); }
.lc-notice p { margin: 4px 0 0; font-size: .88rem; }
.lc-notice a { font-size: .84rem; color: var(--t-red); font-weight: 600; display: inline-flex; gap: .3rem; align-items: center; }
.lc-notice a .icon { width: 14px; height: 14px; }

/* Lecture page */
.ll-head { margin-bottom: 16px; }
.ll-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.ll-head h1 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 2px 0 0; color: var(--t-ink); line-height: 1.35; }
.ll-done { background: var(--t-green-soft); color: var(--t-green); border-color: var(--t-green); }
.ll-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.ll-main { min-width: 0; }
.ll-player { margin-bottom: 16px; }
.ll-player .player { border-radius: 8px; overflow: hidden; margin: 0; }
.ll-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 2px 0; }
.ll-speed { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--t-line); border-radius: 10px; padding: 4px; }
.ll-speed span { font-size: .78rem; color: var(--t-muted); padding: 0 6px; font-weight: 600; }
.ll-speed button { border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 700; color: var(--t-text); padding: .3rem .55rem; border-radius: 7px; cursor: pointer; }
.ll-speed button:hover { background: var(--t-grey); }
.ll-speed button.active { background: var(--t-dark); color: #fff; }
.ll-resume { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: var(--t-red-soft); color: var(--t-red); font: inherit; font-weight: 700; font-size: .84rem; padding: .45rem .8rem; border-radius: 8px; cursor: pointer; }
.ll-resume .icon { width: 15px; height: 15px; }
.ll-mats { display: grid; gap: 8px; }
.ll-mat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--t-line); border-radius: 10px; }
.ll-mat strong { flex: 1; min-width: 0; color: var(--t-ink); font-size: .92rem; }
.ll-mat-ic { width: 36px; height: 36px; border-radius: 9px; background: #E8F1FD; color: #1D64C8; display: grid; place-items: center; }
.ll-mat-ic .icon { width: 18px; height: 18px; }
.ll-quiz { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; border-radius: 8px; background: var(--t-purple-soft); border: 1px solid #DCD4FD; margin-bottom: 16px; }
.ll-quiz .ll-mat-ic { background: var(--t-purple); color: #fff; }
.ll-quiz > div { flex: 1; min-width: 180px; }
.ll-quiz strong { display: block; color: var(--t-ink); }
.ll-quiz small { color: var(--t-muted); font-size: .82rem; }
.ll-soon { text-align: center; padding: 40px 20px; }
.ll-soon > .icon { width: 40px; height: 40px; color: var(--t-muted); }
.ll-soon h3 { margin: 10px 0 4px; }
.ll-soon p { color: var(--t-muted); margin: 0; }
.ll-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; }
.ll-list { background: #fff; border: 1px solid var(--t-line); border-radius: 8px; overflow: hidden; position: sticky; top: 80px; }
.ll-list-head { padding: 14px 16px; border-bottom: 1px solid var(--t-line); }
.ll-list-head strong { display: block; color: var(--t-ink); }
.ll-list-head small { color: var(--t-muted); font-size: .78rem; }
.ll-list-body { max-height: calc(100vh - 180px); overflow-y: auto; padding: 6px 0 10px; }
.ll-mod { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--t-muted); padding: 12px 16px 4px; }
.ll-list-body a { display: flex; gap: 8px; align-items: flex-start; padding: 8px 16px; font-size: .86rem; color: var(--t-text); border-left: 3px solid transparent; }
.ll-list-body a .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--t-muted); }
.ll-list-body a:hover { background: var(--t-grey); }
.ll-list-body a.current { background: var(--t-red-soft); border-left-color: var(--t-red); color: var(--t-ink); font-weight: 600; }
.ll-list-body a.done .icon { color: var(--t-green); }

@media (max-width: 1100px) { .ll-layout { grid-template-columns: 1fr; } .ll-list { position: static; } }
@media (max-width: 900px) { .lc-two { grid-template-columns: 1fr; } .lc-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .lc-head { padding: 18px; border-radius: 8px; }
  .lc-head-actions, .lc-head-actions .tbtn { width: 100%; }
  .lc-block { padding: 16px; }
  .lc-lectures { padding: 8px; }
  .lc-lecture { padding: 10px; gap: 10px; }
  .lc-l-go { display: none; }
}

/* Dashboard */
.ld-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ld-head small { color: var(--t-muted); font-size: .84rem; }
.ld-head h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 2px 0 0; color: var(--t-ink); }
.ld-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ld-nolive { border-left-color: var(--t-line); }
.ld-nolive .lc-live-ic { background: var(--t-grey); color: var(--t-muted); }
.ld-nolive small { color: var(--t-muted); }
.lc-stats em { font-style: normal; font-size: .85rem; color: var(--t-muted); font-weight: 500; }
.ld-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 700; color: var(--t-red); }
.ld-link .icon { width: 15px; height: 15px; }
.ld-course { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--t-line); border-radius: 8px; margin-bottom: 10px; color: inherit; transition: border-color .2s; }
.ld-course:hover { border-color: var(--t-red); }
.ld-course-media { width: 120px; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; background: var(--t-grey); display: grid; place-items: center; color: var(--t-muted); flex-shrink: 0; }
.ld-course-media img { width: 100%; height: 100%; object-fit: cover; }
.ld-course-body { flex: 1; min-width: 0; }
.ld-course-body strong { display: block; color: var(--t-ink); }
.ld-course-body small { display: block; color: var(--t-muted); font-size: .8rem; }
.ld-bar { background: var(--t-grey); margin: 8px 0 4px; height: 7px; }
.ld-acc { margin-bottom: 12px; }
.ld-acc > div { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; color: var(--t-ink); font-weight: 600; }
.ld-acc b { color: #B7791F; }
.ld-acc b.good { color: var(--t-green); }
.ld-acc b.bad { color: var(--t-red); }
.ld-acc-bar { display: block; height: 7px; border-radius: 7px; background: var(--t-grey); overflow: hidden; margin: 5px 0 3px; }
.ld-acc-bar span { display: block; height: 100%; background: #F2B53A; border-radius: 7px; }
.ld-acc-bar span.good { background: var(--t-green); }
.ld-acc-bar span.bad { background: var(--t-red); }
.ld-acc small { color: var(--t-muted); font-size: .76rem; }
.ld-spark { width: 100%; height: 90px; display: block; }
.ld-spark polyline { fill: none; stroke: var(--t-purple); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ld-spark circle { fill: #fff; stroke: var(--t-purple); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ld-spark .mid { stroke: var(--t-line); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.ld-spark-l { display: flex; justify-content: space-between; font-size: .76rem; color: var(--t-muted); margin-top: 2px; }
.ld-h3 { font-size: .95rem; margin: 16px 0 8px; color: var(--t-ink); }
.ld-weak { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--t-red-soft); margin-bottom: 6px; font-size: .88rem; color: var(--t-ink); }
.ld-weak b { color: var(--t-red); }
.ld-res { color: inherit; }
.ld-res > b { font-size: .92rem; color: var(--t-ink); white-space: nowrap; }
.ld-res em { font-style: normal; color: var(--t-purple); margin-left: 4px; }
@media (max-width: 560px) { .ld-course-media { width: 84px; } .ld-course > .tbtn { display: none; } .ld-head-actions, .ld-head-actions .tbtn { width: 100%; } }

/* =====================================================================
   Coaching/LMS feedback (Oct 2026): brief design system across dashboard.
   Navy banner, softly tinted stat cards, teal progress, lavender info card.
   ===================================================================== */
.stu-body .ld-head {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; border-radius: 14px; padding: 20px 24px; align-items: center;
}
.stu-body .ld-head small { color: rgba(255,255,255,.72); }
.stu-body .ld-head h1 { color: #fff; }
.stu-body .ld-head .tbtn-ghostdark { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.stu-body .ld-head .tbtn-ghostdark:hover { background: rgba(255,255,255,.2); }
.stu-body .ld-head .tbtn-purple { background: #fff; color: var(--navy); }

.stu-body .lc-stats > div { border: 1px solid transparent; }
.stu-body .lc-stats > div:nth-child(1) { background: var(--teal-soft); border-color: #cdeae5; }
.stu-body .lc-stats > div:nth-child(2) { background: var(--lav); border-color: var(--lav-2); }
.stu-body .lc-stats > div:nth-child(3) { background: var(--tint-d); border-color: #fbe4c6; }
.stu-body .lc-stats > div:nth-child(4) { background: var(--tint-b); border-color: #dbe3f6; }

/* Teal progress everywhere on the learner side */
.stu-body .lc-bar span, .stu-body .ld-bar span { background: var(--teal); }
.stu-body .ld-acc-bar span.good { background: var(--teal); }

/* Continue-learning: teal-tinted card, teal hover */
.stu-body .ld-course { background: var(--teal-soft); border-color: #cdeae5; }
.stu-body .ld-course:hover { border-color: var(--teal); }
.stu-body .ld-course .ld-bar { background: #d2eae6; }

/* Next live class (none today) as a lavender information card */
.stu-body .ld-nolive { background: var(--lav); border: 1px solid var(--lav-2); border-left: 4px solid var(--lav-ink); }
.stu-body .ld-nolive .lc-live-ic { background: #fff; color: var(--lav-ink); }
.stu-body .ld-nolive small { color: var(--lav-ink); }

/* Exam score trend in teal */
.stu-body .ld-spark polyline { stroke: var(--teal); }
.stu-body .ld-spark circle { stroke: var(--teal); }

/* Learning screen: tinted subject/module grouping, teal selected/completed,
   locked state, media-type badges (brief 05/08). */
.stu-body .ll-mod {
  background: var(--teal-soft); color: var(--navy); font-size: .8rem;
  padding: 10px 16px; margin-top: 4px; border-top: 1px solid #d4ebe7;
  border-bottom: 1px solid #d4ebe7;
}
.stu-body .ll-list-body a.current { background: var(--teal-soft); border-left-color: var(--teal); color: var(--navy); }
.stu-body .ll-list-body a.current .icon { color: var(--teal); }
.stu-body .ll-list-body a.done .icon { color: var(--teal); }
.stu-body .ll-list-body a.locked { color: var(--t-muted); cursor: not-allowed; pointer-events: none; }
.stu-body .ll-list-body a.locked .icon { color: var(--t-muted); }

/* Media-type badges on lecture materials (video/pdf/sheet/link/quiz) */
.stu-body .ll-mat-ic.m-video { background: var(--teal-soft); color: var(--teal); }
.stu-body .ll-mat-ic.m-pdf, .stu-body .ll-mat-ic.m-doc { background: #fdecec; color: #c0392b; }
.stu-body .ll-mat-ic.m-link { background: var(--tint-b); color: var(--navy); }
.stu-body .ll-mat-ic.m-quiz { background: var(--lav); color: var(--lav-ink); }

/* Subject grouping on course content (Course > Subject > Module > Lecture). */
.stu-body .lc-subject { margin-bottom: 18px; }
.stu-body .lc-subject-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--teal-soft); border: 1px solid #cdeae5; border-radius: 10px 10px 0 0; }
.stu-body .lc-subject-head h3 { margin: 0; font-size: 1rem; color: var(--navy); }
.stu-body .lc-subject-head span { font-size: .82rem; font-weight: 600; color: var(--teal); }
.stu-body .lc-subject .lc-acc { border: 1px solid #cdeae5; border-top: 0; border-radius: 0 0 10px 10px; padding: 10px; }
