/* Course Section */
.course {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.course__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.course__list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.course__item {
  flex: 1 1 calc(50% - 20px);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.course__img {
  height: 250px;
  overflow: hidden;
}

.course__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course__item:hover .course__img img {
  transform: scale(1.05);
}

.course__content {
  padding: 25px;
}

.course__title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}

.course__desc {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* New Banner Section */
.course-banner {
  position: relative;
  margin: 80px 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-banner__image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.course-banner_lesson_image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
  object-fit: cover;
}


.course-banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.course-banner__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  color: #fff;
  text-align: center;
}

.course-banner_lesson_content {
  max-width: 850px;
  margin: 0 auto;
  padding: 30px;
  color: #fff;
  text-align: center;
}

.course-banner__title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.course-banner__text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.course-banner .btn {
  background-color: #fff;
  color: #333;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.course-banner .btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .course {
    padding: 60px 0;
  }
  
  .course__item {
    flex: 1 1 100%;
  }
  
  .course-banner {
    padding: 70px 20px;
  }
  
  .course-banner__title {
    font-size: 1.8rem;
  }
  
  .course-banner__text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .course-banner {
    padding: 150px 0px;
  }
  
  .course-banner__title {
    font-size: 1.5rem;
  }
  
  .course-banner .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }
}
