/* ==========================================================================
   Course Details Page (Premium Redesign)
   ========================================================================== */

.course-details-new-layout {
  padding-top: 2rem;
  padding-bottom: 5rem;
  background-color: #fafafa;
}

.breadcrumb-back-link {
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.breadcrumb-back-link:hover {
  color: #F0623E;
}

.course-header-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.details-title-large {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.details-short-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 2rem;
  max-width: 900px;
}

.details-meta-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.meta-stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
}

.meta-stat-item i {
  font-size: 1.1rem;
}

.meta-stat-item.rating i { color: #ffbc00; }
.meta-stat-item.students i { color: #22c55e; }
.meta-stat-item.duration i { color: #3b82f6; }
.meta-stat-item.lessons i { color: #f43f5e; }

/* Sticky Enrollment Sidebar */
.details-sidebar-sticky {
  position: sticky;
  top: 100px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #eee;
}

.sidebar-preview-box {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.sidebar-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.btn-play-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: white;
  color: #F0623E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  border: none;
}

.btn-play-preview:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #F0623E;
  color: white;
}

.sidebar-enroll-content {
  padding: 1.5rem;
}

.sidebar-price-large {
  font-size: 2rem;
  font-weight: 800;
  color: #F0623E;
  margin-bottom: 1.5rem;
}

.btn-enroll-primary {
  background: #F0623E;
  color: white !important;
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  border: none;
  transition: all 0.3s ease;
  display: block;
  text-align: center;
  text-decoration: none;
}

.btn-enroll-primary:hover {
  background: #d94e2b;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(240, 98, 62, 0.3);
}

.sidebar-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
  font-weight: 500;
}

.sidebar-feature-list li i {
  font-size: 1rem;
  color: #F0623E;
}

/* Main Content Blocks */
.details-section-block {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid #f0f0f0;
}

.section-block-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.course-overview-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.what-learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.learn-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
}

.learn-item i {
  color: #22c55e;
  margin-top: 0.2rem;
}

/* Curriculum Accordion */
.curriculum-wrap-new {
  border: 1px solid #eee;
  border-radius: 15px;
  overflow: hidden;
}

.module-header-new {
  background: #f8f9fa;
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease;
}

.module-header-new:hover {
  background: #f1f3f5;
}

.module-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  color: #1a1a1a;
}

.module-meta-new {
  font-size: 0.85rem;
  color: #777;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lesson-list-new {
  background: white;
}

.lesson-row-new {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: #444;
  transition: all 0.2s ease;
}

.lesson-row-new:hover {
  background: #fff8f6;
  color: #F0623E;
}

.lesson-row-new:last-child {
  border-bottom: none;
}

/* Instructor Section */
.instructor-card-new {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.instructor-img-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.instructor-header-info h4 {
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.instructor-subtitle {
  color: #F0623E;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.instructor-bio-text {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.instructor-stats-flex {
  display: flex;
  gap: 1.5rem;
}

.inst-stat-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
}

.inst-stat-box i {
  color: #F0623E;
}

@media (max-width: 991px) {
  .details-title-large { font-size: 2rem; }
  .what-learn-grid { grid-template-columns: 1fr; }
  .instructor-card-new { flex-direction: column; text-align: center; align-items: center; }
  .instructor-stats-flex { justify-content: center; }
  .details-sidebar-sticky { position: static; margin-top: 2rem; }
}
