/* ═══════════════════════════════════════════════════════════════
   Uloom LMS — extra styles (loads after style.css)
   Original website CSS is untouched; this file only adds the
   classes needed by the dynamic Laravel pages (alerts, course
   detail, student dashboard extras and the Bootstrap 5 admin panel).
   ═══════════════════════════════════════════════════════════════ */

:root { --pink: #e21e51; }

/* ── Alerts ─────────────────────────────────────────────── */
.lms-alerts { max-width: 1100px; margin: 92px auto 0; padding: 0 4%; }
.lms-alert {
  padding: 14px 20px; border-radius: 12px; margin-bottom: 12px;
  font-weight: 600; font-size: 14.5px; box-shadow: 0 8px 22px rgba(43,43,43,.08);
}
.lms-alert.success { background: #eaf6ee; color: #1e6b3c; border-left: 5px solid #1e8a4c; }
.lms-alert.error   { background: #fdecec; color: #a41b32; border-left: 5px solid #e21e51; }
.lms-alert ul { margin: 6px 0 0 18px; }

/* ── Course catalogue ───────────────────────────────────── */
.course-filter {
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px;
  background: var(--white); padding: 18px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(43,43,43,.07); margin-bottom: 44px;
}
.course-filter input, .course-filter select {
  border: 1px solid #e6e1e4; border-radius: 10px; padding: 12px 14px;
  font-family: var(--font-body); font-size: 14px; outline: none; width: 100%;
}
.course-filter input:focus, .course-filter select:focus { border-color: var(--maroon); }
.course-listing-grid { margin-top: 10px; }
.course-level {
  background: var(--maroon); color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 6px 14px; border-radius: 50px;
}
.empty-box {
  background: var(--white); border-radius: 14px; padding: 40px; text-align: center;
  color: var(--gray); box-shadow: 0 10px 30px rgba(43,43,43,.06);
}
.pagination-wrap { margin-top: 40px; display: flex; justify-content: center; }
.pagination { --bs-pagination-color: var(--maroon); --bs-pagination-active-bg: var(--maroon); --bs-pagination-active-border-color: var(--maroon); }
.text-muted { color: var(--gray) !important; }
.d-inline { display: inline; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-0 { margin-bottom: 0; }

/* ── Course detail page ─────────────────────────────────── */
.course-detail { display: grid; grid-template-columns: 1.6fr .9fr; gap: 40px; align-items: start; }
.course-detail-img { width: 100%; border-radius: 16px; margin-bottom: 30px; }
.detail-title { font-family: var(--font-head); font-size: 26px; color: var(--dark); margin: 26px 0 14px; }
.detail-body { color: var(--gray); line-height: 1.85; font-size: 15.5px; white-space: pre-line; }
.curriculum { margin-top: 10px; }
.curriculum-module { background: var(--white); border-radius: 14px; padding: 20px 24px; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(43,43,43,.06); }
.curriculum-module h4 { font-family: var(--font-head); font-size: 19px; color: var(--dark); margin-bottom: 12px; }
.curriculum-module ul { list-style: none; margin: 0; padding: 0; }
.curriculum-module li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 1px solid #f2eff1; font-size: 14.5px; color: var(--dark);
}
.badge-preview { background: var(--maroon-100); color: var(--maroon); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.lesson-meta { color: var(--gray); font-size: 13px; }
.course-detail-side { position: sticky; top: 110px; }
.side-card { background: var(--white); border-radius: 16px; padding: 28px; box-shadow: 0 14px 36px rgba(147,25,47,.12); }
.side-price { font-family: var(--font-head); font-size: 34px; color: var(--maroon); margin-bottom: 18px; }
.side-list { list-style: none; margin: 0 0 22px; padding: 0; }
.side-list li { font-size: 14px; color: var(--gray); padding: 9px 0; border-bottom: 1px solid #f4f1f3; }
.side-list li strong { color: var(--dark); }
.side-note { text-align: center; margin: 12px 0 0; font-size: 13.5px; color: var(--gray); font-weight: 700; }

/* ── Article / page ─────────────────────────────────────── */
.article-wrap { max-width: 860px; }
.article-img { width: 100%; border-radius: 16px; margin-bottom: 18px; }
.article-meta { color: var(--gray); font-size: 13.5px; margin-bottom: 26px; }
.article-body { color: #555; line-height: 1.95; font-size: 16px; }

/* ── Certificate verify ─────────────────────────────────── */
.verify-card { max-width: 720px; margin-inline: auto; background: var(--white); border-radius: 18px; padding: 44px; box-shadow: 0 16px 40px rgba(147,25,47,.12); }
.verify-result { margin-top: 28px; padding: 24px; border-radius: 14px; }
.verify-result.valid { background: #eaf6ee; border-left: 5px solid #1e8a4c; }
.verify-result.invalid { background: #fdecec; border-left: 5px solid #e21e51; }
.verify-result h4 { font-family: var(--font-head); font-size: 21px; margin-bottom: 14px; }
.verify-result ul { margin: 0; padding-left: 18px; color: #444; font-size: 14.5px; line-height: 1.9; }
.verify-result .btn { margin-top: 18px; }

/* ── Auth extras ────────────────────────────────────────── */
.auth-foot-note { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray); }
.reg-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--gray); }
.reg-form textarea { width: 100%; border: 1px solid #e6e1e4; border-radius: 12px; padding: 12px 14px; font-family: var(--font-body); font-size: 14px; }

/* ── Student dashboard extras ───────────────────────────── */
.dash-topbar { justify-content: space-between; }
.dash-topbar-left { display: flex; align-items: center; gap: 16px; }
.dash-topbar-right { display: flex; align-items: center; gap: 14px; }
.dash-page-title { font-family: var(--font-head); font-size: 24px; color: var(--dark); margin: 0; line-height: 1.2; }
.dash-page-sub { margin: 2px 0 0; font-size: 13px; color: var(--gray); }
.dash-user { text-decoration: none; }
.notif-row {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px;
  border-top: 1px solid #f2eff1;
}
.notif-row > i { font-size: 20px; color: var(--maroon); margin-top: 2px; }
.notif-row > div { flex: 1; }
.notif-row strong { display: block; font-size: 14.5px; color: var(--dark); }
.notif-row span { display: block; font-size: 13.5px; color: var(--gray); line-height: 1.6; }
.notif-row small { display: block; font-size: 12px; color: #9b9b9b; margin-top: 4px; }
.notif-row.unread strong { color: var(--maroon); }
.btn-mark { font-size: 12.5px; font-weight: 700; color: var(--maroon); }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #f2eff1; }
.mini-row > i { font-size: 19px; color: var(--gold); }
.mini-row > div { flex: 1; }
.mini-row strong { display: block; font-size: 14px; color: var(--dark); }
.mini-row span { font-size: 12.5px; color: var(--gray); }
.requirement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.requirement { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--light); }
.requirement i { font-size: 18px; }
.requirement.ok { background: #eaf6ee; color: #1e6b3c; }
.requirement.pending { background: #fdf3e3; color: #a4661f; }
.requirement strong { display: block; font-size: 14px; }
.requirement span { font-size: 12.5px; }
.module-heading { font-family: var(--font-head); font-size: 18px; color: var(--maroon); margin: 22px 0 8px; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 6px; border-top: 1px solid #f2eff1; font-size: 14.5px; }
.lesson-list li a { color: var(--dark); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.lesson-list li a:hover { color: var(--maroon); }
.lesson-list li.done a { color: #1e8a4c; }
.lesson-list li.current { background: var(--maroon-100); border-radius: 10px; }
.lesson-list.compact li { padding: 8px 6px; font-size: 14px; }
.lesson-head { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.lesson-head h3 { font-family: var(--font-head); font-size: 24px; color: var(--dark); margin: 0; }
.lesson-summary { color: var(--gray); margin-top: 10px; line-height: 1.8; }
.lesson-content { color: #555; line-height: 1.9; margin-top: 16px; white-space: pre-line; }
.lesson-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.lesson-topbar { display: flex; justify-content: space-between; align-items: center; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame.empty { display: grid; place-items: center; background: var(--light); color: var(--gray); aspect-ratio: 16 / 6; }
.video-frame.empty i { font-size: 34px; }
.feedback-box { margin-top: 16px; padding: 16px; background: var(--light); border-left: 4px solid var(--gold); border-radius: 10px; }
.feedback-box h4 { font-size: 14px; margin: 0 0 6px; color: var(--dark); }
.feedback-box p { font-size: 14px; color: var(--gray); margin: 0; line-height: 1.7; }
.quiz-question { padding: 18px 0; border-top: 1px solid #f2eff1; }
.quiz-question > p { margin-bottom: 10px; }
.quiz-option { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.quiz-option:hover { background: var(--light); }
.assignment-row { display: flex; align-items: center; gap: 18px; padding: 16px 4px; border-top: 1px solid #f2eff1; flex-wrap: wrap; }
.assignment-row > div:first-child { flex: 1; min-width: 220px; }
.assignment-row strong { display: block; font-size: 15px; color: var(--dark); }
.muted { color: var(--gray); font-size: 13px; }
.late { color: #c62b43; font-style: normal; }
.badge-soft { display: inline-block; padding: 5px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; background: #f1eef0; color: #6b6b6b; }
.badge-soft.success { background: #eaf6ee; color: #1e8a4c; }
.badge-soft.danger { background: #fdecec; color: #c62b43; }
.badge-soft.warning { background: #fff4e5; color: #a4661f; }
.badge-soft.secondary { background: #f1eef0; color: #6b6b6b; }
.btn-outline-maroon { background: transparent; border: 2px solid var(--maroon); color: var(--maroon); padding: 12px 28px; border-radius: 50px; font-weight: 700; text-decoration: none; display: inline-block; }
.btn-outline-maroon:hover { background: var(--maroon); color: #fff; }
.btn-link { background: none; border: 0; color: var(--maroon); font-weight: 700; cursor: pointer; }
.profile-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-form textarea { width: 100%; border: 1px solid #e6e1e4; border-radius: 12px; padding: 12px 14px; font-family: var(--font-body); }

.content-block { padding: 18px 0; border-top: 1px solid #f2eff1; }
.content-block:first-child { border-top: 0; }
.content-block h4 { font-size: 16px; color: #2b2b2b; margin: 0; }
.content-list { list-style: none; margin: 0; padding: 0; }
.content-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #f6f3f6; }
.content-list li:first-child { border-top: 0; }
.content-list .empty-row { color: #6b6b6b; font-size: 14px; }
.mini-chart { list-style: none; margin: 0; padding: 0; }
.mini-chart li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 13.5px; }
.mini-chart li span { width: 84px; color: #636363; }
.mini-chart .pbar { flex: 1; }
.submission-body { background: #faf8fa; border-radius: 12px; padding: 18px; line-height: 1.8; color: #444; white-space: pre-line; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .course-detail, .requirement-grid { grid-template-columns: 1fr; }
  .course-detail-side { position: static; }
  .course-filter { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .dash-main { margin-left: 0; }
  .dash-burger { display: flex; }
  .profile-form .form-row { grid-template-columns: 1fr; }
}

/* ── Icon polish (emoji-free UI) ───────────────────────── */
/* Original style.css uses a plain "check" glyph for the registration list —
   replace it with a real SVG tick without touching the theme file. */
.reg-list li::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  font-size: 0;
}

/* Certificate verification headings */
.verify-result h4 { display: flex; align-items: center; gap: 10px; }
.verify-result h4 svg { width: 26px; height: 26px; flex-shrink: 0; }
.verify-result.valid h4 svg { color: #1e8a4c; }
.verify-result.invalid h4 svg { color: #c62b43; }

/* Student dashboard / list icons */
.dash-salam { display: flex; align-items: center; gap: 7px; }
.dash-salam i { font-size: 14px; }
.dash-welcome h2 i, .dash-page-title i { font-size: .85em; color: #f6d9a8; }
.mc-resume i, .dash-mini-link i { margin-left: 4px; }
.btn i { margin-left: 4px; vertical-align: -1px; }
.dstat-icon i, .admin-stat-icon i { line-height: 1; }
.notif-row > i, .mini-row > i { flex-shrink: 0; }

/* ── Sequential learning & embedded player ───────────────────── */
.lesson-topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seq-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f3eef1; color: var(--maroon);
  border: 1px solid #e6d6dc;
  padding: 5px 12px; border-radius: 50px;
  font-size: 12px; font-weight: 700;
}
.seq-pill.small { font-size: 11px; padding: 4px 10px; }
.lesson-list li.locked-row { opacity: .72; }
.locked-link { color: #9b9b9b; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.lesson-list .done-flag { color: #1e8a4c; margin-left: auto; font-size: 13px; }
.btn-locked {
  display: inline-block; padding: 12px 28px; border-radius: 50px;
  background: #efe9ec; color: #9b9b9b; font-weight: 700; cursor: not-allowed;
}
.player-shell { position: relative; }
.video-done {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding: 16px 20px; border-radius: 14px;
  background: #eaf6ee; border-left: 5px solid #1e8a4c;
}
.video-done i { font-size: 26px; color: #1e8a4c; }
.video-done > div { flex: 1; min-width: 200px; }
.video-done strong { display: block; color: #1e6b3c; font-size: 15px; }
.video-done span { font-size: 13px; color: #4d7a5f; }
.lesson-locked { text-align: center; padding: 46px 30px; }
.lesson-locked > i { font-size: 46px; color: var(--maroon); }
.lesson-locked h3 { font-family: var(--font-head); font-size: 24px; color: var(--dark); margin: 14px 0 10px; }
.lesson-locked p { color: var(--gray); max-width: 560px; margin: 0 auto 22px; line-height: 1.8; }
.lesson-locked .btn { margin: 0 6px; }

/* ── SweetAlert2 (brand colours) ────────────────────────── */
.uloom-swal { border-radius: 18px !important; font-family: 'Segoe UI', system-ui, sans-serif; }
.uloom-swal .swal2-title { font-size: 22px; color: #2b2b2b; }
.uloom-swal .swal2-html-container { font-size: 15px; color: #4a4a4a; line-height: 1.7; }
.uloom-swal-confirm,
.uloom-swal .swal2-confirm {
  border-radius: 50px !important;
  padding: 11px 28px !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 24px rgba(147, 25, 47, .25) !important;
}
.uloom-swal-cancel,
.uloom-swal .swal2-cancel {
  border-radius: 50px !important;
  padding: 11px 24px !important;
  font-weight: 700 !important;
}
.uloom-swal-toast { border-radius: 14px !important; }
.uloom-swal .swal2-icon.swal2-success { border-color: #1e8a4c; color: #1e8a4c; }
.uloom-swal .swal2-icon.swal2-error { border-color: #c62b43; color: #c62b43; }
.uloom-swal .swal2-icon.swal2-warning { border-color: #cd7f32; color: #cd7f32; }

/* ── Lesson video playlist ─────────────────────────────── */
.player-stage { position: relative; }
.player-stage .video-frame,
.player-stage iframe,
.player-stage video { width: 100%; }
.playlist-panel {
  margin-top: 18px; border: 1px solid #ece7ea; border-radius: 14px;
  background: #fbfafb; overflow: hidden;
}
.playlist-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid #ece7ea; flex-wrap: wrap;
}
.playlist-head strong { display: block; font-size: 14.5px; color: #2b2b2b; }
.playlist-head span { font-size: 12.5px; color: #636363; }
.playlist-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-btn {
  border: 1px solid #e2dbdf; background: #fff; color: #93192f;
  border-radius: 50px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.pl-btn:hover { background: #fbeef1; }
.pl-autoplay { font-size: 12.5px; font-weight: 700; color: #636363; display: flex; align-items: center; gap: 5px; }
.playlist-list { list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow-y: auto; }
.playlist-list .pl-item button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: none; border: 0; text-align: left; cursor: pointer;
  padding: 11px 12px; border-radius: 10px; font-size: 14px; color: #2b2b2b;
}
.playlist-list .pl-item button:hover { background: #f3eef1; }
.playlist-list .pl-item.active button { background: #fbeef1; color: #93192f; font-weight: 700; }
.playlist-list .pl-item.watched .pl-num { color: #1e8a4c; }
.pl-num { width: 24px; text-align: center; color: #9b9b9b; font-weight: 700; flex-shrink: 0; }
.pl-title { flex: 1; line-height: 1.4; }

/* ── Player footer (manual "finished this video" fallback) ── */
.player-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid #efeaf0;
}
.pf-hint { font-size: 13px; font-weight: 700; color: #2b2b2b; line-height: 1.35; min-width: 0; }
.pf-btn {
  border: 1px solid #e2dbdf; background: #fff; color: #93192f; border-radius: 50px;
  padding: 8px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.pf-btn:hover { background: #fbeef1; }
.pf-btn.done { background: #e8f5ed; border-color: #cfe8da; color: #1e7a44; }
.pl-time { font-size: 12px; color: #6b6b6b; flex-shrink: 0; }

/* admin: playlist repeater rows */
.video-row {
  display: grid; grid-template-columns: 1.3fr 2fr 130px 90px 42px; gap: 8px;
  padding: 8px 0; border-top: 1px solid #f4f1f6; align-items: center;
}
.video-row:first-child { border-top: 0; }
.video-row input, .video-row select { width: 100%; }
@media (max-width: 900px) {
  .video-row { grid-template-columns: 1fr 1fr; }
}
.row-actions { display: flex; gap: 5px; align-items: center; }

/* ── Professional admin tables ─────────────────────────── */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.admin-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: #faf7f9; color: #6b6b6b;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .7px; font-weight: 700;
  padding: 12px 14px; border-bottom: 2px solid #efe7ec; white-space: nowrap;
}
.admin-table tbody td { padding: 12px 14px; border-bottom: 1px solid #f4f0f3; font-size: 14px; vertical-align: middle; }
.admin-table tbody tr:nth-child(even) { background: #fdfbfc; }
.admin-table tbody tr:hover { background: #fbeef1; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table .text-end { text-align: right; }
.table-scroll { overflow-x: auto; border-radius: 12px; }
.table-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 4px 2px; border-top: 1px solid #f1ecf0; margin-top: 12px;
}
.tf-info { font-size: 13px; color: #636363; }
.tf-info strong { color: #2b2b2b; }
.tf-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tf-perpage { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #636363; }
.tf-perpage .form-select { width: auto; border-radius: 8px; }
.tf-pagination .pagination { margin: 0; --bs-pagination-color: #93192f; --bs-pagination-active-bg: #93192f; --bs-pagination-active-border-color: #93192f; --bs-pagination-font-size: 13px; }
.tf-pagination .pagination .page-link { border-radius: 8px; margin: 0 2px; }
.badge-soft.info { background: #eef4ff; color: #2b4c9b; }
.stat-mini { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #faf7f9; }
.stat-mini i { font-size: 20px; }
.stat-mini strong { display: block; font-size: 19px; line-height: 1.1; }
.stat-mini span { font-size: 12px; color: #636363; }
.teacher-sidebar { background: #1f5c63; }
.teacher-sidebar .admin-brand { border-bottom-color: rgba(255,255,255,.12); }
.teacher-sidebar .admin-nav-title { color: #9fd0d5; }
.teacher-sidebar .admin-link.active { background: #2b7f88; }
.att-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 4px; border-top: 1px solid #f2eff1; flex-wrap: wrap; }
.att-info strong { display: block; font-size: 15px; color: #2b2b2b; }
.att-info span { font-size: 13px; color: #636363; }
.att-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── Lesson video player (bigger & always responsive) ───── */
.player-stage { position: relative; width: 100%; }
.player-stage iframe,
.player-stage video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 500px;
  border: 0;
  border-radius: 14px;
  background: #000;
}
.player-stage .video-frame {
  aspect-ratio: 16 / 9;
  min-height: 500px;
  border-radius: 14px;
}
.player-stage .video-frame.empty { aspect-ratio: 16 / 7; min-height: 220px; }
@media (min-width: 1400px) {
  .player-stage iframe,
  .player-stage video,
  .player-stage .video-frame { min-height: 660px; }
}
@media (max-width: 991px) {
  .player-stage iframe,
  .player-stage video,
  .player-stage .video-frame { min-height: 380px; }
}
@media (max-width: 575px) {
  .player-stage iframe,
  .player-stage video,
  .player-stage .video-frame { min-height: 230px; }
}

/* ── Donate page ────────────────────────────────────────── */
.donate-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.donate-amount { position: relative; cursor: pointer; }
.donate-amount input { position: absolute; opacity: 0; }
.donate-amount span {
  display: block; text-align: center; padding: 14px 6px; border-radius: 12px;
  border: 2px solid #e6dde2; font-weight: 700; color: var(--dark); background: #fff; transition: .2s;
}
.donate-amount:hover span { border-color: var(--maroon); }
.donate-amount.active span { background: var(--maroon); border-color: var(--maroon); color: #fff; }
@media (max-width: 575px) { .donate-amounts { grid-template-columns: repeat(2, 1fr); } }

/* ── Video completion gate ──────────────────────────────── */
.video-gate {
  display: flex; align-items: center; gap: 10px;
  background: #fff8f9; border: 1px solid #f0dde2; color: #8e4a5b;
  border-radius: 12px; padding: 12px 16px; font-size: 13.5px; max-width: 520px;
}
.video-gate i { font-size: 17px; color: var(--maroon); }

/* ── Video sessions (student dashboard) — flat colours, no gradients ── */
.video-sessions .vs-label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px;
  color: #6b6b6b; font-weight: 700; margin: 4px 0 10px;
}
.vs-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-top: 1px solid #f1ecf0;
}
.vs-row:first-of-type { border-top: 0; }
.vs-row.is-open { background: #fdf7f8; border-radius: 12px; padding-left: 8px; padding-right: 8px; }
.vs-thumb {
  position: relative; width: 132px; height: 76px; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: #ece7ea;
}
.vs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vs-duration {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(20,20,20,.82); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 5px;
}
.vs-live {
  position: absolute; left: 6px; top: 6px; background: #c62b43; color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .6px; padding: 2px 7px; border-radius: 5px;
}
.vs-info { flex: 1; min-width: 0; }
.vs-info strong { display: block; font-size: 15px; color: #2b2b2b; line-height: 1.35; }
.vs-info > span { display: block; font-size: 13px; color: #636363; margin-top: 2px; }
.vs-info .vs-sub { font-size: 12px; color: #6b6b6b; }
.vs-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 767px) {
  .vs-row { flex-wrap: wrap; }
  .vs-thumb { width: 100%; height: 170px; }
  .vs-actions { width: 100%; }
}

/* ══════════ PROFESSIONAL LESSON LAYOUT ══════════ */
.lesson-shell { display: grid; grid-template-columns: 344px 1fr; gap: 20px; align-items: start; }

/* ── left curriculum ── */
.lesson-side {
  background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(43,43,43,.07);
  position: sticky; top: 92px; max-height: calc(100vh - 118px); display: flex; flex-direction: column;
  overflow: hidden;
}
.ls-head { padding: 18px 18px 14px; border-bottom: 1px solid #f1ecf0; }
.ls-back { font-size: 12.5px; color: var(--maroon); font-weight: 700; text-decoration: none; }
.ls-head h3 { font-family: var(--font-head); font-size: 18px; color: var(--dark); margin: 8px 0 12px; line-height: 1.35; }
.ls-progress .ls-progress-top { display: flex; justify-content: space-between; font-size: 12.5px; color: #636363; margin-bottom: 6px; }
.ls-progress .ls-progress-top strong { color: var(--maroon); }
.ls-count { display: block; font-size: 11.5px; color: #6b6b6b; margin-top: 6px; }
.ls-body { overflow-y: auto; padding: 6px 0 12px; }
.ls-module { padding: 8px 10px 4px; }
.ls-module-title {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; font-weight: 800; color: #6b6b6b; padding: 8px 8px 6px;
}
.ls-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 10px; border-radius: 10px; text-decoration: none; color: #2b2b2b;
  transition: background .2s;
}
a.ls-item:hover { background: #f7f3f5; }
.ls-item.current { background: #fbeef1; }
.ls-item.done .ls-text strong { color: #1e8a4c; }
.ls-item.locked { color: #9b9b9b; cursor: not-allowed; }
.ls-ico { width: 20px; text-align: center; flex-shrink: 0; font-size: 15px; color: var(--maroon); margin-top: 2px; }
.ls-item.done .ls-ico { color: #1e8a4c; }
.ls-item.locked .ls-ico { color: #b9b0b4; }
.ls-text strong { display: block; font-size: 14px; line-height: 1.4; }
.ls-text span { font-size: 12px; color: #6b6b6b; }
.ls-toggle {
  display: none; position: fixed; bottom: 22px; left: 18px; z-index: 300;
  background: var(--maroon); color: #fff; border: 0; padding: 12px 18px; border-radius: 50px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(147,25,47,.28);
}

/* ── right main ── */
.lesson-main { min-width: 0; }
.lesson-player-card { padding: 16px; }
.lesson-details { margin-top: 18px; padding: 24px 26px; }
.ld-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.ld-head h3 { font-family: var(--font-head); font-size: 22px; margin: 0 0 8px; color: var(--dark); }
.ld-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--gray); margin: 0; }
.ld-block { margin-top: 26px; }
.ld-block h4 { font-size: 15px; color: var(--dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ld-file, .ld-task {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid #f0ecf0; border-radius: 10px; margin-bottom: 8px;
}
.ld-file-ico, .ld-ico { color: var(--maroon); font-size: 17px; }
.ld-task.done .ld-ico { color: #1e8a4c; }
.ld-file-name, .ld-task-text { flex: 1; font-size: 14px; color: #2b2b2b; }
.ld-task-text strong { display: block; }
.ld-task-text span { font-size: 12.5px; color: #6b6b6b; }
.ld-file-type { font-size: 11px; color: #6b6b6b; font-weight: 700; }
.ld-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 20px; border-top: 1px solid #f1ecf0; }
.lesson-locked { text-align: center; padding: 46px 26px; }
.lesson-locked i { font-size: 44px; color: var(--maroon); display: block; margin-bottom: 12px; }
.lesson-locked h3 { font-family: var(--font-head); font-size: 22px; }
.lesson-locked p { color: var(--gray); max-width: 480px; margin: 0 auto 18px; }
.lesson-locked .btn { margin: 4px; }

@media (max-width: 1100px) { .lesson-shell { grid-template-columns: 300px 1fr; } }
@media (max-width: 900px) {
  .lesson-shell { grid-template-columns: 1fr; }
  .lesson-side {
    position: fixed; inset: 0 auto 0 0; width: 312px; z-index: 400; border-radius: 0; max-height: 100vh;
    transform: translateX(-102%); transition: transform .3s ease;
  }
  .lesson-shell.side-open .lesson-side { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.28); }
  .ls-toggle { display: inline-block; }
  .lesson-details { padding: 20px; }
}

/* ── Pagination (shared table footer) ───────────────────── */
.table-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 2px 2px; border-top: 1px solid #f1ecf0; margin-top: 14px;
}
.tf-info { font-size: 13px; color: #636363; }
.tf-info strong { color: #2b2b2b; }
.tf-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tf-perpage { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #636363; }
.tf-perpage select {
  border: 1px solid #e6e1e4; border-radius: 8px; padding: 5px 8px; font-size: 13px; color: #2b2b2b; background: #fff;
}
.pagination {
  display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.pagination li { list-style: none; }
.pagination li a, .pagination li span {
  display: inline-block; min-width: 34px; text-align: center; padding: 6px 10px; border-radius: 8px; font-size: 13px;
  color: #6b6b6b; text-decoration: none; border: 1px solid #ece7ea; background: #fff;
}
.pagination li span { background: #93192f; border-color: #93192f; color: #fff; font-weight: 700; }
.pagination li a:hover { background: #fbeef1; color: #93192f; border-color: #f0dde2; }
.pagination li.disabled a, .pagination li.disabled span {
  color: #bcb4b8; background: #faf8f9; border-color: #f0ecf0;
}
.vs-list-label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; font-weight: 800; color: #6b6b6b; margin-top: 14px;
}

/* ═══════════════════════════════════════════════════════
   Minimal flex utilities for the shared pagination view.
   (public pages do not load Bootstrap, and Laravel's default
   pagination markup renders BOTH a mobile and a desktop <ul>;
   without these utilities both would be visible.)
   ═══════════════════════════════════════════════════════ */
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.flex-fill { flex: 1 1 auto !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.justify-items-center { justify-items: center !important; }
.fw-semibold { font-weight: 600 !important; }
.sr-only, .visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (min-width: 576px) {
  .d-sm-none { display: none !important; }
  .d-none { display: none !important; }
  .d-sm-flex { display: flex !important; }
  .flex-sm-fill { flex: 1 1 auto !important; }
  .align-items-sm-center { align-items: center !important; }
  .justify-content-sm-between { justify-content: space-between !important; }
}

/* keep the pagination compact everywhere */
.pagination li a, .pagination li span { min-width: 34px; }

/* ═══════════════════════════════════════════════════════
   NAVBAR DONATE BUTTON
   Flat gold pill — matches the brand accent, no gradients.
   ═══════════════════════════════════════════════════════ */
.nav-donate {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 50px;
  background: var(--gold, #cd7f32); color: #3a1c05;
  font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; line-height: 1;
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease, color .25s ease;
}
.nav-donate i { font-size: 13px; line-height: 1; }
.nav-donate:hover {
  background: var(--gold-light, #e0a458); color: #3a1c05; text-decoration: none;
  transform: translateY(-2px); box-shadow: 0 10px 22px rgba(205, 127, 50, .30);
}
.nav-donate:active { transform: translateY(0); box-shadow: none; }
.nav-donate.active { background: var(--maroon, #93192f); color: #fff; box-shadow: none; }

/* keep the whole navbar on one line now that an extra button is there */
@media (min-width: 681px) and (max-width: 1260px) {
  .nav { gap: 24px; }
  .nav-link { font-size: 13px; letter-spacing: .6px; }
  .nav-cta, .btn-login { padding: 11px 22px; }
  .nav-donate { padding: 10px 18px; font-size: 12.5px; }
}
@media (min-width: 681px) and (max-width: 1080px) {
  .nav { gap: 16px; }
  .nav-link { font-size: 12.5px; letter-spacing: .4px; }
  .nav-cta, .btn-login { padding: 10px 16px; font-size: 12.5px; letter-spacing: .6px; }
  .nav-donate { padding: 9px 14px; font-size: 12px; }
  .nav-donate i { font-size: 12px; }
}

/* mobile drawer — full width call to action */
@media (max-width: 680px) {
  .nav-donate { width: 100%; padding: 14px 22px; }
}

/* ── Donate page: notice when Stripe is not configured yet ── */
.donate-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fdf3e3; border: 1px solid #f0dcb8; color: #7a5216;
  border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.55;
  margin-bottom: 20px;
}
.donate-note i { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.donate-note strong { display: block; margin-bottom: 2px; }
.reg-form .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* recording note shown under the "Watch recording" button */
.vs-rec-note { display: block; font-size: 11.5px; color: #6b6b6b; margin-top: 5px; line-height: 1.4; }

/* ── Branded YouTube shell (no YouTube UI visible) ─────────────── */
.lms-yt { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 230px; background: #000; border-radius: 14px; overflow: hidden; }
.lms-yt-host, .lms-yt-host iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-height: 0 !important; border: 0; }
.lms-yt-shield { position: absolute; inset: 0 0 46px 0; z-index: 2; cursor: pointer; }
.lms-yt-cover { position: absolute; inset: 0; z-index: 3; display: none; place-items: center; background: #000; cursor: pointer; }
.lms-yt-cover.show { display: grid; }
.lms-yt-bigplay { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--maroon, #93192f); color: #fff; font-size: 38px; display: grid; place-items: center; }
.lms-yt-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: rgba(0,0,0,.85); color: #fff; }
.lms-yt-bar button { background: none; border: 0; color: #fff; font-size: 20px; line-height: 1; padding: 4px; }
.lms-yt-bar input[type=range] { flex: 1; accent-color: var(--maroon, #93192f); }
.lms-yt-bar select { background: #222; color: #fff; border: 0; border-radius: 6px; font-size: 12px; padding: 2px 4px; }
.lms-yt-time { font-size: 12px; min-width: 36px; text-align: center; }
.lms-yt:fullscreen { border-radius: 0; aspect-ratio: auto; }
.player-stage .lms-yt-host iframe { aspect-ratio: auto; min-height: 0; border-radius: 0; }

.lms-yt-mask { position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 2; background: #000; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lms-yt-mask.on { opacity: 1; }
