/* 熱門課程推薦區塊 */
.popular-courses {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 80px 0;
}

.popular-courses .section-header {
  margin-bottom: 50px;
}

.popular-courses .section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}

.popular-courses .sub-title {
  font-size: 18px;
  color: #666;
  font-weight: 400;
}

.course-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 20px;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.course-card .course-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.course-card:hover .course-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.course-card .course-icon i {
  font-size: 30px;
  color: #fff;
}

.course-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 15px;
}

.course-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.course-card .btn {
  width: 100%;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.course-card .btn-outline-primary {
  border: 2px solid #667eea;
  color: #667eea;
}

.course-card .btn-outline-primary:hover {
  background: #667eea;
  color: #fff;
  transform: scale(1.05);
}

/* 響應式設計 */
@media (max-width: 991px) {
  .popular-courses {
    padding: 60px 0;
  }

  .popular-courses .section-header h2 {
    font-size: 30px;
  }

  .course-card {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .popular-courses {
    padding: 50px 0;
  }

  .popular-courses .section-header {
    margin-bottom: 30px;
  }

  .popular-courses .section-header h2 {
    font-size: 26px;
  }

  .popular-courses .sub-title {
    font-size: 16px;
  }

  .course-card {
    padding: 25px 15px;
  }

  .course-card .course-icon {
    width: 60px;
    height: 60px;
  }

  .course-card .course-icon i {
    font-size: 26px;
  }

  .course-card h3 {
    font-size: 18px;
  }
}

/* 相關內容區塊 */
.related-content-section {
  background: #f8f9fa;
  padding: 80px 0;
}

.related-content-section .section-header {
  margin-bottom: 50px;
}

.related-content-section .section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}

.related-content-section .sub-title {
  font-size: 16px;
  color: #666;
}

.related-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 20px;
  border-left: 4px solid transparent;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-left-color: #667eea;
}

.related-card .related-icon {
  width: 50px;
  height: 50px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.related-card:hover .related-icon {
  background: #667eea;
}

.related-card .related-icon i {
  font-size: 24px;
  color: #667eea;
  transition: all 0.3s ease;
}

.related-card:hover .related-icon i {
  color: #fff;
}

.related-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
}

.related-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.related-card .related-link {
  color: #667eea;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.related-card .related-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 991px) {
  .related-content-section {
    padding: 60px 0;
  }

  .related-content-section .section-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .related-content-section {
    padding: 50px 0;
  }

  .related-content-section .section-header {
    margin-bottom: 30px;
  }

  .related-content-section .section-header h2 {
    font-size: 24px;
  }

  .related-card {
    padding: 25px 15px;
  }
}
