.course-list {
  padding: 80px 10%;
  background: linear-gradient(to bottom right, #00334e, #0077b6);
}
.course-list-header{
  text-align: center;
  font-size: 2.8em;
  margin-bottom: 50px;
  color: #00bcd4;
  text-shadow: 0 0 10px #00bcd4;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.course-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  height: 420px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.course-overlay {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  padding: 10px 15px;
  width: 100%;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.course-title {
  color: whitesmoke;
  font-size: 1.6em;
  margin: 8px 0;
}
.coursePriceFromText {
  font-size: 1.2em;
}
.course-price {
  font-size: 1.8em;
  font-weight: bold;
  margin: 0;
  color: #82b0ff;
}
.perPerson {
  color: #ccc;
  font-size: 0.8em;
}
.course-level-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #00b4d8;
  color: #fff;
  padding: 6px 12px;
  font-size: 0.9em;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  .course-list {
    padding: 60px 20px;
  }

  .course-list h2 {
    font-size: 2.2em;
  }
}