/* ==========================================================================
   DeX Learning Centre - Course Teaching Page Stylesheet
   Coursera / LinkedIn Learning Inspired Video Masterclass Experience
   ========================================================================== */

:root {
  --brand-blue-deep: #071b42;
  --brand-blue-dark: #1e40af;
  --brand-blue: #2563eb;
  --brand-blue-light: #3b82f6;
  --brand-blue-soft: #eff6ff;
  --brand-blue-glow: rgba(37, 99, 235, 0.25);
  --brand-yellow: #fbbf24;
  --brand-yellow-dark: #d97706;
  --brand-yellow-soft: #fef3c7;
  --brand-slate-dark: #0f172a;
  --brand-slate-body: #334155;
  --brand-slate-subtle: #64748b;
  --brand-surface: #ffffff;
  --brand-border: rgba(37, 99, 235, 0.14);
  --player-dark: #020617;
  --player-surface: #0b152d;
  --success-emerald: #10b981;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif !important;
}

html,
body,
h1, h2, h3, h4, h5, h6,
p, span, a, li, ul, ol, small, strong, em, b, i,
button, input, select, textarea, label,
dex-header, dex-breadcrumb, dex-video-player, dex-footer,
.rt-nav, .rt-top-nav, .rt-navbar-wrapper,
.rt-menu-text, .rt-nav-menu-link,
.rt-text-style-h1, .rt-text-style-h2, .rt-text-style-h3,
.rt-text-style-h4, .rt-text-style-h5, .rt-text-style-h6,
.yt-video-title, .yt-playlist-title, .yt-item-title,
.yt-desc-meta-row, .yt-desc-lead-text, .yt-desc-collapsible,
.episodes-title, .episode-card-title,
.course-main-layout,
.course-main-layout * {
  font-family: 'Poppins', sans-serif !important;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif !important;
  color: #0f172a;
  background-color: #ffffff !important;
  background-image:
    radial-gradient(circle, rgba(37, 99, 235, 0.14) 1.2px, transparent 1.6px),
    radial-gradient(circle, rgba(251, 191, 36, 0.16) 1.2px, transparent 1.6px) !important;
  background-position: 0 0, 14px 14px !important;
  background-size: 28px 28px, 28px 28px !important;
  background-attachment: fixed !important;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Blue Watermark pinned across entire page canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("/assets/dex-icon-blue.svg");
  background-repeat: no-repeat;
  background-position: right clamp(-60px, -2vw, 30px) center;
  background-size: clamp(340px, 36vw, 560px) auto;
  opacity: 0.05;
  pointer-events: none;
}

/* ---------------- Text Gradients ---------------- */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 45%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.gradient-gold-text {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

/* ==========================================================================
   1. HERO STAGE SECTION: SEAMLESS 3D GLASS CANVAS (NO SECTION DIFFERENCE)
   ========================================================================== */
.course-main-layout {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: clamp(24px, 3vw, 36px) 0 clamp(10px, 1.2vw, 16px) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 1.8vw, 20px);
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.course-main-layout::before {
  display: none !important;
}

.course-hero-header-block,
.course-hero-section {
  position: relative;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto !important;
  padding: 0 clamp(24px, 4.5vw, 64px) !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box;
  z-index: 1;
}

.course-hero-header-block::before,
.course-hero-section::before {
  display: none !important;
}

.course-hero-inner {
  max-width: 100%;
  margin: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Dedicated Top Navigation Row: Breadcrumb Left, Back to Hub Button Right */
.course-hero-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 4px;
}

.course-hero-breadcrumb-wrap {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

/* Sleek Pill Button for Back to Learning Hub (Solid DeX Blue #2563EB) */
.hero-back-hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 9999px;
  background: #2563eb !important;
  border: 1px solid #2563eb !important;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-back-hub-pill svg {
  width: 14px;
  height: 14px;
  color: #ffffff !important;
  stroke: #ffffff !important;
  transition: transform 0.2s ease;
}

.hero-back-hub-pill span {
  color: #ffffff !important;
}

.hero-back-hub-pill:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  transform: translateX(-2px) translateY(-1px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.42) !important;
}

.hero-back-hub-pill:hover svg {
  transform: translateX(-3px);
}

.course-hero-breadcrumb-wrap dex-breadcrumb,
.course-hero-breadcrumb-wrap dex-breadcrumb .dex-breadcrumb-wrapper,
.course-hero-breadcrumb-wrap dex-breadcrumb .unified-hero-breadcrumb {
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.course-hero-breadcrumb-wrap dex-breadcrumb a {
  color: #475569 !important;
  transition: color 0.2s ease;
}

.course-hero-breadcrumb-wrap dex-breadcrumb a:hover {
  color: #2563eb !important;
}

.course-hero-breadcrumb-wrap dex-breadcrumb a[aria-current="page"] {
  color: #2563eb !important;
  font-weight: 700 !important;
}

.course-hero-breadcrumb-wrap dex-breadcrumb svg {
  stroke: #94a3b8 !important;
}

.course-hero-breadcrumb-wrap dex-breadcrumb a[aria-label="Home"] svg {
  stroke: #475569 !important;
}

.course-hero-breadcrumb-wrap dex-breadcrumb a[aria-label="Home"]:hover svg {
  stroke: #fbbf24 !important;
}

.course-hero-breadcrumb-wrap dex-breadcrumb ol,
.course-hero-breadcrumb-wrap dex-breadcrumb ul {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.course-meta-ribbon {
  display: none !important;
}

.course-hero-header-row,
.course-hero-content-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 2px;
}

.course-hero-main-col {
  width: 100%;
}

.course-hero-badge-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.course-badge.primary {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.course-badge.module-pill {
  background: #ffffff;
  color: #1e40af;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.course-badge.gold-accent {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
}

.course-hero-title {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.22;
  color: #ffffff !important;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(7, 27, 66, 0.4);
}

.course-hero-subtitle {
  font-size: clamp(14.5px, 1.15vw, 17px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.90) !important;
  max-width: 920px;
  margin: 0 0 4px;
  font-weight: 400;
}

/* Course Specs / Metadata Ribbon */
.course-meta-ribbon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  padding: 4px 0;
}

.course-meta-item svg {
  width: 15px;
  height: 15px;
  color: #2563eb;
  flex-shrink: 0;
}

.course-meta-item.rating {
  color: #b45309;
}

.course-meta-item.rating svg {
  color: #f59e0b;
  fill: #f59e0b;
}

/* Legacy Actions Box - hidden as Back button is in Top Nav Bar */
.course-hero-actions-col {
  display: none !important;
}

.hero-action-btn-group {
  display: none !important;
}

/* ---------------- Dynamic Global Progress Bar in Hero (Removed) ---------------- */
.course-hero-progress-card {
  display: none !important;
}

.progress-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.progress-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.progress-icon {
  width: 21px;
  height: 21px;
  color: #2563eb;
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.35));
}

.progress-title-text {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.progress-stat-pill {
  font-size: 12px;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12), inset 0 1px 0 #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
  font-family: inherit;
}

.progress-stat-pill:hover {
  background: #dbeafe;
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.progress-next-up-indicator {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.progress-next-up-indicator strong {
  color: #1e40af;
  font-weight: 800;
}

.progress-bar-track {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden !important;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.12), 0 1px 0 rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.progress-bar-fill {
  height: 100%;
  width: 11%;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #fbbf24 100%);
  border-radius: 9999px;
  overflow: hidden !important;
  transition: width 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
}

.progress-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.6) 50%,
      transparent 100%);
  animation: shimmerProgress 2.2s infinite ease-in-out;
  border-radius: inherit;
}

@keyframes shimmerProgress {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(200%);
  }
}

/* Hide milestone numbers completely as per user request */
.progress-milestones-row {
  display: none !important;
}

.milestone-dot {
  display: none !important;
}

/* ==========================================================================
   2. MAIN COURSE TEACHING STAGE (Bigger Video Player Left, Transcript Right)
   ========================================================================== */
/* 2-Column Stage Row: YouTube Watch Page (Player Left, Playlist Right) */
.course-stage-row {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto !important;
  padding: 0 clamp(16px, 3.5vw, 48px) !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* ---------------- LEFT STAGE: Video & YouTube Video Meta & Description ---------------- */
.course-player-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  border-radius: 14px;
  box-shadow: none !important;
  border: none !important;
  overflow: visible;
  background: transparent !important;
}

/* The Video Player Card (3D Glassmorphic White Container) */
.player-window-card {
  background: #ffffff !important;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 24px 55px -12px rgba(15, 23, 42, 0.12),
    0 4px 16px -2px rgba(15, 23, 42, 0.04),
    inset 0 1px 1px #ffffff;
  display: flex;
  flex-direction: column;
  width: 100%;
  transition: all 0.25s ease;
}

.player-window-card.theater-mode {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  border-radius: 0;
  margin: 0;
  border: none;
}

.player-window-card.theater-mode .player-host-box {
  flex: 1;
  aspect-ratio: unset;
  height: 100vh;
}

/* Video Player Host Container */
.player-host-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000 !important;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.player-host-box dex-video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000 !important;
  border-radius: 14px;
}

.player-host-box dex-video-player .dex-emulator-topbar {
  display: none !important;
}

.player-host-box dex-video-player .dex-emulator-viewport {
  height: 100% !important;
  background: #000000 !important;
}

.player-host-box dex-video-player .dex-player-video {
  background: #000000 !important;
}

/* Hide legacy sub action bar below player (controls moved inside video player) */
.player-sub-action-bar {
  display: none !important;
}

/* ---------------- YOUTUBE VIDEO DETAILS CARD ---------------- */
.yt-video-details-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.yt-video-title {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a !important; /* Crisp Deep Black */
  margin: 0;
  letter-spacing: -0.015em;
  text-shadow: none !important;
}

/* Channel & Action Pills Row - Removed as requested */
.yt-channel-action-row {
  display: none !important;
}

.yt-item-channel {
  display: none !important;
}

.yt-resources-links {
  display: none !important;
}

.yt-channel-left-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-channel-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 2px solid rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  user-select: none;
}

.yt-channel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yt-channel-name-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.yt-channel-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.yt-verified-badge {
  width: 14px;
  height: 14px;
  color: #60a5fa;
  flex-shrink: 0;
}

.yt-channel-subtext {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.yt-subscribe-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.yt-subscribe-pill:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Action Pills on Right (Like, Share, Resources) */
.yt-actions-right-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.yt-action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}

.yt-action-pill-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.yt-action-pill-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.yt-action-pill-btn.liked {
  background: rgba(37, 99, 235, 0.45);
  border-color: #fbbf24;
  color: #fbbf24;
}

/* ---------------- YOUTUBE DESCRIPTION BOX (Premium 3D Glassmorphic White Card) ---------------- */
.yt-description-box {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-radius: 18px !important;
  padding: 20px 24px !important;
  color: #334155 !important;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 13.5px;
  line-height: 1.65;
  box-shadow:
    0 20px 45px -12px rgba(15, 23, 42, 0.08),
    0 4px 16px -2px rgba(15, 23, 42, 0.04),
    inset 0 1px 1px #ffffff !important;
}

.yt-description-box:hover {
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow:
    0 24px 55px -10px rgba(37, 99, 235, 0.12),
    0 6px 18px -2px rgba(15, 23, 42, 0.05),
    inset 0 1px 1px #ffffff !important;
}

.yt-desc-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.yt-desc-module-badge,
.yt-desc-views-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #1e40af !important;
  background: #eff6ff !important;
  border: 1px solid rgba(37, 99, 235, 0.22) !important;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.2px;
}

.yt-desc-lead-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: #1e293b !important;
  margin: 0 0 12px;
}

.yt-desc-body-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: #334155 !important;
  margin: 0;
}

.yt-desc-takeaway-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: #0f172a !important;
  background: #f8fafc;
  border-left: 3px solid #2563eb;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 0;
}

/* YouTube Description Inline Flowchart */
.yt-flowchart-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fd 100%);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 4px 0 6px;
  box-sizing: border-box;
}

.yt-flowchart-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e40af;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-flowchart-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 6px;
}

.yt-flowchart-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #1e3a8a;
  box-shadow: 0 1px 2px rgba(30, 64, 175, 0.05);
}

.yt-flowchart-step.active {
  background: #1e40af;
  border-color: #1e40af;
  color: #ffffff;
}

.yt-flowchart-step.active .yt-flowchart-num {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.yt-flowchart-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 10px;
  font-weight: 800;
}

.yt-flowchart-arrow {
  color: #3b82f6;
  font-weight: 800;
  font-size: 12px;
  user-select: none;
}

.yt-desc-collapsible {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
}

.yt-desc-collapsible.expanded {
  display: flex;
}

.yt-chapters-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yt-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #2563eb !important;
  margin-bottom: 4px;
}

.yt-chapter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.yt-timestamp-btn {
  background: #eff6ff !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
  color: #2563eb !important;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
}

.yt-timestamp-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.yt-chapter-title {
  color: #334155 !important;
  font-weight: 500;
}

.yt-desc-toggle-btn {
  background: transparent;
  border: none;
  color: #0f172a !important;
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 0 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-family: inherit;
  transition: color 0.2s ease;
}

.yt-desc-toggle-btn:hover {
  color: #2563eb !important;
}

/* ---------------- Interactive Teaching Tab Navigation (Seamless 3D Glass Flow - No Section Difference) ---------------- */
.course-description-blue-section,
.course-description-section {
  width: 100% !important;
  position: relative;
  overflow: visible;
  padding: 0 0 clamp(64px, 7vw, 96px) !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: block;
  z-index: 1;
}

.course-description-blue-section::before,
.course-description-section::before {
  display: none !important;
}

.course-description-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 40px);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* Hide artificial section header to eliminate any section difference */
.description-blue-header {
  display: none !important;
}

/* 3D Glassmorphic Elevated Description Card (Seamless Flow on Blue Stage with Dotted Grid Pattern) */
.course-tabs-container {
  width: 100%;
  max-width: 1140px;
  margin: 8px auto 0 !important;
  background-color: #ffffff;
  background-image:
    radial-gradient(circle, rgba(37, 99, 235, 0.10) 1.2px, transparent 1.6px),
    radial-gradient(circle, rgba(251, 191, 36, 0.12) 1.2px, transparent 1.6px),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  background-position: 0 0, 14px 14px, center;
  background-size: 28px 28px, 28px 28px, auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 34px 85px -15px rgba(7, 27, 66, 0.60),
    0 16px 36px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 1);
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-tabs-container:hover {
  transform: translateY(-2px);
  box-shadow:
    0 42px 95px -12px rgba(7, 27, 66, 0.68),
    0 20px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 1);
}

.course-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 10px;
}

.course-tabs-nav::-webkit-scrollbar {
  display: none;
}

.course-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.course-tab-btn:hover {
  color: #1e40af;
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.course-tab-btn.active {
  color: #1e40af;
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow:
    0 4px 14px rgba(37, 99, 235, 0.12),
    0 2px 6px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 #ffffff;
  font-weight: 700;
  transform: translateY(-1px);
}

.course-tab-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.course-tab-badge {
  font-size: 10px;
  font-weight: 700;
  background: #eff6ff;
  color: #1e40af;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Tab Content Panels */
.course-tab-content-area {
  padding: clamp(24px, 3.5vw, 42px);
}

.course-tab-panel {
  display: none;
}

.course-tab-panel.active {
  display: block;
  animation: fadeInTab 0.3s ease-out;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------- TAB: OVERVIEW & NOTES ---------------- */
.lesson-overview-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.lesson-topic-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #1e40af;
  background: rgba(37, 99, 235, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.lesson-main-heading {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 10px;
}

.lesson-lead-paragraph {
  font-size: 15.5px;
  line-height: 1.65;
  color: #475569;
  font-weight: 400;
  margin: 0;
}

/* Callout Box */
.lesson-callout-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(251, 191, 36, 0.08) 100%);
  border-left: 4px solid #2563eb;
  padding: 18px 22px;
  border-radius: 0 14px 14px 0;
  margin: 24px 0;
}

.lesson-callout-box h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e40af;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-callout-box p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

/* 3-Card Takeaways Grid */
.takeaways-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.takeaway-card {
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04), inset 0 1px 0 #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default !important;
  user-select: text;
}

.takeaway-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12), inset 0 1px 0 #ffffff;
  background: #ffffff;
}

.takeaway-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.takeaway-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.takeaway-card p {
  font-size: 12.5px;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

/* Technical Article Content Styles */
.lesson-article-body h2 {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lesson-article-body h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #2563eb;
  border-radius: 2px;
}

.lesson-article-body h3 {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  color: #1e293b;
  margin: 26px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-article-body h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
}

.lesson-article-body p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 18px;
}

.lesson-article-body ul {
  margin: 0 0 22px 20px;
  padding: 0;
}

.lesson-article-body li {
  font-size: 14px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 8px;
}

/* Image / Diagram Showcase */
.image-showcase-container {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08);
  margin: 28px 0;
  background: #f8fafc;
}

.image-showcase-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.image-caption {
  padding: 10px 16px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Blog Overview Enhancements */
.content-section-block {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.content-section-block:first-of-type {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}

.section-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.blog-mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #ffffff;
}

.blog-section-tag {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.learning-materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 18px 0 24px;
}

.learning-material-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: all 0.25s ease;
}

.learning-material-card:hover {
  background: #ffffff;
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.1);
}

.material-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.material-card-icon.video-icon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.material-card-icon.video-icon svg {
  width: 18px;
  height: 18px;
}

.material-card-icon.doc-icon {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.material-card-icon.doc-icon svg {
  width: 20px;
  height: 20px;
}

.material-card-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 4px 0 6px;
}

.material-card-content p {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.material-type-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Pipeline Flow Track & Flowchart System - No Scrollbars, Non-Clickable, Continuous Flow */
.pipeline-flow-card {
  background: linear-gradient(180deg, #f0f7ff 0%, #e6f0fd 100%);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 22px 0;
  overflow: hidden !important; /* Strictly no scrollable elements anywhere */
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05);
  box-sizing: border-box;
  width: 100%;
}

.flow-pill-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0 !important;
  box-sizing: border-box;
}

.flow-step-item {
  flex: 1 1 0px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 8px 8px;
  border-radius: 8px;
  color: #1e3a8a;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  cursor: default !important;
  user-select: text;
  box-shadow: 0 1px 3px rgba(30, 64, 175, 0.04);
  transition: none;
}

.flow-step-item:hover {
  background: #ffffff !important;
  border-color: #bfdbfe !important;
  color: #1e3a8a !important;
  transform: none !important;
  box-shadow: 0 1px 3px rgba(30, 64, 175, 0.04) !important;
  cursor: default !important;
}

.flow-step-item.active {
  background: #1e40af !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.18) !important;
}

.flow-step-item.active:hover {
  background: #1e40af !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
  transform: none !important;
  cursor: default !important;
}

.flow-step-num {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.9;
  flex-shrink: 0;
}

.flow-step-label {
  white-space: normal;
  line-height: 1.25;
  font-size: 11.5px;
  text-align: center;
  word-break: normal;
}

.flow-arrow {
  color: #3b82f6;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  cursor: default !important;
  user-select: none;
  padding: 0 1px;
}

/* Two-Row Flowchart Layout for Balanced Flow Without Empty Spaces */
.flowchart-two-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flowchart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.flow-row-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 2px 0;
  user-select: none;
}

.flow-connector-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.35), transparent);
}

.flow-connector-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 800;
  cursor: default !important;
}

/* SDLC Activity Badges - Clean Non-Clickable Professional Tags */
.activities-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.activity-badge-card {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
  cursor: default !important;
  user-select: text;
  transition: none;
}

.activity-badge-card:hover {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1e40af !important;
  transform: none !important;
  cursor: default !important;
}

/* Industry Chips - Clean Non-Clickable Text Tags */
.industries-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.industry-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
  box-shadow: 0 1px 3px rgba(30, 64, 175, 0.05);
  cursor: default !important;
  user-select: text;
  transition: none;
}

.industry-chip svg {
  width: 15px;
  height: 15px;
  color: #2563eb;
  stroke: #2563eb;
  flex-shrink: 0;
}

.industry-chip:hover {
  border-color: #bfdbfe !important;
  background: #ffffff !important;
  transform: none !important;
  cursor: default !important;
}

/* Takeaway Box */
.key-takeaway-highlight-box {
  position: relative;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 28px 24px 24px 60px;
  margin: 18px 0;
}

.takeaway-quote-icon {
  position: absolute;
  top: 14px;
  left: 20px;
  font-size: 46px;
  line-height: 1;
  font-family: 'Poppins', sans-serif !important;
  color: #3b82f6;
  opacity: 0.6;
}

.takeaway-main-text {
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #1e3a8a !important;
  margin: 0 !important;
  font-weight: 500;
}

/* Next Module Card - Static Non-Clickable Banner */
.next-module-card-box,
.next-module-card-link {
  display: block;
  background: #1e40af;
  border: 1px solid #1d4ed8;
  border-radius: 16px;
  padding: 24px 28px;
  text-decoration: none;
  margin: 18px 0 10px;
  box-shadow: 0 12px 28px -6px rgba(30, 64, 175, 0.35);
  cursor: default !important;
  user-select: text;
}

.next-module-card-box:hover,
.next-module-card-link:hover {
  background: #1e40af !important;
  transform: none !important;
  box-shadow: 0 12px 28px -6px rgba(30, 64, 175, 0.35) !important;
}

.next-module-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fbbf24;
  margin-bottom: 6px;
}

.next-module-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.next-module-content h3::before {
  display: none !important;
}

.next-module-content p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Next Module Navigation Button Completely Removed */
.next-module-arrow-btn {
  display: none !important;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.resource-download-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05), inset 0 1px 0 #ffffff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.resource-download-card:hover {
  transform: translateY(-3px);
  border-color: #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.16), inset 0 1px 0 #ffffff;
}

.resource-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.resource-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-card-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.resource-card-info p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.resource-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.25);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.resource-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ---------------- TAB: MY NOTES (Removed) ---------------- */
.notes-workspace,
#tabPane_notes,
[data-tab="notes"] {
  display: none !important;
}

.notes-textarea {
  width: 100%;
  min-height: 220px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  color: #1e293b;
  resize: vertical;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
}

.notes-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.notes-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.notes-status-text {
  font-size: 12px;
  color: #10b981;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.notes-actions {
  display: flex;
  gap: 8px;
}

.notes-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notes-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* ---------------- TAB: KNOWLEDGE CHECK (QUIZ) ---------------- */
.quiz-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quiz-question-box {
  background: #f8fafc;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  padding: 20px;
}

.quiz-question-num {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.quiz-question-text {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: #334155;
  transition: all 0.2s ease;
  user-select: none;
}

.quiz-option-label:hover {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.35);
}

.quiz-option-label input[type="radio"] {
  accent-color: #2563eb;
  width: 16px;
  height: 16px;
}

.quiz-option-label.correct {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
  font-weight: 600;
}

.quiz-option-label.incorrect {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

.quiz-feedback-box {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  display: none;
}

.quiz-feedback-box.show {
  display: block;
}

.quiz-feedback-box.success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 3px solid #10b981;
}

.quiz-feedback-box.error {
  background: #fef2f2;
  color: #991b1b;
  border-left: 3px solid #ef4444;
}

.quiz-submit-btn {
  margin-top: 10px;
  align-self: flex-start;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  background: #2563eb;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-submit-btn:hover {
  background: #1d4ed8;
}

/* ==========================================================================
   3. RIGHT SIDEBAR: YOUTUBE PLAYLIST CARD (Premium 3D Glassmorphic White Card)
   ========================================================================== */
.yt-playlist-sidebar {
  background: #ffffff !important;
  border-radius: 18px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow:
    0 24px 55px -12px rgba(15, 23, 42, 0.10),
    0 4px 16px -2px rgba(15, 23, 42, 0.04),
    inset 0 1px 1px #ffffff !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
}

.yt-playlist-header {
  padding: 16px 18px 14px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yt-playlist-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.yt-playlist-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a !important; /* Crisp Deep Black */
  margin: 0;
  letter-spacing: -0.01em;
}

.yt-playlist-count-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 3px 8px;
  border-radius: 9999px;
}

.yt-playlist-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* Playlist Scrollable Items List */
.yt-playlist-items-list {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.yt-playlist-items-list::-webkit-scrollbar {
  width: 5px;
}

.yt-playlist-items-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 6px;
}

/* Playlist Item Link */
.yt-playlist-item {
  display: grid;
  grid-template-columns: 24px 110px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit;
  cursor: pointer;
}

.yt-playlist-item:hover {
  background: #f1f5f9;
  border-color: rgba(226, 232, 240, 0.9);
  transform: translateX(2px);
}

.yt-playlist-item.active {
  background: #eff6ff !important;
  border: 1.5px solid rgba(37, 99, 235, 0.45) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12) !important;
}

.yt-item-index-col {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.yt-playlist-item.active .yt-item-index-col {
  color: #2563eb;
}

.yt-now-playing-icon {
  width: 14px;
  height: 14px;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulsePlay 1.5s infinite ease-in-out;
}

@keyframes pulsePlay {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.yt-item-thumb-box {
  position: relative;
  width: 110px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.yt-item-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-item-duration-badge {
  position: absolute;
  bottom: 3px;
  right: 4px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}

.yt-item-details-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.yt-item-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b; /* Crisp Contrasting Black */
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.yt-playlist-item:hover .yt-item-title {
  color: #2563eb;
}

.yt-playlist-item.active .yt-item-title {
  color: #1d4ed8 !important; /* Deep contrasting DeX blue for active title */
  font-weight: 700;
}

.yt-item-channel {
  display: none !important;
}

.yt-playlist-item.active .yt-item-channel {
  display: none !important;
}

/* Hide old transcript styles */
.transcript-sidebar-card {
  display: none !important;
}

/* ==========================================================================
   4. EPISODES & CURRICULUM SECTION (Placed below the player)
   ========================================================================== */
.course-episodes-section {
  width: 100%;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 50%, #eff6ff 100%);
  padding: clamp(48px, 6vw, 72px) 20px clamp(56px, 7vw, 84px);
  border-top: 1px solid rgba(37, 99, 235, 0.12);
}

.episodes-section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.episodes-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}

.episodes-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: #1e40af;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.episodes-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.episodes-subtitle {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: #475569;
  margin: 0 auto;
}

/* 3-Column Episodes Grid */
.episodes-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.episode-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -4px rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.35);
}

.episode-card.current {
  border: 2px solid #2563eb;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.16);
}

.episode-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  position: relative;
  overflow: hidden;
}

.episode-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.episode-card:hover .episode-card-media img {
  transform: scale(1.04);
}

.episode-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.episode-card-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.episode-card-now-playing {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #2563eb;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.episode-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.episode-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.episode-card-num {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.episode-card-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.episode-card-check.checked {
  background: #10b981;
  border-color: #059669;
  color: #ffffff;
}

.episode-card-check svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.episode-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 8px;
}

.episode-card-lead {
  font-size: 12.5px;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 16px;
  flex: 1;
}

.episode-card-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.episode-card-btn-label {
  font-size: 12px;
  font-weight: 700;
  color: #1e40af;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.episode-card:hover .episode-card-btn-label {
  color: #2563eb;
}

.episode-card:hover .episode-card-btn-label svg {
  transform: translateX(3px);
}

.episode-card-btn-label svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

/* Bottom Credentials & Certificate Banner */
.episodes-bottom-credentials-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Certificate Preview Box */
.bottom-certificate-box {
  background: linear-gradient(135deg, #071b42 0%, #1e40af 100%);
  border-radius: 20px;
  padding: 24px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(7, 27, 66, 0.25);
  border: 1px solid rgba(251, 191, 36, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bottom-certificate-box::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.bottom-cert-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.bottom-cert-icon {
  width: 38px;
  height: 38px;
  color: #fbbf24;
  flex-shrink: 0;
}

.bottom-cert-info h3 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px;
}

.bottom-cert-info span {
  font-size: 11.5px;
  color: #fbbf24;
  font-weight: 700;
}

.bottom-cert-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 18px;
}

/* Bottom Instructor Council Box */
.bottom-council-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bottom-council-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.bottom-council-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1.5px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e40af;
  flex-shrink: 0;
}

.bottom-council-info h3 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
}

.bottom-council-info span {
  font-size: 12px;
  color: #2563eb;
  font-weight: 700;
}

.bottom-council-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 16px;
}

/* Animated Equalizer Wave */
.equalizer-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.eq-bar {
  width: 2.5px;
  background: #ffffff;
  border-radius: 1px;
  animation: eqBounce 1.2s infinite ease-in-out;
}

.eq-bar:nth-child(1) {
  height: 4px;
  animation-delay: 0s;
}

.eq-bar:nth-child(2) {
  height: 10px;
  animation-delay: 0.2s;
}

.eq-bar:nth-child(3) {
  height: 6px;
  animation-delay: 0.4s;
}

@keyframes eqBounce {

  0%,
  100% {
    transform: scaleY(0.4);
  }

  50% {
    transform: scaleY(1);
  }
}

/* ==========================================================================
   5. CELEBRATION CERTIFICATE MODAL
   ========================================================================== */
.cert-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 27, 66, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cert-modal-backdrop.open {
  display: flex;
  animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.cert-modal-box {
  background: #ffffff;
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border: 2px solid #fbbf24;
}

.cert-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #64748b;
  transition: all 0.2s ease;
}

.cert-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.certificate-diploma-view {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 6px double #1e40af;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  position: relative;
  margin-bottom: 20px;
}

.cert-diploma-logo {
  height: 36px;
  margin-bottom: 12px;
}

.cert-diploma-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #071b42;
  margin: 0 0 6px;
}

.cert-diploma-subtitle {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 14px;
}

.cert-recipient-name {
  font-size: 24px;
  font-weight: 800;
  color: #1e40af;
  border-bottom: 2px solid #fbbf24;
  display: inline-block;
  padding: 4px 24px;
  margin-bottom: 12px;
  min-width: 260px;
}

.cert-course-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
}

.cert-seal-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}

.cert-signature-col {
  font-size: 11px;
  color: #64748b;
}

.cert-signature-line {
  font-weight: 700;
  color: #0f172a;
}

.btn-claim-cert {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #071b42;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.btn-claim-cert:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(251, 191, 36, 0.45);
}

.btn-claim-cert:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

/* ==========================================================================
   6. RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 1120px) {
  .course-stage-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .yt-playlist-sidebar {
    position: static;
    max-height: 540px;
  }
}

@media (max-width: 768px) {
  .hero-back-hub-pill {
    display: none !important;
  }

  .course-hero-top-nav-bar {
    display: block;
    width: 100%;
    margin-bottom: 8px;
  }

  .course-hero-breadcrumb-wrap {
    width: 100%;
  }

  .yt-channel-action-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .yt-actions-right-box {
    width: 100%;
    justify-content: flex-start;
  }

  .yt-playlist-item {
    grid-template-columns: 20px 95px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 8px;
  }

  .yt-item-thumb-box {
    width: 95px;
  }

  .course-hero-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .course-tab-content-area {
    padding: 18px 14px;
  }

  /* Mobile View: Concise Small Description Box */
  .yt-description-box {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05) !important;
  }

  .yt-desc-meta-row {
    margin-bottom: 6px !important;
    gap: 6px !important;
  }

  .yt-desc-module-badge {
    font-size: 11px !important;
    padding: 2px 10px !important;
  }

  .yt-desc-lead-text {
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: #334155 !important;
    margin: 0 !important;
    display: block !important;
    overflow: visible !important;
  }

  /* Hide bulky sections on mobile to keep description clean & small */
  .yt-flowchart-card,
  .yt-desc-collapsible,
  .yt-desc-collapsible.expanded,
  #ytDescCollapsible,
  #ytDescCollapsible.expanded,
  .yt-desc-body-text,
  .yt-desc-takeaway-text,
  .yt-chapters-section,
  .yt-desc-links-card,
  .btn-toggle-desc,
  .yt-desc-toggle-btn,
  #btnToggleDesc {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .yt-actions-right-box {
    flex-wrap: wrap;
    gap: 6px;
  }

  .yt-action-pill-btn {
    padding: 6px 12px;
    font-size: 11.5px;
  }

  .yt-video-title {
    font-size: 18px;
  }
}
