/**
 * DSN — LearnDash Design B Skin
 * Overlays the Design B visual language on LearnDash LD30 templates without
 * touching markup. All ld-* classes are LearnDash's own; we just restyle them.
 *
 * Functionality (Mark Complete, status persistence, navigation) is preserved
 * because the underlying widgets are unchanged.
 */

:root {
  --db-navy: #1A4895;
  --db-navy-deep: #0f2d5f;
  --db-accent: #00a2e8;
  --db-green: #019e7c;
  --db-yellow: #ffd200;
  --db-bg: #F6F8FB;
  --db-card: #ffffff;
  --db-text: #0f172a;
  --db-text-muted: #64748b;
  --db-text-faint: #94a3b8;
  --db-border: rgba(15, 23, 42, 0.08);
  --db-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  --db-shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.08);
  --db-radius: 12px;
  --db-radius-sm: 8px;
}

/* Page background on LD post types */
body.single-sfwd-courses,
body.single-sfwd-lessons,
body.single-sfwd-topic,
body.single-sfwd-quiz {
  background: var(--db-bg);
}

/* Reset overly-generic ld wrapper styling */
.learndash-wrapper,
.learndash-wrapper .ld-content {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--db-text);
}

/* ============================================
   COURSE INFOBAR (ld-course-status)
   The block at the top showing progress + enroll
   ============================================ */
.learndash-wrapper .ld-course-status {
  background: linear-gradient(135deg, var(--db-navy) 0%, var(--db-navy-deep) 100%) !important;
  color: white !important;
  border-radius: var(--db-radius) !important;
  border: none !important;
  padding: 28px !important;
  margin-bottom: 24px !important;
  box-shadow: var(--db-shadow-lg) !important;
  position: relative;
  overflow: hidden;
}
.learndash-wrapper .ld-course-status::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,162,232,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.learndash-wrapper .ld-course-status .ld-course-status-segment,
.learndash-wrapper .ld-course-status-segment {
  background: transparent !important;
  border: none !important;
  color: white !important;
  position: relative;
  z-index: 1;
}
.learndash-wrapper .ld-course-status-label {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
}
.learndash-wrapper .ld-course-status-content {
  color: white !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}
.learndash-wrapper .ld-course-status-action,
.learndash-wrapper .ld-course-status-action--enrolled,
.learndash-wrapper .ld-course-status-seg-action {
  padding: 0 !important;
}

/* Buttons inside infobar */
.learndash-wrapper .ld-course-status .ld-button,
.learndash-wrapper .ld-course-status .ld-button-alternate,
.learndash-wrapper .ld-course-status a.button {
  background: white !important;
  color: var(--db-navy) !important;
  border: none !important;
  border-radius: var(--db-radius-sm) !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.15s ease !important;
}
.learndash-wrapper .ld-course-status .ld-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.learndash-wrapper .ld-progress {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}
.learndash-wrapper .ld-progress-heading {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}
.learndash-wrapper .ld-progress-bar {
  background: rgba(255, 255, 255, 0.15) !important;
  height: 8px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}
.learndash-wrapper .ld-progress-bar-percentage {
  background: linear-gradient(90deg, var(--db-accent), #fff) !important;
  border-radius: 999px !important;
  height: 100% !important;
  transition: width 0.6s ease !important;
}
.learndash-wrapper .ld-progress-stats {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-top: 8px !important;
}

/* On non-infobar contexts, progress bar uses navy fill on light track */
.learndash-wrapper .ld-item-list .ld-progress-bar {
  background: rgba(15, 23, 42, 0.06) !important;
}
.learndash-wrapper .ld-item-list .ld-progress-bar-percentage {
  background: linear-gradient(90deg, var(--db-navy), var(--db-accent)) !important;
}

/* ============================================
   COURSE CONTENT LIST (ld-item-list)
   Modules / lessons / topics in outline
   ============================================ */
.learndash-wrapper .ld-item-list {
  background: var(--db-card) !important;
  border: 1px solid var(--db-border) !important;
  border-radius: var(--db-radius) !important;
  padding: 24px !important;
  box-shadow: var(--db-shadow) !important;
  margin: 0 0 24px !important;
}

/* Section / module header inside the list */
.learndash-wrapper .ld-item-list .ld-section-heading,
.learndash-wrapper .ld-item-list-section-heading,
.learndash-wrapper .ld-section-heading {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--db-text) !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: none !important;
}

/* Each lesson / topic / quiz row */
.learndash-wrapper .ld-item-list-item {
  background: #fafbfd !important;
  border: 1px solid var(--db-border) !important;
  border-radius: var(--db-radius-sm) !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  transition: all 0.15s ease !important;
  overflow: hidden !important;
}
.learndash-wrapper .ld-item-list-item:hover {
  border-color: var(--db-navy) !important;
  background: white !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--db-shadow) !important;
}
.learndash-wrapper .ld-item-list-item--expanded {
  background: white !important;
  border-color: var(--db-accent) !important;
}

/* Item header bar (the clickable row) */
.learndash-wrapper .ld-item-list-item-preview {
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

/* Item title */
.learndash-wrapper .ld-item-title,
.learndash-wrapper .ld-item-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--db-text) !important;
  margin: 0 !important;
}

/* Lesson meta line (duration, topic count etc.) */
.learndash-wrapper .ld-item-details,
.learndash-wrapper .ld-item-components {
  font-size: 12px !important;
  color: var(--db-text-muted) !important;
  margin-top: 4px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
}

/* Component pills inside meta — duration, topic count, quiz count */
.learndash-wrapper .ld-item-details span,
.learndash-wrapper .ld-item-components span {
  background: rgba(0, 162, 232, 0.1) !important;
  color: var(--db-accent) !important;
  padding: 2px 10px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.02em !important;
}

/* ============================================
   STATUS INDICATORS (the heart of Mark Complete UX)
   ld-status-incomplete = empty circle
   ld-status-complete   = green check
   ld-status-progress   = in-progress accent
   ============================================ */
.learndash-wrapper .ld-status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 2px solid var(--db-border) !important;
  background: white !important;
  color: transparent !important;
  font-size: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  text-indent: -9999px !important;
}

/* Incomplete = empty circle outline */
.learndash-wrapper .ld-status-incomplete {
  border-color: var(--db-border) !important;
  background: white !important;
}

/* Complete = green filled circle with white check */
.learndash-wrapper .ld-status-complete {
  background: var(--db-green) !important;
  border-color: var(--db-green) !important;
  color: white !important;
}
.learndash-wrapper .ld-status-complete::after {
  content: '✓' !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: white !important;
  text-indent: 0 !important;
}

/* In-progress = navy filled circle with play arrow */
.learndash-wrapper .ld-status-progress,
.learndash-wrapper .ld-status-unlocked {
  background: var(--db-accent) !important;
  border-color: var(--db-accent) !important;
}
.learndash-wrapper .ld-status-progress::after,
.learndash-wrapper .ld-status-unlocked::after {
  content: '▶' !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  color: white !important;
  text-indent: 0 !important;
}

/* Locked = gray circle with lock */
.learndash-wrapper .ld-status-locked,
.learndash-wrapper .ld-status-icon-locked {
  background: #f1f5f9 !important;
  border-color: var(--db-border) !important;
  opacity: 0.6 !important;
}

/* ============================================
   ROW-LEVEL STATUS (LD applies these on the item row itself)
   ============================================ */
.learndash-wrapper .ld-item-list-item.learndash-complete {
  border-left: 4px solid var(--db-green) !important;
}
.learndash-wrapper .ld-item-list-item.learndash-in-progress {
  border-left: 4px solid var(--db-accent) !important;
}
.learndash-wrapper .ld-item-list-item.learndash-not-available {
  opacity: 0.55 !important;
  pointer-events: none !important;
}
.learndash-wrapper .ld-item-list-item.learndash-not-available .ld-item-name::after {
  content: ' 🔒' !important;
  opacity: 0.7;
}

/* Expand button (chevron LD adds for expandable lessons with sub-topics) */
.learndash-wrapper .ld-expand-button {
  background: rgba(15, 23, 42, 0.04) !important;
  border: 1px solid var(--db-border) !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  color: var(--db-text-muted) !important;
  transition: all 0.15s !important;
  box-shadow: none !important;
}
.learndash-wrapper .ld-expand-button:hover {
  background: var(--db-navy) !important;
  border-color: var(--db-navy) !important;
  color: white !important;
}
.learndash-wrapper .ld-icon-arrow-down,
.learndash-wrapper .ld-icon-arrow-up { color: inherit !important; }

/* Item type icons (content/quiz/etc) on the left side of each row */
.learndash-wrapper .ld-item-icon,
.learndash-wrapper .ld-icon {
  color: var(--db-text-muted) !important;
}
.learndash-wrapper .ld-icon-content { color: var(--db-navy) !important; }
.learndash-wrapper .ld-icon-quiz { color: #92520c !important; }
.learndash-wrapper .ld-icon-checkmark,
.learndash-wrapper .ld-icon-complete { color: var(--db-green) !important; }

/* Item components (the meta pills) */
.learndash-wrapper .ld-item-component {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: rgba(0, 162, 232, 0.08) !important;
  color: var(--db-accent) !important;
  padding: 2px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

/* Status text inline ("Completed", "In progress" labels) */
.learndash-wrapper .ld-status.ld-status-complete + .ld-status,
.learndash-wrapper .ld-text-complete {
  color: var(--db-green) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

/* ============================================
   MARK COMPLETE BUTTON (single most important UI)
   ============================================ */
.learndash-wrapper .ld-button[name="mark_complete"],
.learndash-wrapper #learndash_mark_complete_button,
.learndash-wrapper input.ld-button[type="submit"],
.learndash-wrapper .learndash_mark_complete_button {
  background: var(--db-navy) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--db-radius-sm) !important;
  padding: 14px 28px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 2px 8px rgba(26, 72, 149, 0.2) !important;
}
.learndash-wrapper .ld-button[name="mark_complete"]:hover,
.learndash-wrapper #learndash_mark_complete_button:hover {
  background: var(--db-navy-deep) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(26, 72, 149, 0.3) !important;
}

/* Mark-complete confirmation / disabled state */
.learndash-wrapper .ld-button[disabled],
.learndash-wrapper .ld-button-disabled,
.learndash-wrapper .ld-button.ld-button-transparent {
  background: var(--db-green) !important;
  color: white !important;
  opacity: 1 !important;
  cursor: default !important;
  box-shadow: none !important;
}
.learndash-wrapper .ld-button[disabled]:hover {
  transform: none !important;
}

/* The "this lesson is complete" callout shown after Mark Complete */
.learndash-wrapper .ld-lesson-status,
.learndash-wrapper .ld-topic-status,
.learndash-wrapper .ld-alert-success {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #047857 !important;
  border-radius: var(--db-radius-sm) !important;
  padding: 14px 18px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.learndash-wrapper .ld-alert-success::before { content: '✓'; font-size: 18px; font-weight: 800; }

/* ============================================
   PREV / NEXT LESSON NAVIGATION
   ============================================ */
.learndash-wrapper .ld-content-actions {
  background: white !important;
  border: 1px solid var(--db-border) !important;
  border-radius: var(--db-radius) !important;
  padding: 20px !important;
  margin-top: 24px !important;
  box-shadow: var(--db-shadow) !important;
  display: flex !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.learndash-wrapper .ld-content-action {
  flex: 1 !important;
  min-width: 200px !important;
}
.learndash-wrapper .ld-content-action a.ld-button {
  display: block !important;
  background: white !important;
  color: var(--db-text) !important;
  border: 1.5px solid var(--db-border) !important;
  border-radius: var(--db-radius-sm) !important;
  padding: 14px 18px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-align: left !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.learndash-wrapper .ld-content-action a.ld-button:hover {
  border-color: var(--db-navy) !important;
  transform: translateY(-1px) !important;
  color: var(--db-navy) !important;
}
.learndash-wrapper .ld-content-action.ld-content-action-next a.ld-button {
  background: var(--db-navy) !important;
  color: white !important;
  border-color: var(--db-navy) !important;
  text-align: right !important;
}
.learndash-wrapper .ld-content-action.ld-content-action-next a.ld-button:hover {
  background: var(--db-navy-deep) !important;
  color: white !important;
}

/* ============================================
   POST TITLE (theme-post-title widget on LD pages)
   ============================================ */
body.single-sfwd-courses .elementor-widget-theme-post-title h1,
body.single-sfwd-lessons .elementor-widget-theme-post-title h1,
body.single-sfwd-topic   .elementor-widget-theme-post-title h1,
body.single-sfwd-quiz    .elementor-widget-theme-post-title h1 {
  font-size: 36px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  margin: 0 0 12px !important;
}

/* ============================================
   POST CONTENT WRAPPER
   ============================================ */
body.single-sfwd-courses .elementor-widget-theme-post-content,
body.single-sfwd-lessons .elementor-widget-theme-post-content,
body.single-sfwd-topic   .elementor-widget-theme-post-content,
body.single-sfwd-quiz    .elementor-widget-theme-post-content {
  background: var(--db-card);
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  padding: 32px;
  box-shadow: var(--db-shadow);
  margin-bottom: 24px;
}
body.single-sfwd-courses .elementor-widget-theme-post-content .elementor-widget-container,
body.single-sfwd-lessons .elementor-widget-theme-post-content .elementor-widget-container,
body.single-sfwd-topic   .elementor-widget-theme-post-content .elementor-widget-container,
body.single-sfwd-quiz    .elementor-widget-theme-post-content .elementor-widget-container {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
}

/* ============================================
   QUIZ — questions, answers, results
   ============================================ */
.learndash-wrapper .wpProQuiz_content {
  background: white !important;
  border: 1px solid var(--db-border) !important;
  border-radius: var(--db-radius) !important;
  padding: 32px !important;
  box-shadow: var(--db-shadow) !important;
}
.learndash-wrapper .wpProQuiz_question_text {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin: 12px 0 20px !important;
  line-height: 1.4 !important;
  color: var(--db-text) !important;
}
.learndash-wrapper .wpProQuiz_questionListItem {
  background: white !important;
  border: 1.5px solid var(--db-border) !important;
  border-radius: var(--db-radius-sm) !important;
  margin: 0 0 8px !important;
  padding: 14px 18px !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.learndash-wrapper .wpProQuiz_questionListItem:hover {
  border-color: var(--db-navy) !important;
  background: #fafbfd !important;
}
.learndash-wrapper .wpProQuiz_questionListItem input[type="radio"],
.learndash-wrapper .wpProQuiz_questionListItem input[type="checkbox"] {
  accent-color: var(--db-navy) !important;
}
.learndash-wrapper .wpProQuiz_button,
.learndash-wrapper .wpProQuiz_button2 {
  background: var(--db-navy) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--db-radius-sm) !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  text-transform: uppercase !important;
}
.learndash-wrapper .wpProQuiz_button:hover { background: var(--db-navy-deep) !important; }

.learndash-wrapper .wpProQuiz_correct,
.learndash-wrapper .wpProQuiz_response_correct {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: var(--db-radius-sm) !important;
  color: #047857 !important;
  padding: 14px !important;
}
.learndash-wrapper .wpProQuiz_incorrect,
.learndash-wrapper .wpProQuiz_response_incorrect {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: var(--db-radius-sm) !important;
  color: #b91c1c !important;
  padding: 14px !important;
}

/* Quiz info bar (questions, time, passing %) */
.learndash-wrapper .wpProQuiz_quizInfo,
.learndash-wrapper .wpProQuiz_time_limit {
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  border: 1px solid #fbbf24 !important;
  border-radius: var(--db-radius-sm) !important;
  color: #78350f !important;
  padding: 16px 20px !important;
  font-weight: 600 !important;
}

/* ============================================
   COURSE CERTIFICATE
   ============================================ */
.learndash-wrapper .ld-course-certificate,
.learndash-wrapper .elementor-widget-ld-course-certificate {
  background: linear-gradient(135deg, var(--db-navy), var(--db-navy-deep)) !important;
  color: white !important;
  border-radius: var(--db-radius) !important;
  padding: 24px !important;
  margin: 20px 0 !important;
  box-shadow: var(--db-shadow-lg) !important;
}
.learndash-wrapper .ld-course-certificate a {
  background: white !important;
  color: var(--db-navy) !important;
  padding: 12px 22px !important;
  border-radius: var(--db-radius-sm) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block !important;
}

/* ============================================
   MATERIALS / DOWNLOADS LIST
   ============================================ */
.learndash-wrapper .ld-course-navigation .ld-materials,
.learndash-wrapper .ld-lesson-topic-list,
.learndash-wrapper .ld-tabs {
  background: var(--db-card) !important;
  border: 1px solid var(--db-border) !important;
  border-radius: var(--db-radius) !important;
  padding: 20px !important;
  box-shadow: var(--db-shadow) !important;
}
.learndash-wrapper .ld-tabs-navigation {
  display: flex !important;
  gap: 4px !important;
  border-bottom: 1px solid var(--db-border) !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
}
.learndash-wrapper .ld-tab {
  padding: 12px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--db-text-muted) !important;
  cursor: pointer !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -1px !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.learndash-wrapper .ld-tab.ld-active {
  color: var(--db-navy) !important;
  border-bottom-color: var(--db-navy) !important;
}

/* ============================================
   BREADCRUMBS (if displayed)
   ============================================ */
.learndash-wrapper .ld-breadcrumbs {
  background: transparent !important;
  padding: 0 0 16px !important;
  font-size: 13px !important;
  color: var(--db-text-muted) !important;
}
.learndash-wrapper .ld-breadcrumbs a {
  color: var(--db-text-muted) !important;
  text-decoration: none !important;
}
.learndash-wrapper .ld-breadcrumbs a:hover { color: var(--db-navy) !important; }
.learndash-wrapper .ld-breadcrumbs > span:last-child {
  color: var(--db-text) !important;
  font-weight: 600 !important;
}

/* ============================================
   EXPANDED LESSON BODY (sub-topics + quiz list inside lesson row)
   ============================================ */
.learndash-wrapper .ld-table-list,
.learndash-wrapper .ld-item-list-item-expanded .ld-table-list {
  background: white !important;
  border-top: 1px solid var(--db-border) !important;
  padding: 8px 0 !important;
  margin: 0 !important;
}
.learndash-wrapper .ld-table-list-item {
  padding: 12px 20px 12px 60px !important;
  border-top: 1px solid var(--db-border) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: transparent !important;
}
.learndash-wrapper .ld-table-list-item:first-child { border-top: none !important; }
.learndash-wrapper .ld-table-list-item:hover { background: #fafbfd !important; }
.learndash-wrapper .ld-table-list-item-preview {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* ============================================
   FOCUS MODE & PROFILE WIDGET COMPATIBILITY
   ============================================ */
.learndash-wrapper .ld-focus,
.learndash-wrapper .ld-focus-main-sidebar {
  background: var(--db-bg) !important;
}

/* ============================================
   NEW SINGLE-CURRICULUM TEMPLATE (Design B layout)
   Targets template post 80264 via .elementor-80264 wrapper +
   structural selectors. Custom _css_classes were stripped by
   Elementor's renderer; we use element structure instead.
   ============================================ */

/* Body-level: gray-blue background under the white sections */
body.dsn-design-b { background: var(--db-bg) !important; }

/* === Thumb container with badge overlay (from [dsn_curric_thumb]) ===
   Locked to 16:9 to match DSN's source thumbnail dimensions (1920x1080 PNGs).
   Every course featured image is uploaded at 16:9 so this preserves the full image
   without cropping while still keeping all cards visually consistent. */
.dsn-curric-thumb {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  border-radius: var(--db-radius);
  overflow: hidden;
  box-shadow: var(--db-shadow-lg);
  background: linear-gradient(135deg, var(--db-navy), var(--db-accent));
}
.dsn-curric-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--db-radius);
}
.dsn-curric-thumb-fallback {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 64px;
}
.dsn-curric-thumb-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  z-index: 2;
}

/* === Title (from [dsn_curric_title]) === */
.dsn-curric-title {
  font-size: 36px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  margin: 8px 0 12px !important;
  color: var(--db-text) !important;
}

/* === Meta row (from [dsn_curric_meta]) === */
.dsn-curric-meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
  align-items: center;
}
.dsn-curric-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--db-text-muted);
  font-size: 13px;
  font-weight: 500;
}
.dsn-curric-meta-item svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  flex-shrink: 0;
}
.dsn-curric-meta-item strong {
  color: var(--db-text);
  font-weight: 600;
}

/* === Progress pill (from [dsn_curric_progress_pill]) === */
.dsn-curric-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  color: #047857;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 14px;
  vertical-align: middle;
}
.dsn-curric-progress-pill .dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
}

/* === Breadcrumb (dsn_ld_bc) — restyle for Design B === */
body.dsn-design-b .dsn-ld-bc,
body.dsn-design-b .ld-breadcrumbs,
body.dsn-design-b .sfwd-breadcrumbs {
  font-size: 13px !important;
  color: var(--db-text-muted) !important;
  margin-bottom: 8px !important;
}
body.dsn-design-b .dsn-ld-bc a,
body.dsn-design-b .ld-breadcrumbs a {
  color: var(--db-text-muted) !important;
  text-decoration: none !important;
}
body.dsn-design-b .dsn-ld-bc a:hover { color: var(--db-navy) !important; }

/* === Start/Resume Course button (.dsn-ld-course-btn from shortcode) === */
.dsn-ld-course-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: var(--db-navy) !important;
  color: white !important;
  padding: 14px 28px !important;
  border-radius: var(--db-radius-sm) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(26, 72, 149, 0.2) !important;
  transition: all 0.15s ease !important;
  border: none !important;
  cursor: pointer !important;
}
.dsn-ld-course-btn:hover {
  background: var(--db-navy-deep) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(26, 72, 149, 0.3) !important;
  color: white !important;
  text-decoration: none !important;
}

/* === BANNER section (first <section> in 80264) === */
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(1) {
  border-bottom: 1px solid var(--db-border);
}

/* Lock banner to CSS grid: 520px image | 1fr content, 40px gap. Overrides Elementor flex. */
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(1) > .elementor-container {
  display: grid !important;
  grid-template-columns: 520px 1fr !important;
  gap: 40px !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  align-items: center !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(1) > .elementor-container > .elementor-column {
  width: 100% !important;
  max-width: none !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(1) > .elementor-container > .elementor-column > .elementor-element-populated {
  padding: 0 !important;
}
.dsn-course-banner-section {
  border-bottom: 1px solid var(--db-border);
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(1) .elementor-widget-theme-post-featured-image img,
.dsn-course-banner-section .elementor-widget-theme-post-featured-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--db-radius) !important;
  width: 100%;
  box-shadow: var(--db-shadow-lg);
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(1) .elementor-widget-theme-post-title h1,
.dsn-course-banner-section .elementor-widget-theme-post-title h1 {
  font-size: 36px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  margin: 8px 0 12px !important;
  color: var(--db-text) !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(1) .elementor-widget-shortcode .ld-breadcrumbs,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(1) .elementor-widget-shortcode .sfwd-breadcrumbs,
.dsn-course-banner-section .elementor-widget-shortcode .ld-breadcrumbs,
.dsn-course-banner-section .elementor-widget-shortcode .sfwd-breadcrumbs {
  font-size: 13px !important;
  color: var(--db-text-muted) !important;
  margin-bottom: 8px !important;
}

/* === BODY section (second <section> in 80264) — sidebar + tabs === */
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) {
  min-height: 600px;
}
/* Lock body to CSS grid: 340px sidebar | 1fr main, 28px gap. Overrides Elementor flex.
   This ensures tab switches do not reflow the column widths. */
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) > .elementor-container {
  display: grid !important;
  grid-template-columns: 340px 1fr !important;
  gap: 28px !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  align-items: start !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) > .elementor-container > .elementor-column {
  width: 100% !important;
  max-width: none !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .elementor-element-populated {
  position: sticky !important;
  top: 20px !important;
  align-self: start !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .elementor-widget-heading h3 {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--db-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin: 0 0 14px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--db-border) !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item {
  margin-bottom: 8px !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item-preview {
  padding: 12px 14px !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-title,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-name {
  font-size: 13px !important;
}

/* Right column: section title + tabs */
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:nth-child(2) .elementor-widget-heading:first-child h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  color: var(--db-text) !important;
  margin: 0 0 20px !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-widget-tabs .elementor-tabs {
  background: white;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  box-shadow: var(--db-shadow);
  overflow: hidden;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-widget-tabs .elementor-tabs-wrapper {
  background: #fafbfd;
  border-bottom: 1px solid var(--db-border);
  display: flex;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-widget-tabs .elementor-tab-title {
  border: none !important;
  background: transparent !important;
  padding: 16px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--db-text-muted) !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -1px !important;
  transition: all 0.15s !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-widget-tabs .elementor-tab-title.elementor-active {
  color: var(--db-navy) !important;
  background: white !important;
  border-bottom-color: var(--db-navy) !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-widget-tabs .elementor-tab-content {
  padding: 28px !important;
  border: none !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
  /* No min-height — let content size dictate panel height */
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-widget-tabs .elementor-tabs-content-wrapper {
  /* No min-height — content grows/shrinks naturally */
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-widget-theme-post-content {
  background: white;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  padding: 28px;
  box-shadow: var(--db-shadow);
  margin-top: 20px;
}

/* Mobile responsive for the 80264 template */
@media (max-width: 1024px) {
  body.dsn-design-b .elementor.elementor-80264 > section .elementor-container {
    flex-direction: column !important;
  }
  body.dsn-design-b .elementor.elementor-80264 > section .elementor-column {
    width: 100% !important;
  }
  body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .elementor-element-populated {
    position: static !important;
  }
}

/* ============================================
   Course-thumbnail consistency — SCOPED TIGHT
   Only enforced inside the curriculum widget card grid and our
   custom curriculum thumb container. NEVER hit header logos /
   sidebar widgets / generic Elementor image widgets.
   ============================================ */
.dsn-listing__layout .dsn-curr-card__img,
.dsn-listing__layout img.dsn-curr-card__img {
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}

/* ============================================
   SINGLE-LESSON TEMPLATE (Design B layout)
   Rendered via dsn-lesson-elementor.php (template_include override)
   which loads Elementor template 80265.
   ============================================ */
body.single-sfwd-lessons { background: var(--db-bg) !important; }

/* Lock lesson template layout the same way as curriculum: CSS grid with fixed sidebar */
body.single-sfwd-lessons .elementor.elementor-80265 > section:nth-of-type(2) > .elementor-container {
  display: grid !important;
  grid-template-columns: 340px 1fr !important;
  gap: 28px !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  align-items: start !important;
}
body.single-sfwd-lessons .elementor.elementor-80265 > section:nth-of-type(2) > .elementor-container > .elementor-column {
  width: 100% !important;
  max-width: none !important;
}
/* Banner section of lesson template: keep flex (single-row content) but set max-width + padding */
body.single-sfwd-lessons .elementor.elementor-80265 > section:nth-of-type(1) > .elementor-container {
  max-width: 1400px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 28px !important;
}

/* Banner right side: position pill + Back to Course button inline.
   Rendered as a single combined block by [dsn_lesson_banner_actions]. */
.dsn-lesson-banner-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
}

/* ============================================
   LESSON TABS ([dsn_lesson_tabs] output)
   Overview / Topics / Materials / Quiz
   ============================================ */
.dsn-lesson-tabs {
  background: white;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  box-shadow: var(--db-shadow);
  overflow: hidden;
}
.dsn-lesson-tabs-strip {
  display: flex;
  gap: 0;
  background: #fafbfd;
  border-bottom: 1px solid var(--db-border);
}
.dsn-lesson-tab {
  flex: 0 0 auto;
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--db-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .15s, background .15s, border-color .15s;
}
.dsn-lesson-tab:hover {
  color: var(--db-text);
  background: rgba(255,255,255,0.6);
}
.dsn-lesson-tab.is-active {
  color: var(--db-navy);
  background: white;
  border-bottom-color: var(--db-navy);
}
.dsn-lesson-tab-count {
  background: rgba(15, 23, 42, 0.08);
  color: var(--db-text-muted);
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.dsn-lesson-tab.is-active .dsn-lesson-tab-count {
  background: rgba(26, 72, 149, 0.12);
  color: var(--db-navy);
}
.dsn-lesson-tabs-panels {
  /* No min-height — panel height grows/shrinks to fit actual content */
}
.dsn-lesson-tab-panel {
  display: none;
  padding: 28px;
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
}
.dsn-lesson-tab-panel.is-active {
  display: block;
}
.dsn-lesson-tab-panel h2 { margin-top: 24px; color: var(--db-text); }
.dsn-lesson-tab-panel p { color: #334155; }

/* Topics list inside Topics tab */
.dsn-lesson-topics-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dsn-lesson-topic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fafbfd;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius-sm);
  text-decoration: none;
  color: var(--db-text);
  font-weight: 600;
  transition: all .15s;
}
.dsn-lesson-topic-item:hover {
  border-color: var(--db-navy);
  background: white;
  transform: translateY(-1px);
  box-shadow: var(--db-shadow);
}
.dsn-lesson-topic-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--db-border);
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}
.dsn-lesson-topic-item.is-done .dsn-lesson-topic-icon {
  background: var(--db-green);
  border-color: var(--db-green);
}

/* Materials block */
.dsn-lesson-materials ul { padding-left: 0; list-style: none; margin: 0; }
.dsn-lesson-materials li {
  padding: 12px 16px;
  background: #fafbfd;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius-sm);
  margin-bottom: 8px;
}
.dsn-lesson-materials a {
  color: var(--db-navy);
  font-weight: 600;
  text-decoration: none;
}
.dsn-lesson-materials a:hover { text-decoration: underline; }

/* Quiz list inside Quiz tab */
.dsn-lesson-quizzes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dsn-lesson-quiz-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fbbf24;
  border-radius: var(--db-radius-sm);
  text-decoration: none;
  color: #78350f;
  font-weight: 700;
}
.dsn-lesson-quiz-icon { color: #b45309; font-size: 18px; }

/* Author link inside Overview tab (legacy — kept for fallback) */
.dsn-lesson-author { margin-top: 18px; font-size: 14px; }
.dsn-lesson-author a {
  color: var(--db-navy);
  font-weight: 700;
  text-decoration: none;
}
.dsn-lesson-author a:hover { text-decoration: underline; }

/* === Instructor profile card — now its own standalone block, not inside a tab === */
.dsn-instructor-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 0;
  padding: 24px;
  background: white;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  box-shadow: var(--db-shadow);
}
/* Eyebrow above the card */
.dsn-instructor-card::before {
  display: none;
}
.dsn-instructor-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--db-navy), var(--db-accent));
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}
.dsn-instructor-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dsn-instructor-card__body { min-width: 0; }
.dsn-instructor-card__eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--db-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.dsn-instructor-card__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--db-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.dsn-instructor-card__subtitle {
  font-size: 13px;
  color: var(--db-text-muted);
  font-weight: 600;
  margin-top: 2px;
}
.dsn-instructor-card__bio {
  margin: 12px 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}
.dsn-instructor-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--db-navy) !important;
  border: 1.5px solid var(--db-navy);
  padding: 10px 18px;
  border-radius: var(--db-radius-sm);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  transition: all .15s;
}
.dsn-instructor-card__btn:hover {
  background: var(--db-navy);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 72, 149, 0.25);
}

@media (max-width: 600px) {
  .dsn-instructor-card { grid-template-columns: 1fr; text-align: center; }
  .dsn-instructor-card__avatar { margin: 0 auto; }
}

/* === Progress row: Mark Complete (left) + Next Lesson (right) under the video === */
.dsn-lesson-progress-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dsn-lesson-progress-row__left  { display: flex; align-items: center; }
.dsn-lesson-progress-row__right { display: flex; align-items: center; margin-left: auto; }

/* Bare Mark Complete button — no card wrapper, just the button */
.dsn-lesson-mark-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--db-green);
  color: white !important;
  border: none;
  padding: 14px 24px;
  border-radius: var(--db-radius-sm);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(1, 158, 124, 0.25);
  transition: all 0.15s ease;
  position: relative;
  min-height: 48px;
}
.dsn-lesson-mark-btn:hover:not(:disabled) {
  background: #017560;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(1, 158, 124, 0.35);
}
.dsn-lesson-mark-btn:disabled,
.dsn-lesson-mark-btn.is-complete {
  cursor: default;
  background: #ecfdf5;
  color: #047857 !important;
  border: 1.5px solid #a7f3d0;
  box-shadow: none;
}
.dsn-lesson-mark-btn__icon {
  font-size: 18px;
  font-weight: 800;
}
/* Spinner shown when waiting on REST response */
.dsn-lesson-mark-btn__spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: white;
  border-radius: 50%;
  animation: dsn-mc-spin 0.7s linear infinite;
}
.dsn-lesson-mark-btn.is-loading .dsn-lesson-mark-btn__spinner {
  display: inline-block;
}
.dsn-lesson-mark-btn.is-loading .dsn-lesson-mark-btn__label { opacity: 0.7; }
@keyframes dsn-mc-spin { to { transform: rotate(360deg); } }

/* Blocked state — quiz must be finished before marking complete.
   Amber palette indicates "action needed", same shape as Mark Complete button so the row stays aligned. */
.dsn-lesson-mark-blocked {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fef3c7;
  color: #78350f;
  border: 1.5px solid #fbbf24;
  padding: 12px 22px;
  border-radius: var(--db-radius-sm);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  min-height: 48px;
}
.dsn-lesson-mark-blocked__icon {
  font-size: 18px;
  color: #b45309;
  line-height: 1;
}

/* Full-bleed green overlay covering the video stage after mark complete.
   Same light-green palette as the "Lesson Completed" pill. */
.dsn-lesson-complete-overlay {
  position: absolute;
  inset: 0;
  background: #ecfdf5;
  color: #047857;
  border-radius: var(--db-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: dsn-overlay-in 0.25s ease;
}
@keyframes dsn-overlay-in {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
.dsn-lesson-complete-overlay__inner {
  text-align: center;
  padding: 24px 32px;
  max-width: 100%;
}
.dsn-lesson-complete-overlay__check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--db-green);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(1, 158, 124, 0.35);
}
.dsn-lesson-complete-overlay__label {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #047857;
}
.dsn-lesson-complete-overlay__next-title {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
  color: #065f46;
  letter-spacing: -0.01em;
  line-height: 1.3;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.dsn-lesson-complete-overlay__next-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: 4px;
}
.dsn-lesson-complete-overlay__continuing {
  font-size: 15px;
  color: #065f46;
  font-weight: 500;
  margin-top: 14px;
}
.dsn-lesson-complete-overlay__num {
  font-size: 96px;
  font-weight: 800;
  color: var(--db-green);
  line-height: 1;
  margin: 4px 0 18px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.dsn-lesson-complete-overlay__stop {
  background: white;
  color: #047857;
  border: 1.5px solid #a7f3d0;
  border-radius: var(--db-radius-sm);
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all .15s;
}
.dsn-lesson-complete-overlay__stop:hover {
  background: var(--db-green);
  color: white;
  border-color: var(--db-green);
}

/* Smaller breakpoint adjustments */
@media (max-width: 600px) {
  .dsn-lesson-complete-overlay__check { width: 60px; height: 60px; font-size: 32px; }
  .dsn-lesson-complete-overlay__num { font-size: 64px; }
  .dsn-lesson-complete-overlay__label { font-size: 12px; }
}

/* Next-lesson button — keep on the right side of the row */
.dsn-lesson-next-wrap {
  display: flex;
  justify-content: flex-end;
}
.dsn-lesson-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--db-navy);
  color: white !important;
  padding: 12px 20px;
  border-radius: var(--db-radius-sm);
  text-decoration: none !important;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(26, 72, 149, 0.2);
  max-width: 100%;
  min-width: 220px;
}
.dsn-lesson-next-btn:hover {
  background: var(--db-navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 72, 149, 0.3);
  color: white !important;
}
.dsn-lesson-next-btn__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}
.dsn-lesson-next-btn__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.dsn-lesson-next-btn__title {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dsn-lesson-next-btn__arrow {
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Slim banner */
.dsn-lesson-bc {
  font-size: 13px;
  color: var(--db-text-muted);
  margin-bottom: 6px;
}
.dsn-lesson-bc a { color: var(--db-text-muted); text-decoration: none; }
.dsn-lesson-bc a:hover { color: var(--db-navy); }
.dsn-lesson-bc .sep { margin: 0 8px; color: var(--db-text-faint); }
.dsn-lesson-bc .current { color: var(--db-text); font-weight: 600; }

.dsn-lesson-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  margin: 4px 0 0 !important;
  color: var(--db-text) !important;
}

.dsn-lesson-position {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  color: #047857;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 10px;
}
.dsn-lesson-position::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}

.dsn-lesson-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: white !important;
  color: var(--db-navy) !important;
  border: 1.5px solid var(--db-navy) !important;
  padding: 10px 18px !important;
  border-radius: var(--db-radius-sm) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: all 0.15s !important;
}
.dsn-lesson-back-btn:hover {
  background: var(--db-navy) !important;
  color: white !important;
}

/* Body — sidebar */
.dsn-lesson-sidebar-wrap {
  font-size: 14px;
}
.dsn-lesson-sidebar-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--db-border);
  margin-bottom: 6px;
}

/* === Course Curriculum sidebar header (title + count + progress bar) === */
.dsn-sidebar-header {
  padding: 0 0 14px;
  border-bottom: 1px solid var(--db-border);
  margin-bottom: 10px;
}
.dsn-sidebar-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.dsn-sidebar-header__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--db-text);
  letter-spacing: -0.01em;
}
.dsn-sidebar-header__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--db-text-muted);
  background: rgba(15, 23, 42, 0.04);
  padding: 3px 10px;
  border-radius: 999px;
}
.dsn-sidebar-progress {
  height: 6px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
  overflow: hidden;
}
.dsn-sidebar-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--db-navy), var(--db-accent));
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* Hide LD's auto-rendered "Course Content" section heading in the sidebar
   (we provide our own header above). Applies on both lesson + curriculum sidebar contexts. */
.dsn-lesson-sidebar-wrap .ld-section-heading,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-section-heading {
  display: none !important;
}

/* Tighten sidebar column padding-top/bottom on lesson + curriculum pages */
body.single-sfwd-lessons .elementor.elementor-80265 > section:nth-of-type(2) > .elementor-container > .elementor-column:first-child .elementor-element-populated,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) > .elementor-container > .elementor-column:first-child .elementor-element-populated {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

/* Trim padding on first and last lesson items in sidebar so the list sits snug
   against the header and the bottom of the card. */
.dsn-lesson-sidebar-wrap .ld-item-list-item:first-child .ld-item-list-item-preview,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item:first-child .ld-item-list-item-preview {
  padding-top: 6px !important;
}
.dsn-lesson-sidebar-wrap .ld-item-list-item:last-child .ld-item-list-item-preview,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item:last-child .ld-item-list-item-preview {
  padding-bottom: 6px !important;
}
.dsn-lesson-sidebar-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--db-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.dsn-lesson-sidebar-course {
  font-size: 15px;
  font-weight: 700;
  color: var(--db-text);
  line-height: 1.3;
}

/* ============================================
   CONSOLIDATED LESSON LIST IN SIDEBARS
   Applies to:
   - Curriculum page sidebar (80264, second section, first column)
   - Lesson page sidebar (.dsn-lesson-sidebar-wrap)
   Strips individual card backgrounds/borders, uses thin divider lines,
   tighter padding so the list reads as a unified outline.
   ============================================ */
.dsn-lesson-sidebar-wrap .ld-item-list,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.dsn-lesson-sidebar-wrap .ld-item-list-item,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--db-border) !important;
  border-left: 3px solid transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background .15s, border-left-color .15s !important;
}
.dsn-lesson-sidebar-wrap .ld-item-list-item:last-child,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item:last-child {
  border-bottom: none !important;
}
.dsn-lesson-sidebar-wrap .ld-item-list-item:hover,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item:hover {
  background: rgba(26, 72, 149, 0.03) !important;
  border-color: var(--db-border) !important;
  transform: none !important;
}

.dsn-lesson-sidebar-wrap .ld-item-list-item-preview,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item-preview {
  padding: 6px 8px !important;
  gap: 10px !important;
}

/* Override LD's default lesson-name anchor padding (default: 0.2em 1.25em)
   so each row in the Course Curriculum sidebar sits tighter vertically. */
.dsn-lesson-sidebar-wrap .ld-item-list .ld-item-list-item a.ld-item-name,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list .ld-item-list-item a.ld-item-name {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.dsn-lesson-sidebar-wrap .ld-item-title,
.dsn-lesson-sidebar-wrap .ld-item-name,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-title,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-name {
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* CURRENT lesson indicator — green arrow inside the status circle.
   LD applies .current_item to the active sidebar row when on a lesson page.
   Override the default empty-circle look with a filled green ▶ arrow. */
.dsn-lesson-sidebar-wrap .ld-item-list-item.current_item,
.dsn-lesson-sidebar-wrap .ld-item-list-item.learndash-current-lesson,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item.current_item {
  background: rgba(1, 158, 124, 0.06) !important;
}
.dsn-lesson-sidebar-wrap .ld-item-list-item.current_item .ld-item-title,
.dsn-lesson-sidebar-wrap .ld-item-list-item.current_item .ld-item-name,
.dsn-lesson-sidebar-wrap .ld-item-list-item.learndash-current-lesson .ld-item-title,
.dsn-lesson-sidebar-wrap .ld-item-list-item.learndash-current-lesson .ld-item-name {
  color: var(--db-green) !important;
  font-weight: 700 !important;
}
.dsn-lesson-sidebar-wrap .ld-item-list-item.current_item .ld-status,
.dsn-lesson-sidebar-wrap .ld-item-list-item.learndash-current-lesson .ld-status,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item.current_item .ld-status {
  background: var(--db-green) !important;
  border-color: var(--db-green) !important;
}
.dsn-lesson-sidebar-wrap .ld-item-list-item.current_item .ld-status::after,
.dsn-lesson-sidebar-wrap .ld-item-list-item.learndash-current-lesson .ld-status::after,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item.current_item .ld-status::after {
  content: '▶' !important;
  color: white !important;
  font-size: 10px !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-indent: 0 !important;
}

/* Video stage */
.dsn-lesson-video-stage {
  background: black;
  border-radius: var(--db-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--db-shadow-lg);
  position: relative;
}
.dsn-lesson-video-stage iframe,
.dsn-lesson-video-stage video,
.dsn-lesson-video-stage .wistia_responsive_padding,
.dsn-lesson-video-stage > div {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Lesson body card — when theme-post-content renders */
body.single-sfwd-lessons .elementor-widget-theme-post-content {
  background: white;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  padding: 32px;
  box-shadow: var(--db-shadow);
}
body.single-sfwd-lessons .elementor-widget-theme-post-content .elementor-widget-container {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
}

/* Materials list shortcode output */
body.single-sfwd-lessons .ld-lesson-materials,
body.single-sfwd-lessons .learndash-wrapper .ld-materials {
  background: white !important;
  border: 1px solid var(--db-border) !important;
  border-radius: var(--db-radius) !important;
  padding: 24px !important;
  box-shadow: var(--db-shadow) !important;
}

/* Make sure the right column 2nd-section sticky-sidebar works */
body.single-sfwd-lessons .elementor-section .elementor-column:first-child .elementor-element-populated {
  position: sticky !important;
  top: 20px !important;
  align-self: start !important;
}

/* Mobile */
@media (max-width: 1024px) {
  body.single-sfwd-lessons .elementor-section .elementor-container {
    flex-direction: column !important;
  }
  body.single-sfwd-lessons .elementor-section .elementor-column {
    width: 100% !important;
  }
  body.single-sfwd-lessons .elementor-column:first-child .elementor-element-populated {
    position: static !important;
  }
}

/* ============================================
   SINGLE-FACULTY TEMPLATE (Design B layout)
   New template post for single-faculty pages, registered via include/singular/faculty.
   ============================================ */
body.single-faculty { background: var(--db-bg) !important; }

/* Lock banner: avatar (33%) | content (67%) */
body.single-faculty .elementor-section:first-of-type > .elementor-container {
  display: grid !important;
  grid-template-columns: 320px 1fr !important;
  gap: 40px !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  align-items: center !important;
}
body.single-faculty .elementor-section:first-of-type > .elementor-container > .elementor-column {
  width: 100% !important;
  max-width: none !important;
}
body.single-faculty .elementor-section:first-of-type > .elementor-container > .elementor-column > .elementor-element-populated {
  padding: 0 !important;
}

/* Body section max-width */
body.single-faculty .elementor-section:nth-of-type(2) > .elementor-container {
  max-width: 1100px !important;
  margin: 0 auto !important;
}

/* Avatar */
.dsn-faculty-avatar {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: var(--db-radius);
  overflow: hidden;
  box-shadow: var(--db-shadow-lg);
  background: linear-gradient(135deg, var(--db-navy), var(--db-accent));
}
.dsn-faculty-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dsn-faculty-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Breadcrumb */
.dsn-faculty-bc {
  font-size: 13px;
  color: var(--db-text-muted);
  margin-bottom: 12px;
}
.dsn-faculty-bc a { color: var(--db-text-muted); text-decoration: none; }
.dsn-faculty-bc a:hover { color: var(--db-navy); }
.dsn-faculty-bc .sep { margin: 0 8px; color: var(--db-text-faint); }
.dsn-faculty-bc .current { color: var(--db-text); font-weight: 600; }

/* Name block */
.dsn-faculty-name-block { margin-bottom: 20px; }
.dsn-faculty-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--db-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.dsn-faculty-name {
  font-size: 40px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  margin: 0 0 8px !important;
  color: var(--db-text) !important;
}
.dsn-faculty-subtitle {
  font-size: 16px;
  color: var(--db-text-muted);
  font-weight: 600;
}

/* Workplace button */
.dsn-faculty-workplace-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--db-navy) !important;
  border: 1.5px solid var(--db-navy);
  padding: 10px 18px;
  border-radius: var(--db-radius-sm);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  transition: all 0.15s;
}
.dsn-faculty-workplace-btn:hover {
  background: var(--db-navy);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 72, 149, 0.25);
}

/* Bio card */
.dsn-faculty-bio {
  background: white;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  padding: 36px;
  box-shadow: var(--db-shadow);
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
}
.dsn-faculty-bio h2 { color: var(--db-text); margin-top: 28px; font-size: 22px; }
.dsn-faculty-bio p { margin-bottom: 16px; }

/* Related courses */
.dsn-faculty-courses { margin-top: 8px; }
.dsn-faculty-courses__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--db-text);
  margin: 0 0 20px;
}
.dsn-faculty-courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) {
  .dsn-faculty-courses__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dsn-faculty-courses__grid { grid-template-columns: 1fr; }
}
.dsn-faculty-course-card {
  background: white;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  overflow: hidden;
  box-shadow: var(--db-shadow);
  text-decoration: none !important;
  color: var(--db-text) !important;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
}
.dsn-faculty-course-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--db-shadow-lg);
  border-color: var(--db-navy);
}
.dsn-faculty-course-card__thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--db-navy), var(--db-accent));
  overflow: hidden;
}
.dsn-faculty-course-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dsn-faculty-course-card__body { padding: 16px 18px; }
.dsn-faculty-course-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--db-text) !important;
}

/* Mobile */
@media (max-width: 768px) {
  body.single-faculty .elementor-section:first-of-type > .elementor-container {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .dsn-faculty-avatar { max-width: 220px; margin: 0 auto; }
  .dsn-faculty-name { font-size: 30px !important; }
  .dsn-faculty-bio { padding: 24px; }
}

/* Meta row */
.dsn-course-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}
.dsn-course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 72, 149, 0.08);
  color: var(--db-navy);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.dsn-course-meta-item strong { color: var(--db-navy); font-weight: 700; }

/* CTA buttons inside the banner — restyle the Start / Resume / Enroll buttons */
.dsn-course-cta { margin-top: 8px; }
.dsn-course-cta a,
.dsn-course-cta button,
.dsn-course-cta input[type="submit"],
.dsn-course-cta .btn-join {
  background: var(--db-navy) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--db-radius-sm) !important;
  padding: 14px 28px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-decoration: none !important;
  display: inline-block !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(26, 72, 149, 0.2) !important;
  transition: all 0.15s ease !important;
}
.dsn-course-cta a:hover,
.dsn-course-cta button:hover,
.dsn-course-cta .btn-join:hover {
  background: var(--db-navy-deep) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(26, 72, 149, 0.3) !important;
}

/* Body section */
.dsn-course-body-section {
  min-height: 400px;
}
.dsn-course-body-section .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding: 0 14px !important;
}

/* Sidebar (left column with curriculum tree) */
.dsn-course-sidebar {
  position: sticky !important;
  top: 20px !important;
  align-self: start !important;
}
.dsn-sidebar-title.elementor-widget-heading h3 {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--db-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin: 0 0 14px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--db-border) !important;
}
.dsn-course-sidebar-content .learndash-wrapper {
  font-size: 14px;
}
.dsn-course-sidebar-content .ld-item-list {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}
.dsn-course-sidebar-content .ld-item-list-item {
  margin-bottom: 8px !important;
}
.dsn-course-sidebar-content .ld-item-list-item-preview { padding: 12px 14px !important; }
.dsn-course-sidebar-content .ld-item-title,
.dsn-course-sidebar-content .ld-item-name { font-size: 13px !important; }
.dsn-course-sidebar-content .ld-item-component { font-size: 10px !important; padding: 1px 6px !important; }

/* Main content area */
.dsn-course-section-title.elementor-widget-heading h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  color: var(--db-text) !important;
  margin: 0 0 20px !important;
}

/* Tabs widget — Design B treatment */
.dsn-course-body-section .elementor-widget-tabs .elementor-tabs {
  background: white;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  box-shadow: var(--db-shadow);
  overflow: hidden;
}
.dsn-course-body-section .elementor-widget-tabs .elementor-tabs-wrapper {
  background: #fafbfd;
  border-bottom: 1px solid var(--db-border);
  display: flex;
  gap: 0;
}
.dsn-course-body-section .elementor-widget-tabs .elementor-tab-title {
  border: none !important;
  background: transparent !important;
  padding: 16px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--db-text-muted) !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -1px !important;
  transition: all 0.15s !important;
}
.dsn-course-body-section .elementor-widget-tabs .elementor-tab-title:hover {
  color: var(--db-text) !important;
  background: white !important;
}
.dsn-course-body-section .elementor-widget-tabs .elementor-tab-title.elementor-active {
  color: var(--db-navy) !important;
  background: white !important;
  border-bottom-color: var(--db-navy) !important;
}
.dsn-course-body-section .elementor-widget-tabs .elementor-tab-content {
  padding: 28px !important;
  border: none !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #334155 !important;
}
.dsn-course-body-section .elementor-widget-tabs .elementor-tab-content p { color: #334155; }
.dsn-course-body-section .elementor-widget-tabs .elementor-tab-content h2,
.dsn-course-body-section .elementor-widget-tabs .elementor-tab-content h3 {
  color: var(--db-text);
  margin-top: 24px;
}

/* Post-content widget below tabs */
.dsn-course-body-section .elementor-widget-theme-post-content {
  background: white;
  border: 1px solid var(--db-border);
  border-radius: var(--db-radius);
  padding: 28px;
  box-shadow: var(--db-shadow);
  margin-top: 20px;
}

/* Mobile responsive: stack the 2-column layout */
@media (max-width: 1024px) {
  .dsn-course-sidebar { position: static !important; margin-bottom: 20px; }
  .dsn-course-body-section .elementor-container { flex-direction: column !important; }
  .dsn-course-banner-section .elementor-container { flex-direction: column !important; }
  .dsn-course-banner-section .elementor-column { width: 100% !important; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .learndash-wrapper .ld-course-status { padding: 20px !important; }
  .learndash-wrapper .ld-content-actions { flex-direction: column !important; }
  .learndash-wrapper .ld-content-action { width: 100% !important; }
  body.single-sfwd-courses .elementor-widget-theme-post-content { padding: 20px !important; }
}

body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item-preview .ld-item-name {
  flex: 1 1 100% !important;
  min-width: 0 !important;
}
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item-preview .ld-item-details {
  flex: 1 1 100% !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding-left: 38px !important;
}


/* === Lesson row pill layout (course curriculum + lesson sidebar, 2026-06-01) ===
 * Title takes full row width; '1 Quiz' badge drops to its own line below;
 * Expand toggle is restyled as a small pill aligned bottom-right alongside it.
 * Applies to BOTH the course curriculum sidebar (template 80264 section 2 col 1)
 * AND the lesson page sidebar (.dsn-lesson-sidebar-wrap).
 */
/* Row 1: title takes full width. Row 2: 1 Quiz pill on left + Expand pill on right,
 * both absolutely positioned at the bottom so the title is NOT squeezed by reserved space. */
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item-preview,
.dsn-lesson-sidebar-wrap .ld-item-list-item-preview {
  position: relative !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding-right: 14px !important;
}

/* Reserve space at the bottom only when there ARE pills (Expand OR 1 Quiz) */
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item.ld-expandable .ld-item-list-item-preview,
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item-preview:has(.ld-item-components),
.dsn-lesson-sidebar-wrap .ld-item-list-item.ld-expandable .ld-item-list-item-preview,
.dsn-lesson-sidebar-wrap .ld-item-list-item-preview:has(.ld-item-components) {
  padding-bottom: 36px !important;
}

body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-list-item-preview .ld-item-name,
.dsn-lesson-sidebar-wrap .ld-item-list-item-preview .ld-item-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-title,
.dsn-lesson-sidebar-wrap .ld-item-title {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Pull '1 Quiz' pill OUT of inline flow and pin it bottom-left of the row,
 * aligned with where the title text starts (past the status icon). */
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-title .ld-item-components,
.dsn-lesson-sidebar-wrap .ld-item-title .ld-item-components {
  position: absolute !important;
  left: 40px !important;
  bottom: 12px !important;
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  margin: 0 !important;
}

/* Pin Expand pill bottom-right on the SAME row as 1 Quiz */
body.dsn-design-b .elementor.elementor-80264 > section:nth-of-type(2) .elementor-column:first-child .ld-item-details,
.dsn-lesson-sidebar-wrap .ld-item-details {
  position: absolute !important;
  right: 14px !important;
  bottom: 12px !important;
  margin: 0 !important;
}

/* Restyle Expand button as a small pill IDENTICAL to .ld-item-component (1 Quiz badge)
 * Base: 11px / 700 weight (lesson sidebar)
 * Course curriculum sidebar override: 10px (matches the .dsn-course-sidebar-content rule)
 */
body.dsn-design-b .elementor.elementor-80264 .ld-expand-button,
.dsn-lesson-sidebar-wrap .ld-expand-button {
  background: rgba(0, 162, 232, 0.08) !important;
  color: var(--db-accent) !important;
  padding: 2px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  border: none !important;
  border-radius: 999px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  text-transform: none !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: 1.4 !important;
}

/* Tighten in course curriculum sidebar to match the dsn-course-sidebar-content override on 1 Quiz */
body.dsn-design-b .elementor.elementor-80264 .dsn-course-sidebar-content .ld-expand-button {
  font-size: 10px !important;
  padding: 1px 6px !important;
}

body.dsn-design-b .elementor.elementor-80264 .ld-expand-button .ld-icon-arrow-down,
.dsn-lesson-sidebar-wrap .ld-expand-button .ld-icon-arrow-down {
  font-size: 9px !important;
  background: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
}

body.dsn-design-b .elementor.elementor-80264 .ld-expand-button .ld-text,
.dsn-lesson-sidebar-wrap .ld-expand-button .ld-text {
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* === Multi-instructor card list (2+ instructors per course, 2026-06-01) ===
 * When dsn_curric_instructor finds more than one Faculty post across the
 * course's lessons, it wraps each card in .dsn-instructor-card-list. Cards
 * keep their existing visual design — the wrapper only adds vertical stacking
 * with breathing room. Single-instructor courses render with no wrapper
 * (unchanged behavior).
 */
.dsn-instructor-card-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
