/* Mediword Webinars — Design System
   Extracted from the spec mockup. Scoped to .mw-webinar-scope.
   Import Inter Tight from Google Fonts in the layout or add @import here.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────── */
.mw-webinar-scope, .mw-webinar-scope * { box-sizing: border-box; }
/* ── Zoom SDK: only fix box-sizing — the SDK wrapper is outside .mw-webinar-scope
      so scoped CSS never reaches Zoom DOM. Bootstrap's global box-sizing still
      applies, which Zoom SDK v6 handles internally. The one exception that can
      break layout is box-sizing on the root element itself. ── */
#zoom-embedded-root { box-sizing: content-box; }
.mw-webinar-scope {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --ink: #0b5052;
  --ink-2: #3c4350;
  --muted: #707684;
  --line: #e7e6e1;
  --line-2: #efeee9;
  --brand: #0b5052;
  --brand-soft: #eaf0ff;
  --brand-ink: #0b5052;
  --accent: oklch(0.58 0.10 195);
  --accent-soft: oklch(0.94 0.03 195);
  --accent-ink: oklch(0.32 0.08 195);
  --gold: #b8860b;
  --gold-soft: #fff8e6;
  --warn: oklch(0.62 0.14 35);
  --warn-soft: oklch(0.95 0.04 35);
  --good: oklch(0.55 0.13 150);
  --good-soft: oklch(0.95 0.04 150);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --font-sans: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --shadow-sm: 0 1px 0 rgba(20,23,26,.04),0 1px 2px rgba(20,23,26,.04);
  --shadow: 0 1px 0 rgba(20,23,26,.04),0 8px 24px -12px rgba(20,23,26,.18);
  --shadow-lg: 0 1px 0 rgba(20,23,26,.04),0 24px 60px -24px rgba(20,23,26,.28);

  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────────────────────────────── */
/* .mw-webinar-scope a { color: inherit; } */
.mw-main {
  padding-top: 28px;
  padding-bottom: 80px;
}
@media (max-width: 768px) {
  .mw-main { padding: 20px 16px 60px; }
}

/* ── Hero ───────────────────────────────────────────────────────────── */
.mw-hero { text-align: center; }
.mw-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-soft); color: var(--brand-ink);
  padding: 5px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; margin-bottom: 16px;
}
.mw-hero h1 {
  font-size: 44px; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.1;
  margin: 0 0 12px;
}
.mw-hero p {
  font-size: 17px; color: var(--ink-2); max-width: 600px;
   margin: 0 auto; line-height: 1.5;
}
@media (max-width: 600px) {
  .mw-hero h1 { font-size: 28px; }
  .mw-hero p { font-size: 15px; }
}

.search-form{display: flex; column-gap: 10px; justify-content: flex-end; margin-bottom: 10px;}
.search-form input{ padding: 10px 50px 10px 15px; line-height: 28px; font-size: 16px; border-radius: 40px; border: 1px solid var(--line); width: 100%; max-width: 460px;}
.search-form-group{position: relative; flex: 1; max-width: 460px;}
.search-form-group .clear-btn{position: absolute; top: 0; right: 0; padding: 10px 15px; line-height: 30px; color: rgb(var(--primary));}

/* ── Trust strip ────────────────────────────────────────────────────── */
.trust-strip {
  display: flex; justify-content: center; gap: 32px;
  margin: 8px 0 28px; font-size: 16px; color: var(--muted); flex-wrap: wrap;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip b { color: var(--ink); font-weight: 600; }

/* ── Exam tabs ──────────────────────────────────────────────────────── */
.exam-tabs {
  display: flex; gap: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 5px;
  margin: 28px auto 24px; max-width: fit-content; min-width: 600px;
  justify-content: center; overflow-x: auto;
}
.exam-tab {
  flex: 1; background: transparent; border: none;
  padding: 8px 12px; border-radius: 7px;
  font-size: 16px; font-weight: 600; color: var(--muted);
  cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 6px; letter-spacing: 0.01em;
  white-space: nowrap; text-decoration: none;
}
.exam-tab:hover { background: var(--surface-2); color: var(--ink); }
.exam-tab.active { background: var(--ink); color: white; }
.exam-tab .et-count {
  background: rgba(255,255,255,.18); padding: 1px 6px;
  border-radius: 999px; font-size: 11px; font-weight: 600;
}
.exam-tab:not(.active) .et-count { background: var(--surface-2); color: var(--muted); }

/* ── Section heads ──────────────────────────────────────────────────── */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  margin: 28px 0 12px;
}
.section-title {
  
  font-size: 24px; letter-spacing: -0.01em; font-weight: 500; margin: 0;
}
.section-sub { color: var(--muted); font-size: 13px; }

/* ── Exam pills ─────────────────────────────────────────────────────── */
.exam-pill {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  padding: 5px 8px 2px; border-radius: 4px;
}
.exam-pill-MSRA  { background: #eaf0ff; color: #1a2f8c; }
.exam-pill-UKMLA { background: #fff4e6; color: #8a4d09; }
.exam-pill-MRCS  { background: #e8f6ee; color: #1d5a36; }
.exam-pill-UCAT  { background: #fbe7f1; color: #891f54; }
.exam-pill-MRCP  { background: #ece1fd; color: #4a1d8a; }
.exam-pill-default { background: rgba(var(--primary), 0.2); color: #000; }

/* ── Webinar hero (live now featured card) ──────────────────────────── */
.webinar-hero {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 32px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: center; margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.webinar-hero::before {
  content: "";
  position: absolute; top: 0; right: 0; width: 320px; height: 100%;
  background:
    radial-gradient(circle at 80% 30%,oklch(0.92 0.06 240 / 0.6),transparent 60%),
    radial-gradient(circle at 60% 80%,oklch(0.94 0.05 195 / 0.5),transparent 60%);
  pointer-events: none;
}
.webinar-hero-content { position: relative; }
.webinar-hero-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-ink); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.webinar-hero-eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.62 0.20 25);
  box-shadow: 0 0 0 4px oklch(0.62 0.20 25 / 0.2);
  animation: live-pulse 1.6s infinite;
}
@keyframes live-pulse {
  0%,100% { box-shadow: 0 0 0 4px oklch(0.62 0.20 25 / 0.25); }
  50% { box-shadow: 0 0 0 8px oklch(0.62 0.20 25 / 0); }
}
.webinar-hero h2 {
  
  font-size: 30px; letter-spacing: -0.02em; font-weight: 500;
  margin: 0 0 8px; line-height: 1.15;
}
.webinar-hero p { color: var(--ink-2); margin: 0 0 16px; max-width: 540px; }
.webinar-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Cam avatar (host initials circle) ─────────────────────────────── */
.cam-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg,oklch(0.55 0.10 240),oklch(0.45 0.12 280));
  color: white; display: grid; place-items: center;
   font-size: 32px;
  font-weight: 500; letter-spacing: -0.02em;
}

/* ── Webinar list + rows ─────────────────────────────────────────────── */
.webinar-list { display: flex; flex-direction: column; gap: 10px; }
.webinar-row {
  display: grid; grid-template-columns: 92px 1fr auto;
  gap: 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; align-items: center;
  transition: border-color .12s, box-shadow .12s;
}
.webinar-row:hover { border-color: #d3cdbe; box-shadow: var(--shadow); }
.webinar-row.live {
  border-color: oklch(0.62 0.20 25);
  background: linear-gradient(to right, oklch(0.97 0.03 25), var(--surface) 12%);
}

/* Date block */
.date-block {
  text-align: center; border-right: 1px solid var(--line-2); padding-right: 16px;
}
.date-block .month {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--brand); font-weight: 600;
}
.date-block .day {
   font-size: 34px;
  font-weight: 500; letter-spacing: -0.02em; line-height: 1; margin: 4px 0;
}
.date-block .weekday {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
}

/* Webinar info */
.webinar-info h3 {
  
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 6px;
}
.webinar-meta-row {
  display: flex; gap: 14px; font-size: 13px;
  color: var(--muted); flex-wrap: wrap; align-items: center;
}
.webinar-meta-row i{color: #0b5052;}
.webinar-meta-row span { display: inline-flex; align-items: center; gap: 5px; }
.webinar-tags { display: flex; gap: 6px; margin-top: 0; flex-wrap: wrap; margin-bottom: 10px; }
.wbtag {
  font-size: 12px; padding: 5px 8px 2px; border-radius: 4px;
  background: rgba(var(--primary), 0.05); border: 1px solid var(--line); color: var(--ink-2);
}

/* Live pill */
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: oklch(0.62 0.20 25); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 4px; text-transform: uppercase;
}
.live-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: white; animation: live-pulse-w 1.4s infinite;
}
@keyframes live-pulse-w { 50% { opacity: .3; } }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.mw-btn {
  border: 1px solid var(--line); background: var(--surface);
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .12s, border-color .12s; text-decoration: none;
}
.mw-btn:hover { background: var(--surface-2); border-color: #d8d2c4; }
.btn-join {
  background: oklch(0.55 0.18 240); color: white; border: none;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-join:hover { background: oklch(0.48 0.18 240); color: white; }
.btn-join-now {
  width: 100%; background: oklch(0.55 0.18 240); color: white;
  border: none; padding: 13px; border-radius: 8px;
  font-size: 15px; font-weight: 600;
}
.btn-join-now:hover { background: oklch(0.48 0.18 240); }

/* ── Notify button ───────────────────────────────────────────────────── */
.notify-btn {
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; transition: all .12s;
}
.notify-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.notify-btn.subscribed {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink);
}
.notify-btn .bell-svg { width: 14px; height: 14px; flex-shrink: 0; }
.notify-pop {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-lg);
  width: 280px; z-index: 50; overflow: hidden;
}
.notify-pop-row {
  display: flex; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--line-2); font-size: 13px;
}
.notify-pop-row:last-child { border-bottom: none; }
.notify-pop-row:hover { background: var(--surface-2); cursor: pointer; }
.notify-pop-row input { margin-top: 2px; accent-color: var(--brand); }
.notify-pop-row label { cursor: pointer; flex: 1; line-height: 1.3; }
.notify-pop-row label .muted-text { color: var(--muted); font-size: 12px; }

/* ── Embed banner ───────────────────────────────────────────────────── */
.embed-banner {
  background: var(--accent-soft); border: 1px solid oklch(0.85 0.05 195);
  border-radius: var(--radius); padding: 10px 14px;
  font-size: 13px; color: var(--accent-ink);
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.embed-banner svg { flex-shrink: 0; }

/* ── Breadcrumbs ─────────────────────────────────────────────────────── */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs button { background: none; border: none; color: var(--muted); padding: 0; font: inherit; cursor: pointer; }
.crumbs button:hover { color: var(--ink); text-decoration: underline; }
.crumbs .sep { color: var(--line); }
.crumbs .current { color: var(--ink); font-weight: 500; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ── Page head ───────────────────────────────────────────────────────── */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line); padding-bottom: 20px; flex-wrap: wrap;
}
.page-title {  font-size: 36px; letter-spacing: -0.02em; margin: 0; font-weight: 500; line-height: 1.1; }
.page-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.page-actions { display: flex; gap: 8px; align-items: center; }

/* ── Lobby card ──────────────────────────────────────────────────────── */
.lobby-card {
  background: #1a1a1a; border-radius: var(--radius-lg); border: 1px solid #000;
  padding: 32px; display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 32px; align-items: center; color: white; box-shadow: var(--shadow-lg);
}
.lobby-preview {
  background: #0c0c0c; border-radius: 12px;
  aspect-ratio: 16/10; position: relative; overflow: hidden;
}
.lobby-preview .cam-tile {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  display: flex; align-items: center; justify-content: center;
}
.lobby-preview .cam-name-tag {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,.55); color: white; padding: 4px 10px;
  border-radius: 4px; font-size: 13px; display: flex; align-items: center; gap: 6px;
}
.lobby-info h3 {  font-size: 24px; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.01em; }
.lobby-info .sub { color: #aaa; margin: 0 0 20px; font-size: 14px; }
.lobby-toggles { display: flex; gap: 10px; margin-bottom: 20px; }
.toggle-btn {
  flex: 1; background: #2c2c2c; border: 1px solid #333; color: white;
  padding: 12px; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px;
}
.toggle-btn.off { color: #ff8a6b; border-color: #5a3232; }
.toggle-btn:hover { background: #1f1f1f; }
.lobby-name {
  background: #2c2c2c; border: 1px solid #444; color: white;
  padding: 10px 12px; border-radius: 6px; width: 100%;
  font: inherit; margin-bottom: 14px; outline: none;
}
.lobby-name:focus { border-color: oklch(0.55 0.18 240); }
@media (max-width: 640px) {
  .lobby-card { grid-template-columns: 1fr; }
  
}

/* ── Zoom embed frame ────────────────────────────────────────────────── */
.zoom-embed-frame {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
}
.zoom-embed-frame-bar {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted); padding: 0 4px;
}
.zoom-embed-frame-bar .zb-host {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
}
.zoom-embed-frame-bar .zb-dot { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.62 0.18 150); }
.zoom-embed-frame-bar .gap-2 { display: flex; gap: 8px; }
.zoom-embed {
  background: #1a1a1a; border-radius: var(--radius-lg); border: 1px solid #000;
  overflow: hidden; height: 700px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); position: relative; color: #f0f0f0;
}
.zoom-embed.fullscreen { position: fixed; inset: 0; z-index: 60; border-radius: 0; height: 100vh; }
.zoom-top {
  background: #2c2c2c; border-bottom: 1px solid #000;
  padding: 8px 16px; display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #d8d8d8; flex: 0 0 auto;
}
.zoom-top-left { display: flex; align-items: center; gap: 16px; }
.zoom-encrypt {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1f3d2c; padding: 3px 8px; border-radius: 4px;
  font-size: 11px; color: #6dcb96;
}
.zoom-recording {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: #ff6464;
}
.zoom-recording::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff4040; animation: live-pulse-w 1.6s infinite; }
.zoom-clock { font-variant-numeric: tabular-nums; font-size: 12px; }
.zoom-stage { flex: 1; display: flex; background: #1a1a1a; min-height: 0; overflow: hidden; }
.zoom-main { flex: 1; position: relative; background: #0c0c0c; display: flex; flex-direction: column; min-width: 0; }
.zoom-speaker {
  flex: 1; position: relative; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 30%, #2a3340 0%, #0c0c0c 70%); overflow: hidden;
}
.zoom-speaker-tile { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.cam-tile { width: 100%; height: 100%; background: linear-gradient(135deg,#1d2733 0%,#0e1620 100%); position: relative; display: flex; align-items: center; justify-content: center; }
.cam-tile.muted-video { background: linear-gradient(135deg,#2a2a2a 0%,#1a1a1a 100%); }
.cam-tile .cam-avatar { width: 140px; height: 140px; font-size: 56px; }
.cam-tile.with-video .cam-avatar { display: none; }
.cam-tile.with-video::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 35% 40%,oklch(0.45 0.08 30) 0%,oklch(0.18 0.04 260) 60%,#0c0c0c 100%); opacity: .85; }
.cam-tile.with-video .cam-overlay-figure { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 38%; aspect-ratio: 1/1.1; background: radial-gradient(ellipse 50% 40% at 50% 35%,oklch(0.65 0.06 30) 0%,transparent 70%), radial-gradient(ellipse 70% 60% at 50% 110%,oklch(0.35 0.04 260) 0%,transparent 70%); z-index: 1; }
.cam-name-tag { position: absolute; bottom: 12px; left: 12px; background: rgba(0,0,0,.55); color: white; padding: 4px 10px; border-radius: 4px; font-size: 13px; display: flex; align-items: center; gap: 6px; z-index: 2; }
.cam-name-tag .mic-on { color: #6dcb96; }
.cam-name-tag .mic-off { color: #ff6b6b; }
.cam-name-tag .host-badge { background: oklch(0.55 0.18 240); color: white; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 3px; letter-spacing: .04em; text-transform: uppercase; }
.zoom-strip { display: flex; gap: 6px; padding: 8px; background: #161616; border-top: 1px solid #000; overflow-x: auto; flex: 0 0 auto; }
.zoom-strip-tile { flex: 0 0 156px; height: 88px; border-radius: 6px; overflow: hidden; position: relative; border: 2px solid transparent; }
.zoom-strip-tile.active { border-color: oklch(0.62 0.18 150); }
.zoom-strip-tile .cam-avatar { width: 44px; height: 44px; font-size: 18px; }
.zoom-strip-tile .cam-name-tag { font-size: 10px; padding: 1px 6px; bottom: 4px; left: 4px; }
.zoom-side { width: 320px; background: #2c2c2c; border-left: 1px solid #000; display: flex; flex-direction: column; flex: 0 0 auto; }
.zoom-side-tabs { display: flex; border-bottom: 1px solid #000; background: #1a1a1a; }
.zoom-side-tabs button { flex: 1; background: transparent; border: none; color: #aaa; padding: 10px 8px; font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px; border-bottom: 2px solid transparent; }
.zoom-side-tabs button.active { color: white; border-bottom-color: oklch(0.55 0.18 240); background: #2c2c2c; }
.zoom-side-tabs .tab-count { background: #444; border-radius: 8px; padding: 0 5px; font-size: 10px; font-variant-numeric: tabular-nums; }
.chat-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.chat-msg .meta { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: #b8b8b8; }
.chat-msg .meta b { color: white; font-weight: 600; }
.chat-msg .meta .mtime { color: #666; font-size: 11px; }
.chat-msg .body { font-size: 13px; color: #e8e8e8; margin-top: 2px; line-height: 1.4; }
.chat-msg .to { font-size: 11px; color: #888; font-style: italic; }
.chat-input { border-top: 1px solid #000; padding: 10px; background: #1a1a1a; display: flex; flex-direction: column; gap: 6px; }
.chat-to-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #999; }
.chat-to-row select { background: #2c2c2c; color: #e8e8e8; border: 1px solid #444; border-radius: 4px; padding: 2px 6px; font-size: 11px; }
.chat-input textarea { background: #2c2c2c; border: 1px solid #444; border-radius: 6px; color: white; padding: 8px 10px; font-size: 13px; font-family: var(--font-sans); resize: none; min-height: 56px; outline: none; }
.chat-input textarea:focus { border-color: oklch(0.55 0.18 240); }
.zoom-side-panel-placeholder { flex: 1; display: flex; align-items: center; justify-content: center; color: #666; font-size: 13px; }
.zoom-bottom { background: #1a1a1a; border-top: 1px solid #000; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; }
.zoom-controls { display: flex; gap: 4px; flex-wrap: wrap; }
.z-btn { background: transparent; border: none; color: #d8d8d8; min-width: 56px; padding: 6px 8px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; }
.z-btn:hover { background: #2c2c2c; }
.z-btn.active { color: #6dcb96; }
.z-btn.muted { color: #ff8a6b; }
.z-icon { display: flex; align-items: center; justify-content: center; }
.zoom-end { background: #c0392b; color: white; border: none; padding: 8px 18px; border-radius: 6px; font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; }
.zoom-end:hover { background: #a93226; color: white; }

/* Sign-in overlay */
.signin-overlay { position: absolute; inset: 0; background: rgba(10,10,10,.78); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 30; }
.signin-card { background: var(--surface); border-radius: var(--radius-lg); width: 420px; max-width: 90%; overflow: hidden; color: var(--ink); box-shadow: var(--shadow-lg); }
.signin-head { padding: 20px 24px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.signin-zoom-mark { width: 36px; height: 36px; border-radius: 8px; background: oklch(0.55 0.18 240); display: grid; place-items: center; color: white; }
.signin-head .stitle {  font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.signin-head .ssub { font-size: 12px; color: var(--muted); }
.signin-body { padding: 18px 24px 22px; }
.signin-body .field { margin-bottom: 12px; }
.signin-body .field-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.signin-body .input { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font: inherit; color: var(--ink); outline: none; }
.signin-body .input:focus { border-color: var(--brand); }
.signin-row { display: flex; gap: 10px; margin-top: 14px; }
.btn-zoom-fill { flex: 1; background: oklch(0.55 0.18 240); color: white; border: none; padding: 11px; border-radius: var(--radius-sm); font-weight: 600; }
.signin-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.signin-divider::before, .signin-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.signin-sso { width: 100%; background: var(--surface-2); border: 1px solid var(--line); padding: 9px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; }
.signin-foot { background: var(--surface-2); border-top: 1px solid var(--line); padding: 10px 24px; font-size: 11px; color: var(--muted); text-align: center; }

/* Embed host label */
.embed-host { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 6px 10px; font-size: 11px; color: #ccc; display: flex; align-items: center; gap: 8px; z-index: 4; }
.embed-host b { color: white; }

/* ── Replays ─────────────────────────────────────────────────────────── */
.replay-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.replay-head { display: grid; grid-template-columns: 92px 1fr auto; gap: 20px; padding: 18px 22px; align-items: center; }
.replay-thumb { width: 92px; height: 64px; border-radius: 8px; background: linear-gradient(135deg,oklch(0.28 0.10 250),oklch(0.18 0.06 250)); position: relative; display: grid; place-items: center; color: white; flex-shrink: 0; }
.replay-thumb::before { content: "▶"; font-size: 20px; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.replay-thumb.locked { background: var(--surface-2); color: var(--muted); }
.replay-thumb.locked::before { content: "🔒"; font-size: 18px; }
.replay-info h4 {  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 4px; }
.replay-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.replay-actions { display: flex; gap: 8px; align-items: center; }
.replay-locked-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--gold-soft); color: var(--gold); padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.replay-resources { padding: 0 22px 18px; border-top: 1px solid var(--line-2); }
.replay-resources-head { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 14px 0 10px; display: flex; align-items: center; gap: 8px; }
.resource-list { display: flex; flex-direction: column; gap: 6px; }
.resource-row { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 14px; padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; align-items: center; font-size: 13px; }
.resource-row:hover { background: var(--bg-soft); border-color: var(--line); }
.resource-icon { width: 32px; height: 32px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 9px; font-weight: 700; letter-spacing: .03em; }
.resource-icon.pdf { background: #fde7e1; color: #b03316; border-color: #f6c5b3; }
.resource-icon.doc { background: #e1ecfd; color: #1648a3; border-color: #b3d0f8; }
.resource-icon.zip { background: #ece1fd; color: #5a16a3; border-color: #d2b3f8; }
.resource-name { color: var(--ink); }
.resource-name .sub { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.resource-size { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.resource-dl { background: transparent; border: 1px solid var(--line); padding: 5px 12px; border-radius: 6px; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.resource-dl:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.resource-locked-row { padding: 16px; text-align: center; background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 8px; font-size: 13px; color: var(--gold); display: flex; align-items: center; justify-content: center; gap: 10px; }
.resource-locked-row b { color: #8a6406; }
.empty-replay { text-align: center; padding: 40px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; }

/* ── Courses ─────────────────────────────────────────────────────────── */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.course-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: all .14s; cursor: pointer; text-decoration: none; color: inherit; }
.course-card:hover { border-color: #d8d4c5; box-shadow: var(--shadow); transform: translateY(-2px); }
.course-card.past { background: var(--surface-2); border-color: var(--line-2); }
.course-card.past:hover { border-color: var(--line-2); box-shadow: none; transform: none; }
.course-card.past .course-banner { filter: grayscale(1); opacity: .55; }
.course-card.past .course-body,
.course-card.past .course-foot { opacity: .75; }
.course-card.past .course-foot { background: var(--surface-2); }
.course-banner { height: 140px; position: relative; background: linear-gradient(135deg,oklch(0.30 0.10 250),oklch(0.42 0.12 220)); display: flex; align-items: flex-end; padding: 16px; color: white; overflow: hidden; }
.course-banner.cardio { background: linear-gradient(135deg,#c0392b,#7d2018); }
.course-banner.surg   { background: linear-gradient(135deg,#1d4a3a,#0f2c22); }
.course-banner.sjt    { background: linear-gradient(135deg,#2d3960,#1a2247); }
.course-banner.fullday{ background: linear-gradient(135deg,#4a3a8b,#281d52); }
.course-banner.ukmla  { background: linear-gradient(135deg,#b8651b,#7a3f0f); }
.course-banner::after { content: ""; position: absolute; top: -40%; right: -20%; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.course-banner .ribbon { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.32); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; z-index: 1; }
.course-banner h3 {  font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin: 0; position: relative; z-index: 1; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.course-body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.course-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.course-meta span { display: inline-flex; align-items: center; gap: 4px; }
.course-summary { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.course-includes { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.course-includes li { display: flex; align-items: flex-start; gap: 7px; }
.course-includes li::before { content: "✓"; color: var(--good); font-weight: 700; flex-shrink: 0; }
.course-foot { border-top: 1px solid var(--line-2); padding: 14px 20px; background: var(--surface-2); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.course-price { display: flex; flex-direction: column; }
.course-price .num {  font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.course-price .num .strike { text-decoration: line-through; color: var(--muted); font-size: 16px; font-weight: 400; margin-right: 6px; }
.course-price .lbl { font-size: 11px; color: var(--muted); }
.btn-buy { background: var(--brand); color: white; border: none; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: 0.4s; border: 1px solid var(--brand); text-transform: capitalize; white-space: nowrap; }
.btn-buy:hover { background: #fff; color: var(--brand); }
.btn-buy .icon { width: 14px; height: 14px; flex-shrink: 0; }
.btn-buy.owned { background: var(--good-soft); color: var(--good); border: 1px solid var(--good); }
.btn-buy.owned.past { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* ── Course section tabs ────────────────────────────────────────────── */
.cd-tabs {
  display: flex; gap: 4px; align-items: flex-end;
  border-bottom: 2px solid var(--line);
  margin: 28px 0 20px; 
  /* overflow-x: auto;  */
  -webkit-overflow-scrolling: touch;
}
.cd-tab {
  padding: 10px 18px; font-size: 13px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; border-radius: 6px 6px 0 0; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border-left: none; border-right: none; border-top: none;
  transition: color .15s, border-color .15s;
}
.cd-tab:hover { color: var(--ink); }
.cd-tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.cd-tab .tab-badge {
  background: var(--surface-2); color: var(--muted);
  border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 600;
}
.cd-tab.active .tab-badge { background: var(--brand-soft); color: var(--brand-ink); }

/* ── Session cards ──────────────────────────────────────────────────── */
.session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 12px;
  overflow-y: scroll;
}
.session-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .15s;
}
.session-card:hover { box-shadow: var(--shadow); }
.session-card-head { display: flex; align-items: flex-start; gap: 12px; }
.session-date {
  background: var(--brand-soft); color: var(--brand-ink);
  border-radius: 8px; padding: 6px 10px; text-align: center;
  min-width: 46px; flex-shrink: 0;
}
.session-date .sd-day { font-size: 20px; font-weight: 700; line-height: 1; }
.session-date .sd-mon { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.session-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.session-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.session-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.session-status {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.session-status.live { background: oklch(0.92 0.08 150); color: oklch(0.42 0.14 150); }
.session-status.scheduled { background: var(--brand-soft); color: var(--brand-ink); }
.session-status.ended { background: var(--surface-2); color: var(--muted); }
.session-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--brand); color: white; padding: 7px 13px; border-radius: 8px;
  font-size: 12px; font-weight: 600; text-decoration: none; border: none; cursor: pointer;
  transition: opacity .15s;
}
.session-btn:hover { opacity: .85; color: white; }
.session-btn.ghost {
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
}

/* ── Replay list ────────────────────────────────────────────────────── */
.replay-list { display: flex; flex-direction: column; gap: 8px; }
.replay-row-item {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; transition: box-shadow .15s;
}
.replay-row-item:hover { box-shadow: var(--shadow-sm); }
.replay-icon-sq {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--muted);
}
.replay-icon-sq.ready { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.replay-row-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.replay-row-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.replay-row-btns { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

/* ── Show-more ──────────────────────────────────────────────────────── */
.show-more-wrap { text-align: center; margin-top: 14px; }
.show-more-btn {
  background: none; border: 1px solid var(--line); color: var(--ink-2);
  padding: 8px 22px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .15s;
}
.show-more-btn:hover { background: var(--surface-2); }

/* Course detail */
.course-detail { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 22px; }
.course-detail-hero { padding: 36px 40px; background: linear-gradient(135deg,oklch(0.30 0.10 250),oklch(0.40 0.12 220)); color: white; position: relative; overflow: hidden; }
.course-detail-hero::before { content: ""; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px; border-radius: 50%; background: rgba(255,255,255,.05); }
.course-detail-hero .eyebrow { display: inline-flex; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; position: relative; }
.course-detail-hero h2 {  font-size: 32px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 8px; position: relative; }
.course-detail-hero p { margin: 0; opacity: .9; max-width: 700px; position: relative; }
.course-detail-body { display: grid; grid-template-columns: 1.5fr 1fr; }
.course-agenda { padding: 28px 32px; border-right: 1px solid var(--line); }
.course-agenda h3 {  font-size: 18px; font-weight: 500; margin: 0 0 14px; letter-spacing: -0.01em; }
.agenda-item { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.agenda-item:last-child { border-bottom: none; }
.agenda-time { font-size: 12px; color: rgb(var(--primary)); font-weight: 600; }
.agenda-content h4 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.agenda-content p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.4; }
.course-buy-panel { padding: 28px 32px; background: var(--surface-2); }
.cbp-price {  font-size: 38px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.cbp-price .strike { text-decoration: line-through; font-size: 22px; color: var(--muted); font-weight: 400; margin-right: 8px; }
.cbp-sub { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.cbp-includes { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.cbp-includes li { font-size: 13px; display: flex; gap: 8px; color: var(--ink-2); }
.cbp-includes li::before { content: "✓"; color: var(--good); font-weight: 700; }
/* .cbp-cta { display: block; width: 100%; background: var(--brand); color: white; border: none; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; }
.cbp-cta:hover { background: var(--brand-ink); color: white; } */
.cbp-secondary { display: block; width: 100%; background: transparent; border: 1px solid var(--line); padding: 11px; border-radius: 10px; font-size: 13px; margin-top: 10px; color: var(--ink-2); text-align: center; text-decoration: none; }
.cbp-secondary:hover { background: var(--surface); color: var(--ink-2); }
.cbp-enrolled { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 600; background: var(--good-soft); color: var(--good); border: 1px solid var(--good); margin-top: 4px; }
@media (max-width: 768px) {
  .course-detail-body { grid-template-columns: 1fr; }
  .course-agenda { border-right: none; border-bottom: 1px solid var(--line); }
  .webinar-row { grid-template-columns: 1fr; gap: 12px; }
  .webinar-row .date-block { border-right: none; border-bottom: 1px solid var(--line-2); padding-right: 0; padding-bottom: 10px; text-align: left; display: flex; align-items: center; gap: 5px; }
  .date-block .day{font-size: 18px;}
  /* Hero card */
  .webinar-hero { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .webinar-hero::before { width: 100%; }
  /* Section head */
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* Page head */
  .page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-title { font-size: 26px; }
  /* Detail two-col */
  .detail-grid { grid-template-columns: 1fr !important; }
  /* Replay head */
  .replay-head { grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 16px; }
  .replay-actions { grid-column: 1 / -1; }
  /* Resource row */
  .resource-row { grid-template-columns: 32px 1fr auto; gap: 10px; }
  .resource-size { display: none; }
  /* Zoom embed height */
  .zoom-embed { height: 480px; }
  /* Zoom side panel: hidden on mobile, shown via tab toggle */
  .zoom-side { display: none; }
  /* Course grid: single col */
  .course-grid { grid-template-columns: 1fr; }
  /* Exam tabs: scrollable row */
  .exam-tabs { justify-content: flex-start; max-width: 100%; padding: 4px; min-width: 0; }
  .exam-tab { flex: 0 0 auto; }
  /* Session/replay tabs */
  .session-grid { grid-template-columns: 1fr; }
  .replay-row-item { grid-template-columns: 44px 1fr; }
  .replay-row-btns { grid-column: 2; }
  /* Zoom controls wrap */
  .zoom-controls { flex-wrap: wrap; gap: 2px; }
  .z-btn { min-width: 44px; padding: 5px 6px; font-size: 10px; }
}

@media (max-width: 480px) {
  .mw-main { padding: 14px 12px 50px; }
  .mw-hero h1 { font-size: 22px; }
  .mw-hero p { font-size: 14px; }
  .webinar-hero h2 { font-size: 22px; }
  .webinar-hero { padding: 16px; }
  .section-title { font-size: 18px; }
  .replay-head { grid-template-columns: 1fr; }
  .replay-thumb { display: none; }
  .replay-actions { flex-wrap: wrap; }
  .lobby-card { padding: 20px 16px; }
  .lobby-info h3 { font-size: 18px; }
  .lobby-toggles { gap: 6px; }
  .toggle-btn { padding: 8px; font-size: 11px; }
  .resource-row { grid-template-columns: 1fr auto; }
  .resource-icon { display: none; }
  /* Course detail hero */
  .course-detail-hero { padding: 20px 16px; }
  .course-detail-hero h2 { font-size: 22px; }
  .course-agenda, .course-buy-panel { padding: 18px 16px; }
  .cbp-price { font-size: 28px; }
  /* Trust strip: wrap tighter */
  .trust-strip { gap: 14px; font-size: 12px; }
  /* Zoom embed */
  .zoom-embed { height: 360px; }
  .zoom-top { padding: 6px 10px; }
  .zoom-bottom { padding: 8px 10px; gap: 8px; }
  .zoom-end { padding: 6px 12px; font-size: 12px; }
  .cam-tile .cam-avatar { width: 80px; height: 80px; font-size: 32px; }
  .webinar-hero-actions{flex-direction: column;}
  .webinar-hero-actions .button{flex: 1;}
  .search-form input{padding: 6px 40px 6px 10px;}
  .search-form-group .clear-btn{padding: 6px 10px;}
}

.mw-webinar-scope .button-wrappers .button{width: auto !important;}
@media screen and (max-width: 575px){
  .mw-webinar-scope .button-wrappers .button{width: 100% !important;}
}
