/* Ehtesham Law — learning: mock test player (body.tp) and student dashboard learning pages. */

/* ================= Test player (standalone page) ================= */
body.tp {
  --ink: #0f1b2a; --body: #3d4a5c; --muted: #6a7687; --line: #e3e8ef; --bg: #f2f5f9; --card: #fff;
  --navy: #123145; --gold: #f2a52b; --green: #16a34a; --green-50: #e7f7ee; --amber: #d97706; --amber-50: #fff4e0; --red: #dc2626; --blue: #1668c4; --blue-50: #eaf2fc;
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--body); font: 400 15.5px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column;
}
.tp * { box-sizing: border-box; }
.tp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 10px 20px; background: var(--navy); color: #fff; }
.tp-top__title { flex: 1; min-width: 0; display: grid; }
.tp-top__title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15.5px; }
.tp-top__title span { font-size: 12px; color: #a9bccf; }
.tp-timer { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 10px; background: rgba(255, 255, 255, .1); font: 800 18px/1 "Plus Jakarta Sans", sans-serif; font-variant-numeric: tabular-nums; }
.tp-timer.is-low { background: #dc2626; animation: tpPulse 1s infinite; }
@keyframes tpPulse { 50% { opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .tp-timer.is-low { animation: none; } }
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 14px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.tp-btn:hover { border-color: var(--navy); }
.tp-btn:disabled { opacity: .45; cursor: default; }
.tp-btn--primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.tp-btn--primary:hover { background: #1b4462; }
.tp-btn--ghost { background: transparent; }
.tp-btn--mark { background: var(--amber-50); border-color: #f6d29b; color: #8a4b00; }
.tp-btn--submit { background: var(--gold); border-color: var(--gold); color: #08161f; }
.tp-btn--submit:hover { background: #f7b955; border-color: #f7b955; }
.tp-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; }
.tp-main { display: flex; flex-direction: column; min-width: 0; }
.tp-sections { display: flex; gap: 6px; overflow-x: auto; padding: 12px 20px 0; }
.tp-sections button { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 700 13px "Plus Jakarta Sans", sans-serif; color: var(--body); cursor: pointer; }
.tp-sections button.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tp-q { flex: 1; padding: 16px 20px; display: grid; gap: 16px; align-content: start; }
.has-passage .tp-q { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .has-passage .tp-q { grid-template-columns: 1fr; } }
.tp-q__passage { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; max-height: calc(100vh - 220px); overflow-y: auto; font-size: 15px; color: var(--ink); }
.tp-q__plabel { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tp-q__card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.tp-q__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 800; color: var(--ink); }
.tp-chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }
.tp-q__text { color: var(--ink); font-size: 16.5px; margin-bottom: 16px; }
.tp-q__text p { margin: 0 0 10px; }
.tp-q__text img { max-width: 100%; height: auto; }
.tp-opts { display: grid; gap: 10px; }
.tp-opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 500 15px/1.5 "Plus Jakarta Sans", sans-serif; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.tp-opt:hover { border-color: #b9c6d6; }
.tp-opt b { flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); font-size: 13px; }
.tp-opt.is-on { border-color: var(--navy); background: #eef3f8; }
.tp-opt.is-on b { background: var(--navy); color: #fff; }
.tp-nav { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
.tp-nav__space { flex: 1; }
.tp-side { background: #fff; border-left: 1px solid var(--line); }
.tp-side__inner { position: sticky; top: 62px; padding: 16px; max-height: calc(100vh - 62px); overflow-y: auto; }
.tp-side__toggle { display: none; }
.tp-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 12.5px; margin-bottom: 14px; }
.tp-legend span { display: flex; align-items: center; gap: 6px; }
.tp-legend b { margin-left: auto; color: var(--ink); }
.tp-legend i, .tp-palette button { border: 1.5px solid var(--line); background: #fff; }
.tp-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.tp-palette__sec { margin: 12px 0 6px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tp-palette__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tp-palette button { aspect-ratio: 1; border-radius: 9px; font: 700 13px "Plus Jakarta Sans", sans-serif; color: var(--ink); cursor: pointer; position: relative; }
.tp-legend i.is-ans, .tp-palette button.is-ans { background: var(--green); border-color: var(--green); color: #fff; }
.tp-legend i.is-mark, .tp-palette button.is-mark { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.tp-palette button.is-ans.is-mark::after { content: ""; position: absolute; right: 3px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.tp-legend i.is-seen, .tp-palette button.is-seen { background: #fde8e8; border-color: #f5b5b5; color: var(--red); }
.tp-palette button.is-cur { outline: 3px solid var(--gold); outline-offset: 1px; }
.tp-keys { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
.tp kbd { font: 700 11px "Plus Jakarta Sans", sans-serif; padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line); background: var(--bg); }
.tp-modal { position: fixed; inset: 0; z-index: 50; background: rgba(7, 23, 38, .6); display: grid; place-items: center; padding: 16px; }
.tp-modal[hidden] { display: none; }
.tp-modal__box { width: min(440px, 100%); background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.tp-modal__box h2 { margin: 0 0 12px; color: var(--ink); font-size: 20px; }
.tp-modal__sum { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.tp-modal__sum b { color: var(--ink); font-size: 18px; margin-right: 4px; }
.tp-modal__btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.tp :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 900px) {
  .tp-body { grid-template-columns: 1fr; }
  .tp-side { position: fixed; inset: auto 0 0 0; z-index: 30; border-left: 0; border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -16px rgba(0, 0, 0, .3); }
  .tp-side__toggle { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; padding: 10px; border: 0; background: #fff; font: 700 14px "Plus Jakarta Sans", sans-serif; color: var(--ink); cursor: pointer; }
  .tp-side__inner { display: none; position: static; max-height: 55vh; }
  .side-open .tp-side__inner { display: block; }
  .tp-palette__grid { grid-template-columns: repeat(8, 1fr); }
  .tp-nav { bottom: 44px; }
  .tp-nav .tp-btn { flex: 1 1 auto; }
  .tp-nav__space { display: none; }
  .tp-top { flex-wrap: wrap; padding: 8px 12px; }
  .tp-top__title span { display: none; }
  .tp-q, .tp-sections { padding-left: 12px; padding-right: 12px; }
  body.tp { padding-bottom: 44px; }
}

/* ================= Student dashboard: tests, results, learning ================= */
.el-tests { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.el-testcard { background: #fff; border: 1px solid var(--el-line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, box-shadow .2s; }
.el-testcard:hover { border-color: var(--el-gold-500); box-shadow: var(--el-shadow); }
.el-testcard__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.el-testcard__type { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--el-muted); }
.el-testcard h3 { font-size: 16.5px !important; font-weight: 800; margin: 0; color: var(--el-ink); line-height: 1.35; }
.el-testcard__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 13px; color: var(--el-muted); }
.el-testcard__meta i { margin-right: 4px; }
.el-testcard__when { margin: 0; font-size: 12.5px; color: #a35f00; }
.el-testcard__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--el-line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 8px; font-size: 13.5px; }
.el-testcard__foot > .el-muted, .el-testcard__best { white-space: nowrap; }
/* Two buttons (closed All-India mock: Rank list + Practise): beside the status when they fit, else a full-width row of equal buttons. */
.el-testcard__acts { flex: 1 0 auto; display: flex; justify-content: flex-end; gap: 6px; }
.el-testcard__acts .el-btn { flex: 1 1 0; justify-content: center; padding-left: 12px; padding-right: 12px; }
.el-testcard__best { font-weight: 800; color: #157a43; }
.el-teststart { display: grid; gap: 20px; }
.el-teststart__facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.el-teststart__facts div { background: var(--el-bg); border-radius: 14px; padding: 12px; text-align: center; }
.el-teststart__facts strong { display: block; font-size: 22px; color: var(--el-ink); }
.el-teststart__facts span { font-size: 12.5px; color: var(--el-muted); }
@media (max-width: 560px) { .el-teststart__facts { grid-template-columns: repeat(2, 1fr); } }
.el-teststart__h { font-size: 15px !important; font-weight: 800; margin: 18px 0 8px; }
.el-teststart__past { list-style: none; margin: 0; padding: 0; }
.el-teststart__past li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--el-line); }
.el-teststart__past li:first-child { border-top: 0; }
.el-teststart__past span { flex: 1; color: var(--el-muted); font-size: 14px; }
.el-result { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: center; background: #fff; border: 1px solid var(--el-line); border-radius: 20px; padding: 22px; }
@media (max-width: 700px) { .el-result { grid-template-columns: 1fr; justify-items: center; } }
.el-result__ring { width: 170px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--el-gold-500) calc(var(--p) * 1%), var(--el-bg) 0); }
.el-result__ring strong { font-size: 36px; color: var(--el-ink); line-height: 1; }
.el-result__ring span { font-size: 13px; color: var(--el-muted); }
.el-result__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; width: 100%; }
.el-result__stats div { background: var(--el-bg); border-radius: 14px; padding: 12px; }
.el-result__stats strong { display: block; font-size: 20px; color: var(--el-ink); }
.el-result__stats strong.is-ok { color: #157a43; }
.el-result__stats strong.is-bad { color: #b42318; }
.el-result__stats span { font-size: 12.5px; color: var(--el-muted); }
.el-bar { height: 8px; border-radius: 999px; background: var(--el-bg); overflow: hidden; }
.el-bar span { display: block; height: 100%; border-radius: 999px; background: var(--el-blue-600); }
.el-bar span.is-ok { background: #16a34a; }
.el-bar span.is-mid { background: var(--el-gold-500); }
.el-bar span.is-bad { background: #dc2626; }
.el-review-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.el-review { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.el-review__q { border: 1px solid var(--el-line); border-left-width: 4px; border-radius: 14px; padding: 14px 16px; }
.el-review__q.is-correct { border-left-color: #16a34a; }
.el-review__q.is-wrong { border-left-color: #dc2626; }
.el-review__q.is-skipped { border-left-color: #94a3b8; }
.el-review__head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; color: var(--el-muted); margin-bottom: 8px; }
.el-review__badge { text-transform: uppercase; letter-spacing: .06em; }
.is-correct .el-review__badge { color: #157a43; }
.is-wrong .el-review__badge { color: #b42318; }
.el-review__opts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.el-review__opts li { padding: 8px 12px; border-radius: 10px; background: var(--el-bg); font-size: 14.5px; color: var(--el-ink); }
.el-review__opts li b { margin-right: 6px; }
.el-review__opts li em { float: right; font-style: normal; font-size: 12px; font-weight: 800; }
.el-review__opts li.is-right { background: #e7f7ee; }
.el-review__opts li.is-right em { color: #157a43; }
.el-review__opts li.is-chosen-wrong { background: #fde8e8; }
.el-review__opts li.is-chosen-wrong em { color: #b42318; }
.el-review__exp { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--el-gold-50); font-size: 14.5px; color: var(--el-ink); }
.el-review__exp strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #a35f00; margin-bottom: 4px; }
.el-review__exp p { margin: 0 0 6px; }
.el-review__passage { margin-bottom: 8px; font-size: 14.5px; }
.el-review__passage summary { cursor: pointer; font-weight: 700; color: var(--el-blue-600); }
.el-mycourses { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.el-mycourse { background: #fff; border: 1px solid var(--el-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.el-mycourse img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.el-mycourse__body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.el-mycourse h3 { font-size: 16.5px !important; font-weight: 800; margin: 0; }
.el-mycourse p { margin: 0; font-size: 13.5px; }
.el-learn { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .el-learn { grid-template-columns: 1fr; } }
.el-learn__side { position: sticky; top: calc(var(--el-header-h, 72px) + 16px); max-height: calc(100vh - 120px); overflow-y: auto; padding: 14px !important; }
.el-learn__side details { border-bottom: 1px solid var(--el-line); padding: 6px 0; }
.el-learn__side summary { cursor: pointer; font-weight: 800; color: var(--el-ink); padding: 6px 4px; display: flex; justify-content: space-between; font-size: 14.5px; }
.el-learn__side summary small { color: var(--el-muted); }
.el-learn__side ol { list-style: none; margin: 0; padding: 0; }
.el-learn__side li a { display: flex; gap: 10px; align-items: baseline; padding: 8px 8px; border-radius: 10px; color: var(--el-body) !important; font-size: 14px; text-decoration: none !important; }
.el-learn__side li a:hover { background: var(--el-bg); }
.el-learn__side li.is-cur a { background: var(--el-gold-50); color: var(--el-ink) !important; font-weight: 700; }
.el-learn__side li i { color: var(--el-muted); width: 16px; }
.el-learn__side li .fa-circle-check { color: #16a34a; }
.el-learn__side li span { flex: 1; }
.el-learn__side li small { color: var(--el-muted); }
.el-learn__side li em { font-style: normal; font-size: 11px; font-weight: 800; color: #157a43; }
.el-learn__locked { text-align: center; padding: 40px 20px !important; }
.el-learn__locked > i { font-size: 34px; color: var(--el-muted); }
.el-live { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--el-line); }
.el-live:first-of-type { border-top: 0; }
.el-live__date { flex-shrink: 0; width: 54px; text-align: center; border-radius: 12px; background: var(--el-bg); padding: 6px 0; }
.el-live__date b { display: block; font-size: 20px; color: var(--el-ink); line-height: 1.1; }
.el-live__date span { font-size: 11.5px; font-weight: 800; text-transform: uppercase; color: var(--el-muted); }
.el-live__main { flex: 1; min-width: 0; display: grid; }
.el-live__main strong { color: var(--el-ink); }
.el-live__main span, .el-live__main small { font-size: 13px; color: var(--el-muted); }
.el-live.is-live .el-live__date { background: #fde8ec; }
.el-live.is-live .el-live__date b { color: #e11d48; }
.el-live.is-past { opacity: .8; }
.el-announce-list { list-style: none; margin: 0; padding: 0; }
.el-announce-list li { padding: 12px 0; border-top: 1px solid var(--el-line); display: grid; gap: 4px; }
.el-announce-list li:first-child { border-top: 0; }
.el-announce-list strong { color: var(--el-ink); }
.el-announce-list p { margin: 0; font-size: 14px; }
.el-announce-list small { color: var(--el-muted); font-size: 12px; }
.el-announce-list .is-pinned strong::before { content: "Pinned · "; color: #a35f00; }
.el-lessonlist { list-style: none; margin: 0; padding: 0; }
.el-lessonlist li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--el-line); font-size: 14.5px; }
.el-lessonlist li:first-child { border-top: 0; }
.el-lessonlist li > i:first-child { color: var(--el-blue-600); width: 18px; }
.el-lessonlist li span { flex: 1; color: var(--el-ink); }
.el-lessonlist li small { color: var(--el-muted); white-space: nowrap; }
.el-lessonlist li .fa-lock { color: var(--el-muted); }

/* Uploaded lesson video (student.learn) */
.el-video video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }

/* Series page: online tests with type / window */
.el-testlist__meta { display: block; font-style: normal; font-size: 12.5px; color: var(--el-muted); margin-top: 2px; }
.el-testlist__meta b { font-weight: 700; }
.el-testlist__meta .is-free { color: #15803d; }
.el-testlist__meta .is-live { color: #b91c1c; }

/* ELET seat card (student dashboard) */
.el-seat { display: flex; gap: 16px; align-items: flex-start; padding: 20px; margin-bottom: 20px; border: 1px solid var(--el-line); border-radius: 18px; background: var(--el-surface, #fff); }
.el-seat--free { background: linear-gradient(135deg, #0b2a4a, #12406e); color: #fff; border-color: transparent; }
.el-seat--free h2, .el-seat--free p, .el-seat--free .el-eyebrow { color: #fff; }
.el-seat--free .el-eyebrow { opacity: .8; }
.el-seat__badge { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--el-gold-50, #fff6e0); color: var(--el-gold-600, #b7791f); }
.el-seat--free .el-seat__badge { background: rgba(255, 255, 255, .14); color: #ffd36b; }
.el-seat__body { flex: 1; min-width: 0; }
.el-seat__body h2 { font-size: 20px; margin: 4px 0 6px; }
.el-seat__body p { margin: 0 0 12px; }
.el-seat__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.el-seat__list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--el-bg); }
.el-seat--free .el-seat__list li { background: rgba(255, 255, 255, .08); }
.el-seat__list li span { flex: 1; min-width: 0; font-weight: 600; }
.el-seat__list small { font-weight: 500; margin-left: 6px; }
.el-seat__form { display: grid; gap: 6px; max-width: 520px; }
.el-seat__form label { font-size: 13.5px; font-weight: 600; }
.el-seat__row { display: flex; gap: 8px; flex-wrap: wrap; }
.el-seat__row .el-input { flex: 1; min-width: 180px; }
.el-field-error { color: #b91c1c; font-size: 13px; }
@media (max-width: 560px) { .el-seat { flex-direction: column; } }

/* Course / series buy box: ELET seat states */
.el-seatnote { display: flex; gap: 8px; align-items: center; margin: 8px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; background: var(--el-gold-50, #fff6e0); color: #8a5a00; }
.el-seatnote--free { background: #e8f7ee; color: #15603a; }

/* ================= Mock tests home / series pages (student) ================= */
.el-msec { margin-bottom: 26px; }
.el-msec__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.el-msec__head h2 { font-size: 18px !important; font-weight: 800; margin: 0; color: var(--el-ink); display: flex; gap: 8px; align-items: center; }
.el-msec__head h2 i { color: var(--el-gold-500, #f2a52b); font-size: 15px; }
.el-msec__head > span { font-size: 13px; color: var(--el-muted); }
.el-msec__head--tools { justify-content: space-between; }
.el-mupnext { margin-bottom: 18px; }
.el-mupnext .el-testcard { max-width: 560px; }
.el-mupnext--elet .el-testcard { border-color: #b7e4c7; background: linear-gradient(180deg, #f2fbf5, #fff); }
.el-mseries { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.el-mseries__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--el-line); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none !important; transition: border-color .2s, box-shadow .2s, transform .2s; }
.el-mseries__card:hover { border-color: var(--el-gold-500, #f2a52b); box-shadow: var(--el-shadow); transform: translateY(-2px); }
.el-mseries__img { position: relative; aspect-ratio: 2 / 1; background: linear-gradient(135deg, #0b2a4a, #14467a); display: grid; place-items: center; color: rgba(255, 255, 255, .5); font-size: 30px; }
.el-mseries__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.el-mseries__src { position: absolute; left: 10px; top: 10px; z-index: 1; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(11, 34, 54, .82); color: #fff; backdrop-filter: blur(4px); }
.el-mseries__src--inline { position: static; align-self: flex-start; background: var(--el-blue-50, #e9f1fd); color: var(--el-blue-600, #1663c7); }
.el-mseries__src--free { background: var(--el-green-50, #e7f7ed); color: #15603a; }
.el-mseries__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.el-mseries__body h3 { font-size: 16px !important; font-weight: 800; margin: 0; color: var(--el-ink); line-height: 1.35; }
.el-mseries__meta { margin: 0; font-size: 13px; color: var(--el-muted); }
.el-mseries__next { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: #8a5a00; display: flex; gap: 6px; align-items: baseline; }
.el-mseries__next.is-live { color: #b91c1c; }
.el-mseries__go { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 800; color: var(--el-blue-600, #1663c7); }
.el-mseries__card--slim { min-height: 150px; }
.el-mseries__card--locked .el-mseries__img::after { content: ""; position: absolute; inset: 0; background: rgba(11, 26, 44, .35); }
.el-mhero { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--el-line); border-radius: 18px; padding: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.el-mhero__img { width: 200px; max-width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; }
.el-mhero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; flex: 1; min-width: 260px; }
.el-mhero__stats div { background: var(--el-bg); border-radius: 12px; padding: 10px 12px; }
.el-mhero__stats strong { display: block; font-size: 20px; font-weight: 800; color: var(--el-ink); }
.el-mhero__stats span { font-size: 12px; color: var(--el-muted); }
.el-mfilter { display: flex; gap: 6px; flex-wrap: wrap; }
.el-mfilter button { border: 1px solid var(--el-line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--el-ink-2, #3d5068); cursor: pointer; }
.el-mfilter button.is-on { background: var(--el-navy-800, #0b2a4a); border-color: transparent; color: #fff; }
.el-testcard.is-pinned { border-color: #f5d28a; box-shadow: 0 0 0 3px rgba(242, 165, 43, .12); }
.el-testcard.is-live { border-color: #f3b4b4; }
/* A closed test dims its details, not its buttons (Rank list / Result / Practise still work). */
.el-testcard.is-closed > :not(.el-testcard__foot), .el-testcard.is-closed .el-testcard__foot > .el-muted { opacity: .72; }
.el-testcard__type i { color: var(--el-gold-500, #f2a52b); }
.el-testcard__when.is-live { color: #b91c1c; }
.el-testcard__when.is-closed { color: var(--el-muted); }
.el-tag--red { background: #fdecec; color: #b91c1c; }
@media (max-width: 560px) { .el-mhero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; } }
.el-learn__mocks { display: grid; gap: 6px; padding: 12px; margin-bottom: 14px; border-radius: 14px; background: var(--el-gold-50, #fff6e0); }
.el-learn__mocks strong { font-size: 13.5px; color: var(--el-ink); }
.el-learn__mocks strong i { color: var(--el-gold-500, #f2a52b); }
.el-learn__mocks a { font-size: 13.5px; font-weight: 700; color: var(--el-blue-600, #1663c7); display: flex; gap: 8px; align-items: center; }

/* Readable text on the dark seat card (site heading styles were overriding it) */
.el-seat--free h2, .el-seat--free p, .el-seat--free .el-eyebrow { color: #fff !important; }
.el-seat--free .el-eyebrow { opacity: .85; }
.el-seat--free a:not(.el-btn) { color: #ffd36b; }

/* ================= Online ELET exam card (#online-exam) ================= */
.el-examcard { background: #fff; border: 1px solid var(--el-line); border-radius: 20px; margin-bottom: 22px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 31, 51, .04); scroll-margin-top: 100px; }
.el-examcard__head { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; background: linear-gradient(135deg, #f4f8ff, #fff); border-bottom: 1px solid var(--el-line); }
.el-examcard.is-done .el-examcard__head { background: linear-gradient(135deg, #effaf3, #fff); }
.el-examcard__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--el-blue-50, #e9f1fd); color: var(--el-blue-600, #1663c7); }
.el-examcard.is-done .el-examcard__icon { background: #dcf3e5; color: #15803d; }
.el-examcard__head > div { flex: 1; min-width: 0; }
.el-examcard__eyebrow { display: block; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--el-muted); }
.el-examcard__head h2 { font-size: 20px !important; font-weight: 800; color: var(--el-ink) !important; margin: 4px 0 4px; line-height: 1.3; }
.el-examcard__head p { margin: 0; font-size: 14px; color: var(--el-muted); }
.el-examcard__state { flex: none; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--el-bg); color: var(--el-ink); white-space: nowrap; }
.el-examcard__state.is-live, .el-examcard__state.is-open { background: #fdecec; color: #b91c1c; }
.el-examcard__state.is-upcoming { background: var(--el-gold-50, #fff6e0); color: #8a5a00; }
.el-examcard__state.is-submitted, .el-examcard__state.is-result { background: #dcf3e5; color: #15603a; }
.el-examcard__state.is-in_progress { background: var(--el-blue-50, #e9f1fd); color: var(--el-blue-600, #1663c7); }
.el-examcard__body { padding: 18px 22px 22px; }
.el-examcard__body p { margin: 0 0 14px; color: var(--el-ink-2, #3d5068); }
.el-examcard__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; padding: 18px 22px 0; }
.el-examcard__grid div { background: var(--el-bg); border-radius: 12px; padding: 10px 14px; }
.el-examcard__grid dt { font-size: 12px; font-weight: 700; color: var(--el-muted); text-transform: uppercase; letter-spacing: .04em; }
.el-examcard__grid dd { margin: 3px 0 0; font-size: 15px; font-weight: 700; color: var(--el-ink); }
.el-examcard__grid dd small { font-weight: 600; color: var(--el-muted); }
.el-examcard__grid dd.is-ok { color: #15803d; }
.el-examcard__grid dd.is-bad { color: #b91c1c; }
.el-examcard__result { display: flex; gap: 16px; align-items: stretch; padding: 16px 22px 0; flex-wrap: wrap; }
.el-examcard__score { display: grid; place-content: center; text-align: center; min-width: 140px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(135deg, #0b2a4a, #14467a); color: #fff; }
.el-examcard__score strong { font-size: 34px; font-weight: 800; line-height: 1; }
.el-examcard__score span { font-size: 13px; opacity: .8; margin-top: 4px; }
.el-examcard__grid--result { flex: 1; padding: 0; min-width: 260px; }
.el-examcard .el-table-wrap { margin: 16px 22px 0; }
.el-examcard__note { margin: 16px 22px 20px; padding: 12px 14px; border-radius: 12px; background: var(--el-bg); font-size: 14px; color: var(--el-ink-2, #3d5068); display: flex; gap: 10px; align-items: baseline; }
@media (max-width: 560px) { .el-examcard__head { flex-wrap: wrap; } .el-examcard__state { order: -1; } }

/* ================= Locked YouTube player (lessons) ================= */
.el-ytlock { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; margin: 0 0 16px; -webkit-user-select: none; user-select: none; outline: none; }
.el-ytlock:focus-visible { box-shadow: 0 0 0 3px rgba(22, 99, 199, .45); }
.el-ytlock__frame, .el-ytlock__frame iframe, .el-ytlock__yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Taller than the box: YouTube's own top title bar and bottom logo strip sit outside the visible area. */
.el-ytlock__frame { top: -60px; bottom: -60px; height: auto; }
.el-ytlock__shield { position: absolute; inset: 0 0 52px; z-index: 2; cursor: pointer; background: transparent; }
.el-ytlock__cover { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: radial-gradient(circle, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55)); transition: opacity .2s; }
.el-ytlock.is-playing .el-ytlock__cover, .el-ytlock.is-started:not(.is-ended) .el-ytlock__cover { opacity: 0; pointer-events: none; }
.el-ytlock.is-ended .el-ytlock__cover { background: #0b2a4a; }   /* hides YouTube’s end-screen suggestions */
.el-ytlock__big { width: 74px; height: 74px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: #0b2a4a; font-size: 26px; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.el-ytlock__big i { margin-left: 4px; }
.el-ytlock__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 52px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .85) 40%); color: #fff; }
.el-ytlock__bar button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 1px; font-size: 15px; }
.el-ytlock__bar button small { font-size: 9px; font-weight: 700; }
.el-ytlock__bar button:hover, .el-ytlock__bar button:focus-visible { background: rgba(255, 255, 255, .16); }
.el-ytlock__time { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.el-ytlock__seek { flex: 1; min-width: 60px; accent-color: #f2a52b; }
.el-ytlock__vol { width: 70px; accent-color: #fff; }
.el-ytlock__speed { background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 6px; padding: 4px 4px; font-size: 12.5px; }
.el-ytlock__speed option { color: #000; }
.el-ytlock:fullscreen, .el-ytlock:-webkit-full-screen { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.el-ytlock__err { color: #fff; display: grid; place-items: center; height: 100%; margin: 0; }
@media (max-width: 560px) { .el-ytlock__vol, .el-ytlock__bar [data-a="back"], .el-ytlock__bar [data-a="fwd"] { display: none; } }

/* Notifications (student) */
.el-dash__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; }
.el-notes { list-style: none; margin: 0; padding: 0; }
.el-notes li { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--el-line); }
.el-notes li:first-child { border-top: 0; }
.el-notes li.is-new { background: #f4f8ff; }
.el-notes__icon { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--el-bg); color: var(--el-blue-600, #1663c7); }
.el-notes li.is-new .el-notes__icon { background: var(--el-blue-50, #e9f1fd); }
.el-notes__body { flex: 1; min-width: 0; }
.el-notes__body strong { display: block; color: var(--el-ink); }
.el-notes__body p { margin: 2px 0 0; font-size: 14px; color: var(--el-ink-2, #3d5068); }
.el-notes__body small { color: var(--el-muted); font-size: 12.5px; }

/* Result analysis + report a mistake */
.el-compare { display: grid; gap: 8px; max-width: 560px; }
.el-compare__row { display: grid; grid-template-columns: 70px 1fr 50px; gap: 10px; align-items: center; font-size: 14px; }
.el-compare__row b { text-align: right; }
.el-compare__row .el-bar span { background: #94a3b8; }
.el-compare__row.is-you .el-bar span { background: var(--el-blue-600, #1663c7); }
.el-compare__row.is-top .el-bar span { background: #f2a52b; }
.el-topictag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--el-bg); color: var(--el-muted); }
.el-topictag.is-strong { background: #e7f7ed; color: #15603a; }
.el-topictag.is-improve { background: #fff4e0; color: #8a4b00; }
.el-topictag.is-weak { background: #fdecec; color: #a11d1d; }
.el-report { margin-top: 10px; font-size: 13.5px; }
.el-report summary { cursor: pointer; color: var(--el-muted); font-weight: 600; }
.el-report form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.el-report .el-select, .el-report .el-input { flex: 1 1 200px; min-width: 0; }

/* Pictures in reviewed questions (diagrams, figure options, solution figures) */
.el-review__fig { display: inline-block; margin: 6px 0 10px; padding: 6px; border: 1px solid var(--el-line, #e3e8ef); border-radius: 12px; background: #fff; cursor: zoom-in; }
.el-review__fig img { display: block; max-width: 100%; max-height: 360px; width: auto; height: auto; border-radius: 6px; }
.el-review__optimg { display: block; max-width: min(100%, 280px); max-height: 160px; width: auto; height: auto; margin: 6px 0 2px; border-radius: 8px; border: 1px solid var(--el-line, #e3e8ef); background: #fff; }

/* ================= Mock tests by exam (front/partials/mock-hub, student/mock-hub, front/mock-tests): prefix "mh-" ================= */
.mh-exams { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 14px; scrollbar-width: thin; }
.mh-exams a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--el-line); background: #fff; color: var(--el-ink) !important; font-size: 13.5px; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.mh-exams a:hover { border-color: var(--el-blue-600); color: var(--el-blue-600) !important; }
.mh-exams a.is-on { background: var(--el-navy-800); border-color: var(--el-navy-800); color: #fff !important; }
.mh-exams a i.fa-star { color: var(--el-gold-500); font-size: 11px; }
.mh-switch { width: 300px; max-height: min(70vh, 520px); overflow: auto; }
.mh-switch__group { padding: 10px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--el-muted); }
.mh-switch a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--el-ink) !important; text-decoration: none !important; font-size: 14px; font-weight: 600; }
.mh-switch a:hover { background: var(--el-bg); }
.mh-switch a.is-on { background: var(--el-blue-50); color: var(--el-blue-600) !important; }
.mh-switch a b { font-size: 12px; color: var(--el-muted); font-weight: 700; }
.mh-switch a i.fa-star { color: var(--el-gold-500); font-size: 11px; }
.mh-switch__set { margin-top: 6px; border-top: 1px solid var(--el-line); border-radius: 0 0 10px 10px !important; color: var(--el-blue-600) !important; justify-content: flex-start !important; }

.mh-strip { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 900px) { .mh-strip { grid-template-columns: 1fr; } }
.mh-live { position: relative; overflow: hidden; display: grid; gap: 6px; align-content: start; padding: 18px 20px; border-radius: 18px; color: #fff !important; text-decoration: none !important;
    background: radial-gradient(120% 160% at 100% 0%, #1d5491 0%, #0d2d55 55%, #071629 100%); }
.mh-live.is-live { background: radial-gradient(120% 160% at 100% 0%, #e04848 0%, #a51f2a 55%, #6b0f19 100%); }
.mh-live.is-quiet { color: var(--el-ink) !important; background: #fff; border: 1px dashed #cfd8e5; }
.mh-live__badge { justify-self: start; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mh-live.is-quiet .mh-live__badge { background: var(--el-gold-50, #fff5e0); color: #9a5b00; }
.mh-live strong { font-size: 18px; line-height: 1.3; }
.mh-live__when { font-size: 13.5px; opacity: .85; display: flex; gap: 6px; align-items: center; }
.mh-live__go { margin-top: 6px; font-weight: 800; font-size: 14px; color: var(--el-gold-400, #ffcf6e); }
.mh-live.is-live .mh-live__go { color: #fff; }
.mh-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mh-stats div { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--el-line); }
.mh-stats strong { display: block; font-size: 22px; line-height: 1.1; color: var(--el-ink); font-variant-numeric: tabular-nums; }
.mh-stats span { font-size: 12.5px; color: var(--el-muted); }

.mh-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px; margin: 0 0 10px; border-radius: 16px; background: #fff; border: 1px solid var(--el-line); scrollbar-width: thin; }
.mh-tabs a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; color: #3d5068 !important; font-size: 14px; font-weight: 700; text-decoration: none !important; white-space: nowrap; transition: background .18s, color .18s; }
.mh-tabs a i { color: var(--el-muted); font-size: 13px; }
.mh-tabs a b { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--el-bg); font-size: 11.5px; color: var(--el-muted); }
.mh-tabs a:hover { background: var(--el-bg); }
.mh-tabs a.is-on { background: var(--el-navy-800); color: #fff !important; }
.mh-tabs a.is-on i { color: var(--el-gold-400, #ffcf6e); }
.mh-tabs a.is-on b { background: rgba(255, 255, 255, .16); color: #fff; }
.mh-tabs a.is-empty:not(.is-on) { opacity: .6; }
.mh-hint { margin: 0 0 14px; font-size: 13.5px; color: var(--el-muted); }
.mh-hint i { color: var(--el-blue-600); margin-right: 4px; }

.mh-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.mh-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #fff; border: 1px solid var(--el-line); }
.mh-seg a { padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--el-muted) !important; text-decoration: none !important; white-space: nowrap; }
.mh-seg a.is-on { background: var(--el-blue-50); color: var(--el-blue-600) !important; }
.mh-select { height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--el-line); background: #fff; font: 600 13.5px var(--el-font); color: var(--el-ink); }
.mh-check { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--el-line); background: #fff; font-size: 13.5px; font-weight: 700; color: var(--el-ink); cursor: pointer; }
.mh-check input { accent-color: #157a43; }
.mh-clear { font-size: 13px; font-weight: 800; color: #c4302b !important; }
.mh-count { margin-left: auto; font-size: 13px; color: var(--el-muted); }
.mh-grid { margin-bottom: 8px; }
.mh-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 40px 20px; border-radius: 18px; background: #fff; border: 1px dashed #cfd8e5; color: var(--el-muted); }
.mh-empty > i { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--el-bg); color: #9aa8bb; font-size: 22px; }
.mh-empty strong { color: var(--el-ink); font-size: 16px; }
.mh-empty span { max-width: 52ch; font-size: 14px; }

.el-testcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 0; }
.el-testcard__tags span { padding: 2px 9px; border-radius: 999px; background: var(--el-bg); color: #3d5068; font-size: 11.5px; font-weight: 700; }
.el-testcard__lock { font-size: 12.5px; display: inline-flex; gap: 6px; align-items: baseline; min-width: 0; }

.mh-packs { margin-top: 28px; }
.mh-packs__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.mh-packs__head h2 { margin: 0 !important; font-size: 18px !important; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.mh-packs__head h2 i { color: var(--el-gold-500); }
.mh-packs__head span { font-size: 13.5px; color: var(--el-muted); }
.mh-packs__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mh-pack { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--el-line); color: var(--el-ink) !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s; }
.mh-pack:hover { transform: translateY(-3px); box-shadow: var(--el-shadow); }
.mh-pack img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.mh-pack__body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.mh-pack__body strong { font-size: 15.5px; line-height: 1.3; }
.mh-pack__price { font-size: 20px; font-weight: 800; color: var(--el-ink); display: flex; gap: 8px; align-items: baseline; }
.mh-pack__price s { font-size: 13.5px; font-weight: 600; color: var(--el-muted); }
.mh-pack__facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--el-muted); }
.mh-pack__go { font-weight: 800; font-size: 14px; color: var(--el-blue-600); }

.mh-group { margin-bottom: 32px; }
.mh-group__h { font-size: clamp(19px, 2.2vw, 24px) !important; margin: 0 0 14px !important; }
.mh-examcards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.mh-examcard { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--el-line); color: var(--el-ink) !important; text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.mh-examcard:hover { transform: translateY(-3px); box-shadow: var(--el-shadow); border-color: var(--el-gold-500); }
.mh-examcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mh-examcard__top strong { font-size: 18px; }
.mh-examcard__top em { font-style: normal; padding: 3px 9px; border-radius: 999px; background: #e7f6ee; color: #157a43; font-size: 12px; font-weight: 800; white-space: nowrap; }
.mh-examcard small { color: var(--el-muted); font-size: 13px; line-height: 1.4; }
.mh-examcard__tabs { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: #3d5068; }
.mh-examcard__tabs i { color: var(--el-blue-600); }
.mh-examcard__go { margin-top: 4px; font-weight: 800; font-size: 14px; color: var(--el-blue-600); }

/* Locked mock card: what unlocks it on one line, a full-width button under it (no price spilling out of the card). */
.el-testcard.is-locked { opacity: 1; background: #fbfcfe; }
.el-testcard.is-locked h3, .el-testcard.is-locked .el-testcard__meta { opacity: .8; }
.el-testcard.is-locked .el-testcard__foot { flex-direction: column; align-items: stretch; gap: 8px; }
.el-testcard.is-locked .el-testcard__lock { display: flex; align-items: center; min-width: 0; }
.el-testcard.is-locked .el-testcard__lock span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.el-testcard.is-locked .el-testcard__foot .el-btn { width: 100%; justify-content: center; white-space: nowrap; }
.el-testcard__foot .el-btn { white-space: nowrap; flex-shrink: 0; }

/* "Registered for ELET?" — one line that opens to the form. */
.el-claim { margin-bottom: 20px; border: 1px solid var(--el-line); border-radius: 16px; background: #fff; overflow: hidden; }
.el-claim__bar { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; user-select: none; }
.el-claim__bar::-webkit-details-marker { display: none; }
.el-claim__bar:hover { background: #fffbf2; }
.el-claim__bar:focus-visible { outline: 3px solid var(--el-gold-400, #ffc53d); outline-offset: -3px; }
.el-claim__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--el-gold-50, #fff6e0); color: var(--el-gold-600, #b7791f); font-size: 15px; }
.el-claim__text { flex: 1; min-width: 0; font-size: 14.5px; color: var(--el-body, #3d5068); line-height: 1.4; }
.el-claim__text strong { color: var(--el-ink); font-size: 15px; }
.el-claim__cta { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--el-gold-500, #f5a524); color: #08161f; font-size: 13.5px; font-weight: 800; }
.el-claim__cta i { font-size: 11px; transition: transform .2s; }
.el-claim__close { display: none; }
.el-claim[open] .el-claim__open { display: none; }
.el-claim[open] .el-claim__close { display: inline; }
.el-claim[open] .el-claim__cta { background: var(--el-bg); }
.el-claim[open] .el-claim__cta i { transform: rotate(180deg); }
.el-claim[open] .el-claim__bar { border-bottom: 1px solid var(--el-line); }
.el-claim__body { padding: 14px 16px 16px 64px; }
@media (max-width: 640px) {
  .el-claim__text span { display: none; }
  .el-claim__body { padding: 14px 16px 16px; }
}

/* Homework */
.el-hw__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.el-hw__title { margin: 0 0 4px !important; font-size: 17px !important; font-weight: 800; color: var(--el-ink); line-height: 1.35; }
.el-hw__facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 13px; color: var(--el-muted); }
.el-hw__facts i { margin-right: 5px; }
.el-hw__ins { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--el-bg); font-size: 14.5px; line-height: 1.6; white-space: pre-line; color: var(--el-body, #3d5068); }
.el-hw__ins strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--el-muted); margin-bottom: 4px; }
.el-hw__files { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.el-hw__file { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--el-line); background: #fff; font-size: 13.5px; font-weight: 700; color: var(--el-ink) !important; text-decoration: none !important; }
.el-hw__file:hover { border-color: var(--el-gold-500); }
.el-hw__file i { color: #c4302b; }
.el-hw__mine { margin: 14px 0 0; border-top: 1px solid var(--el-line); padding-top: 12px; }
.el-hw__mine h4 { margin: 0 0 6px !important; font-size: 13px !important; text-transform: uppercase; letter-spacing: .06em; color: var(--el-muted); font-weight: 800; }
.el-hw__answer { margin: 0; white-space: pre-line; font-size: 14.5px; line-height: 1.6; color: var(--el-ink); }
.el-hw__fb { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff7e6; border-left: 4px solid var(--el-gold-500, #f5a524); }
.el-hw__fb strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #8a5a00; margin-bottom: 4px; }
.el-hw__fb p { margin: 0; white-space: pre-line; }
.el-hw__sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.el-hw__sum div { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--el-line); }
.el-hw__sum strong { display: block; font-size: 22px; color: var(--el-ink); line-height: 1.1; }
.el-hw__sum span { font-size: 12.5px; color: var(--el-muted); }
.el-panel.el-hw { border-left: 4px solid var(--el-line); }
.el-panel.el-hw.is-due { border-left-color: var(--el-gold-500, #f5a524); }
.el-panel.el-hw.is-submitted { border-left-color: var(--el-blue-600, #1d63c9); }
.el-panel.el-hw.is-graded { border-left-color: #16a34a; }
.el-panel.el-hw.is-missed { border-left-color: #dc2626; }

/* Dashboard "Attempt a real exam paper": compact rows, actions on the right. */
.hm-card .pq-list { gap: 0 !important; }
.hm-card .pq-list > li + li { border-top: 1px solid var(--el-line); }
.hm-card .pq-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; row-gap: 4px; padding: 12px 2px; border: 0; border-radius: 0; background: none; box-shadow: none; min-height: 0; }
.hm-card .pq-card:hover { transform: none; box-shadow: none; }
.hm-card .pq-card > * { grid-column: 1; }
.hm-card .pq-card__acts { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 0; flex-wrap: nowrap; }
.hm-card .pq-card__title { margin: 0 !important; }
.hm-card .pq-card__year { font-size: 15.5px; }
.hm-card .pq-card__kind { font-size: 12.5px; }
.hm-card .pq-card__mono { width: 40px; height: 40px; border-radius: 12px; font-size: 11.5px; }
.hm-card .pq-card__acts { border-top: 0; }
.hm-card .pq-btn { height: 36px; padding: 0 12px; font-size: 13px; }
@media (max-width: 560px) {
  .hm-card .pq-card { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  .hm-card .pq-card__acts { grid-column: 1; grid-row: auto; }
}

/* ---------- Student watermark on lesson videos (el-watermark.js) ---------- */
[data-wm] { position: relative; }
.el-wm { position: absolute; z-index: 6; top: 12%; left: 8%; pointer-events: none; user-select: none; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis;
    font: 700 clamp(11px, 1.6vw, 15px)/1.2 var(--el-font); letter-spacing: .02em; color: rgba(255, 255, 255, .55); text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
    transition: top 2.2s ease-in-out, left 2.2s ease-in-out; }
.el-wm--corner { top: auto !important; left: auto !important; right: 12px; bottom: 58px; font-size: 11px; color: rgba(255, 255, 255, .32); transition: none; }
.el-wm-fs { position: absolute; z-index: 7; top: 10px; right: 10px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; opacity: .75; transition: opacity .2s, background .2s; }
.el-wm-fs:hover, .el-wm-fs:focus-visible { opacity: 1; background: rgba(0, 0, 0, .7); }
[data-wm]:fullscreen { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; border-radius: 0; margin: 0 !important; background: #000; }
[data-wm]:fullscreen video { width: 100%; height: 100%; }
[data-wm]:fullscreen .el-wm { font-size: 18px; }
[data-wm]:-webkit-full-screen { width: 100vw; height: 100vh; border-radius: 0; background: #000; }
@media print { [data-wm] video, [data-wm] iframe { visibility: hidden; } }

/* ---------- Push notifications card (student/partials/push-card.blade.php) ---------- */
.el-push { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 16px; border-radius: 16px; background: linear-gradient(135deg, #f2f7ff, #fff); border: 1px solid #d7e5fa; }
.el-push[data-state="on"] { background: #f1faf4; border-color: #cfe9d8; }
.el-push[data-state="blocked"] { background: #fff8ec; border-color: #f3dca6; }
.el-push__icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #0b2236; color: #f5c451; font-size: 18px; }
.el-push[data-state="on"] .el-push__icon { background: #15803d; color: #fff; }
.el-push__text { flex: 1; min-width: 0; }
.el-push__text strong { display: block; font-size: 15px; color: var(--el-ink, #0f1f33); }
.el-push__text span { display: block; font-size: 13.5px; line-height: 1.45; color: var(--el-muted, #5d6f86); margin-top: 2px; }
.el-push__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.el-push__x { border: 0; background: none; color: var(--el-muted, #5d6f86); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; }
.el-push__x:hover { background: rgba(0, 0, 0, .05); }
@media (max-width: 640px) { .el-push { flex-wrap: wrap; } .el-push__acts { width: 100%; } .el-push__acts .el-btn { flex: 1; justify-content: center; } .el-push__x { flex: 0 0 auto; } }

/* ---------- Watch tracking (el-watch.js): resume bar, auto-complete toast, % in the lesson list ---------- */
.el-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 16px; padding: 10px 14px; border-radius: 12px; background: #f2f7ff; border: 1px solid #d7e5fa; font-size: 14px; }
.el-resume > i { color: #1668c4; }
.el-resume > span { flex: 1; min-width: 160px; }
.el-resume__x { border: 0; background: none; color: var(--el-muted, #5d6f86); font: 600 13px var(--el-font); cursor: pointer; text-decoration: underline; }
.el-watch-toast { position: fixed; z-index: 1200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: #0f2a1c; color: #fff; font: 600 14.5px/1.4 var(--el-font); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); transition: opacity .4s, transform .4s; }
.el-watch-toast i { color: #4ade80; font-size: 18px; }
.el-watch-toast a { color: #fcd34d; }
.el-watch-toast.is-gone { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.el-learn__pct { color: #1668c4 !important; font-weight: 700; }

/* ---------- Student timetable (student/timetable.blade.php) ---------- */
.tt-next { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin: 0 0 16px; border-radius: 16px; background: #0b2236; color: #fff; }
.tt-next.is-live { background: linear-gradient(135deg, #7f1d1d, #b91c1c); }
.tt-next__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #f5c451; font-size: 18px; }
.tt-next__text { flex: 1; min-width: 0; }
.tt-next__text small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f5c451; }
.tt-next__text strong { display: block; font-size: 17px; line-height: 1.3; }
.tt-next__text span { display: block; font-size: 13.5px; color: #c9d6e6; }
.tt-next .el-btn--ghost { background: #fff; }
.tt-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.tt-bar__range { text-align: center; }
.tt-bar__range strong { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.tt-bar__range a { font-size: 13px; }
.tt-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.tt-week.is-empty { display: none; }
.tt-day { background: #fff; border: 1px solid var(--el-line, #e3e8ef); border-radius: 14px; padding: 10px; min-height: 140px; }
.tt-day.is-today { border-color: #1668c4; box-shadow: 0 0 0 2px rgba(22, 104, 196, .12); }
.tt-day header { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; color: var(--el-muted, #5d6f86); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tt-day header b { font-size: 20px; color: var(--el-ink, #0f1f33); letter-spacing: 0; }
.tt-day header em { margin-left: auto; font-style: normal; font-size: 11px; color: #1668c4; }
.tt-none { margin: 0; font-size: 13px; color: #9aa8b8; }
.tt-class { position: relative; border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; background: #f2f7ff; border-left: 3px solid #1668c4; }
.tt-class.is-live { background: #fff1f1; border-left-color: #dc2626; }
.tt-class.is-over { background: #f5f6f8; border-left-color: #b8c2cf; }
.tt-class.is-over h3, .tt-class.is-over .tt-class__time { color: #66768a; }
.tt-class.is-cancelled { background: #f5f6f8; border-left-color: #b8c2cf; }
.tt-class.is-cancelled h3 { text-decoration: line-through; color: #8a97a8; }
.tt-class__time { font-size: 12.5px; font-weight: 800; color: #1668c4; font-variant-numeric: tabular-nums; }
.tt-class h3 { font: 700 14px/1.3 var(--el-font) !important; margin: 2px 0 2px !important; color: var(--el-ink, #0f1f33); }
.tt-class p { margin: 0; font-size: 12.5px; color: var(--el-muted, #5d6f86); line-height: 1.35; }
.tt-class__acts { display: flex; gap: 6px; margin-top: 6px; }
.tt-class__acts:empty { display: none; }
.tt-ico { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid var(--el-line, #e3e8ef); color: var(--el-ink, #0f1f33); }
.tt-ico:hover { border-color: #1668c4; color: #1668c4; }
.tt-tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; margin-top: 4px; }
.tt-tag--live { background: #dc2626; color: #fff; }
.tt-tag--bad { background: #e5e7eb; color: #4b5563; }
.tt-sync p { color: var(--el-muted, #5d6f86); margin: 0 0 12px; }
.tt-sync__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tt-sync__link label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.tt-sync__link > div { display: flex; gap: 8px; }
.tt-sync__link input { flex: 1; min-width: 0; font-size: 13px; }
.tt-sync__link small { display: block; margin-top: 6px; color: var(--el-muted, #5d6f86); font-size: 12.5px; }
@media (max-width: 1100px) { .tt-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .tt-week { grid-template-columns: 1fr; gap: 8px; }
    .tt-day { min-height: 0; }
    .tt-day.is-free { padding: 8px 10px; }
    .tt-day.is-free header { margin: 0; }
    .tt-day.is-free .tt-none { display: none; }
    .tt-day.is-free header::after { content: "No classes"; margin-left: auto; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #9aa8b8; }
    .tt-day.is-free.is-today header::after { content: none; }
    .tt-hide-sm { display: none; }
    .tt-next { flex-wrap: wrap; } .tt-next__acts { width: 100%; } .tt-next__acts .el-btn { width: 100%; justify-content: center; }
}
.tt-class__acts .el-btn { min-height: 30px; padding: 4px 10px; font-size: 12.5px; max-width: 100%; white-space: normal; }
@media (min-width: 761px) and (max-width: 1360px) { .tt-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Content tree (folders inside folders) in the lesson side panel */
.el-tree .el-tree { padding-left: 12px !important; border-left: 2px solid var(--el-line); margin-left: 9px !important; }
.el-tree__folder > details { border-bottom: 0 !important; padding: 2px 0 !important; }
.el-tree__folder > details > summary { justify-content: flex-start !important; gap: 8px; align-items: baseline; font-weight: 700 !important; list-style: none; }
.el-tree__folder > details > summary::-webkit-details-marker { display: none; }
.el-tree__folder > details > summary > i { color: #e0a526; width: 16px; }
.el-tree__folder > details > summary > span { flex: 1; }
.el-tree__folder > details > summary > small { font-weight: 600; font-size: 12px; }
.el-learn__side li.is-soon a { opacity: .75; }
.el-learn__side li .fa-clock { color: #d98a12; }
.el-learn__img { display: block; max-width: 100%; border-radius: 14px; margin: 0 0 16px; -webkit-user-drag: none; user-select: none; }

.el-review__typed { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--el-bg); font-size: 14.5px; }

/* ---------- Free trial, subjective test, practice (OMR) test — student/learn ---------- */
.el-trialbar { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin: 0 0 18px; border-radius: 14px; background: #f3efff; border: 1px solid #e0d6ff; }
.el-trialbar > i { font-size: 20px; color: #6d28d9; }
.el-trialbar > div { flex: 1; display: grid; }
.el-trialbar strong { color: var(--el-ink); }
.el-trialbar span { font-size: 14px; color: var(--el-muted); }
.el-trialbar form { margin: 0; }
.el-trialbar.is-offer { background: var(--el-gold-50); border-color: #f3dfb2; }
.el-trialbar.is-offer > i { color: #b7791f; }
.el-subj, .el-omr { margin-top: 14px; }
.el-subj__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--el-muted); margin: 0 0 10px; }
.el-subj__meta i { color: var(--el-blue-600, #2563eb); }
.el-subj__meta .is-late { color: #b91c1c; }
.el-subj__form { display: grid; gap: 4px; max-width: 560px; padding: 14px; border-radius: 14px; background: var(--el-bg); border: 1px solid var(--el-line); }
.el-omr__score { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--el-bg); margin: 0 0 12px; }
.el-omr__score strong { font-size: 32px; color: var(--el-ink); line-height: 1; }
.el-omr__score span { color: var(--el-muted); }
.el-omr__score em { font-style: normal; font-size: 14px; color: var(--el-body); margin-left: auto; }
.el-omr__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 18px; }
.el-omr__row { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px dashed var(--el-line); }
.el-omr__row > b { width: 30px; text-align: right; font-size: 13px; color: var(--el-muted); }
.el-omr__row label { margin: 0; cursor: pointer; }
.el-omr__row input { position: absolute; opacity: 0; pointer-events: none; }
.el-omr__row label span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #cbd5e1; font-size: 12.5px; font-weight: 700; color: #64748b; transition: background .15s, border-color .15s; }
.el-omr__row input:checked + span { background: #0f1b2a; border-color: #0f1b2a; color: #fff; }
.el-omr__row input:focus-visible + span { outline: 3px solid #93c5fd; outline-offset: 2px; }
.el-omr__grid.is-result .el-omr__row span { font-weight: 800; }
.el-omr__row.is-ok span { color: #15803d; }
.el-omr__row.is-bad span { color: #b91c1c; text-decoration: line-through; }
.el-omr__row.is-skip span { color: var(--el-muted); }
.el-omr__row em { font-style: normal; font-size: 13px; color: #15803d; font-weight: 700; }

/* Mock tests in folders (front.partials.test-library) — website + dashboard */
.tl-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 14px; color: var(--el-muted); }
.tl-crumb a { color: var(--el-muted); text-decoration: none; font-weight: 600; }
.tl-crumb a:hover { color: var(--el-navy, #0b2a4a); }
.tl-crumb i.fa-chevron-right { font-size: 10px; opacity: .7; }
.tl-crumb strong { color: var(--el-ink, #0f172a); }
.tl-folders { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 0 0 28px; }
.tl-folder { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #e3e9f2; text-decoration: none !important; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tl-folder:hover { border-color: #e0a526; box-shadow: 0 10px 24px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.tl-folder__ic { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff7e6; color: #e0a526; font-size: 26px; }
.tl-folder__body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.tl-folder__body strong { color: var(--el-ink, #0f172a); font-size: 16px; line-height: 1.3; }
.tl-folder__body small { color: var(--el-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-folder__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--el-muted); }
.tl-folder__meta .is-free { color: #15803d; font-weight: 700; }
.tl-folder__meta .is-live { color: #dc2626; font-weight: 700; }
.tl-folder__meta .is-live i { font-size: 7px; vertical-align: middle; }
.tl-folder__go { color: #9aa6b8; font-size: 13px; }
.tl-h { font-size: 18px; margin: 4px 0 14px; color: var(--el-ink, #0f172a); }
@media (max-width: 575.98px) { .tl-folders { grid-template-columns: 1fr; } }

/* Test / Quiz label on course content items (learn tree + public course page) */
.el-tree__kind { flex: 0 0 auto; padding: 1px 7px; border-radius: 999px; background: #e8f0fb; color: #1d4f91; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.el-tree__kind.is-quiz { background: #fff3d6; color: #9a6400; }
.el-lessonlist__sub { color: var(--el-muted) !important; font-weight: 700; font-size: 13px !important; background: #f7f9fc; padding-left: 8px !important; }
.el-lessonlist__sub i { color: #e0a526 !important; }
.el-lessonlist li.is-nested { padding-left: 18px; }

/* A live class item inside a course folder (learn page) */
.el-liveitem { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: #f3f7fd; border: 1px solid #dbe6f5; }
.el-liveitem > i { font-size: 22px; color: #1d4f91; }
.el-liveitem > div { flex: 1; min-width: 200px; display: grid; gap: 2px; color: var(--el-ink, #0f172a); }
.el-liveitem span, .el-liveitem small { color: var(--el-muted); font-size: 13.5px; }
.el-liveitem.is-live { background: #fff1f1; border-color: #fbcaca; }
.el-liveitem.is-live > i { color: #dc2626; }
.el-liveitem.is-cancelled { opacity: .75; }
/* Student → Live classes (time first / by subject) */
.lvs-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0 0 16px; }
.lvs-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #eef2f8; }
.lvs-seg a { padding: 7px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--el-muted); text-decoration: none; }
.lvs-seg a.is-on { background: #fff; color: var(--el-ink, #0f172a); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.lvs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lvs-chips a { padding: 6px 12px; border-radius: 999px; border: 1px solid #dbe3ee; font-size: 13px; font-weight: 600; color: var(--el-ink, #0f172a); text-decoration: none; background: #fff; }
.lvs-chips a.is-on { background: #0b2a4a; border-color: #0b2a4a; color: #fff; }
.lvs-now { border: 2px solid #fca5a5; }
.lvs-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #dc2626; margin-right: 6px; animation: lvs-pulse 1.4s infinite; vertical-align: middle; }
@keyframes lvs-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .lvs-dot { animation: none; } }
.lvs-folder { border-top: 1px solid var(--el-line, #e6ebf2); padding: 4px 0; }
.lvs-folder summary { cursor: pointer; list-style: none; padding: 12px 4px; font-weight: 700; color: var(--el-ink, #0f172a); }
.lvs-folder summary::-webkit-details-marker { display: none; }
.lvs-folder summary i { color: #e0a526; margin-right: 6px; }
.lvs-folder summary small { color: var(--el-muted); font-weight: 500; margin-left: 6px; }
.el-empty--sm { padding: 14px; }
[data-wm]:fullscreen iframe { width: 100%; height: 100%; border: 0; }
[data-wm]:-webkit-full-screen iframe, [data-wm]:-webkit-full-screen video { width: 100%; height: 100%; }

/* Locked YouTube player: a video that can’t play shows our message instead of YouTube’s */
.el-ytlock.is-error .el-ytlock__cover, .el-ytlock.is-error .el-ytlock__bar { display: none; }
.el-ytlock__msg { position: absolute; inset: 0; z-index: 8; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; background: #0b2236; color: #fff; }
.el-ytlock__msg i { font-size: 30px; color: var(--el-gold-400, #f7b955); }
.el-ytlock__msg strong { font-size: 16px; }
.el-ytlock__msg span { font-size: 13.5px; color: #c9d6e4; }

/* ---- Full screen on phones (el-fullscreen.js): the player fills the screen; upright phones see it turned sideways ---- */
.el-fs-on { position: fixed !important; top: 0 !important; left: 0 !important; right: auto !important; bottom: auto !important;
    width: 100vw !important; height: 100vh !important; height: 100dvh !important; max-width: none !important; max-height: none !important;
    margin: 0 !important; padding: 0 !important; border-radius: 0 !important; aspect-ratio: auto !important; background: #000 !important; z-index: 2147483000 !important; }
.el-fs-on > iframe, .el-fs-on > video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; object-fit: contain; }
html.el-fs-lock, html.el-fs-lock body { overflow: hidden !important; overscroll-behavior: none; }
html.el-fs-lock .hw, html.el-fs-lock .el-mobile-cta, html.el-fs-lock .el-fab { display: none !important; }   /* help widget / phone call bar */
.el-fs-on .el-wm { font-size: 16px; }
.el-fs-on .el-ytlock__bar { height: 58px; padding: 0 max(12px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px, env(safe-area-inset-left)); }
@media (orientation: portrait) {
    /* Turn the player 90° so a 16:9 video fills an upright phone (top-left corner moved to the right edge, then rotated). */
    .el-fs-on.el-fs-rotate { width: 100vh !important; width: 100dvh !important; height: 100vw !important; left: 100vw !important;
        transform-origin: top left; transform: rotate(90deg); }
}/* The YouTube frame overhangs the player by 60px (to hide YouTube's title bar); the player itself must never scroll,
   or our controls slide off the bottom (seen in full screen). clip = not scrollable at all; hidden is the fallback. */
.el-ytlock, .el-fs-on { overflow: hidden; overflow: clip !important; }
/* Full screen fade-through (el-fullscreen.js): a black curtain covers the switch, the address bar and the screen turning. */
.el-fs-veil { position: fixed; inset: 0; z-index: 2147483600; background: #000; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.el-fs-veil.is-on { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .el-fs-veil { transition: none; } }

/* ---------- Free mock tests (/mock-tests, front/mock-tests/index): test series banner, exam filter, free samples ---------- */
.mt-sell { display: flex; align-items: center; gap: 14px 16px; margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(120deg, #0b2a4a, #12406b); color: #fff; }
.mt-sell__icon { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: var(--el-gold-500, #f2a52b); font-size: 18px; }
.mt-sell__text { flex: 1; min-width: 0; }
.mt-sell__text h2 { margin: 0 0 2px; font-size: 16px !important; font-weight: 800; color: #fff !important; }
.mt-sell__text p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.mt-sell__btn { flex-shrink: 0; white-space: nowrap; }
.mt-exams { margin: 0 0 20px; scrollbar-width: none; }
.mt-exams::-webkit-scrollbar { display: none; }
.mt-exams .el-chip { padding: 7px 14px; font-size: 13.5px; }
.mt-samples { margin-top: 8px; }
.mt-samples .tl-h { margin-bottom: 2px; }
.mt-samples__lead { margin: 0 0 14px; font-size: 14px; color: var(--el-muted); }
.mt-empty__btns { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.el-testcard__from { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 8px 10px; border-radius: 10px; background: var(--el-blue-50, #eef5fd); color: var(--el-ink) !important; font-size: 12.5px; font-weight: 600; text-decoration: none !important; min-width: 0; }
.el-testcard__from > i { width: 14px; text-align: center; color: var(--el-blue-600, #1668c4); flex-shrink: 0; }
.el-testcard__from span { flex: 1 1 0; min-width: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.el-testcard__from em { flex-basis: 100%; margin-left: 22px; font-style: normal; font-weight: 700; color: var(--el-blue-600, #1668c4); white-space: nowrap; }
.el-testcard__from em i { font-size: 10px; margin-left: 2px; }
.el-testcard__from:hover { background: #e2eefb; }
@media (max-width: 640px) {
    .mt-sell { flex-wrap: wrap; align-items: flex-start; padding: 14px; }
    .mt-sell__icon { flex-basis: 38px; height: 38px; }
    .mt-sell__text { flex-basis: calc(100% - 56px); }
    .mt-sell__btn { width: 100%; justify-content: center; }
}

/* ================= Answer key: response sheet & challenges (student/answer-key, App\Support\AnswerKey) ================= */
.el-examcard__keybox { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 16px 22px 0; padding: 12px 14px; border-radius: 14px; background: var(--el-gold-50, #fff6e0); border: 1px solid #f3dca9; font-size: 14px; line-height: 1.5; color: var(--el-ink); }
.el-examcard__keybox.is-final { background: #effaf3; border-color: #c4e9d2; }
.el-examcard__keybox > div { flex: 1 1 260px; min-width: 0; }
.el-examcard__keyicon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: #a35f00; }
.el-examcard__keybox.is-final .el-examcard__keyicon { color: #15803d; }
.el-examcard__keybox .el-btn { flex: none; }

.ak-status { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 14px; border-radius: 18px; border: 1px solid #f1dcaf; background: linear-gradient(135deg, #fff7e6, #fff 70%); }
.ak-status.is-final { border-color: #c4e9d2; background: linear-gradient(135deg, #ecf9f1, #fff 70%); }
.ak-status.is-closed { border-color: #d6e3f5; background: linear-gradient(135deg, #f1f6fe, #fff 70%); }
.ak-status__icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; background: #fff0cc; color: #a35f00; }
.ak-status.is-final .ak-status__icon { background: #d8f2e2; color: #15803d; }
.ak-status.is-closed .ak-status__icon { background: var(--el-blue-50); color: var(--el-blue-600); }
.ak-status__text { flex: 1 1 280px; min-width: 0; }
.ak-status__text strong { display: block; font-size: 17px; font-weight: 800; color: var(--el-ink); }
.ak-status__text p { margin: 3px 0 0; font-size: 14px; color: var(--el-body); }
.ak-status__chip { flex: none; font-size: 12.5px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #f1d9a6; color: #8a5a00; white-space: nowrap; }

.ak-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-bottom: 10px; }
.ak-counts > div { display: grid; gap: 2px; padding: 11px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--el-line); border-top: 3px solid var(--el-line); }
.ak-counts strong { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--el-ink); font-variant-numeric: tabular-nums; }
.ak-counts strong small { font-size: 14px; font-weight: 700; color: var(--el-muted); }
.ak-counts span { font-size: 12.5px; font-weight: 600; color: var(--el-muted); }
.ak-counts .is-match { border-top-color: #16a34a; }
.ak-counts .is-differ { border-top-color: #dc2626; }
.ak-counts .is-skipped { border-top-color: #94a3b8; }
.ak-counts .is-dropped { border-top-color: var(--el-gold-500); }
.ak-counts .is-used { border-top-color: var(--el-blue-600); }
.ak-note { display: flex; gap: 8px; align-items: baseline; margin: 0 0 16px; font-size: 13.5px; color: var(--el-muted); }

.ak-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ak-q { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--el-line); border-left: 4px solid #94a3b8; scroll-margin-top: 100px; }
.ak-q.is-match { border-left-color: #16a34a; }
.ak-q.is-differ { border-left-color: #dc2626; }
.ak-q.is-dropped { border-left-color: var(--el-gold-500); }
.ak-q__head { display: flex; justify-content: space-between; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ak-q__no { font-size: 14.5px; font-weight: 800; color: var(--el-ink); }
.ak-q__no small { margin-left: 8px; font-size: 12.5px; font-weight: 700; color: var(--el-muted); }
.ak-q__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ak-tag { padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: var(--el-bg); color: var(--el-muted); }
.ak-tag.is-match { background: #e7f7ee; color: #157a43; }
.ak-tag.is-differ { background: #fde8e8; color: #b42318; }
.ak-tag.is-dropped, .ak-tag.is-changed { background: #fff0cc; color: #8a5a00; }
.ak-tag.is-wait { background: var(--el-blue-50); color: var(--el-blue-600); text-transform: none; letter-spacing: 0; white-space: normal; }
.ak-q__text { max-width: none; font-size: 15px; }
.ak-q__text p:last-child { margin-bottom: 0; }
.ak-hint { margin: 8px 0 0; font-size: 13px; color: var(--el-muted); }
.ak-opts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ak-opts li { display: flex; gap: 8px; align-items: baseline; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; background: var(--el-bg); font-size: 14.5px; color: var(--el-ink); }
.ak-opts li > span { flex: 1; min-width: 0; }
.ak-opts li em { flex: none; font-style: normal; font-size: 12px; font-weight: 800; }
.ak-opts li.is-key { background: #e7f7ee; border-color: #c4e9d2; }
.ak-opts li.is-key em { color: #157a43; }
.ak-opts li.is-off { background: #fde8e8; border-color: #f6caca; }
.ak-opts li.is-off em { color: #b42318; }
.ak-typed { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.ak-typed span { padding: 8px 12px; border-radius: 10px; background: var(--el-bg); font-size: 14px; color: var(--el-muted); }
.ak-typed strong { margin-left: 4px; color: var(--el-ink); }
.ak-dec { display: flex; gap: 8px; align-items: baseline; margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #fff6e0; font-size: 13.5px; color: #6b4a00; }

.ak-mine { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #f5f8fd; border: 1px solid #dbe6f5; font-size: 14px; }
.ak-mine__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--el-ink); }
.ak-mine__head > span:first-child i { margin-right: 6px; color: var(--el-muted); }
.ak-mine__why { margin: 8px 0 0; color: var(--el-body); white-space: pre-line; overflow-wrap: anywhere; }
.ak-mine__src { margin: 6px 0 0; font-size: 13px; color: var(--el-muted); overflow-wrap: anywhere; }
.ak-mine__reply { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--el-line); }
.ak-mine__reply b { display: block; margin-bottom: 2px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--el-muted); }
.ak-mine form { margin: 8px 0 0; }
.ak-mine__undo { padding: 0; border: 0; background: none; font-size: 13px; }

.ak-ch { margin-top: 12px; }
.ak-ch > summary { display: inline-flex; gap: 8px; align-items: center; padding: 6px 13px; border-radius: 999px; border: 1px dashed #b9cde8; font-size: 13.5px; font-weight: 700; color: var(--el-blue-600); cursor: pointer; list-style: none; }
.ak-ch > summary::-webkit-details-marker { display: none; }
.ak-ch > summary:hover, .ak-ch[open] > summary { border-style: solid; background: var(--el-blue-50); }
.ak-ch__form { display: grid; gap: 12px; margin-top: 10px; padding: 14px; border-radius: 12px; background: var(--el-bg); }
.ak-ch__form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ak-ch__form legend, .ak-field > span { float: none; width: auto; margin: 0 0 6px; padding: 0; font-size: 13px; font-weight: 800; color: var(--el-ink); }
.ak-field { display: grid; margin: 0; }
.ak-field small { font-weight: 600; color: var(--el-muted); }
.ak-ch__form .el-input, .ak-ch__form .el-textarea { background: #fff; }
.ak-ch__form .el-textarea { min-height: 84px; resize: vertical; }
.ak-choices { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ak-choices .el-input { flex: 1 1 200px; width: auto; }
.ak-choice { position: relative; margin: 0; cursor: pointer; }
.ak-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ak-choice span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--el-line); background: #fff; font-size: 14px; font-weight: 800; color: var(--el-ink); transition: background .15s, border-color .15s, color .15s; }
.ak-choice:hover span { border-color: #b9c6d6; }
.ak-choice.is-drop span { font-size: 13.5px; font-weight: 700; }
.ak-choice input:checked + span { background: var(--el-navy-800); border-color: var(--el-navy-800); color: #fff; }
.ak-choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(22, 99, 199, .3); }
.ak-ch__go { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ak-ch__go small { font-size: 12.5px; color: var(--el-muted); }
.ak-err { margin: -6px 0 0; font-size: 13px; color: #b42318; }

.el-review__keynote { display: flex; gap: 8px; align-items: baseline; margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #fff6e0; font-size: 13.5px; color: #6b4a00; }

@media (max-width: 560px) {
    .ak-status { padding: 14px; gap: 10px 12px; align-items: flex-start; }
    .ak-status__icon { width: 38px; height: 38px; border-radius: 12px; font-size: 16px; }
    .ak-status__text { flex: 1 1 calc(100% - 52px); }
    .ak-status__text strong { font-size: 16px; }
    .ak-status__text p { font-size: 13.5px; }
    .ak-status__chip { margin-left: 50px; }
    .ak-q { padding: 12px 13px; }
    .ak-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .ak-counts > div { padding: 9px 10px; border-radius: 12px; }
    .ak-counts strong { font-size: 20px; }
    .ak-counts span { font-size: 11.5px; line-height: 1.3; }
    .ak-counts .is-used { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; border-top-width: 1px; border-left: 3px solid var(--el-blue-600); }
    .ak-counts .is-used strong { font-size: 17px; }
    .ak-panel .el-review-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -4px; padding-bottom: 2px; }
    .ak-panel .el-review-filter .el-pill { flex: none; padding: 7px 12px; font-size: 13.5px; }
    .ak-choice span { min-width: 40px; height: 38px; padding: 0 12px; }
    .el-examcard__keybox { margin: 14px 16px 0; }
    .el-examcard__keybox .el-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ak-choice span { transition: none; } }
