/* ======================================================== */
/* --- Modern Dynamic Course Detail Page Styles             */
/* ======================================================== */
.dedicated-course-page-wrapper {
  max-width: 1100px;
  margin: 50px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 0 24px;
}

/* --- Hero Banner Layout --- */
.course-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 48px;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-split-left {
  flex: 1.5;
  min-width: 320px;
}

.category-meta-pill {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #4f46e5;
  display: block;
  margin-bottom: 10px;
}

.course-main-headline {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px 0;
  letter-spacing: -1px;
}

.hero-teaser-text {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.hero-specs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-spec-pill {
  font-size: 0.8rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  padding: 5px 12px;
  border-radius: 4px;
}

.hero-split-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 240px;
}

.enrollment-counter-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
}

.btn-hero-checkout {
  display: block;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.2s ease;
}

.btn-hero-checkout:hover {
  background: #4f46e5;
}

.btn-hero-checkout.explicit-promo {
  background: #16a34a;
}

/* --- Two-Column Layout Grid Splits --- */
.course-body-columns {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.course-pitch-sidebar {
  flex: 1;
  position: sticky;
  top: 40px; /* Locks your details paragraph to the frame during deep scroll */
  min-width: 280px;
}

.pitch-content-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
}

.pitch-block-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0;
}

.pitch-body-paragraph {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.pitch-sub-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
}

.pitch-bullet-list {
  padding-left: 18px;
  margin: 0 0 24px 0;
}

.pitch-bullet-list li {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 10px;
}

.skills-tag-cloud {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.skill-cloud-tag {
  font-size: 0.72rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 4px 8px;
  border-radius: 4px;
}

/* --- Accordion Dropdowns Component Layout --- */
.course-syllabus-main {
  flex: 2;
  min-width: 320px;
}

.syllabus-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 24px 0;
  letter-spacing: -0.5px;
}

.syllabus-accordion-drawer {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.drawer-wrapper summary {
  list-style: none;
}
.drawer-wrapper summary::-webkit-details-marker {
  display: none;
}

.drawer-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
}

.drawer-summary-header:hover {
  background: #f1f5f9;
}

.summary-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-arrow-icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.drawer-wrapper[open] .drawer-arrow-icon {
  transform: rotate(45deg);
}

.summary-module-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.summary-module-meta {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.drawer-expanded-body {
  border-top: 1px solid #e2e8f0;
}

.lecture-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
  color: #334155;
}

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

.lecture-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-indicator-icon {
  font-size: 0.85rem;
  min-width: 16px;
}

.play-btn { color: #16a34a; }
.lock-btn { color: #94a3b8; }

/* Styles highlighting practical workbook modules and quiz checkpoints */
.lecture-item-row.resource-lab-row { background: #fefeff; }
.lecture-item-row.resource-quiz-row { background: #fafafa; }

.lecture-name-text.lab-text { color: #4f46e5; font-weight: 500; }
.lecture-name-text.quiz-text { color: #0284c7; font-weight: 500; }

.lecture-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lecture-duration-stamp {
  font-size: 0.82rem;
  color: #94a3b8;
  font-family: monospace;
}

.resource-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: #eedffd;
  color: #5b21b6;
  padding: 2px 8px;
  border-radius: 4px;
}

.resource-badge.quiz-badge {
  background: #e0f2fe;
  color: #0369a1;
}

.btn-lecture-preview-trigger {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4f46e5;
  text-decoration: none;
  background: #eef2ff;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #e0e7ff;
}

.btn-lecture-preview-trigger:hover {
  background: #4f46e5;
  color: #ffffff;
}

/* --- Mobile Grid Breakdowns Overrides --- */
@media (max-width: 860px) {
  .course-body-columns { flex-direction: column; }
  .course-pitch-sidebar { width: 100%; position: static; }
  .course-hero-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-split-right { width: 100%; align-items: flex-start; }
}

/* ======================================================== */
/* --- Responsive YouTube Previews Gallery Styles           */
/* ======================================================== */
.course-previews-gallery {
  margin-bottom: 48px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px;
}

.gallery-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.gallery-section-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 24px 0;
  max-width: 800px;
}

/* Two-column layout grid matrix for video wrapper containers */
.video-embed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.video-player-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

/* The fluid CSS fluid math forcing perfectly scaled 16:9 players frames */
.video-iframe-aspect-ratio {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio percentage calculation */
  height: 0;
  overflow: hidden;
  background: #000000;
}

.video-iframe-aspect-ratio iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-card-details {
  padding: 16px;
}

.video-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.video-card-caption {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Responsive collapse rule drop down alignments onto mobile formats */
@media (max-width: 680px) {
  .video-embed-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .course-previews-gallery {
    padding: 16px;
  }
}
