/* Course Detail Page Styles */

/* Course Hero Section */
.course-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0a0a;
}

.course-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.course-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(8, 61, 58, 0.85) 0%,
    rgba(18, 109, 94, 0.8) 50%,
    rgba(183, 75, 2, 0.75) 100%);
  z-index: 2;
}

.course-hero-content {
  position: relative;
  z-index: 3;
  color: var(--tsc-color-bg);
  padding: 120px 0 80px;
  max-width: 800px;
}

.course-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.course-hero-title {
  font-size: 64px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -2px;
  font-family: var(--tsc-font-heading);
}

.course-hero-subtitle {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 16px;
  opacity: 0.9;
  font-family: var(--tsc-font-body);
}

.course-hero-mentor {
  font-size: 18px;
  margin: 0 0 32px;
  opacity: 0.85;
}

.course-hero-features {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-feature {
  font-size: 16px;
  opacity: 0.9;
}

.course-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.course-hero-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.course-enroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tsc-color-primary);
  border: none;
  color: var(--tsc-color-bg);
}

.course-enroll-btn:hover {
  background: var(--tsc-color-accent);
}

.wa-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Course Overview */
.course-overview-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}

.course-overview-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--tsc-color-ink-muted);
  margin: 0 0 24px;
}

.course-overview-text:last-child {
  margin-bottom: 0;
}

.course-highlights {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.highlight-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--tsc-color-bg-soft);
  border-radius: 16px;
}

.highlight-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.highlight-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--tsc-color-ink-strong);
  font-family: var(--tsc-font-heading);
}

.highlight-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--tsc-color-ink-muted);
  margin: 0;
}

/* What You'll Learn */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.learn-item {
  padding: 32px;
  background: var(--tsc-color-bg);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(8, 61, 58, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learn-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(8, 61, 58, 0.12);
}

.learn-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tsc-color-primary);
  color: var(--tsc-color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--tsc-font-heading);
}

.learn-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--tsc-color-ink-strong);
  font-family: var(--tsc-font-heading);
}

.learn-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--tsc-color-ink-muted);
  margin: 0;
}

/* Mentor Spotlight */
.mentor-spotlight {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: start;
}

.mentor-image {
  position: sticky;
  top: 100px;
}

.mentor-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(8, 61, 58, 0.15);
}

.mentor-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tsc-color-primary);
  margin-bottom: 16px;
  font-family: var(--tsc-font-body);
}

.mentor-name {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--tsc-color-ink-strong);
  font-family: var(--tsc-font-heading);
  letter-spacing: -1px;
}

.mentor-bio {
  font-size: 17px;
  line-height: 1.8;
  color: var(--tsc-color-ink-muted);
  margin: 0 0 20px;
}

.mentor-bio:last-of-type {
  margin-bottom: 32px;
}

.mentor-achievements {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.achievement-item {
  font-size: 16px;
  color: var(--tsc-color-ink-strong);
  font-weight: 500;
}

/* Course Structure */
.structure-timeline {
  max-width: 900px;
  margin: 48px auto 0;
  position: relative;
}

.structure-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--tsc-color-stroke);
}

.timeline-item {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--tsc-color-primary);
  color: var(--tsc-color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  font-family: var(--tsc-font-heading);
  box-shadow: 0 4px 12px rgba(8, 61, 58, 0.2);
}

.timeline-content {
  flex: 1;
  padding-top: 8px;
}

.timeline-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--tsc-color-ink-strong);
  font-family: var(--tsc-font-heading);
}

.timeline-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--tsc-color-ink-muted);
  margin: 0;
}

/* Special Opportunity */
.opportunity-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, 
    rgba(8, 61, 58, 0.05) 0%,
    rgba(183, 75, 2, 0.05) 100%);
  border-radius: 24px;
  border: 2px solid var(--tsc-color-accent);
}

.opportunity-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.opportunity-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--tsc-color-ink-strong);
  font-family: var(--tsc-font-heading);
}

.opportunity-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--tsc-color-ink-muted);
  margin: 0 0 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.opportunity-text:last-child {
  margin-bottom: 0;
}

/* CTA Section */
.course-cta {
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--tsc-color-bg);
  font-family: var(--tsc-font-heading);
}

.cta-text {
  font-size: 20px;
  line-height: 1.7;
  margin: 0 0 40px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  border: none;
  color: var(--tsc-color-bg);
}

.cta-button:hover {
  background: #20BA5A;
}

.btn-outline-light {
  background: transparent;
  border: 2px solid var(--tsc-color-bg);
  color: var(--tsc-color-bg);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Curriculum Overview */
.course-curriculum {
  background: var(--tsc-color-bg);
}

.curriculum-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--tsc-color-ink-muted);
  margin: 16px 0 48px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.curriculum-accordion {
  max-width: 1000px;
  margin: 0 auto;
}

.curriculum-module {
  margin-bottom: 16px;
  border: 1px solid var(--tsc-color-stroke);
  border-radius: 12px;
  background: var(--tsc-color-bg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.curriculum-module:hover {
  box-shadow: 0 4px 12px rgba(8, 61, 58, 0.08);
}

.curriculum-module.active {
  border-color: var(--tsc-color-primary);
  box-shadow: 0 4px 16px rgba(8, 61, 58, 0.12);
}

.module-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.module-header:hover {
  background: var(--tsc-color-bg-soft);
}

.curriculum-module.active .module-header {
  background: var(--tsc-color-bg-soft);
}

.module-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: var(--tsc-color-bg-soft);
  border-radius: 8px;
}

.curriculum-module.active .module-icon {
  background: var(--tsc-color-primary);
  color: var(--tsc-color-bg);
}

.module-info {
  flex: 1;
}

.module-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--tsc-color-ink-strong);
  font-family: var(--tsc-font-heading);
}

.module-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--tsc-color-ink-muted);
  margin: 0;
}

.module-toggle {
  font-size: 20px;
  color: var(--tsc-color-ink-muted);
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curriculum-module.active .module-toggle {
  transform: rotate(180deg);
  color: var(--tsc-color-primary);
}

.module-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--tsc-color-bg);
}

.curriculum-module.active .module-content {
  max-height: 5000px;
}

.module-segment {
  padding: 20px 28px;
  border-top: 1px solid var(--tsc-color-stroke);
  transition: background-color 0.2s ease;
}

.module-segment:hover {
  background: var(--tsc-color-bg-soft);
}

.segment-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.segment-number {
  font-size: 14px;
  font-weight: 600;
  color: var(--tsc-color-primary);
  background: rgba(8, 61, 58, 0.1);
  padding: 4px 12px;
  border-radius: 6px;
  min-width: 40px;
  text-align: center;
  font-family: var(--tsc-font-heading);
}

.segment-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--tsc-color-ink-strong);
  flex: 1;
}

.segment-assignment {
  font-size: 15px;
  line-height: 1.7;
  color: var(--tsc-color-ink-muted);
  padding-left: 56px;
  margin-top: 8px;
}

.segment-assignment strong {
  color: var(--tsc-color-ink-strong);
  font-weight: 600;
}

.segment-assignment a {
  color: var(--tsc-color-primary);
  text-decoration: underline;
}

.segment-assignment a:hover {
  color: var(--tsc-color-accent);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .course-overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .learn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mentor-spotlight {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .mentor-image {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .course-hero {
    min-height: 60vh;
  }
  
  .course-hero-content {
    padding: 80px 0 60px;
  }
  
  .course-hero-title {
    font-size: 42px;
  }
  
  .course-hero-subtitle {
    font-size: 20px;
  }
  
  .course-hero-features {
    flex-direction: column;
    gap: 12px;
  }
  
  .course-hero-cta {
    flex-direction: column;
  }
  
  .course-enroll-btn,
  .btn-secondary {
    width: 100%;
  }
  
  .learn-grid {
    grid-template-columns: 1fr;
  }
  
  .structure-timeline::before {
    left: 25px;
  }
  
  .timeline-marker {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .timeline-item {
    gap: 24px;
  }
  
  .opportunity-card {
    padding: 40px 24px;
  }
  
  .opportunity-title {
    font-size: 28px;
  }
  
  .cta-title {
    font-size: 32px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-button,
  .btn-outline-light {
    width: 100%;
  }

  .module-header {
    padding: 20px 24px;
    gap: 16px;
  }

  .module-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .module-title {
    font-size: 18px;
  }

  .module-segment {
    padding: 16px 24px;
  }

  .segment-assignment {
    padding-left: 0;
    font-size: 14px;
  }

  .module-description {
    font-size: 14px;
  }

  .segment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

