.course-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 2.25rem;
}

.course-detail-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
}

[data-bs-theme="dark"] .course-detail-hero-bg {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 55%, #334155 100%);
}

[data-bs-theme="light"] .course-detail-hero-bg {
  background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 55%, #e5e7eb 100%);
}

.course-detail-breadcrumb {
  position: relative;
  z-index: 2;
  margin-bottom: 1.25rem;
}

.course-detail-breadcrumb .breadcrumb {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

[data-bs-theme="light"] .course-detail-breadcrumb .breadcrumb {
  background: var(--bg-card);
  border-color: var(--border-color);
}

.course-detail-breadcrumb .breadcrumb-item,
.course-detail-breadcrumb .breadcrumb-item a {
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
}

[data-bs-theme="light"] .course-detail-breadcrumb .breadcrumb-item,
[data-bs-theme="light"] .course-detail-breadcrumb .breadcrumb-item a {
  color: var(--text-secondary);
}

.course-detail-breadcrumb .breadcrumb-item.active {
  color: rgba(248, 250, 252, 0.98);
}

[data-bs-theme="light"] .course-detail-breadcrumb .breadcrumb-item.active {
  color: var(--text-primary);
}

.course-detail-hero-card {
  position: relative;
  z-index: 2;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
  padding: 2.25rem;
}

[data-bs-theme="light"] .course-detail-hero-card {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.course-detail-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: rgba(147, 197, 253, 0.98);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

[data-bs-theme="light"] .course-detail-hero-badge {
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--primary-700);
}

.course-detail-title {
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.1rem;
  color: rgba(248, 250, 252, 0.98);
}

[data-bs-theme="light"] .course-detail-title {
  color: var(--text-primary);
}

.course-detail-description {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  padding: 1.25rem 1.25rem;
  margin-bottom: 1.25rem;
  color: rgba(226, 232, 240, 0.92);
}

[data-bs-theme="light"] .course-detail-description {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.course-detail-description p {
  margin: 0 0 0.75rem 0;
  color: rgba(226, 232, 240, 0.92);
}

[data-bs-theme="light"] .course-detail-description p {
  color: var(--text-secondary);
}

.course-detail-description p:last-child {
  margin-bottom: 0;
}

.course-detail-description ul,
.course-detail-description ol {
  margin: 0.5rem 0 0.5rem;
  padding-inline-start: 1.25rem;
}

.course-detail-description li {
  margin-bottom: 0.35rem;
  color: rgba(226, 232, 240, 0.9);
}

[data-bs-theme="light"] .course-detail-description li {
  color: var(--text-secondary);
}

.course-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.course-detail-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: rgba(241, 245, 249, 0.94);
  font-weight: 600;
}

[data-bs-theme="light"] .course-detail-stat {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.course-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.course-detail-actions .btn {
  border-radius: 999px;
}

.course-detail-aside-card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

[data-bs-theme="light"] .course-detail-aside-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

.course-detail-aside-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.24);
  color: rgba(251, 191, 36, 0.98);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.course-detail-aside-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: rgba(248, 250, 252, 0.98);
}

[data-bs-theme="light"] .course-detail-aside-title {
  color: var(--text-primary);
}

.course-detail-aside-text {
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 1rem;
  line-height: 1.8;
}

[data-bs-theme="light"] .course-detail-aside-text {
  color: var(--text-secondary);
}

.course-detail-lessons {
  padding: 2.75rem 0 0;
}

.course-detail-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.course-detail-section-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: rgba(147, 197, 253, 0.98);
}

.course-detail-section-title {
  font-weight: 900;
  color: var(--text-primary);
}

.course-detail-section-subtitle {
  color: var(--text-secondary);
}

.course-lesson-card {
  border-radius: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.course-lesson-card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.course-lesson-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.course-lesson-number {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: rgba(219, 234, 254, 0.98);
  font-weight: 900;
  flex: 0 0 auto;
}

[data-bs-theme="light"] .course-lesson-number {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.22);
  color: var(--primary-700);
}

.course-lesson-title {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-primary);
  text-decoration: none;
}

.course-lesson-desc {
  color: var(--text-secondary);
  line-height: 1.75;
}

.course-lesson-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-lesson-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: rgba(226, 232, 240, 0.92);
}

[data-bs-theme="light"] .course-lesson-tag {
  background: rgba(17, 24, 39, 0.08);
  border-color: rgba(17, 24, 39, 0.14);
  color: var(--text-primary);
}

.course-lesson-tag.is-free {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.22);
  color: rgba(187, 247, 208, 0.98);
}

[data-bs-theme="light"] .course-lesson-tag.is-free {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(22, 163, 74, 0.24);
  color: var(--success-600);
}

.course-lesson-tag.is-premium {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.22);
  color: rgba(254, 202, 202, 0.98);
}

[data-bs-theme="light"] .course-lesson-tag.is-premium {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(220, 38, 38, 0.24);
  color: var(--error-600);
}

.course-detail-empty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.course-detail-pagination .page-link {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.course-detail-pagination .page-item.active .page-link {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: rgba(248, 250, 252, 0.98);
}

@media (max-width: 991px) {
  .course-detail-hero {
    padding: 2.75rem 0 1.5rem;
  }

  .course-detail-hero-card {
    padding: 1.5rem;
  }
}

@media (max-width: 575px) {
  .course-detail-breadcrumb .breadcrumb {
    border-radius: 1rem;
  }

  .course-detail-actions .btn {
    width: 100%;
  }
}
