/* ============================
   Single Course – Dark Theme
   ============================ */

body.single-courses .esgep-content {
  --sc-bg: #0f1923;
  --sc-surface: #172230;
  --sc-surface-alt: #1e2d3d;
  --sc-border: #243648;
  --sc-text: #f8fafc;
  --sc-muted: #94a3b8;
  --sc-muted-strong: #cbd5e1;
  --sc-accent: #d4af37;
  --sc-accent-hover: #b89628;
}

/* Hero / header area */
body.single-courses .esgep-content .bg-primary {
  background: linear-gradient(135deg, #003366 0%, #0b2138 100%) !important;
  border-bottom: 1px solid var(--sc-border);
}

/* Main content area */
body.single-courses .esgep-content .pb-10 {
  background-color: var(--sc-bg);
}

/* Tabs container (Description, Curriculum, Reviews) */
body.single-courses .esgep-content .nav-line-bottom .nav-item .nav-link {
  color: var(--sc-muted) !important;
  border-bottom-color: transparent;
}

body.single-courses .esgep-content .nav-line-bottom .nav-item .nav-link:hover {
  color: var(--sc-text) !important;
}

body.single-courses .esgep-content .nav-line-bottom .nav-item .nav-link.active {
  color: var(--sc-accent) !important;
  border-bottom-color: var(--sc-accent) !important;
}

/* Tab content panels */
body.single-courses .esgep-content .tab-content,
body.single-courses .esgep-content .tab-pane {
  background-color: var(--sc-surface) !important;
  color: var(--sc-text) !important;
}

/* Card and card-like containers */
body.single-courses .esgep-content .card,
body.single-courses .esgep-content .bg-white,
body.single-courses .esgep-content .rounded-3.bg-white {
  background-color: var(--sc-surface) !important;
  border-color: var(--sc-border) !important;
  color: var(--sc-text) !important;
}

body.single-courses .esgep-content .card-header,
body.single-courses .esgep-content .card-body,
body.single-courses .esgep-content .card-footer {
  background-color: transparent !important;
  border-color: var(--sc-border) !important;
  color: var(--sc-text) !important;
}

/* Generic white backgrounds */
body.single-courses .esgep-content [class*="bg-white"],
body.single-courses .esgep-content .bg-light {
  background-color: var(--sc-surface) !important;
}

/* Headings */
body.single-courses .esgep-content h1,
body.single-courses .esgep-content h2,
body.single-courses .esgep-content h3,
body.single-courses .esgep-content h4,
body.single-courses .esgep-content h5,
body.single-courses .esgep-content h6 {
  color: var(--sc-text) !important;
}

/* Text */
body.single-courses .esgep-content p,
body.single-courses .esgep-content li,
body.single-courses .esgep-content span,
body.single-courses .esgep-content label,
body.single-courses .esgep-content .text-dark,
body.single-courses .esgep-content .text-body {
  color: var(--sc-muted-strong) !important;
}

body.single-courses .esgep-content .text-muted,
body.single-courses .esgep-content .tutor-color-secondary,
body.single-courses .esgep-content .tutor-color-black-60 {
  color: var(--sc-muted) !important;
}

body.single-courses .esgep-content .tutor-color-black,
body.single-courses .esgep-content .text-dark,
body.single-courses .esgep-content strong {
  color: var(--sc-text) !important;
}

/* Curriculum / accordion */
body.single-courses .esgep-content .tutor-accordion-item,
body.single-courses .esgep-content .tutor-course-topic {
  background-color: var(--sc-surface) !important;
  border-color: var(--sc-border) !important;
}

body.single-courses .esgep-content .tutor-accordion-item-header,
body.single-courses .esgep-content .tutor-course-topic-header {
  background-color: var(--sc-surface-alt) !important;
  color: var(--sc-accent) !important;
}

body.single-courses .esgep-content .tutor-accordion-item-body,
body.single-courses .esgep-content .tutor-course-topic-body {
  background-color: var(--sc-surface) !important;
  border-color: var(--sc-border) !important;
}

body.single-courses .esgep-content .tutor-course-topic-body .tutor-course-content-list-item,
body.single-courses .esgep-content .tutor-accordion-item-body li {
  border-color: var(--sc-border) !important;
}

body.single-courses .esgep-content .tutor-course-content-list-item-title,
body.single-courses .esgep-content .tutor-course-content-list-item span {
  color: var(--sc-muted-strong) !important;
}

body.single-courses .esgep-content .tutor-course-content-list-item-duration {
  color: var(--sc-muted) !important;
}

/* Geeks theme accordion (collapse) for curriculum */
body.single-courses .esgep-content .accordion-item {
  background-color: var(--sc-surface) !important;
  border-color: var(--sc-border) !important;
}

body.single-courses .esgep-content .accordion-button {
  background-color: var(--sc-surface-alt) !important;
  color: var(--sc-accent) !important;
  border-color: var(--sc-border) !important;
}

body.single-courses .esgep-content .accordion-button::after {
  filter: invert(1) brightness(2);
}

body.single-courses .esgep-content .accordion-button:not(.collapsed) {
  background-color: var(--sc-surface-alt) !important;
  color: var(--sc-accent) !important;
}

body.single-courses .esgep-content .accordion-body {
  background-color: var(--sc-surface) !important;
  color: var(--sc-muted-strong) !important;
}

body.single-courses .esgep-content .accordion-collapse {
  border-color: var(--sc-border) !important;
}

/* Geeks theme list group for lessons */
body.single-courses .esgep-content .list-group-item {
  background-color: var(--sc-surface) !important;
  border-color: var(--sc-border) !important;
  color: var(--sc-muted-strong) !important;
}

body.single-courses .esgep-content .list-group-item:hover {
  background-color: var(--sc-surface-alt) !important;
}

/* Enrollment sidebar */
body.single-courses .esgep-content .tutor-sidebar-card,
body.single-courses .esgep-content .tutor-course-details-sidebar {
  background-color: var(--sc-surface) !important;
  border-color: var(--sc-border) !important;
}

/* Enroll button */
body.single-courses .esgep-content .tutor-btn-primary,
body.single-courses .esgep-content .btn-primary,
body.single-courses .esgep-content .tutor-button.tutor-success {
  background-color: var(--sc-accent) !important;
  border-color: var(--sc-accent) !important;
  color: #111827 !important;
}

body.single-courses .esgep-content .tutor-btn-primary:hover,
body.single-courses .esgep-content .btn-primary:hover {
  background-color: var(--sc-accent-hover) !important;
  border-color: var(--sc-accent-hover) !important;
}

/* Bookmark / outline button */
body.single-courses .esgep-content .tutor-btn-outline-primary,
body.single-courses .esgep-content .btn-outline-primary,
body.single-courses .esgep-content .tutor-btn-outline {
  background-color: transparent !important;
  border-color: var(--sc-accent) !important;
  color: var(--sc-accent) !important;
}

body.single-courses .esgep-content .tutor-btn-outline-primary:hover,
body.single-courses .esgep-content .btn-outline-primary:hover,
body.single-courses .esgep-content .tutor-btn-outline:hover {
  background-color: rgba(212, 175, 55, 0.1) !important;
}

/* Course info list (12 hours video, Certificate, etc.) */
body.single-courses .esgep-content .tutor-course-details-widget,
body.single-courses .esgep-content .tutor-card {
  background-color: var(--sc-surface) !important;
  border-color: var(--sc-border) !important;
}

body.single-courses .esgep-content .tutor-course-details-widget li,
body.single-courses .esgep-content .tutor-card-body li {
  border-color: var(--sc-border) !important;
  color: var(--sc-muted-strong) !important;
}

body.single-courses .esgep-content .tutor-course-details-widget i,
body.single-courses .esgep-content .tutor-card-body i {
  color: var(--sc-accent) !important;
}

/* Price text */
body.single-courses .esgep-content .tutor-fs-4,
body.single-courses .esgep-content .tutor-fs-5,
body.single-courses .esgep-content .tutor-course-sidebar-card-pricing .tutor-fs-4 {
  color: var(--sc-text) !important;
}

/* Star ratings */
body.single-courses .esgep-content .tutor-icon-star-bold,
body.single-courses .esgep-content .tutor-icon-star-line,
body.single-courses .esgep-content .text-warning,
body.single-courses .esgep-content .mdi-star,
body.single-courses .esgep-content .mdi-star-half-full,
body.single-courses .esgep-content .fa-star {
  color: var(--sc-accent) !important;
}

/* Rating bar */
body.single-courses .esgep-content .tutor-ratings-stars {
  color: var(--sc-accent) !important;
}

/* Review section */
body.single-courses .esgep-content .tutor-review-individual-star-rating-bar {
  background-color: var(--sc-surface-alt) !important;
}

body.single-courses .esgep-content .tutor-review-individual-star-rating-bar .tutor-review-filled-bar {
  background-color: var(--sc-accent) !important;
}

/* Borders generic */
body.single-courses .esgep-content .border,
body.single-courses .esgep-content .border-top,
body.single-courses .esgep-content .border-bottom {
  border-color: var(--sc-border) !important;
}

/* Shadow fix */
body.single-courses .esgep-content .shadow,
body.single-courses .esgep-content .shadow-sm,
body.single-courses .esgep-content .shadow-lg {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25) !important;
}

/* Tutor icons */
body.single-courses .esgep-content .tutor-icon-lock-line,
body.single-courses .esgep-content .tutor-icon-eye-line,
body.single-courses .esgep-content .tutor-icon-play-circle-line {
  color: var(--sc-muted) !important;
}

/* Breadcrumb */
body.single-courses .esgep-content .breadcrumb-item a {
  color: var(--sc-muted-strong) !important;
}

body.single-courses .esgep-content .breadcrumb-item.active {
  color: var(--sc-muted) !important;
}

/* Course requirements / benefits / audience / tags */
body.single-courses .esgep-content .tutor-course-details-widget-list li,
body.single-courses .esgep-content .tutor-course-target-audience-wrap li,
body.single-courses .esgep-content .tutor-course-benefits-wrap li,
body.single-courses .esgep-content .tutor-course-requirements-wrap li {
  color: var(--sc-muted-strong) !important;
}

body.single-courses .esgep-content .tutor-single-course-segment-title,
body.single-courses .esgep-content .tutor-course-details-widget-title {
  color: var(--sc-text) !important;
}

/* Tags */
body.single-courses .esgep-content .tutor-tag-list a,
body.single-courses .esgep-content .badge {
  background-color: var(--sc-surface-alt) !important;
  border-color: var(--sc-border) !important;
  color: var(--sc-muted-strong) !important;
}

body.single-courses .esgep-content .tutor-tag-list a:hover,
body.single-courses .esgep-content .badge:hover {
  background-color: rgba(212, 175, 55, 0.1) !important;
  color: var(--sc-accent) !important;
}

/* Instructor card */
body.single-courses .esgep-content .tutor-instructor-card {
  background-color: var(--sc-surface) !important;
  border-color: var(--sc-border) !important;
}

/* Social share buttons */
body.single-courses .esgep-content .tutor-social-share-wrap a {
  color: var(--sc-muted) !important;
  border-color: var(--sc-border) !important;
}

body.single-courses .esgep-content .tutor-social-share-wrap a:hover {
  color: var(--sc-accent) !important;
  border-color: var(--sc-accent) !important;
}

/* "Show more" fade gradient – dark version */
body.single-courses .esgep-content .tutor-toggle-more-collapsed::after,
body.single-courses .esgep-content .tutor-toggle-more-content.tutor-toggle-more-collapsed::after,
body.single-courses .esgep-content [data-tutor-toggle-more-content].tutor-toggle-more-collapsed::after {
  background: linear-gradient(to bottom, rgba(23, 34, 48, 0), var(--sc-surface)) !important;
}

/* "Show more" button */
body.single-courses .esgep-content .tutor-btn-show-more,
body.single-courses .esgep-content [data-tutor-toggle-more] {
  color: var(--sc-accent) !important;
}

/* --- Light mode override for single course --- */
body.esgep-light.single-courses .esgep-content .bg-primary {
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%) !important;
}

body.esgep-light.single-courses .esgep-content .card,
body.esgep-light.single-courses .esgep-content .bg-white,
body.esgep-light.single-courses .esgep-content .tab-content,
body.esgep-light.single-courses .esgep-content .tab-pane,
body.esgep-light.single-courses .esgep-content .accordion-item,
body.esgep-light.single-courses .esgep-content .list-group-item {
  background-color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #1a1a2e !important;
}

body.esgep-light.single-courses .esgep-content h1,
body.esgep-light.single-courses .esgep-content h2,
body.esgep-light.single-courses .esgep-content h3,
body.esgep-light.single-courses .esgep-content h4,
body.esgep-light.single-courses .esgep-content h5,
body.esgep-light.single-courses .esgep-content h6,
body.esgep-light.single-courses .esgep-content strong {
  color: #1a1a2e !important;
}

body.esgep-light.single-courses .esgep-content p,
body.esgep-light.single-courses .esgep-content li,
body.esgep-light.single-courses .esgep-content span,
body.esgep-light.single-courses .esgep-content label {
  color: #475569 !important;
}

body.esgep-light.single-courses .esgep-content .pb-10 {
  background-color: #f8f9fb;
}
