:root {
  --bg-page: #F8F9FF;
  --primary: #1E3A8A;
  --text-dark: #0B1C30;
  --text-body: #444651;
  --text-muted: #6B7280;
  --icon-muted: #757682;
  --border-input: #C5C5D3;
  --link: #00236F;
  --deco-lavender: #DCE1FF;
  --deco-mint: #89F5E7;
  --shadow-card: 0 4px 20px rgba(30, 58, 138, 0.05);
  --font: 'Cairo', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background: var(--bg-page);
  font-family: var(--font);
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* vertically centers the card in the viewport (login) */
.page--centered {
  align-items: center;
}

.card.card--login {
  min-height: 0;
}

.card-wrap {
  position: relative;
  margin-top: 68px;
  margin-bottom: 68px;
  width: min(448px, calc(100vw - 48px));
}

.deco {
  position: absolute;
}

.deco-tr {
  top: 0;
  right: 0;
  width: 128px;
  height: 128px;
  background: var(--deco-lavender);
}

.deco-bl {
  bottom: 0;
  left: 0;
  width: 96px;
  height: 96px;
  background: var(--deco-mint);
}

.card {
  position: relative;
  min-width: 0;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */

.card-header {
  text-align: center;
}

.logo-tile {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  background: var(--primary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  margin-top: 16px;
  font-size: 24px;
  line-height: 36px;
  font-weight: 600;
  color: var(--text-dark);
}

.card-subtitle {
  margin-top: 4px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  color: var(--text-body);
}

/* ---------- Form ---------- */

.form {
  margin-top: 32px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* design-exact: the email field sits 19px below the previous field (not 24px) */
.field--tight-top {
  margin-top: -5px;
}

/* fields whose leading icon is inset 19px from the reading-start edge */
.field--start-19 .input {
  padding-inline-start: 19px;
}

/* fields with a wider icon-to-text gap */
.field--icon-gap-17 .input-icon {
  margin-inline-end: 17px;
}

.field-label {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-body);
}

.input {
  height: 55px;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding-inline-start: 17px;
  padding-inline-end: 16px;
}

.input--select select {
  text-overflow: ellipsis;
}

.input--lg {
  height: 59px;
}

.input input,
.input select {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  color: var(--text-dark);
}

.input input::placeholder {
  color: var(--text-muted);
}

.input select:invalid {
  color: var(--text-muted);
}

/* latin input inside RTL card still hugs the reading-start (right) edge */
.input input[dir="ltr"] {
  text-align: right;
}

.input input[type="email"],
.input input[type="password"] {
  font-size: 14px;
  line-height: 26px;
}

.input input[type="password"] {
  letter-spacing: 0;
}

.input--lg input[type="text"] {
  font-size: 16px;
  line-height: 30px;
}

.input .input-icon {
  flex-shrink: 0;
  margin-inline-end: 8px;
}

/* password fields */
.toggle-pw {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.input--password input {
  padding-inline-end: 0;
}

/* design-exact: wider gap between the eye icon and the dots */
.input--password .input-icon {
  margin-inline-end: 15px;
}

/* select field: text starts 33 from right, icon at far end (left), inset 17 */
.input--select {
  justify-content: space-between;
  padding-inline-start: 33px;
  padding-inline-end: 17px;
}

.input--select select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 30px;
}

.input--select .input-icon--end {
  margin-inline-end: 0;
}

/* ---------- Remember / forgot row ---------- */

.form-row {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.remember {
  display: flex;
  align-items: center;
  gap: 12px;
}

.remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-input);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.remember input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.remember label {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
  cursor: pointer;
}

.forgot-link {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--link);
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* ---------- Submit button ---------- */

.btn-submit {
  height: 52px;
  background: var(--primary);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font);
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: #FFFFFF;
}

.btn-submit:hover {
  filter: brightness(1.08);
}

/* ---------- Login row ---------- */

.login-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.login-question {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

.login-link {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--link);
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

/* ---------- Responsive (inferred — Figma provides desktop only) ---------- */

@media (max-width: 520px) {
  .card-wrap {
    margin-top: 24px;
    margin-bottom: 24px;
    width: min(448px, calc(100vw - 32px));
  }

  .card {
    min-height: 0;
    padding: 24px;
    border-radius: 20px;
  }

  .deco-tr {
    width: 72px;
    height: 72px;
  }

  .deco-bl {
    width: 56px;
    height: 56px;
  }
}

/* ============================================================
   Instructor / Admin Dashboard
   ============================================================ */

:root {
  --surface-nav: #EFF4FF;
  --kpi-tile: #DCE9FF;
  --on-dark-muted: #B6C4FF;
  --danger: #BA1A1A;
  --progress-teal: #0D9488;
  --progress-blue: #3B82F6;
  --dot-green: #006A61;
  --dot-deep: #00285E;
}

.dash {
  position: relative;
  width: 100%;
  max-width: 1680px;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding: 24px;
}

/* ---------- Side navigation ---------- */

.side-nav {
  position: relative;
  flex-shrink: 0;
  width: 278px;
  height: auto;
  min-height: calc(100dvh - 48px);
  background: var(--surface-nav);
  border-inline-end: 1px solid var(--border-input);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 24px 17px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.side-brand-name {
  font-size: 32px;
  line-height: 48px;
  font-weight: 700;
  color: var(--link);
}

.side-brand-sub {
  margin-top: 4px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

.side-links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-link {
  height: 42px;
  flex-shrink: 0;
  border-radius: 8px;
  padding-inline-start: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text-body);
}

.side-link--tall {
  height: 44px;
}

.side-link--active {
  background: var(--primary);
  color: #FFFFFF;
}

.side-link img {
  flex-shrink: 0;
}

.side-link-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-link--drop {
  width: 100%;
  justify-content: space-between;
  padding-inline-end: 14px;
  cursor: pointer;
  border: 0;
  background: transparent;
  font-family: inherit;
}

.side-link--drop[aria-expanded="true"] {
  background: var(--primary);
  color: #FFFFFF;
}

.side-drop-caret {
  transition: transform 0.2s ease;
}

.side-link--drop[aria-expanded="true"] .side-drop-caret {
  transform: rotate(180deg);
}

.side-nav-sub {
  display: none;
  padding-inline-start: 6px;
}

.side-nav-sub--open {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-block-start: 2px;
}

.side-link--sub {
  height: 38px;
  padding-inline-start: 36px;
}

.side-link--sub.side-link--active {
  background: rgba(59, 130, 246, 0.14);
  color: var(--primary);
  font-weight: 700;
}

.side-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-input);
  padding-block-start: 17px;
}

.side-user {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline-start: 8px;
}

.side-user .avatar {
  margin-inline-start: -1px;
}

.side-user-name {
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.side-link--logout {
  margin-top: 16px;
  padding-inline-start: 8px;
  gap: 12px;
  color: var(--danger);
}

/* ---------- Avatars / icon buttons ---------- */

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
}

.avatar--ring {
  border: 1px solid var(--border-input);
}

.avatar--btn {
  cursor: pointer;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: none;
  background: #E5EEFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.icon-btn-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--danger);
  border: 2px solid var(--bg-page);
}

/* ---------- Header ---------- */

.dash-main {
  flex: 1;
  min-width: 0;
  width: auto;
  display: flex;
  flex-direction: column;
}

.dash-main .mc-topbar {
  position: relative;
  z-index: 300;
  width: auto;
  height: 64px;
}

.dash-greeting {
  margin-top: 40px;
  margin-bottom: 8px;
  padding-inline: 0;
}

.dash-header {
  margin-top: 61px;
  height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dash-title {
  font-size: 32px;
  line-height: 48px;
  font-weight: 700;
  color: var(--text-dark);
}

.dash-subtitle {
  margin-top: 4px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

.dash-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn--gear img {
  flex-shrink: 0;
}

/* ---------- KPI bento cards ---------- */

.kpi-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 239px);
  justify-content: space-between;
}

.kpi-card.card {
  height: 156px;
  min-height: 156px;
  padding: 16px;
}

.kpi-top {
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.kpi-tile {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--kpi-tile);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-pill {
  height: 26px;
  padding-inline: 8px;
  border-radius: 9999px;
  background: var(--surface-nav);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--link);
}

.kpi-stat {
  margin-top: 24px;
  text-align: center;
}

.kpi-num {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-dark);
}

.kpi-unit {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--text-body);
  margin-inline-start: 8px;
}

.kpi-label {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

/* ---------- Two-column body ---------- */

.dash-columns {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dash-main-col {
  width: 674.67px;
  flex-shrink: 0;
}

/* ---------- Quick actions ---------- */

.accent-heading {
  height: 30px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: var(--text-dark);
  border-inline-start: 4px solid var(--link);
  padding-inline-start: 12px;
}

.qa-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 325.33px);
  column-gap: 24px;
  row-gap: 28px;
}

.qa-card {
  display: block;
  height: 142px;
  background: #FFFFFF;
  border: 1px solid var(--border-input);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 25px;
  text-decoration: none;
}

.qa-card--end {
  grid-column: 2;
  grid-row: 2;
}

.qa-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.qa-title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-dark);
}

.qa-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

.qa-card--dark {
  position: relative;
  overflow: hidden;
  background: var(--link);
  border: none;
  padding-top: 24px;
}

.qa-card--dark::before {
  content: "";
  position: absolute;
  top: -16px;
  inset-inline-end: -16px;
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.10);
  filter: blur(24px);
  pointer-events: none;
}

.qa-card--dark .qa-title {
  color: #FFFFFF;
}

.qa-card--dark .qa-desc {
  color: var(--on-dark-muted);
}

/* ---------- Glass progress panel ---------- */

.glass-panel {
  position: relative;
  margin-top: 36px;
  height: 198px;
  border-radius: 24px;
  background: linear-gradient(174deg, #EFF4FF 0%, #D3E4FE 100%);
  box-shadow: var(--shadow-card);
  padding: 24px;
  overflow: hidden;
}

/* faint accent block peeking from the panel's reading-start edge (clipped) */
.glass-wash {
  position: absolute;
  top: 121px;
  inset-inline-start: -81.33px;
  width: 150px;
  height: 157px;
  border-radius: 12px;
  background: rgba(0, 35, 111, 0.10);
  z-index: 0;
  pointer-events: none;
}

.glass-heading,
.progress-list {
  position: relative;
  z-index: 1;
}

.glass-heading {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: var(--text-dark);
}

.progress-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-row {
  height: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-course {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-dark);
}

.progress-pct {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--link);
}

.progress-track {
  position: relative;
  margin-top: 4px;
  height: 8px;
  border-radius: 9999px;
  background: var(--surface-nav);
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  height: 8px;
  border-radius: 9999px;
}

.progress-fill--teal {
  background: var(--progress-teal);
}

.progress-fill--blue {
  background: var(--progress-blue);
}

/* ---------- Recent activity feed ---------- */

.feed-card.card {
  width: 321.33px;
  height: 596px;
  flex-shrink: 0;
  padding: 24px;
}

.feed-header {
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feed-heading {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: var(--text-dark);
}

.feed-view-all {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--link);
  text-decoration: none;
}

.feed-view-all:hover {
  text-decoration: underline;
}

.feed-list {
  margin-top: 24px;
  list-style: none;
  border-inline-start: 2px solid var(--kpi-tile);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feed-item {
  position: relative;
  /* reserve the timeline-dot lane on the reading-start edge */
  padding-inline-start: 18px;
}

.feed-item::before {
  content: "";
  position: absolute;
  top: 4px;
  inset-inline-start: -7px;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
}

.feed-item--dot-primary::before {
  background: var(--link);
}

.feed-item--dot-green::before {
  background: var(--dot-green);
}

.feed-item--dot-deep::before {
  background: var(--dot-deep);
}

.feed-item--dot-gray::before {
  background: var(--icon-muted);
}

.feed-item--dot-red::before {
  background: var(--danger);
}

.feed-text {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-dark);
}

.feed-hl {
  font-weight: 700;
  color: var(--link);
}

.feed-time {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text-body);
}

.feed-time--alert {
  color: var(--danger);
}

/* design-exact: each action card's icon column sits at its own inset */
.qa-card .qa-head {
  padding-inline-start: 22px;
}

.qa-card--dark .qa-head {
  padding-inline-start: 21px;
}

.qa-card--end .qa-head {
  padding-inline-start: 3px;
}

/* ============================================================
   Landing page (landing.html)
   Design: node 287:44 — 1440x3063, canvas origin (1342,4164)
   ============================================================ */

:root {
  --blue-soft: #D8E2FF;
  --teal-ink: #006A61;
  --navy-ink: #00285E;
  --blue-mid: #003D88;
  --sky-tile: #D3E4FE;
  --surface-blue: #E5EEFF;
  --line-soft: rgba(197, 197, 211, 0.3);
  --line-card: rgba(197, 197, 211, 0.2);
  --line-section: rgba(30, 58, 138, 0.5);
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: flex-start;
  width: min(1297px, calc(100% - 48px));
  margin: 36px auto 0;
  height: 64px;
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
}

.site-logo img {
  display: block;
  margin-top: 12px;
}

.site-nav {
  display: flex;
  gap: 24px;
  margin-inline-start: 24px;
}

.site-nav-link {
  display: block;
  padding-top: 16px;
  height: 60px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
}

.site-nav-link--active {
  height: 62px;
  font-weight: 700;
  color: var(--link);
  border-bottom: 2px solid var(--link);
}

.header-auth {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  margin-inline-start: auto;
  margin-inline-end: 32px;
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  text-decoration: none;
}

.btn-auth--primary {
  width: 107px;
  background: var(--primary);
  color: #fff;
}

.btn-auth--ghost {
  width: 115px;
  border: 1px solid var(--primary);
  color: var(--link);
}

/* ---------- shared section bits ---------- */

.section-title {
  font-size: 32px;
  line-height: 48px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}

.section-sub {
  margin-top: 12px;
  font-size: 16px;
  line-height: 28px;
  color: var(--text-body);
  text-align: center;
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  justify-content: space-between;
  width: 1280px;
  height: 704px;
  margin: 48px auto 0;
  padding-inline: 32px;
  border: 0.5px solid var(--line-section);
  border-radius: 16px;
}

.hero-copy {
  width: 592px;
  margin-top: 210px;
}

.hero-badge {
  display: inline-flex;
  vertical-align: top;
  align-items: center;
  justify-content: center;
  height: 27px;
  padding-inline: 32px;
  border-radius: 999px;
  background: var(--deco-lavender);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: #00164E;
}

.hero-title {
  margin-top: 32px;
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  color: var(--text-dark);
}

.hero-title em {
  font-style: normal;
  color: var(--primary);
}

.hero-text {
  width: 632px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 28px;
  color: var(--text-body);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  margin-inline-start: -17px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  border-radius: 12px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  text-decoration: none;
}

.btn-hero--primary {
  width: 170px;
  background: var(--primary);
  color: #fff;
}

.btn-hero--ghost {
  width: 186px;
  background: var(--bg-page);
  border: 1px solid var(--link);
  color: var(--link);
}

.hero-media {
  position: relative;
  width: 592px;
  height: 512px;
  margin-top: 96px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  top: 66px;
  left: 70px;
  width: 533px;
  height: 461px;
  border-radius: 9999px;
  background: var(--deco-lavender);
  filter: blur(64px);
}

.hero-media img {
  position: absolute;
  top: 0;
  left: 40px;
  border-radius: 16px;
}

/* ---------- stats ---------- */

.stats {
  display: flex;
  justify-content: center;
  gap: 128px;

  height: 225px;
  margin: 48px auto 0;
  padding-top: 32px;
  background: #fff;
  border: 0.5px solid var(--line-section);
  border-radius: 16px;
}

.stat {
  text-align: center;
}

.stat-icon {
  display: inline-flex;
  vertical-align: top;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
}

.stat-icon img {
  display: block;
}

.stat-icon--students { background: var(--deco-lavender); }
.stat-icon--courses { background: var(--blue-soft); }
.stat-icon--teachers { background: var(--deco-mint); }

.stat-num {
  display: block;
  margin-top: 12px;
  font-size: 32px;
  line-height: 48px;
  font-weight: 700;
  color: var(--text-dark);
}

.stat-label {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

/* ---------- featured courses ---------- */

.courses,
.why {
  width: 1280px;
  margin: 48px auto 0;
  border: 0.5px solid var(--line-section);
  border-radius: 16px;
}

.courses {
  padding-top: 96px;
  padding-bottom: 94px;
}

.courses-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 32px 0;
}

.course-card {
  background: #fff;
  border: 1px solid var(--line-card);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.course-media {
  position: relative;
  height: 192px;
  background: var(--surface-blue);
  border-radius: 23px 23px 0 0;
}

.course-media > img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: inherit;
  display: block;
}

.course-rating {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding-inline: 12px;
  border-radius: 999px;
  background: #fff;
  backdrop-filter: blur(4px);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--primary);
}

.course-rating svg {
  order: -1;
}

.course-body {
  padding: 16px 16px 16px;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-price {
  font-size: 20px;
  line-height: 30px;
  font-weight: 700;
  color: var(--primary);
}

.course-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.course-tag--accounting { background: var(--deco-lavender); color: var(--primary); }
.course-tag--management { background: var(--blue-soft); color: var(--blue-mid); }
.course-tag--excel { background: var(--deco-mint); color: var(--text-body); }

.course-title {
  margin-top: 12px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--text-dark);
}

.course-inst {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 17px;
  height: 49px;
  border-top: 1px solid var(--line-soft);
}

.course-inst-name {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

.course-avatar {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-inline-start: -4px;
  border-radius: 999px;
  background: var(--sky-tile);
  overflow: hidden;
}

.course-avatar img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}



.view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

/* ---------- why us ---------- */

.why {
  padding-block: 8px 6px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 32px 0;
}

.feature-card {
  height: 210px;
  padding-top: 25px;
  background: #fff;
  border: 1px solid var(--line-card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-inline: auto;
  border-radius: 12px;
}

.feature-icon img {
  display: block;
}

.feature-icon--anywhere,
.feature-icon--progress { background: var(--deco-lavender); }
.feature-icon--teachers { background: var(--blue-soft); }
.feature-icon--cert { background: var(--deco-mint); }

.feature-title {
  margin-top: 13px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--text-dark);
}

.feature-text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

/* ---------- CTA ---------- */

.cta {
  height: 417px;
  margin-top: 48px;
  padding-top: 128px;
}

.cta-inner {
  width: 896px;
  margin-right: 352px;
  margin-left: auto;
}

.cta {
  background:
    linear-gradient(90deg, rgba(0, 35, 111, 0.8), rgba(0, 35, 111, 0)),
    var(--primary);
  text-align: center;
}

.cta-title {
  font-size: 32px;
  line-height: 48px;
  font-weight: 700;
  color: #fff;
}

.cta-sub {
  margin-top: 16px;
  font-size: 16px;
  line-height: 28px;
  color: var(--surface-blue);
}

.btn-cta {
  display: inline-flex;
  vertical-align: top;
  align-items: center;
  justify-content: center;
  width: 171px;
  height: 60px;
  margin-top: 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 15px rgba(0, 0, 0, 0.1);
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

/* ---------- footer ---------- */

.site-footer {
  padding-top: 33px;
  padding-bottom: 24px;
  background: var(--surface-blue);
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  width: 1280px;
  height: 180px;
  margin-right: 128px;
}

.footer-brand {
  width: 628px;
}

.footer-logo {
  display: block;
  margin-inline-end: auto;
}

.footer-desc {
  width: 384px;
  margin-top: 16px;
  margin-inline-end: auto;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  margin-right: 32px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface-blue);
}

.footer-col {
  width: 302px;
}

.footer-heading {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  color: var(--text-dark);
}

.footer-list {
  list-style: none;
  margin-top: 12px;
}

.footer-list li {
  margin-bottom: 12px;
}

.footer-list li:last-child {
  margin-bottom: 0;
}

.footer-list a {
  font-size: 14px;
  line-height: 25px;
  color: var(--text-body);
  text-decoration: none;
}

.footer-bar {
  width: 1280px;
  height: 41px;
  margin-top: 32px;
  margin-right: 128px;
  padding-top: 17px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.footer-bar p {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

/* ============================================================
   Landing — responsive (design has no mobile spec in this node;
   sensible adaptations, desktop pixel-exact above 1280)
   ============================================================ */

@media (max-width: 1339px) {

  .site-header {
    width: auto;
    margin-inline: 24px;
  }

  .hero,
  .stats,
  .courses,
  .why {
    width: auto;
    margin-inline: 24px;
  }

  .cta {
    height: auto;
    padding: 72px 24px;
  }

  .cta-inner {
    width: auto;
    margin: 0;
  }

  .hero {
    height: auto;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 48px 32px 64px;
  }

  .hero-copy {
    width: min(592px, 100%);
    margin-top: 0;
    order: -1;
  }

  .hero-text {
    width: auto;
  }

  .hero-actions {
    margin-inline-start: 0;
    flex-wrap: wrap;
  }

  .hero-media {
    width: min(512px, 100%);
    height: min(512px, 100%);
    aspect-ratio: 1;
    margin-top: 0;
  }

  .hero-blob {
    inset-inline-start: 12%;
  }

  .hero-media img {
    width: 82%;
    height: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .stats {
    height: auto;
    flex-wrap: wrap;
    gap: 48px;
    padding: 40px 24px;
    justify-content: space-evenly;
  }

  .courses,
  .why {
    padding-bottom: 64px;
  }

  .courses-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    width: auto;
    height: auto;
    margin-inline: 24px;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-bar {
    width: auto;
    margin-inline: 24px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 640px) {

  .hero {
    padding: 32px 20px 48px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 38px;
  }

  .hero-text br,
  .feature-text br,
  .footer-desc br {
    display: none;
  }

  .btn-hero {
    flex: 1;
  }

  .btn-hero--primary,
  .btn-hero--ghost {
    width: auto;
  }

  .courses-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .course-card,
  .feature-card {
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }

  .cta {
    height: auto;
    padding: 72px 24px;
  }

  .cta-inner {
    width: auto;
    margin: 0;
  }

  .footer-social {
    justify-content: flex-end;
  }
}

/* ============================================================
   My Courses (إدارة الكورسات)
   ============================================================ */

.mc-side {
  border: 1px solid var(--border-input);
  padding: 24px 16px 24px 17px;
}

.mc-side .side-link--active {
  background: #00236D;
  color:white;
}

.mc-side .side-links .side-link:last-child {
  margin-top: 2px;
}
#course-type-group{
      display: flex;
    flex-direction: column;
}

.mc-main {
  position: relative;
  width: auto;
  height: auto;
  min-height: calc(100dvh - 48px);
  flex: 1;
  /* border: 1px solid var(--border-input); */
}

.mc-main .mc-topbar {
  z-index: 300;
}

/* ---------- Top app bar ---------- */

.mc-topbar {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: 64px;
  flex-shrink: 0;
  background: rgba(248, 249, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-input);
  display: flex;
  align-items: center;
  padding-inline: 32px;
}

.mc-title {
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
  color: var(--link);
}

.mc-topbar-group {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.mc-search {
  width: 288px;
  height: 47px;
  background: #FFFFFF;
  border: 1px solid var(--border-input);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  
}

.mc-search img {
  flex-shrink: 0;
}

.mc-search span {
  margin-inline-start: 11px;
  font-size: 14px;
  line-height: 26px;
  color: var(--text-muted);
}

.mc-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------- Content ---------- */

.mc-content {
  position: relative;
  width: 100%;
  padding: 24px 32px 40px;
}

.mc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mc-head-text h2 {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: var(--text-dark);
}

.mc-head-text p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

.mc-add-btn {
  margin-top: 8px;
  width: 169px;
  height: 42px;
  border: none;
  border-radius: 16px;
  background: var(--primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 24px;
  font-family: var(--font);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: #FFFFFF;
  cursor: pointer;
  text-decoration: none;
}

/* ---------- Filter chips ---------- */

.mc-filters {
  margin-top: 30px;
  display: flex;
  gap: 12px;
}

.chip {
  height: 32px;
  padding-inline: 17px;
  border: none;
  border-radius: 9999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  background: #FFFFFF;
  border: 1px solid var(--border-input);
  color: var(--text-body);
  cursor: pointer;
}

.mc-filters .chip:nth-child(1) {
  width: 84px;
}

.mc-filters .chip:nth-child(2) {
  width: 59px;
}

.mc-filters .chip:nth-child(3) {
  width: 75px;
}

.chip--active {
  background: var(--kpi-tile);
  border-color: var(--kpi-tile);
  color: var(--text-dark);
}

/* ---------- Course cards ---------- */

.mc-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 327px);
  gap: 24px;
}

.mc-card {
  height: 344px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.cc-media {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.cc-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}

.cc-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  height: 26px;
  padding-inline: 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}

.cc-badge--draft {
  background: var(--kpi-tile);
  color: var(--text-dark);
}

.cc-badge--live {
  background: #86F2E4;
  color: #006F66;
}

.cc-body {
  padding-inline: 16px;
}

.cc-body h3 {
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-dark);
}

.cc-body p {
  margin-top: 8px;
  height: 48px;
  overflow: hidden;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

.cc-div {
  margin-top: 21px;
  border-top: 1px solid var(--border-input);
}

.cc-foot {
  margin-top: 13px;
  height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cc-meta {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text-body);
}

.cc-icons {
  display: flex;
  gap: 20px;
  padding-top: 6px;
}

/* ============================================================
   Create Course (رفع كورس جديد) — responsive
   ============================================================ */

.shell {
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 29px 33px 29px 13px;
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.cc-side {
  position: static;
  width: 278px;
  height: auto;
  flex-shrink: 0;
  margin-top: 3px;
}

.cc-main {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-input);
}

.cc-main .mc-topbar {
  position: relative;
  z-index: 300;
  width: auto;
  margin: 31px 32px 0;
}

.cc-head {
  margin: 16px 32px 0;
  height: 76px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.cc-head-text h1 {
  font-size: 32px;
  line-height: 48px;
  font-weight: 700;
  color: var(--link);
}

.cc-head-text p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

.cc-head-actions {
  display: flex;
  gap: 16px;
}

.cc-btn-save,
.cc-btn-cancel {
  height: 44px;
  border-radius: 16px;
  font-family: var(--font);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  cursor: pointer;
}

.cc-btn-save {
  width: 102px;
  border: none;
  background: var(--primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #90A8FF;
}

.cc-btn-cancel {
      padding-right: 12%;
    padding-top: 5%;
  width: 77px;
  background: transparent;
  border: 1px solid #006A6A;
  color: #006A61;
}

/* ---------- Form layout ---------- */

.cc-form {
  display: flex;
  gap: 32px;
  margin: 32px 63px 104px 67px;
}

.cc-col-main {
  width: 629px;
  flex-shrink: 1;
  min-width: 0;
}

.cc-col-side {
  width: 299px;
  flex-shrink: 0;
}

/* ---------- Cards ---------- */

.cc-card {
  background: #FFFFFF;
  border: 1px solid #DCE9FF;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 25px;
}

.cc-card-title {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: var(--text-dark);
}

.cc-card > .cc-card-title {
  margin-bottom: 24px;
}

.cc-card--media {
  margin-top: 23px;
}

/* ---------- Fields ---------- */

.cc-label {
  display: block;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text-body);
}

.cc-input {
  display: block;
  width: 100%;
  margin-top: 3px;
  background: var(--bg-page);
  border: 1px solid var(--border-input);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text-dark);
  padding-inline: 17px;
}

.cc-input::placeholder {
  color: var(--text-muted);
}

.cc-input--tall {
  height: 56px;
}

.cc-price {
  margin-top: 4px;
  height: 50px;
}

.cc-textarea {
  margin-top: 4px;
  height: 122px;
  padding-top: 11px;
  line-height: 24px;
  resize: none;
}

.cc-card > .cc-field + .cc-field,
.cc-selects + .cc-field {
  margin-top: 16px;
}

.cc-selects {
  margin-top: 23px;
  display: flex;
  gap: 15px;
}

.cc-selects .cc-field {
  flex: 1;
  min-width: 0;
}

.cc-selects .cc-label {
  margin-bottom: 4px;
}

.cc-select {
  width: 100%;
  height: 50px;
  background: var(--bg-page);
  border: 1px solid var(--border-input);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding-inline: 16px;
  font-family: var(--font);
  cursor: pointer;
}

.cc-select img {
  flex-shrink: 0;
}

.cc-select span {
  margin-inline-start: 13px;
  font-size: 16px;
  color: var(--text-dark);
}

/* ---------- Media card ---------- */

.cc-media-head {
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cc-add-ep {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--link);
  cursor: pointer;
}

.cc-dropzone {
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--border-input);
}

.cc-dz-video {
  margin-top: 23px;
  height: 202px;
  background: var(--bg-page);
}

.cc-dz-icon {
  margin-bottom: 12px;
}

.cc-dz-title {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cc-dz-sub {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
  margin-bottom: 16px;
}

.cc-dz-note {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--icon-muted);
}

.cc-pdf-head {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cc-pdf-head img {
  flex-shrink: 0;
}

.cc-pdf-head h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-dark);
}

.cc-dz-pdf {
  margin-top: 24px;
  height: 200px;
  background: #EFF4FF;
}

.cc-pdf-drop-title {
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cc-dz-sub--sm {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ---------- Episode items ---------- */

.cc-item {
  margin-top: 24px;
  height: 78px;
  background: var(--bg-page);
  border: 1px solid var(--border-input);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding-inline: 13px;
}

.cc-item-del {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: none;
  border-radius: 4px;
  background: #DCE9FF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cc-item-info {
  margin-inline-start: 16px;
  min-width: 0;
}

.cc-item-name {
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-item-meta {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-body);
}

.cc-item-play {
  margin-inline-start: auto;
  flex-shrink: 0;
}

.cc-item--uploading {
  margin-top: 12px;
  height: 74px;
  border-color: #3B82F6;
}

.cc-item-progress {
  flex: 1;
  min-width: 0;
  margin-inline: 16px 32px;
}

.cc-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cc-pct {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 24px;
  color: #3B82F6;
}

.cc-track {
  height: 8px;
  margin-top: 4px;
  border-radius: 9999px;
  background: #DCE9FF;
  overflow: hidden;
}

.cc-track-fill {
  width: 44%;
  height: 8px;
  border-radius: 9999px;
  background: #3B82F6;
  margin-right: auto;
}

.cc-item-doc {
  flex-shrink: 0;
}

/* ---------- Cover / publishing cards ---------- */

.cc-card--cover {
  padding-bottom: 24px;
}

.cc-card--cover > .cc-card-title {
  margin-bottom: 11px;
}

.cc-card--cover .cc-cover-zone {
  margin-top: 11px;
  height: 144px;
  background: #DCE9FF;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-card--cover .cc-cover-zone img:not(.cc-cover-placeholder) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-cover-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text-body);
}

.cc-card--publish {
  margin-top: 24px;
  padding-bottom: 24px;
}

.cc-card--publish > .cc-card-title {
  margin-bottom: 23px;
}

.cc-card--publish .pub-row {
  display: flex;
  align-items: center;
}

.pub-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio {
  flex-shrink: 0;
  border-radius: 9999px;
  position: relative;
  display: inline-block;
}

.radio--on {
  width: 18px;
  height: 18px;
  background: #3B82F6;
}

.radio--on::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 9999px;
  background: #FFFFFF;
}

.radio--off {
  width: 16px;
  height: 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-input);
}

.pub-row--radio-lg {
  margin-top: 23px;
  margin-inline-start: -15px;
}

.pub-row--draft {
  margin-top: 16px;
  margin-inline-start: -13px;
}

.pub-label {
  font-size: 14px;
  line-height: 24px;
  color: var(--text-dark);
}

.pub-row--radio-lg .pub-label {
  margin-inline-start: 19px;
}

.pub-row--draft .pub-label {
  margin-inline-start: 12px;
}

.pub-divider {
  margin-top: 20px;
  margin-inline-start: -25px;
  border-top: 1px solid var(--border-input);
}

.pub-row--toggle {
  margin-top: 20px;
  margin-inline-start: -15px;
  justify-content: space-between;
}

.switch {
  position: relative;
  width: 40px;
  height: 24px;
  flex-shrink: 0;
  border: none;
  border-radius: 9999px;
  background: #DCE9FF;
  cursor: pointer;
  padding: 0;
}

.switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
}

/* ---------- Responsive ---------- */

@media (max-width: 1339px) {
  .shell {
    padding: 16px;
  }

  .cc-main {
    min-height: 0;
  }

  .cc-form {
    margin: 32px 24px 48px;
  }
}

@media (max-width: 900px) {
  .cc-form {
    flex-direction: column;
  }

  .cc-col-main,
  .cc-col-side {
    width: auto;
  }

  .cc-head {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .cc-topbar {
    margin-inline: 16px;
    padding-inline: 16px;
  }

  .cc-head {
    margin-inline: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cc-form {
    margin: 24px 16px 40px;
  }

  .cc-selects {
    flex-direction: column;
    gap: 15px;
  }

  .cc-item-progress {
    margin-inline-end: 16px;
  }

  .mc-title {
    font-size: 20px;
    line-height: 30px;
  }
}

/* ============================================================
   Mobile navigation drawer (dashboard / my-courses / create-course)
   ============================================================ */

.menu-btn {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 48, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 60;
}

body.nav-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1339px) {

  html,
  body {
    overflow-x: hidden;
  }

  .menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .side-nav {
    position: fixed;
    inset-inline-start: auto;
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100dvh;
    width: min(278px, 84vw);
    margin: 0;
    border-radius: 0;
    z-index: 70;
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
  }

  body.nav-open .side-nav {
    transform: none;
    visibility: visible;
    transition: transform 0.28s ease;
  }
}

/* ============================================================
   Instructor / Admin Dashboard — responsive
   ============================================================ */

@media (max-width: 1339px) {

  .dash {
    width: auto;
    min-height: 100dvh;
    padding: 24px;
  }

  .dash-main {
    position: static;
    width: auto;
  }

  .dash-header {
    height: auto;
    min-height: 76px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .kpi-grid {
    margin-top: 24px;
    grid-template-columns: repeat(2, minmax(220px, 325px));
    justify-content: space-between;
    row-gap: 20px;
  }

  .dash-columns {
    flex-direction: column;
    gap: 32px;
  }

  .dash-main-col {
    width: auto;
  }

  .qa-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .qa-card--end {
    grid-column: auto;
    grid-row: auto;
  }

  .glass-panel {
    height: auto;
    padding-bottom: 32px;
  }

  .feed-card.card {
    width: auto;
    height: auto;
  }
}

@media (max-width: 640px) {

  .dash {
    padding: 16px;
  }

  .dash-title {
    font-size: 24px;
    line-height: 36px;
  }

  .kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .kpi-card.card {
    height: auto;
    min-height: 140px;
    padding-bottom: 20px;
  }

  .qa-grid {
    grid-template-columns: 1fr;
  }

  .qa-card {
    height: auto;
    min-height: 120px;
  }

  .progress-row {
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* ============================================================
   My Courses — responsive
   ============================================================ */

@media (max-width: 1339px) {

  .mc-main {
    position: static;
    width: auto;
    height: auto;
    min-height: calc(100dvh - 48px);
    margin: 24px;
  }

  .mc-topbar {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: 64px;
    padding-inline: 16px;
    gap: 12px;
  }

  .mc-content {
    position: static;
    width: auto;
    margin: 0;
    padding: 16px 16px 40px;
  }

  .mc-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .mc-card {
    height: auto;
    min-height: 344px;
  }
}

@media (max-width: 900px) {

  .mc-head {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 640px) {

  .hero-blob {
    display: none;
  }

  .footer-desc {
    width: auto;
    max-width: 100%;
  }

  .mc-main {
    margin: 16px;
    min-height: calc(100dvh - 32px);
  }

  .mc-topbar {
    padding-inline: 8px;
    gap: 8px;
  }

  .mc-title {
    font-size: 20px;
    line-height: 30px;
  }

  .mc-filters {
    flex-wrap: wrap;
  }

  .cc-body h3 {
    font-size: 16px;
    line-height: 26px;
  }
}

/* =========================================================
   ECBS Dynamic Components — Notification, Avatar, Search,
   Upload, Profile, Modals
   ========================================================= */

/* ---------- Search Input ---------- */
.mc-search {
  position: relative;
  display: none;
}
.mc-search.is-open {
  display: inline-flex;
  align-items: center;
}
.mc-search-input {
  width: 288px; height: 47px;
  background: #FFFFFF;
  border: 1px solid var(--border-input);
  border-radius: 9999px;
  display: flex; align-items: center;
  padding-inline: 12px;
}
.mc-search-input img { flex-shrink: 0; }
.mc-search-input input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--font); font-size: 14px; line-height: 26px;
  color: var(--text-heading); margin-inline-start: 11px;
  min-width: 0;
}
.mc-search-input input::placeholder { color: var(--text-muted); }
.mc-search-results {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0;
  width: 340px; max-height: 320px; overflow-y: auto;
  background: #fff; border: 1px solid var(--border-input);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 100; display: none;
}
.mc-search-results.is-open { display: block; }
.mc-search-result {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer; text-decoration: none;
  color: var(--text-heading); transition: background .15s;
}
.mc-search-result:hover { background: var(--bg-page); }
.mc-search-result-title { font-size: 14px; font-weight: 500; }
.mc-search-result-sub { font-size: 12px; color: var(--text-muted); }
.mc-search-empty {
  padding: 20px 16px; text-align: center;
  color: var(--text-muted); font-size: 14px;
}
.mc-search-loading {
  padding: 16px; text-align: center; color: var(--text-muted); font-size: 13px;
}

/* ---------- Notification Dropdown ---------- */
.notif-wrap { position: relative; }
.notif-dropdown {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  width: 380px; max-height: 440px;
  background: #fff; border: 1px solid var(--border-input);
  border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14);
  z-index: 200; display: none; overflow: hidden;
}
.notif-dropdown.is-open { display: block; }
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; border-bottom: 1px solid #F0F1F5;
}
.notif-head h4 { font-size: 16px; font-weight: 600; color: var(--text-heading); margin: 0; }
.notif-mark-read {
  font-size: 13px; color: var(--primary); cursor: pointer;
  background: none; border: none; font-family: var(--font);
}
.notif-mark-read:hover { text-decoration: underline; }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid #F5F6FA; cursor: pointer;
  transition: background .15s;
}
.notif-item:hover { background: #F8F9FF; }
.notif-item.is-unread { background: #EFF4FF; }
.notif-item.is-unread:hover { background: #E5EEFF; }
.notif-dot {
  width: 10px; height: 10px; border-radius: 9999px;
  background: var(--primary); flex-shrink: 0; margin-top: 5px;
}
.notif-dot.is-read { background: #D1D5DB; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--text-heading); margin: 0; }
.notif-text { font-size: 13px; color: var(--text-body); margin: 2px 0 0; line-height: 1.4; }
.notif-time { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.notif-empty {
  padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 14px;
}
.notif-footer {
  padding: 12px 18px; border-top: 1px solid #F0F1F5; text-align: center;
}
.notif-footer a {
  font-size: 14px; color: var(--primary); text-decoration: none; font-weight: 500;
}
.notif-footer a:hover { text-decoration: underline; }

/* ---------- Avatar Dropdown ---------- */
.avatar-wrap { position: relative; }
.avatar-btn {
  width: 40px; height: 40px; border-radius: 9999px;
  border: 1px solid var(--border-input); background: none;
  padding: 0; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 9999px; }
.avatar-dropdown {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  width: 240px; background: #fff;
  border: 1px solid var(--border-input);
  border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14);
  z-index: 200; display: none; overflow: hidden;
}
.avatar-dropdown.is-open { display: block; }
.avatar-dd-header {
  padding: 16px; border-bottom: 1px solid #F0F1F5;
  display: flex; align-items: center; gap: 10px;
}
.avatar-dd-name { font-size: 14px; font-weight: 600; color: var(--text-heading); }
.avatar-dd-email { font-size: 12px; color: var(--text-muted); }
.avatar-dd-list { padding: 6px 0; }
.avatar-dd-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; text-decoration: none;
  color: var(--text-heading); font-size: 14px;
  transition: background .15s; cursor: pointer;
}
.avatar-dd-item:hover { background: var(--bg-page); }
.avatar-dd-item img { width: 18px; height: 18px; opacity: .6; }
.avatar-dd-divider { height: 1px; background: #F0F1F5; margin: 4px 0; }
.avatar-dd-item--danger { color: var(--danger); }
.avatar-dd-item--danger img { opacity: .8; }

/* ---------- Course Card Actions ---------- */
.cc-icons { display: flex; gap: 6px; }
.cc-icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: var(--bg-page);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s; padding: 0;
  text-decoration: none;
}
.cc-icon-btn:hover { background: #DCE9FF; }
.cc-icon-btn--danger:hover { background: #FEE2E2; }
.cc-icon-btn img { pointer-events: none; }

/* ---------- Upload Progress ---------- */
.upload-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; margin-top: 12px;
  border: 1px solid var(--border-input); border-radius: 12px;
  background: #fff;
}
.upload-item-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-page); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.upload-item-info { flex: 1; min-width: 0; }
.upload-item-name {
  font-size: 14px; font-weight: 500; color: var(--text-heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upload-item-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.upload-track {
  height: 6px; border-radius: 9999px; background: #E5EEFF;
  margin-top: 6px; overflow: hidden;
}
.upload-track-fill {
  height: 100%; border-radius: 9999px;
  background: var(--primary); transition: width .3s ease;
}
.upload-track-fill.is-success { background: #059669; }
.upload-track-fill.is-error { background: var(--danger); }
.upload-status { font-size: 12px; margin-top: 4px; color: var(--text-muted); }
.upload-status.is-success { color: #059669; }
.upload-status.is-error { color: var(--danger); }
.upload-remove {
  width: 28px; height: 28px; border-radius: 6px;
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.upload-remove:hover { background: #FEE2E2; }

/* ---------- Profile Page ---------- */
.prof-main {
  margin: 24px; min-height: calc(100dvh - 48px);
}
.prof-card {
  background: #fff; border-radius: 16px;
  border: 1px solid var(--border-input);
  padding: 32px; margin-bottom: 24px;
}
.prof-header {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 28px;
}
.prof-avatar {
  width: 96px; height: 96px; border-radius: 9999px;
  border: 3px solid var(--primary); overflow: hidden;
  flex-shrink: 0; background: var(--bg-page);
}
.prof-avatar img { width: 100%; height: 100%; object-fit: cover; }
.prof-name { font-size: 22px; font-weight: 700; color: var(--text-heading); margin: 0; }
.prof-role { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.prof-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.prof-field { display: flex; flex-direction: column; gap: 6px; }
.prof-field-label {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .3px;
}
.prof-field-value {
  font-size: 15px; color: var(--text-heading); padding: 10px 14px;
  background: var(--bg-page); border-radius: 10px;
  border: 1px solid #EEF0F6; min-height: 42px;
  display: flex; align-items: center;
}
.prof-actions {
  display: flex; gap: 12px; margin-top: 24px;
  padding-top: 24px; border-top: 1px solid #F0F1F5;
}
.prof-btn {
  padding: 10px 24px; border-radius: 10px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: background .15s;
  text-decoration: none;
}
.prof-btn--primary { background: var(--primary); color: #fff; }
.prof-btn--primary:hover { background: #1a3275; }
.prof-btn--ghost {
  background: transparent; color: var(--text-body);
  border: 1px solid var(--border-input);
}
.prof-btn--ghost:hover { background: var(--bg-page); }

/* ---------- Confirmation Modal ---------- */
.ecbs-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,28,48,.5);
  z-index: 500; display: none;
  align-items: center; justify-content: center;
}
.ecbs-modal-backdrop.is-open { display: flex; }
.ecbs-modal {
  background: #fff; border-radius: 16px;
  width: min(420px, 90vw); padding: 28px;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  text-align: center;
}
.ecbs-modal-icon {
  width: 56px; height: 56px; border-radius: 9999px;
  background: #FEE2E2; display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.ecbs-modal h3 {
  font-size: 18px; font-weight: 700; color: var(--text-heading);
  margin: 0 0 8px;
}
.ecbs-modal p {
  font-size: 14px; color: var(--text-body); margin: 0 0 24px; line-height: 1.5;
}
.ecbs-modal-actions { display: flex; gap: 12px; justify-content: center; }
.ecbs-modal-btn {
  padding: 10px 28px; border-radius: 10px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: background .15s;
}
.ecbs-modal-btn--danger { background: var(--danger); color: #fff; }
.ecbs-modal-btn--danger:hover { background: #991515; }
.ecbs-modal-btn--ghost {
  background: transparent; color: var(--text-body);
  border: 1px solid var(--border-input);
}
.ecbs-modal-btn--ghost:hover { background: var(--bg-page); }

/* ---------- Toast / Flash Messages ---------- */
.ecbs-toast {
  position: fixed; bottom: 24px; inset-inline-end: 24px;
  padding: 14px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 500; color: #fff;
  z-index: 600; transform: translateY(120%);
  transition: transform .3s ease; box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.ecbs-toast.is-visible { transform: translateY(0); }
.ecbs-toast--success { background: #059669; }
.ecbs-toast--error { background: var(--danger); }

/* ---------- Notifications Page ---------- */
.np-main { margin: 24px; min-height: calc(100dvh - 48px); }
.np-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.np-head h2 { font-size: 22px; font-weight: 700; color: var(--text-heading); margin: 0; }
.np-mark-all {
  font-size: 14px; color: var(--primary); cursor: pointer;
  background: none; border: none; font-family: var(--font); font-weight: 500;
}
.np-mark-all:hover { text-decoration: underline; }
.np-list { display: flex; flex-direction: column; gap: 8px; }
.np-card {
  display: flex; gap: 14px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--border-input);
  border-radius: 12px; transition: background .15s;
}
.np-card:hover { background: #F8F9FF; }
.np-card.is-unread { background: #EFF4FF; border-color: #DCE9FF; }
.np-card-dot {
  width: 10px; height: 10px; border-radius: 9999px;
  background: var(--primary); flex-shrink: 0; margin-top: 6px;
}
.np-card-dot.is-read { background: #D1D5DB; }
.np-card-body { flex: 1; min-width: 0; }
.np-card-title { font-size: 15px; font-weight: 600; color: var(--text-heading); margin: 0; }
.np-card-text { font-size: 14px; color: var(--text-body); margin: 4px 0 0; line-height: 1.5; }
.np-card-time { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ---------- Mobile Responsive for new components ---------- */
@media (max-width: 900px) {
  .notif-dropdown { width: min(360px, 90vw); right: auto; inset-inline-end: -60px; }
  .prof-grid { grid-template-columns: 1fr; }
  .prof-header { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .mc-search-input { width: 180px; }
  .notif-dropdown { width: min(320px, 88vw); }
  .prof-main { margin: 12px; }
  .prof-card { padding: 20px; }
}

/* =============================================
   ECBS NOTIFICATIONS PAGE
   ============================================= */
.ecbs-notif-list { display: flex; flex-direction: column; gap: 10px; }
.ecbs-notif-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border-radius: 12px; padding: 16px 18px;
  border: 1px solid var(--border, #E5E7EB); cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ecbs-notif-item:hover { background: #F9FAFB; border-color: #D1D5DB; }
.ecbs-notif-item--read { opacity: .6; }
.ecbs-notif-icon {
  position: relative; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--primary, #1E3A8A); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ecbs-notif-icon--unread { background: #2563EB; }
.ecbs-notif-dot {
  position: absolute; top: -3px; right: -3px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #EF4444; border: 2px solid #fff;
}
.ecbs-notif-body { flex: 1; min-width: 0; }
.ecbs-notif-body h4 { font-size: 14px; font-weight: 600; color: var(--text-heading); margin: 0 0 4px; }
.ecbs-notif-body p { font-size: 13px; color: var(--text-body); margin: 0; line-height: 1.5; }
.ecbs-notif-body time { font-size: 12px; color: var(--text-muted); margin-top: 6px; display: block; }
.ecbs-notif-empty {
  text-align: center; padding: 60px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ecbs-notif-empty p { font-size: 15px; color: var(--text-muted); }
.ecbs-notif-pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 20px; padding: 10px 0;
}
.ecbs-notif-pagination a, .ecbs-notif-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; text-decoration: none;
  color: var(--text-body); background: #fff; border: 1px solid var(--border, #E5E7EB);
  transition: all .15s;
}
.ecbs-notif-pagination a:hover { background: var(--primary, #1E3A8A); color: #fff; border-color: var(--primary); }
.ecbs-notif-pagination .active { background: var(--primary, #1E3A8A); color: #fff; border-color: var(--primary); }

/* Notification detail slide panel */
.ecbs-notif-detail {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(480px, 90vw); background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  z-index: 900; transform: translateX(100%);
  transition: transform .3s ease;
  display: flex; flex-direction: column;
  font-family: var(--font);
}
.ecbs-notif-detail.is-open { transform: translateX(0); }
.ecbs-notif-detail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border, #E5E7EB);
}
.ecbs-notif-detail-head h3 { font-size: 16px; font-weight: 600; color: var(--text-heading); margin: 0; }
.ecbs-notif-detail-body { flex: 1; overflow-y: auto; padding: 24px; font-size: 14px; color: var(--text-body); line-height: 1.7; }

/* =============================================
   ECBS SETTINGS / PROFILE PAGE
   ============================================= */
.ecbs-settings-nav {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px;
  background: #fff; border-radius: 12px; padding: 6px;
  border: 1px solid var(--border, #E5E7EB);
}
.ecbs-settings-nav-item {
  display: inline-flex; align-items: center; padding: 10px 18px;
  border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--text-body); text-decoration: none;
  transition: all .15s;
}
.ecbs-settings-nav-item:hover { background: #F3F4F6; color: var(--text-heading); }
.ecbs-settings-nav-item--active { background: var(--primary, #1E3A8A); color: #fff; }
.ecbs-settings-avatar {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-bottom: 28px;
}
.ecbs-settings-avatar img {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--primary, #1E3A8A);
}
.ecbs-settings-avatar-frame {
  width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.ecbs-settings-avatar-frame img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--primary, #1E3A8A);
}
.ecbs-settings-avatar-placeholder {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--primary, #1E3A8A); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700;
}
.ecbs-settings-avatar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  background: #F3F4F6; color: var(--text-body);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .15s;
}
.ecbs-settings-avatar-btn:hover { background: #E5E7EB; }
.ecbs-settings-form .cc-card { margin-bottom: 0; }
.ecbs-settings-attachments { display: flex; flex-direction: column; gap: 8px; }
.ecbs-settings-attachment {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: #F9FAFB; border-radius: 8px;
  font-size: 13px; color: var(--text-body);
}
.ecbs-settings-history { display: flex; flex-direction: column; }
.ecbs-settings-history-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border, #E5E7EB);
}
.ecbs-settings-history-item:last-child { border-bottom: none; }

/* =============================================
   ECBS COURSE DETAIL PAGE (lessons list)
   ============================================= */
.cd-section-title { font-size: 14px; font-weight: 600; color: var(--text-heading); margin: 0 0 14px; }

/* =============================================
   MODAL (shared)
   ============================================= */
.ecbs-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  z-index: 999; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.ecbs-modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.ecbs-modal {
  background: #fff; border-radius: 16px; padding: 28px 24px;
  max-width: 380px; width: 90%; text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  transform: scale(.95); transition: transform .2s;
}
.ecbs-modal-backdrop.is-open .ecbs-modal { transform: scale(1); }
.ecbs-modal-icon { margin-bottom: 14px; }
.ecbs-modal h3 { font-size: 16px; font-weight: 600; color: var(--text-heading); margin: 0 0 8px; }
.ecbs-modal p { font-size: 13px; color: var(--text-body); margin: 0 0 20px; line-height: 1.6; }
.ecbs-modal-actions { display: flex; gap: 10px; justify-content: center; }
.ecbs-modal-btn {
  padding: 10px 24px; border-radius: 8px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.ecbs-modal-btn--ghost { background: #F3F4F6; color: var(--text-body); }
.ecbs-modal-btn--ghost:hover { background: #E5E7EB; }
.ecbs-modal-btn--danger { background: #BA1A1A; color: #fff; }
.ecbs-modal-btn--danger:hover { background: #9B1515; }
.ecbs-modal-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   ECBS COURSE DETAIL / VIEW PAGE (instructor)
   ============================================================ */
.vc-side {
  position: static;
  width: 278px;
  height: auto;
  flex-shrink: 0;
  margin-top: 3px;
}

.vc-main {
  flex: 1;
  min-width: 0;
  /* border: 1px solid var(--border-input); */
  padding: 0 0 48px;
}
.vc-main .mc-topbar {
  position: relative;
  z-index: 300;
  width: auto;
  margin: 31px 32px 0;
}

.vc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 60px 32px 24px;
}
.vc-h1 { font-size: 24px; font-weight: 700; color: var(--text-dark); margin: 0; }
.vc-actions { display: flex; gap: 12px; }
.vc-btn-preview,
.vc-btn-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  border: 1.5px solid transparent;
}
.vc-btn-preview {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
}
.vc-btn-preview:hover { background: var(--bg-page); }
.vc-btn-save {
  background: var(--primary);
  color: #fff;
}
.vc-btn-save:hover { background: #162D6B; }

/* Bento grid */
.vc-bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
  margin: 0 32px 28px;
}
@media (max-width: 960px) { .vc-bento { grid-template-columns: 1fr; } }

.vc-info {
  background: #fff;
  border: 1px solid var(--border-input);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.vc-info-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.vc-info-head svg { stroke: var(--primary); }
.vc-info-head h2 { font-size: 18px; font-weight: 700; color: var(--text-dark); margin: 0; }

.vc-form { display: flex; flex-direction: column; gap: 20px; }
.vc-row { display: grid; gap: 16px; }
.vc-row--two { grid-template-columns: 1fr 1fr; }
.vc-row--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .vc-row--two, .vc-row--three { grid-template-columns: 1fr; }
}
.vc-field { display: flex; flex-direction: column; }
.vc-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.vc-input {
  width: 100%;
  background: var(--bg-page);
  border: 1.5px solid var(--border-input);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-dark);
  min-height: 46px;
  display: flex;
  align-items: center;
}
.vc-input--icon { display: flex; align-items: center; }
.vc-input--icon span { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.vc-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: var(--bg-page);
  border: 1.5px solid var(--border-input);
  border-radius: 10px;
  padding: 12px 16px;
  min-height: 46px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.vc-select-chev { opacity: .5; }
.vc-desc {
  background: var(--bg-page);
  border: 1.5px solid var(--border-input);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-body);
  min-height: 96px;
}

/* Side column */
.vc-side-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.vc-thumb-card {
  background: #fff;
  border: 1px solid var(--border-input);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.vc-thumb-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--deco-lavender);
  overflow: hidden;
}
.vc-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vc-thumb-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
}
.vc-state-label { font-size: 13px; color: var(--text-muted); }
.vc-chip-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #065F46;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 100px;
  padding: 5px 12px;
}
.vc-chip-status i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
}
.vc-chip-status--draft {
  color: #92400E;
  background: #FFFBEB;
  border-color: #FDE68A;
}
.vc-chip-status--draft i { background: #F59E0B; }

.vc-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.vc-stat-card {
  background: #fff;
  border: 1px solid var(--border-input);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.vc-stat-bubble {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.vc-stat-bubble img { opacity: .8; }
.vc-stat-card strong { font-size: 22px; font-weight: 700; color: var(--text-dark); }
.vc-stat-card span { font-size: 12px; color: var(--text-muted); }

.vc-rating-card {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px solid var(--border-input);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
}
.vc-rating-bubble {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vc-rating-text { display: flex; flex-direction: column; }
.vc-rating-text strong { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.vc-rating-text span { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Panels (lessons / files) */
.vc-panel {
  background: #fff;
  border: 1px solid var(--border-input);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  margin: 0 32px 24px;
  overflow: hidden;
}
.vc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-input);
}
.vc-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vc-panel-title img { opacity: .8; }
.vc-panel-title h2 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin: 0; }
.vc-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
}
.vc-add-btn:hover { background: #162D6B; }

.vc-list { padding: 8px 24px 16px; }

.vc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #EEF0F6;
}
.vc-item:last-child { border-bottom: none; }
.vc-item-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vc-item-circle--alt { background: #FFFBEB; }
.vc-item-square {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--deco-lavender);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vc-item-square--dl { background: var(--bg-page); }
.vc-item-body { flex: 1; min-width: 0; }
.vc-item-body h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 8px;
  line-height: 1.5;
}
.vc-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.vc-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.vc-meta-chip svg { stroke: var(--text-muted); }
.vc-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #D1D5DB;
}
.vc-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.vc-item-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 8px;
  flex-shrink: 0;
}
.vc-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  color: var(--text-muted);
}
.vc-tool-btn:hover {
  border-color: var(--primary);
  background: var(--bg-page);
  color: var(--primary);
}
.vc-tool-btn--view img { filter: none; }

@media (max-width: 1339px) {
  .vc-head { flex-direction: column; align-items: flex-start; }
  .vc-side {
    position: fixed;
    inset-inline-start: auto;
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100dvh;
  }
}


/* ============ ECBS Statistics & Enrollments ============ */
.ecbs-card.card { box-shadow: var(--shadow-card); }
.st-head { flex-wrap: wrap; gap: 16px; }
.st-head-info { display: flex; align-items: center; gap: 16px; }
.st-course-thumb {
  width: 72px; height: 52px; border-radius: 10px; overflow: hidden;
  flex-shrink: 0; border: 1px solid var(--border-input);
}
.st-course-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ecbs-tabs {
  display: flex; gap: 8px; margin: 24px 0; border-bottom: 1px solid var(--border-input);
  padding-bottom: 0;
}
.ecbs-tab {
  padding: 10px 20px; border: none; background: transparent; cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.ecbs-tab--active { color: var(--primary); border-bottom-color: var(--primary); }
.ecbs-tab:hover { color: var(--primary); }

.stats-selector { padding: 20px; }
.stats-selector-label { display: block; font-size: 14px; font-weight: 700; color: var(--text-body); margin-bottom: 10px; }
.stats-selector-control { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.stats-select {
  flex: 1; min-width: 240px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border-input); background: #fff; color: var(--text-body);
  font-family: var(--font); font-size: 14px;
}
.stats-selector-hint { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.ecbs-table-wrap { overflow-x: auto; padding: 4px; }
.ecbs-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.ecbs-table thead th {
  text-align: right; padding: 12px 14px; font-size: 12px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px;
  border-bottom: 1px solid var(--line-card); white-space: nowrap;
}
.ecbs-table tbody td {
  padding: 12px 14px; font-size: 14px; color: var(--text-body);
  border-bottom: 1px solid var(--line-card); vertical-align: middle;
}
.ecbs-table tbody tr:last-child td { border-bottom: none; }
.ecbs-table tbody tr:hover { background: var(--bg-page); }
.ecbs-clickable-row { cursor: pointer; }
.ecbs-cell-actions { text-align: left; width: 56px; }
.ecbs-cell-actions .cc-icon-btn { margin-inline-start: auto; }
.ecbs-media-cell { display: flex; align-items: center; gap: 12px; }
.ecbs-media-cell img { flex-shrink: 0; }
.ecbs-title-cell { font-weight: 600; color: var(--text-dark); white-space: nowrap; }
.ecbs-cell-stack { display: flex; flex-direction: column; gap: 2px; }
.ecbs-cell-num { font-weight: 700; color: var(--text-dark); font-size: 14px; white-space: nowrap; }
.ecbs-cell-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.ecbs-avatar { width: 36px; height: 36px; border-radius: 9999px; overflow: hidden; flex-shrink: 0; }
.ecbs-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ecbs-badge {
  display: inline-block; padding: 3px 10px; border-radius: 9999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.ecbs-badge--success { background: #D1FAE5; color: #065F46; }
.ecbs-badge--danger { background: #FEE2E2; color: #991515; }
.ecbs-badge--warning { background: #FEF3C7; color: #92400E; }
.ecbs-badge--info { background: var(--blue-soft); color: var(--blue-mid); }

.ecbs-progress-cell { display: flex; align-items: center; gap: 8px; }
.ecbs-progress-cell .progress-track { background: var(--line-card); border-radius: 9999px; height: 6px; }
.ecbs-progress-cell .progress-fill { height: 6px; border-radius: 9999px; display: block; }

.ecbs-pagination { padding: 16px 14px 4px; }

.ecbs-modal--wide { width: min(720px, 94vw); text-align: right; }
.ecbs-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; text-align: right;
}
.ecbs-modal-head h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text-dark); }
.ecbs-modal-close {
  border: none; background: var(--bg-page); width: 32px; height: 32px; border-radius: 8px;
  font-size: 20px; line-height: 1; color: var(--text-muted); cursor: pointer;
}
.ecbs-modal-close:hover { background: var(--line-card); color: var(--text-dark); }
.ecbs-modal-body { text-align: right; }

.sd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.sd-kpi {
  background: var(--bg-page); border: 1px solid var(--line-card); border-radius: 12px;
  padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.sd-kpi-num { font-size: 20px; font-weight: 700; color: var(--text-dark); }
.sd-kpi .sd-meta { font-size: 13px; font-weight: 600; word-break: break-all; }
.sd-kpi-label { font-size: 12px; color: var(--text-muted); }
.sd-sec-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin: 18px 0 10px; }

.ecbs-empty {
  padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 14px;
}

.ecbs-list { display: flex; flex-direction: column; }
.ecbs-list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; text-decoration: none; border-bottom: 1px solid var(--line-card);
  transition: background .15s;
}
.ecbs-list-item:last-child { border-bottom: none; }
.ecbs-list-item:hover { background: var(--bg-page); }
.ecbs-list-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 90px; }

@media (max-width: 640px) {
  .stats-selector-control { flex-direction: column; align-items: stretch; }
  .stats-select { min-width: 0; }
}

/* ---------- Clickable KPI cards (dashboard) ---------- */
a.kpi-card--link { display: block; text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.kpi-card--link:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(30, 58, 138, 0.12); }

/* ---------- Row actions (management tables) ---------- */
.ecbs-row-actions { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- View course content variants ---------- */
.vc-item-square--qr { background: rgba(30, 58, 138, 0.10); }
.vc-item-square--aw { background: rgba(30, 58, 138, 0.10); }

/* ---------- View Course Create Modals ---------- */
.vc-modal-backdrop {
  position: fixed; inset: 0; background: rgba(11,28,48,.5);
  z-index: 600; display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.vc-modal-backdrop.is-open { display: flex; }
.vc-modal {
  background: #fff; border-radius: 16px; width: min(520px, 100%);
  max-height: 90vh; overflow: auto;
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
}
.vc-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line-card, rgba(197,197,211,.2));
}
.vc-modal-head h3 { font-size: 17px; font-weight: 700; color: var(--text-dark); margin: 0; }
.vc-modal-close {
  background: var(--bg-page); border: none; width: 32px; height: 32px;
  border-radius: 8px; font-size: 20px; line-height: 1; color: var(--text-muted);
  cursor: pointer;
}
.vc-modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.vc-modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 16px 24px; border-top: 1px solid var(--line-card, rgba(197,197,211,.2));
}
.vc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vc-label { font-size: 13px; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: 8px; }
.vc-muted { font-size: 12.5px; color: var(--text-muted); margin: 0; line-height: 1.6; }
.vc-textarea { min-height: 90px; resize: vertical; }
.vc-btn-ghost {
  background: var(--bg-page); border: 1.5px solid var(--border-input); color: var(--text-body);
  padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.vc-btn-primary {
  background: var(--primary); border: none; color: #fff; padding: 11px 22px;
  border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.vc-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.ecbs-title-link {
  color: var(--primary); text-decoration: none; font-weight: 700; cursor: pointer;
}
.ecbs-title-link:hover { color: var(--text-heading, #003D88); text-decoration: underline; }
.ecbs-cell-num--strong { font-weight: 700; color: var(--text-dark); }

/* ===== Quiz result review ===== */
.ecbs-result-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 4px 0; }
.ecbs-result-summary { display: flex; flex-wrap: wrap; gap: 20px; }
.ecbs-result-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 92px; }
.ecbs-result-num { font-size: 20px; font-weight: 800; color: var(--text-dark); }
.ecbs-result-num--success { color: #16A34A; }
.ecbs-result-num--danger { color: #BA1A1A; }
.ecbs-result-num--warning { color: #B45309; }
.ecbs-result-label { font-size: 12px; color: var(--text-muted); }
.ecbs-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-body); margin-bottom: 6px; }
.ecbs-input {
  width: 100%; max-width: 220px; padding: 10px 14px; border: 1px solid var(--border-input);
  border-radius: 10px; font-size: 14px; color: var(--text-dark); background: #fff;
}
.ecbs-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,58,138,.12); }

.ecbs-qa-list { display: flex; flex-direction: column; gap: 18px; }
.ecbs-qa-item { border: 1px solid var(--line-card); border-radius: 14px; padding: 18px; background: #fff; }
.ecbs-qa-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ecbs-qa-index { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--blue-soft); color: var(--primary); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ecbs-qa-title { flex: 1; }
.ecbs-qa-title h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin: 0; }
.ecbs-qa-img { margin-top: 10px; max-width: 100%; max-height: 180px; border-radius: 10px; }
.ecbs-qa-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ecbs-qa-col { display: flex; flex-direction: column; }
.ecbs-qa-answer { background: var(--bg-page); border: 1px solid var(--line-card); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--text-body); white-space: pre-wrap; min-height: 60px; }
.ecbs-qa-answer--correct { background: rgba(34,197,94,.06); border-color: rgba(34,197,94,.25); color: #14532d; }
.ecbs-result-grade-input { margin-top: 16px; display: flex; align-items: center; gap: 14px; }
.ecbs-result-grade-input .ecbs-label { margin: 0; }

.ecbs-qa-options { display: flex; flex-direction: column; gap: 8px; }
.ecbs-qa-option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-card); border-radius: 10px; padding: 10px 14px; background: #fff; }
.ecbs-qa-option--correct { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.06); }
.ecbs-qa-option--wrong { border-color: rgba(186,26,26,.45); background: rgba(186,26,26,.05); }
.ecbs-qa-option--user-correct { border-color: var(--primary); outline: 2px solid rgba(30,58,138,.15); }
.ecbs-qa-option-mark { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; }
.ecbs-qa-option--correct .ecbs-qa-option-mark { background: #16A34A; }
.ecbs-qa-option--wrong .ecbs-qa-option-mark { background: #BA1A1A; }
.ecbs-qa-option-text { flex: 1; font-size: 14px; color: var(--text-body); }
.ecbs-result-actions { display: flex; gap: 12px; margin-top: 20px; }

/* ===== Assignment review thread ===== */
.ecbs-muted { color: var(--text-muted); }
.ecbs-thread { display: flex; flex-direction: column; gap: 14px; }
.ecbs-thread-item { border: 1px solid var(--line-card); border-radius: 12px; padding: 14px; }
.ecbs-thread-item--student { border-color: rgba(30,58,138,.25); background: rgba(30,58,138,.03); }
.ecbs-thread-item--instructor { background: var(--bg-page); }
.ecbs-thread-sender { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.ecbs-thread-date { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.ecbs-thread-text { font-size: 14px; color: var(--text-body); margin: 0 0 10px; white-space: pre-wrap; }
.ecbs-thread-file { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; padding: 7px 12px; border: 1px solid var(--line-card); border-radius: 8px; background: #fff; }
.ecbs-thread-file:hover { border-color: var(--primary); }

/* ===== view-course additions (sourced from documents/ecbs-front/css/styles.css) ===== */
.vc-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.vc-thumb-overlay span {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: #FFFFFF;
}
.vc-rating-btn {
  margin-inline-start: auto;
  width: 24px;
  height: 31px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.cc-form-errors {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #f3c1c1;
  border-radius: 10px;
  background: #fff4f4;
  color: #b02020;
  font-size: 13px;
}
.cc-form-errors__list {
  margin: 8px 0 0;
  padding-right: 18px;
}
.cc-form-errors__list li {
  margin: 3px 0;
}
