/* Course Page Specific Styles */
.course-landing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header & Stats */
.course-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #eee;
}

.course-header h1 {
  color: #333;
  margin-bottom: 1rem;
}

.course-description {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.course-stats {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-link {
  text-decoration: none;
  flex: 1;
  min-width: 200px;
  border-bottom: none !important;
  color: inherit;
}

.stat {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #f56a6a;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #f56a6a;
  line-height: 1.2;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tabs */
.course-tabs {
  display: flex;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 2rem;
  gap: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

.course-tabs::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari/Webkit */
}

.tab-btn {
  background: none !important;
  border: none !important;
  padding: 1rem 0 !important;
  font-size: 1.1rem;
  font-weight: 600;
  color: #666 !important;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
  box-shadow: none !important;
  height: auto !important;
  line-height: normal !important;
  border-radius: 0 !important;
}

.tab-btn:hover {
  color: #f56a6a !important;
  background: none !important;
  box-shadow: none !important;
}

.tab-btn.active {
  color: #f56a6a !important;
  background: none !important;
  box-shadow: none !important;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f56a6a;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accordion */
.unit-group {
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.unit-header {
  background: #f8f9fa;
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  user-select: none;
}

.unit-header:hover {
  background: #f1f3f5;
}

.unit-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.unit-toggle-icon {
  font-size: 1.2rem;
  color: #666;
  transition: transform 0.3s;
}

.unit-group.active .unit-toggle-icon {
  transform: rotate(180deg);
}

.unit-content {
  display: none;
  padding: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.unit-group.active .unit-content {
  display: block;
}

/* Cards Grid System */
.chapter-grid,
.slides-grid,
.questions-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Card Styles */
.chapter-card,
.slide-card,
.question-card,
.case-card {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  transition: all 0.2s;
  height: 100%;
}

.chapter-card:hover,
.slide-card:hover,
.question-card:hover,
.case-card:hover {
  border-color: #4f46e5;
  transform: translateX(4px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Card Content Elements */
.chapter-number,
.question-year,
.slide-unit,
.case-unit {
  background: #4f46e5;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Variation for text-based badges */
.question-year,
.case-unit {
  width: auto;
  height: auto;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.chapter-content,
.slide-content,
.question-content,
.case-content {
  flex: 1;
}

.chapter-content h4,
.slide-content h4,
.question-content h4,
.case-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  line-height: 1.4;
}

.chapter-content a,
.slide-content a,
.question-content a,
.case-content a {
  text-decoration: none;
  color: #333;
  border-bottom: none;
}

.chapter-content a:hover,
.slide-content a:hover,
.question-content a:hover,
.case-content a:hover {
  color: #f56a6a;
}

.chapter-description,
.case-description {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

/* Metadata Tags */
.chapter-duration,
.question-marks,
.question-duration,
.slide-count,
.case-industry,
.case-duration {
  font-size: 0.75rem;
  color: #888;
  display: inline-block;
  margin-right: 0.75rem;
  background: #f8f9fa;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Placeholder */
.placeholder {
  text-align: center;
  padding: 3rem;
  background: #f8f9fa;
  border-radius: 8px;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .course-stats {
    flex-direction: column;
  }

  .course-tabs {
    gap: 1rem;
  }

  .tab-btn {
    font-size: 1rem;
  }
}

/* Assignment Card (Orange Theme) */
.assignments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.assignment-card {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: #fff3e0;
  border: 1px solid #ff9800;
  border-left: 4px solid #ff9800;
  border-radius: 6px;
  transition: all 0.2s;
  height: 100%;
}

.assignment-card:hover {
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
  transform: translateY(-2px);
}

.assignment-module {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e65100;
  margin-right: 0.8rem;
  min-width: 2.4rem;
  flex-shrink: 0;
}

.assignment-content {
  flex: 1;
}

.assignment-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  line-height: 1.4;
}

.assignment-content a {
  text-decoration: none;
  color: #e65100;
}

.assignment-description {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.4;
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Video Grid */
/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #f56a6a;
}

.video-facade {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  background-color: #000;
  cursor: pointer;
  overflow: hidden;
}

.video-facade img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  opacity: 0.9;
}

.video-card:hover .video-facade img {
  transform: scale(1.05);
  opacity: 0.8;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(245, 106, 106, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 rgba(245, 106, 106, 0.4);
  z-index: 2;
}

.play-button::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent white;
  margin-left: 4px;
}

.video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: #f56a6a;
  box-shadow: 0 0 20px rgba(245, 106, 106, 0.6);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid #f0f0f0;
}

.video-info h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #333;
  font-weight: 600;
}

/* Podcast Grid */
.podcast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.podcast-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.podcast-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.youtube-link {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #f56a6a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.youtube-link:hover {
  color: #d94545;
  text-decoration: underline;
}

.youtube-link i {
  margin-right: 4px;
}

@media (max-width: 768px) {
  .youtube-link {
    display: inline-block;
  }
}