/* 课程页面标题样式 */
.page-header {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/courses-header.jpg');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  margin-top: 80px;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 课程列表样式 */
.courses-section {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.course-item {
  display: flex;
  margin-bottom: 4rem;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.course-item.reverse {
  flex-direction: row-reverse;
}

.course-image {
  flex: 1;
  overflow: hidden;
}

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

.course-content {
  flex: 1;
  padding: 2rem;
}

.course-content h2 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.course-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  color: #666;
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.course-meta i {
  color: #e74c3c;
}

.course-features {
  list-style: none;
  margin-bottom: 2rem;
}

.course-features li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.course-features li::before {
  content: '•';
  color: #e74c3c;
  position: absolute;
  left: 0;
}

.enroll-btn {
  display: inline-block;
  background-color: #e74c3c;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.enroll-btn:hover {
  background-color: #c0392b;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .course-item {
    flex-direction: column;
  }

  .course-item.reverse {
    flex-direction: column;
  }

  .course-image {
    height: 200px;
  }

  .course-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .page-header {
    height: 200px;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}
