.courses-section {
  padding: 5rem 0;
  background-color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  color: var(--heading-color);
  text-transform: capitalize;
}

.section-header h2 span {
  color: var(--primary-color);
}

.section-header p {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.course-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
}

.course-card:hover {
  /* transform: translateY(-2px); */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

.course-image {
  height: 225px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.1);
}

.course-content {
  padding: 1.5rem;
}

.course-content h3 {
  font-size: 1.3rem;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.course-duration {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-features {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.course-features span {
  background: rgba(254, 150, 53, 0.1);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-features i {
  font-size: 0.9rem;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.course-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading-color);
}

.btn-enroll {
  background: var(--primary-color);
  color: white;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-enroll:hover {
  background: #e0852e;
  transform: translateY(-1.5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .course-image {
    height: 180px;
  }

  .course-content {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }

  .course-features {
    gap: 8px;
  }

  .course-features span {
    font-size: 0.75rem;
  }
}
