/* ==========================================================================
   Eduhubx Child — Single course detail (Tutor LMS)
   ========================================================================== */

/* Course hero / title band */
.ehx-scope .tutor-single-course-header,
.ehx-scope .tutor-course-details-page .tutor-course-header {
  background: linear-gradient(180deg, var(--ehx-primary-soft), var(--ehx-bg));
  border-bottom: 1px solid var(--ehx-border);
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.ehx-scope .tutor-course-title,
.ehx-scope .tutor-single-course-title h1 {
  font-family: var(--ehx-font-head) !important;
  font-size: var(--ehx-fs-3xl) !important; line-height: 1.1; color: var(--ehx-ink) !important;
}

/* Two-column layout: content + sticky enroll box */
.ehx-scope .tutor-single-course-content,
.ehx-scope .tutor-course-details-content { color: var(--ehx-ink-2); }

/* Sticky enroll / price sidebar */
.ehx-scope .tutor-single-course-sidebar,
.ehx-scope .tutor-course-sidebar,
.ehx-scope .tutor-course-single-sidebar-wrapper {
  position: sticky; top: 24px;
}
.ehx-scope .tutor-course-sidebar-card,
.ehx-scope .tutor-single-course-sidebar .tutor-card {
  background: var(--ehx-surface) !important;
  border: 1px solid var(--ehx-border) !important;
  border-radius: var(--ehx-r-card) !important;
  box-shadow: var(--ehx-shadow-md) !important;
  overflow: hidden;
}
.ehx-scope .tutor-course-sidebar-card .tutor-course-price,
.ehx-scope .tutor-single-course-sidebar .price {
  font-size: var(--ehx-fs-2xl); color: var(--ehx-ink);
}

/* Big enroll button */
.ehx-scope .tutor-enroll-course-button,
.ehx-scope .tutor-single-course-sidebar .tutor-btn-primary,
.ehx-scope .tutor-course-sidebar .tutor-btn-primary {
  width: 100% !important; min-height: 52px !important;
  font-size: var(--ehx-fs-lg) !important; border-radius: var(--ehx-r-btn) !important;
  background: var(--ehx-primary) !important; color: #fff !important;
  box-shadow: var(--ehx-shadow-sm);
}
.ehx-scope .tutor-enroll-course-button:hover { background: var(--ehx-primary-dark) !important;
  transform: translateY(-2px); box-shadow: var(--ehx-shadow-md); }

/* Section headings inside the course */
.ehx-scope .tutor-course-details-content h2,
.ehx-scope .tutor-course-details-content h3,
.ehx-scope .tutor-segment-title {
  font-family: var(--ehx-font-head) !important; color: var(--ehx-ink) !important;
}

/* Curriculum accordion */
.ehx-scope .tutor-course-topic,
.ehx-scope .tutor-accordion-item {
  border: 1px solid var(--ehx-border) !important; border-radius: var(--ehx-r-sm) !important;
  overflow: hidden; margin-bottom: var(--ehx-s3); background: var(--ehx-surface);
}
.ehx-scope .tutor-course-topic-title,
.ehx-scope .tutor-accordion-item-header {
  background: var(--ehx-surface-2) !important; font-weight: 600;
  transition: background-color var(--ehx-dur) var(--ehx-ease);
}
.ehx-scope .tutor-course-topic-title:hover { background: var(--ehx-primary-soft) !important; }

/* Instructor block */
.ehx-scope .tutor-single-course-instructor,
.ehx-scope .tutor-course-instructors {
  background: var(--ehx-surface); border: 1px solid var(--ehx-border);
  border-radius: var(--ehx-r-card); padding: var(--ehx-s5); box-shadow: var(--ehx-shadow-sm);
}
.ehx-scope .tutor-instructor-avatar img,
.ehx-scope .tutor-single-course-instructor img { border-radius: 50%; }

/* Reviews */
.ehx-scope .tutor-course-reviews .tutor-review-item,
.ehx-scope .tutor-single-course-reviews .tutor-comment {
  border-bottom: 1px solid var(--ehx-border); padding-block: var(--ehx-s4);
}
.ehx-scope .tutor-ratings-stars i,
.ehx-scope .tutor-star-rating-group i { color: var(--ehx-rating) !important; }

/* Progress bar (continue learning) */
.ehx-scope .tutor-progress-bar,
.ehx-scope .tutor-course-progress .progress-bar {
  background: var(--ehx-primary-soft) !important; border-radius: 99px !important; overflow: hidden;
}
.ehx-scope .tutor-progress-bar .tutor-progress-value,
.ehx-scope .tutor-course-progress .progress-value {
  background: linear-gradient(90deg, var(--ehx-primary), var(--ehx-primary-2)) !important;
}
