/* ==========================================================
   LearnDash Program Curriculum Grid
   100% Full-Width Fluid & Fully Responsive Dynamic Styles
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

.elementor-widget-learndash_program_curriculum,
.elementor-widget-learndash_program_curriculum .elementor-widget-container,
.elementor-widget-learndash_lesson_single,
.elementor-widget-learndash_lesson_single .elementor-widget-container,
.elementor-widget-learndash_topic_single,
.elementor-widget-learndash_topic_single .elementor-widget-container,
.ld-program-container,
.ld-lesson-container,
.ld-topic-container {
  width: 100% !important;
  max-width: 1680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* Theme & Elementor Breakout rules to allow full 1680px */
.single-sfwd-courses .entry-content,
.single-sfwd-lessons .entry-content,
.single-sfwd-topic .entry-content,
.single-sfwd-quiz .entry-content,
.single-sfwd-assignment .entry-content,
.sfwd-courses-template-default .entry-content,
.sfwd-lessons-template-default .entry-content,
.sfwd-topic-template-default .entry-content,
.learndash-wrapper,
.ld-program-single-main-wrap,
.ld-program-1680-container {
  max-width: 1680px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

.ld-program-container {
  --ld-font-heading: Arial, Helvetica, sans-serif;
  --ld-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ld-bg-card: rgba(8, 14, 29, 0.75);
  --ld-bg-card-inner: rgba(14, 23, 46, 0.65);
  --ld-bg-card-hover: rgba(18, 30, 60, 0.85);

  --ld-border-blue: rgba(0, 112, 243, 0.35);
  --ld-border-blue-glow: #0070f3;
  --ld-border-purple: rgba(139, 92, 246, 0.4);
  --ld-border-purple-glow: #8b5cf6;

  --ld-accent-blue: #0070f3;
  --ld-accent-cyan: #38bdf8;
  --ld-accent-purple: #8b5cf6;
  --ld-accent-sun: #f8fafc;
  --ld-accent-moon: #cbd5e1;

  --ld-text-main: #ffffff;
  --ld-text-muted: #94a3b8;
  --ld-text-sub: #64748b;

  --ld-card-radius: 14px;
  --ld-inner-radius: 10px;
  --ld-transition: all 0.25s ease;

  /* 1680px Desktop Max Width & Strict Container-Fit */
  max-width: 1680px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0;
  font-family: var(--ld-font-body);
  color: var(--ld-text-main);
}

.ld-program-container * {
  box-sizing: border-box;
}

/* Typography Rules */
.ld-program-container h1,
.ld-program-container h2,
.ld-program-container h3,
.ld-program-container h4,
.ld-program-container .ld-hero-title,
.ld-program-container .ld-section-heading,
.ld-program-container .ld-protocol-brand,
.ld-program-container .ld-day-badge,
.ld-program-container .ld-card-phase-title,
.ld-program-container .ld-brand-logo-badge,
.ld-program-container .ld-brand-title {
  font-family: var(--ld-font-heading);
  letter-spacing: -0.2px;
}

.ld-program-container p,
.ld-program-container span,
.ld-program-container div,
.ld-program-container button,
.ld-program-container a {
  font-family: var(--ld-font-body);
}

/* ==========================================================
   1. HERO BANNER (100% Width & Fluid)
   ========================================================== */
.ld-hero-banner {
  position: relative;
  width: 100%;
  border-radius: var(--ld-card-radius);
  overflow: hidden;
  margin-bottom: 25px;
  background: linear-gradient(135deg, rgba(6, 12, 28, 0.95), rgba(10, 18, 40, 0.88)), 
              url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  border: 1px solid var(--ld-border-blue);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 112, 243, 0.15);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-sizing: border-box;
}

@media (min-width: 901px) {
  .ld-hero-banner {
    min-height: 500px !important;
    height: 500px !important;
    max-height: 500px !important;
  }
}

.ld-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 25%, rgba(0, 150, 255, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.ld-hero-left {
  position: relative;
  z-index: 2;
  flex: 0 0 calc(65% - 15px);
  width: calc(65% - 15px);
  max-width: calc(65% - 15px);
  min-width: 0;
  box-sizing: border-box;
}

.ld-hero-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 0 0 16px 0;
  word-wrap: break-word;
}

.ld-hero-title .ld-highlight {
  color: var(--ld-accent-cyan);
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.ld-hero-instructions {
  font-size: clamp(11.5px, 1.2vw, 13px);
  line-height: 1.6;
  color: #cbd5e1;
  background: rgba(4, 9, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 16px;
  border-radius: var(--ld-inner-radius);
  border-left: 3px solid var(--ld-accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.2);
  word-wrap: break-word;
}

.ld-instructions-tag {
  color: var(--ld-accent-cyan);
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
  font-size: 11px;
}

.ld-instructions-highlight {
  color: #ffffff;
  font-weight: 600;
}

.ld-hero-right {
  position: relative;
  z-index: 2;
  flex: 0 0 calc(35% - 15px);
  width: calc(35% - 15px);
  max-width: calc(35% - 15px);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.ld-hero-featured-image {
  width: 100%;
  max-width: 100%;
  border-radius: var(--ld-card-radius);
  overflow: hidden;
  border: 1px solid var(--ld-border-blue);
  box-shadow: 0 0 25px rgba(0, 112, 243, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 13, 28, 0.85);
  padding: 6px;
  box-sizing: border-box;
}

.ld-hero-featured-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain !important;
  display: block;
  border-radius: calc(var(--ld-card-radius) - 4px);
}

.ld-protocol-badge-card {
  background: rgba(7, 13, 28, 0.85);
  border: 1px solid var(--ld-border-blue);
  border-radius: var(--ld-card-radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 112, 243, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 190px;
}

.ld-protocol-top-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--ld-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ld-protocol-brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.ld-protocol-desc {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--ld-text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* ==========================================================
   2. SECTION HEADER
   ========================================================== */
.ld-section-header-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 4px;
  gap: 15px;
  flex-wrap: wrap;
}

.ld-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ld-title-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0070f3, #8b5cf6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.ld-section-heading {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.ld-section-heading span {
  background: linear-gradient(90deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ld-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ld-btn-expand-all,
button.ld-btn-expand-all {
  background: rgba(14, 23, 46, 0.95) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 8px !important;
  padding: 8px 16px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: var(--ld-transition, all 0.25s ease) !important;
}

.ld-btn-expand-all:hover,
button.ld-btn-expand-all:hover {
  background: rgba(24, 40, 80, 0.98) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35) !important;
}

.ld-expand-all-icon,
.ld-btn-expand-all svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.ld-btn-chat,
button.ld-btn-chat {
  background: rgba(14, 23, 46, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: var(--ld-transition, all 0.25s ease) !important;
}

.ld-btn-chat:hover,
button.ld-btn-chat:hover {
  background: rgba(24, 40, 80, 0.98) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35) !important;
}

.ld-btn-chat svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* ==========================================================
   3. CURRICULUM GRID (100% Full Width 2-Col Fluid Layout)
   ========================================================== */
.ld-program-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.ld-card-full-width {
  grid-column: 1 / -1;
}

.ld-day-card {
  width: 100%;
  background: var(--ld-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--ld-card-radius);
  border: 1px solid var(--ld-border-blue);
  padding: 16px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: var(--ld-transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ld-day-card:hover {
  border-color: rgba(0, 112, 243, 0.6);
  box-shadow: 0 6px 20px rgba(0, 112, 243, 0.15);
}

.ld-day-card.ld-phase-purple {
  border-color: var(--ld-border-purple);
}

.ld-day-card.ld-phase-purple:hover {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.15);
}

.ld-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.ld-card-header-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  transition: var(--ld-transition);
}

.ld-card-header-link:hover .ld-card-phase-title {
  color: var(--ld-accent-cyan);
}

.ld-card-header-link:hover .ld-day-badge {
  transform: scale(1.06);
}

.ld-card-phase-arrow {
  margin-left: auto;
  font-size: 16px;
  color: var(--ld-text-muted);
  opacity: 0.4;
  transition: var(--ld-transition);
}

.ld-card-header-link:hover .ld-card-phase-arrow {
  opacity: 1;
  color: var(--ld-accent-cyan);
  transform: translateX(3px);
}

.ld-day-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
}

.ld-day-card.ld-phase-purple .ld-day-badge {
  background: linear-gradient(135deg, #9333ea, #7c3aed);
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.4);
}

.ld-card-phase-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  word-wrap: break-word;
}

/* Inner Rows */
.ld-inner-item-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ld-content-row {
  width: 100%;
  background: var(--ld-bg-card-inner);
  border-radius: var(--ld-inner-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--ld-transition);
  gap: 10px;
}

.ld-content-row:hover {
  background: var(--ld-bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.ld-content-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.ld-lesson-direct-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  transition: var(--ld-transition);
}

.ld-lesson-direct-link:hover .ld-item-title {
  color: var(--ld-accent-cyan);
}

.ld-meta-link-action {
  color: var(--ld-accent-cyan);
  font-weight: 600;
}

.ld-item-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ld-item-icon-wrap.ld-sun {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ld-item-icon-wrap.ld-moon {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px rgba(203, 213, 225, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ld-item-icon-wrap.ld-dot {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ld-item-text-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.ld-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ld-item-meta {
  font-size: 11px;
  color: var(--ld-text-muted);
  font-weight: 400;
}

/* Clean Crisp White Expand Button */
.ld-btn-expand-pill,
.ld-day-card .ld-btn-expand-pill,
.ld-day-card.ld-phase-purple .ld-btn-expand-pill,
.ld-content-row .ld-btn-expand-pill,
button.ld-btn-expand-pill {
  background: rgba(14, 23, 46, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: var(--ld-transition, all 0.25s ease);
  flex-shrink: 0;
  outline: none !important;
  text-decoration: none !important;
}

.ld-btn-expand-pill:hover,
.ld-content-row:hover .ld-btn-expand-pill,
.ld-day-card .ld-btn-expand-pill:hover,
button.ld-btn-expand-pill:hover {
  background: rgba(24, 40, 80, 0.98) !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-1px);
}

.ld-chevron-icon {
  transition: transform 0.25s ease;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.ld-content-row.active .ld-chevron-icon,
.ld-btn-expand-pill.active .ld-chevron-icon {
  transform: rotate(180deg);
}

.ld-content-row.active .ld-btn-expand-pill,
.ld-btn-expand-pill.active,
.ld-day-card .ld-btn-expand-pill.active {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  background: rgba(18, 34, 70, 0.98) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
}

/* Accordion Topics Drawer */
.ld-topics-drawer {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: rgba(4, 9, 22, 0.7);
  border-radius: 8px;
  margin-top: -4px;
  border: 1px solid transparent;
}

.ld-topics-drawer.open {
  max-height: 500px;
  border-color: rgba(56, 189, 248, 0.15);
  margin-bottom: 6px;
  overflow-y: auto;
}

.ld-topics-list {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.ld-topic-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #cbd5e1;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.5);
  text-decoration: none;
  transition: var(--ld-transition);
  gap: 8px;
}

.ld-topic-item:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #ffffff;
  padding-left: 12px;
}

.ld-topic-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.ld-topic-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ld-accent-cyan);
  font-weight: 500;
  flex-shrink: 0;
}

.ld-topic-status.ld-completed {
  color: #10b981;
}

/* ==========================================================
   4. PAGINATION (Exact Match with UI Design)
   ========================================================== */
.ld-pagination-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 35px 0;
}

.ld-btn-page-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #172554;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(30, 58, 138, 0.3);
  padding: 0;
}

.ld-btn-page-nav svg {
  stroke: #ffffff;
  stroke-width: 2.5;
  width: 16px;
  height: 16px;
}

.ld-btn-page-nav:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
  border-color: #ffffff;
}

.ld-btn-page-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.ld-page-info-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  user-select: none;
}

/* ==========================================================
   5. FOOTER BRANDING (100% Fluid Width)
   ========================================================== */
.ld-footer-brand-box {
  width: 100%;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 20px 10px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.ld-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ld-footer-logo-img {
  max-width: 140px;
  max-height: 48px;
  height: auto;
  object-fit: contain;
  display: block;
}

.ld-brand-logo-badge {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ld-brand-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.ld-brand-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.ld-brand-paragraph {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ld-text-muted);
  margin: 0;
}

/* ==========================================================
   RESPONSIVE DESIGN (Desktop, Tablet, Mobile)
   ========================================================== */
@media (max-width: 900px) {
  .ld-hero-banner {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 20px 16px !important;
    gap: 16px !important;
  }
  .ld-hero-left {
    width: 100% !important;
  }
  .ld-hero-right {
    width: 100% !important;
    display: flex;
    justify-content: center;
  }
  .ld-hero-featured-image {
    max-width: 100% !important;
    width: 100% !important;
  }
  .ld-hero-featured-image img {
    max-height: 260px !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  .ld-protocol-badge-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .ld-program-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ld-footer-brand-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==========================================================
   SINGLE LESSON & SINGLE TOPIC PAGE LAYOUTS (1680px Desktop)
   ========================================================== */
.ld-lesson-container,
.ld-topic-container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 40px) clamp(16px, 4vw, 60px);
  box-sizing: border-box;
  font-family: var(--ld-font-body, 'Inter', sans-serif);
  color: #ffffff;
  position: relative;
}

.ld-lesson-container *,
.ld-topic-container * {
  box-sizing: border-box;
}

/* 1. Breadcrumbs */
.ld-single-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(11.5px, 1.1vw, 13.5px);
  color: #94a3b8;
  margin-bottom: 24px;
}

.ld-breadcrumb-home {
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
  text-decoration: none;
}

.ld-breadcrumb-home:hover {
  color: #ffffff;
}

.ld-breadcrumb-sep {
  color: #475569;
  font-size: 14px;
}

.ld-breadcrumb-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ld-breadcrumb-link:hover {
  color: #38bdf8;
}

.ld-breadcrumb-current {
  color: #94a3b8;
}

.ld-breadcrumb-active {
  color: #ffffff;
  font-weight: 500;
}

/* 2. Page Header & Neon Underline */
.ld-lesson-page-header,
.ld-topic-page-header {
  margin-bottom: 30px;
}

.ld-lesson-badge-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #a855f7;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ld-lesson-page-title,
.ld-topic-page-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
}

.ld-title-white {
  color: #ffffff;
}

.ld-title-neon {
  color: #8b5cf6;
  background: linear-gradient(90deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 25px rgba(168, 85, 247, 0.45);
}

.ld-neon-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* 3. Progress Card */
.ld-progress-banner-card {
  width: 100%;
  background: rgba(8, 14, 32, 0.85);
  border: 1px solid rgba(0, 112, 243, 0.4);
  border-radius: 14px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 112, 243, 0.15);
}

.ld-progress-left-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.5);
  flex-shrink: 0;
}

.ld-progress-center-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ld-progress-trail {
  font-size: clamp(12px, 1.1vw, 13.5px);
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
  word-break: break-word;
}

.ld-progress-trail span,
.ld-progress-trail a {
  white-space: normal;
  word-break: break-word;
}

.ld-trail-sep {
  color: #475569;
}

.ld-trail-active {
  color: #f1f5f9;
  font-weight: 500;
}

.ld-progress-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ld-progress-percent-text {
  font-size: 11.5px;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ld-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(30, 41, 59, 0.8);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.ld-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  transition: width 0.4s ease;
}

.ld-progress-right-badge {
  flex-shrink: 0;
}

.ld-status-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  background: rgba(14, 23, 46, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

.ld-status-pill.completed {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

/* 4. Lesson Content Card & Steps List */
.ld-lesson-content-card {
  width: 100%;
  background: rgba(8, 14, 30, 0.8);
  border: 1px solid rgba(0, 112, 243, 0.3);
  border-radius: 14px;
  padding: clamp(16px, 2.5vw, 24px);
  margin-bottom: 30px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.ld-lesson-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 12px;
}

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

.ld-content-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.ld-lesson-content-heading {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  margin: 0;
}

.ld-text-white {
  color: #ffffff;
}

.ld-text-purple {
  background: linear-gradient(90deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ld-lesson-content-meta {
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ld-meta-sep {
  color: #475569;
}

.ld-lesson-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ld-step-row {
  width: 100%;
  background: rgba(14, 23, 46, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #f1f5f9;
  transition: var(--ld-transition, all 0.25s ease);
}

.ld-step-row:hover {
  background: rgba(20, 34, 68, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 16px rgba(0, 112, 243, 0.15);
  transform: translateY(-1px);
}

.ld-step-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.ld-step-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ld-step-radio.ld-radio-checked {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.ld-step-icon {
  color: #94a3b8;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ld-step-row:hover .ld-step-icon {
  color: #38bdf8;
}

.ld-step-title {
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ld-step-row:hover .ld-step-title {
  color: #ffffff;
}

.ld-step-right {
  color: #64748b;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ld-step-row:hover .ld-step-right {
  color: #38bdf8;
  transform: translateX(3px);
}

/* 5. Topic Single Content Box (Lightbulb tip) */
.ld-topic-content-box {
  width: 100%;
  background: rgba(8, 14, 30, 0.8);
  border: 1px solid rgba(0, 112, 243, 0.35);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 30px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.ld-topic-tip-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ld-tip-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(14, 23, 46, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

.ld-tip-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.ld-tip-text {
  font-size: clamp(13px, 1.2vw, 15px);
  color: #cbd5e1;
  line-height: 1.6;
  flex: 1;
}

/* 6. Bottom Navigation */
.ld-single-bottom-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  gap: 16px;
  flex-wrap: wrap;
}

.ld-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 28px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ld-btn-prev {
  background: rgba(14, 23, 46, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f1f5f9;
}

.ld-btn-prev:hover {
  background: rgba(20, 34, 68, 0.95);
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.ld-btn-next {
  background: linear-gradient(135deg, #0284c7, #6366f1);
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.4);
}

.ld-btn-next:hover {
  background: linear-gradient(135deg, #0369a1, #4f46e5);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
  transform: translateY(-1px);
}

.ld-link-back-course,
.ld-link-back-sub {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.ld-link-back-course:hover,
.ld-link-back-sub:hover {
  color: #38bdf8;
}

.ld-mark-complete-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ld-btn-mark-complete,
.ld-mark-complete-wrapper input[type="submit"],
.ld-mark-complete-wrapper button,
.learndash-wrapper .learndash_mark_complete_button {
  background: linear-gradient(135deg, #0284c7, #2563eb) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  padding: 12px 28px !important;
  border-radius: 28px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.4) !important;
  transition: all 0.25s ease !important;
  outline: none !important;
  text-decoration: none !important;
}

.ld-btn-mark-complete:hover,
.ld-mark-complete-wrapper input[type="submit"]:hover,
.ld-mark-complete-wrapper button:hover,
.learndash-wrapper .learndash_mark_complete_button:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.6) !important;
}

.ld-complete-check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.ld-btn-mark-complete.completed {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  border-color: #10b981 !important;
}

/* ==========================================================
   RESPONSIVE BREAKPOINTS (Desktop 1680px, Mac, Tablet, Mobile)
   ========================================================== */
@media (max-width: 1024px) {
  .ld-progress-banner-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .ld-progress-right-badge {
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .ld-lesson-container,
  .ld-topic-container {
    padding: 18px 12px !important;
  }
  
  .ld-single-breadcrumbs {
    font-size: 12px !important;
    gap: 6px !important;
    margin-bottom: 16px !important;
    line-height: 1.4 !important;
  }

  .ld-lesson-page-title,
  .ld-topic-page-title {
    font-size: 24px !important;
    line-height: 1.2 !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
  }

  .ld-progress-banner-card {
    padding: 14px !important;
    gap: 12px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .ld-progress-center-info {
    width: 100% !important;
  }

  .ld-progress-trail {
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
    text-overflow: unset !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    flex-wrap: wrap !important;
  }

  .ld-progress-bar-row {
    width: 100% !important;
    margin-top: 4px !important;
  }

  .ld-progress-track {
    width: 100% !important;
  }

  .ld-single-bottom-nav {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .ld-nav-btn {
    justify-content: center !important;
    width: 100% !important;
  }

  .ld-mark-complete-wrapper {
    order: -1 !important;
    width: 100% !important;
  }

  .ld-btn-mark-complete {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ==========================================================
   6. USER DASHBOARD & YOUR PROGRAMS STYLES (1680px Desktop)
   ========================================================== */
.ld-dashboard-container {
  width: 100% !important;
  max-width: 1680px !important;
  margin: 0 auto !important;
  padding: clamp(16px, 2.5vw, 32px) clamp(14px, 3vw, 24px);
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
}

.ld-dashboard-container * {
  box-sizing: border-box;
}

/* 1. Dashboard Profile Hero Banner */
.ld-dashboard-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center 30%;
  min-height: 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  margin-bottom: 35px;
}

.ld-dashboard-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.90) 50%, rgba(255, 255, 255, 0.45) 100%);
  pointer-events: none;
}

.ld-dashboard-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  gap: 25px;
}

.ld-dashboard-hero-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.ld-user-profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ld-user-avatar-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #e2e8f0;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #ffffff;
}

.ld-user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.ld-user-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.ld-avatar-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.ld-avatar-edit-badge:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.ld-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ld-user-display-name {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.ld-user-welcome-sub {
  font-size: 13px;
  color: #64748b;
  margin: 2px 0 6px 0;
}

.ld-btn-edit-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: fit-content;
  transition: all 0.2s ease;
}

.ld-btn-edit-profile:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* 4 Stat Cards Row */
.ld-dashboard-stats-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ld-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  min-width: 135px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.ld-stat-blue {
  background: #eef2ff;
  border-color: #dbeafe;
  color: #1e40af;
}

.ld-stat-green {
  background: #f0fdf4;
  border-color: #dcfce7;
  color: #15803d;
}

.ld-stat-orange {
  background: #fffbeb;
  border-color: #fef3c7;
  color: #b45309;
}

.ld-stat-purple {
  background: #faf5ff;
  border-color: #f3e8ff;
  color: #7e22ce;
}

.ld-stat-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.ld-stat-blue .ld-stat-icon-wrap {
  color: #2563eb;
}

.ld-stat-green .ld-stat-icon-wrap {
  color: #16a34a;
}

.ld-stat-orange .ld-stat-icon-wrap {
  color: #d97706;
}

.ld-stat-purple .ld-stat-icon-wrap {
  color: #9333ea;
}

.ld-stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ld-stat-val {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.ld-stat-lbl {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}

/* Right: Slogan */
.ld-dashboard-hero-right {
  flex-shrink: 0;
  text-align: right;
  padding-right: 15px;
}

.ld-dashboard-slogan-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ld-dashboard-slogan-text {
  font-family: 'Playfair Display', Georgia, 'Brush Script MT', cursive, serif;
  font-size: 32px;
  font-style: italic;
  color: #334155;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.ld-dashboard-slogan-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  justify-content: flex-end;
}

.ld-slogan-line {
  width: 60px;
  height: 2px;
  background: #94a3b8;
  border-radius: 2px;
}

.ld-slogan-dot {
  width: 14px;
  height: 2px;
  background: #94a3b8;
  border-radius: 2px;
}

/* 2. "Your Programs" Section Header & Controls */
.ld-programs-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  gap: 20px;
  flex-wrap: wrap;
}

.ld-programs-header-info {
  flex: 1;
  min-width: 240px;
}

.ld-programs-main-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.ld-programs-sub-title {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.ld-programs-controls {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.ld-programs-search-box {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

.ld-programs-search-box:focus-within {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.ld-programs-search-box .ld-search-icon {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #64748b !important;
  pointer-events: none !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

.ld-programs-search-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 10px 14px 10px 40px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  color: #0f172a !important;
  width: 240px !important;
  margin: 0 !important;
  height: 40px !important;
  line-height: 20px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.ld-programs-search-input::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

.ld-programs-filter-box {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

.ld-programs-filter-box:focus-within {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.ld-programs-filter-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 10px 36px 10px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  color: #1e293b !important;
  cursor: pointer !important;
  margin: 0 !important;
  height: 40px !important;
  line-height: 20px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.ld-programs-filter-box .ld-filter-chevron {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #64748b !important;
  pointer-events: none !important;
  width: 14px !important;
  height: 14px !important;
}

/* 3. Dynamic Programs List */
.ld-programs-list-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
}

.ld-program-card-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.25s ease !important;
  overflow: hidden !important;
}

.ld-program-card-item:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.09) !important;
}

.ld-program-card-main {
  display: flex !important;
  align-items: center !important;
  padding: 14px 20px !important;
  gap: 16px !important;
}

/* Status Indicator */
.ld-program-status-indicator {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  border: 2px solid #cbd5e1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
}

.ld-status-circle-dot {
  width: 0 !important;
  height: 0 !important;
}

.ld-program-status-indicator.completed {
  border-color: #10b981 !important;
  background: #10b981 !important;
  color: #ffffff !important;
}

/* Course Thumbnail */
.ld-program-thumb-wrap {
  position: relative !important;
  width: 130px !important;
  height: 60px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.ld-program-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.ld-program-thumb-placeholder {
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, #0f172a, #1e293b) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ld-thumb-placeholder-badge {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.5px !important;
}

.ld-program-badge-tag {
  position: absolute !important;
  top: 6px !important;
  left: 8px !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

/* Course Info */
.ld-program-info-col {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.ld-program-title-link {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  line-height: 1.35 !important;
  transition: color 0.2s ease !important;
}

.ld-program-title-link:hover {
  color: #0284c7 !important;
}

.ld-program-excerpt-text {
  font-size: 12.5px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Right Action Column - Fixed Toggle Button */
.ld-program-action-col {
  flex-shrink: 0 !important;
}

.ld-dashboard-container .ld-btn-prog-toggle,
.ld-program-card-item .ld-btn-prog-toggle,
button.ld-btn-prog-toggle {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid #dbeafe !important;
  background: #eff6ff !important;
  color: #1e40af !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  padding: 0 !important;
  box-shadow: 0 1px 3px rgba(30, 64, 175, 0.08) !important;
  outline: none !important;
}

.ld-dashboard-container .ld-btn-prog-toggle:hover,
.ld-program-card-item .ld-btn-prog-toggle:hover {
  background: #1e40af !important;
  color: #ffffff !important;
  border-color: #1e40af !important;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25) !important;
}

.ld-dashboard-container .ld-btn-prog-toggle.active,
.ld-program-card-item .ld-btn-prog-toggle.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
}

.ld-dashboard-container .ld-toggle-chevron,
.ld-btn-prog-toggle .ld-toggle-chevron {
  stroke: currentColor !important;
  stroke-width: 2.5 !important;
  width: 16px !important;
  height: 16px !important;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.ld-dashboard-container .ld-btn-prog-toggle.active .ld-toggle-chevron,
.ld-btn-prog-toggle.active .ld-toggle-chevron {
  transform: rotate(180deg) !important;
  stroke: #ffffff !important;
}

/* Accordion Drawer */
.ld-program-drawer {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.35s ease !important;
  background: #f8fafc !important;
  border-top: 1px solid transparent !important;
}

.ld-program-drawer.open {
  max-height: 250px !important;
  border-top-color: #e2e8f0 !important;
}

.ld-drawer-inner {
  padding: 16px 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.ld-drawer-progress-box {
  flex: 1 !important;
  min-width: 220px !important;
}

.ld-drawer-progress-header {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  margin-bottom: 6px !important;
}

.ld-drawer-prog-track {
  width: 100% !important;
  height: 7px !important;
  background: #e2e8f0 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.ld-drawer-prog-bar {
  height: 100% !important;
  background: linear-gradient(90deg, #0284c7, #38bdf8) !important;
  border-radius: 4px !important;
  transition: width 0.4s ease !important;
}

.ld-drawer-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.ld-btn-continue-program {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 9px 18px !important;
  background: linear-gradient(135deg, #0284c7, #2563eb) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3) !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

.ld-btn-continue-program:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
}

.ld-btn-view-curriculum {
  display: inline-flex !important;
  align-items: center !important;
  padding: 9px 16px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.ld-btn-view-curriculum:hover {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
  border-color: #0284c7 !important;
}

/* Members Only Gate Card */
.ld-members-only-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 48px) !important;
  text-align: center !important;
  max-width: 680px !important;
  margin: 40px auto !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.ld-members-lock-icon {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
  border: 1px solid #bfdbfe !important;
  color: #0284c7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 24px !important;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.15) !important;
}

.ld-members-gate-title {
  font-size: clamp(22px, 3vw, 30px) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 12px 0 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.3px !important;
}

.ld-members-gate-desc {
  font-size: clamp(14px, 1.4vw, 16px) !important;
  line-height: 1.6 !important;
  color: #64748b !important;
  max-width: 520px !important;
  margin: 0 auto 30px auto !important;
}

.ld-members-gate-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

.ld-btn-member-login {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 13px 28px !important;
  background: linear-gradient(135deg, #0284c7, #2563eb) !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  transition: all 0.25s ease !important;
}

.ld-btn-member-login:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45) !important;
}

.ld-btn-member-register {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 13px 26px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

.ld-btn-member-register:hover {
  background: #ffffff !important;
  color: #0284c7 !important;
  border-color: #0284c7 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}

/* Empty Enrolled Programs State */
.ld-programs-empty-box {
  text-align: center !important;
  padding: 48px 24px !important;
  background: #ffffff !important;
  border: 1.5px dashed #cbd5e1 !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.ld-empty-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 16px !important;
}

.ld-empty-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 0 6px 0 !important;
}

.ld-empty-desc {
  font-size: 13.5px !important;
  color: #64748b !important;
  max-width: 420px !important;
  margin: 0 0 20px 0 !important;
  line-height: 1.5 !important;
}

.ld-programs-no-results {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  font-size: 14px;
}

/* Dashboard Responsive Breakpoints */
@media (max-width: 900px) {
  .ld-dashboard-hero-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
    padding: 20px 18px !important;
  }
  
  .ld-dashboard-hero-right {
    text-align: left !important;
    padding-right: 0 !important;
    width: 100% !important;
  }
  
  .ld-dashboard-slogan-wrap {
    align-items: flex-start !important;
  }

  .ld-dashboard-slogan-divider {
    justify-content: flex-start !important;
  }

  .ld-programs-section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .ld-programs-controls {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .ld-programs-search-box,
  .ld-programs-filter-box {
    width: 100% !important;
    display: flex !important;
  }

  .ld-programs-search-input,
  .ld-programs-filter-select {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .ld-dashboard-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .ld-stat-card {
    min-width: 0 !important;
    width: 100% !important;
    padding: 10px 12px !important;
  }

  .ld-program-card-main {
    display: grid !important;
    grid-template-columns: auto auto 1fr !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "indicator thumb action"
      "info info info" !important;
    align-items: center !important;
    gap: 10px 14px !important;
    padding: 14px 16px !important;
  }

  .ld-program-status-indicator {
    grid-area: indicator !important;
    justify-self: start !important;
  }

  .ld-program-thumb-wrap {
    grid-area: thumb !important;
    width: 120px !important;
    height: 56px !important;
  }

  .ld-program-action-col {
    grid-area: action !important;
    justify-self: end !important;
    display: flex !important;
    justify-content: flex-end !important;
  }

  .ld-program-info-col {
    grid-area: info !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 4px !important;
  }

  .ld-program-title-link {
    font-size: 15px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: break-word !important;
    display: block !important;
  }

  .ld-program-excerpt-text {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: break-word !important;
    display: block !important;
  }

  .ld-drawer-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 14px 16px !important;
  }

  .ld-drawer-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .ld-btn-continue-program,
  .ld-btn-view-curriculum {
    justify-content: center !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .ld-dashboard-container {
    padding: 12px 10px !important;
  }

  .ld-user-profile-header {
    gap: 12px !important;
  }

  .ld-user-avatar-wrap {
    width: 64px !important;
    height: 64px !important;
  }

  .ld-user-display-name {
    font-size: 18px !important;
  }

  .ld-dashboard-slogan-text {
    font-size: 24px !important;
  }

  .ld-program-card-main {
    padding: 12px 12px !important;
    gap: 8px 10px !important;
  }

  .ld-program-thumb-wrap {
    width: 105px !important;
    height: 48px !important;
  }

  .ld-program-title-link {
    font-size: 14px !important;
  }
}
