/* ==============================
   COURSE DETAILS BANNER (CLEAN)
================================ */
.course-details-banner {
  padding: clamp(80px, 10vw, 140px) 0 clamp(90px, 12vw, 160px);
  background: linear-gradient(180deg, #f3f6f7 0%, #eef2f4 100%);
  text-align: center;
}

/* Title */
.course-details-banner h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

/* Soft underline accent */
.course-details-banner h1::after {
  content: "";
  width: 48px;
  height: 4px;
  background: var(--primary-color);
  display: block;
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Breadcrumb */
.course-details-banner p {
  font-size: 15px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.course-details-banner p a {
  color: var(--text-dark);
  font-weight: 500;
}

.course-details-banner p a:hover {
  color: var(--primary-color);
}

/* Mobile refinement */
@media (max-width: 576px) {
  .course-details-banner p {
    font-size: 14px;
  }

  .course-details-banner h1::after {
    width: 36px;
    height: 3px;
  }
}

/* ==============================
   COURSE DETAILS PAGE
================================ */

.course-details {
  background: #ffffff;
}

/* HEADER */
.course-badge {
  display: inline-block;
  background: rgba(138, 74, 161, 0.15);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.course-title {
  font-size: 42px;
  margin-bottom: 14px;
}

.course-info {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 26px;
}

.course-info i {
  color: var(--primary-color);
  margin-right: 6px;
}

/* IMAGE */
.course-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 40px;
}

/* BOX */
.course-box {
  background: #f6f1fa;
  padding: 36px;
  border-radius: 20px;
  margin-top: 50px;
}

/* LEARN */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 30px;
}

.learn-grid i {
  color: var(--primary-color);
  margin-right: 8px;
}

/* CURRICULUM */
.curriculum {
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.curriculum-item {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-color);
}

.curriculum-item:last-child {
  border-bottom: none;
}

.curriculum-item.locked {
  opacity: 0.6;
}

/* INSTRUCTOR */
.instructor-card {
  display: flex;
  gap: 18px;
  align-items: center;
}

.instructor-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stars {
  color: #ffb703;
  font-size: 18px;
}

/* SIDEBAR */
.course-sidebar-sticky {
  position: sticky;
  top: 110px;
}

.course-sidebar {
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.price-box {
  text-align: center;
  margin-bottom: 22px;
}

.price-box h3 {
  color: var(--primary-color);
  font-size: 34px;
}

.course-meta {
  list-style: none;
  padding: 0;
  margin: 26px 0;
}

.course-meta li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}

.course-meta li:last-child {
  border-bottom: none;
}

/* GUARANTEE */
.guarantee {
  background: #f6f1fa;
  padding: 18px;
  border-radius: 14px;
  text-align: center;
}

.guarantee strong {
  display: block;
  color: var(--primary-color);
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .course-sidebar-sticky {
    position: static;
  }

  .learn-grid {
    grid-template-columns: 1fr;
  }

  .course-title {
    font-size: 34px;
  }
}

/* ==============================
   SIDEBAR ENROLL BUTTON
================================ */

.sidebar-enroll-btn {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(138, 74, 161, 0.35);
}

.sidebar-enroll-btn:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 114, 44, 0.35);
}
