/* Modern Course Details Page - 2026 */
:root {
  --cd-primary: var(--brand-accent);
  --cd-secondary: var(--brand-primary);
  --cd-gradient: linear-gradient(135deg, rgba(249,115,22,0.98) 0%, rgba(37,99,235,0.92) 75%);
  --cd-shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --cd-shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --cd-shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --cd-radius: 1rem;
  --cd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page Layout */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f8fafc;
}

.course-details-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Breadcrumb */
.breadcrumb-modern {
  background: transparent;
  padding: 0 0 1.5rem 0;
  margin: 0;
  font-size: 0.875rem;
}

.breadcrumb-modern a {
  color: #64748b;
  text-decoration: none;
  transition: var(--cd-transition);
}

.breadcrumb-modern a:hover {
  color: var(--cd-primary);
}

.breadcrumb-modern .active {
  color: #1e293b;
  font-weight: 500;
}

/* Course Hero Section */
.course-hero-modern {
  background: #fff;
  border-radius: var(--cd-radius);
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: var(--cd-shadow-md);
  position: relative;
  overflow: hidden;
}

.course-hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cd-gradient);
}

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(37,99,235,0.1));
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 999px;
  color: var(--cd-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.course-hero-modern h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.course-hero-modern .course-description {
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.course-meta-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #64748b;
}

.meta-item i {
  color: var(--cd-primary);
  font-size: 1.1rem;
}

.meta-item strong {
  color: #1e293b;
  font-weight: 600;
}

.rating-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars-large {
  color: #fbbf24;
  font-size: 1.1rem;
}

.rating-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.rating-count {
  color: #64748b;
  font-size: 0.875rem;
}

.instructor-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: var(--cd-transition);
  flex-direction: row;
}

.instructor-preview:hover {
  transform: translateY(-2px);
  box-shadow: var(--cd-shadow-sm);
  border-color: rgba(249,115,22,0.3);
}

.instructor-avatar-preview {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 2px solid var(--cd-primary);
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

.instructor-info-preview {
  display: flex;
  flex-direction: column;
}

.instructor-info-preview h6 {
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 0.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.instructor-info-preview .instructor-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.2;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-enroll-primary {
  background: var(--cd-gradient);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: var(--cd-radius);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(249,115,22,0.25);
  transition: var(--cd-transition);
  position: relative;
  overflow: hidden;
}

.btn-enroll-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
  color: #fff;
}

.btn-enroll-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-enroll-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-curriculum {
  background: #fff;
  color: var(--cd-secondary);
  border: 2px solid var(--cd-secondary);
  padding: 1rem 2rem;
  border-radius: var(--cd-radius);
  font-weight: 600;
  transition: var(--cd-transition);
}

.btn-curriculum:hover {
  background: var(--cd-secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.25);
}

/* Content Sections */
.content-section {
  background: #fff;
  border-radius: var(--cd-radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--cd-shadow-md);
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(37,99,235,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-icon i {
  font-size: 1.5rem;
  background: var(--cd-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

/* What You'll Learn */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: #f8fafc;
  transition: var(--cd-transition);
}

.outcome-item:hover {
  background: #fff;
  box-shadow: var(--cd-shadow-sm);
  transform: translateX(4px);
}

.outcome-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.outcome-icon i {
  color: #fff;
  font-size: 0.875rem;
}

.outcome-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

/* Skills Tags */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--cd-transition);
}

.skill-tag:hover {
  background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(37,99,235,0.1));
  border-color: rgba(249,115,22,0.3);
  color: var(--cd-primary);
  transform: scale(1.05);
}

/* Curriculum / Syllabus */
.curriculum-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e2e8f0;
}

.curriculum-tab {
  padding: 1rem 2rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--cd-transition);
}

.curriculum-tab.active {
  color: var(--cd-primary);
}

.curriculum-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cd-gradient);
}

.module-accordion {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--cd-transition);
}

.module-accordion:hover {
  box-shadow: var(--cd-shadow-sm);
  border-color: rgba(249,115,22,0.2);
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  transition: var(--cd-transition);
}

.module-header:hover {
  background: #f1f5f9;
}

.module-header.active {
  background: linear-gradient(135deg, rgba(249,115,22,0.05), rgba(37,99,235,0.05));
}

.module-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.module-number {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--cd-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.module-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.expand-icon {
  transition: transform 0.3s;
  color: #64748b;
}

.module-header.active .expand-icon {
  transform: rotate(180deg);
}

.module-content {
  display: none;
  padding: 0 1.5rem 1.5rem;
}

.module-content.show {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: var(--cd-transition);
}

.lesson-item:hover {
  background: #f8fafc;
  border-color: rgba(249,115,22,0.2);
  transform: translateX(8px);
}

.lesson-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.lesson-type-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lesson-type-icon.video {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.lesson-type-icon.pdf {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.lesson-type-icon.quiz {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.lesson-type-icon i {
  color: #fff;
  font-size: 1rem;
}

.lesson-details h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.lesson-details p {
  font-size: 0.813rem;
  color: #64748b;
  margin: 0;
}

.lesson-duration {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Reviews Section */
.reviews-summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.rating-overview {
  text-align: center;
}

.rating-large {
  font-size: 4rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stars-large-display {
  color: #fbbf24;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rating-bar-label {
  width: 60px;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.rating-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: var(--cd-gradient);
  transition: width 0.6s ease-out;
}

.rating-bar-count {
  width: 40px;
  text-align: right;
  font-size: 0.875rem;
  color: #64748b;
}

.review-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.review-card:last-child {
  border-bottom: none;
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  object-fit: cover;
  flex-shrink: 0;
}

.review-content {
  flex: 1;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.reviewer-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.review-date {
  font-size: 0.813rem;
  color: #94a3b8;
}

.review-rating {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.review-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

/* Instructor Section */
.instructor-card {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.instructor-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--cd-primary);
  object-fit: cover;
  flex-shrink: 0;
}

.instructor-details {
  flex: 1;
}

.instructor-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.instructor-name-large {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.instructor-bio {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

.instructor-stat {
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cd-primary);
  display: block;
}

.stat-label {
  font-size: 0.813rem;
  color: #64748b;
}

/* Sidebar */
.sticky-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: #fff;
  border-radius: var(--cd-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--cd-shadow-md);
  border: 1px solid #e2e8f0;
}

.price-section {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 2rem;
}

.price-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: #64748b;
}

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

.sidebar-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #475569;
}

.sidebar-features li:last-child {
  border-bottom: none;
}

.sidebar-features i {
  color: #10b981;
  font-size: 1.1rem;
}

/* Related Courses */
.related-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-course-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--cd-transition);
}

.related-course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cd-shadow-md);
  border-color: rgba(249,115,22,0.3);
}

.related-course-card h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.related-course-card p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
  .sticky-sidebar {
    position: static;
  }
  
  .reviews-summary {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .instructor-card {
    flex-direction: column;
    text-align: center;
  }
  
  .instructor-avatar-large {
    margin: 0 auto;
  }
  
  .instructor-stats {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .course-hero-modern,
  .content-section,
  .sidebar-card {
    padding: 1.5rem;
  }
  
  .course-meta-modern {
    gap: 1rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons .btn {
    width: 100%;
  }
  
  .outcomes-grid {
    grid-template-columns: 1fr;
  }
  
  .curriculum-tabs {
    overflow-x: auto;
  }
  
  .curriculum-tab {
    padding: 1rem 1.5rem;
    white-space: nowrap;
  }
}
