.course-booking {
  position: relative;
  padding: 28px 0;
  margin-top: 56px;
  z-index: 2;
}

.course-booking-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.course-booking h2 {
  text-align: center;
  margin-bottom: 24px;
  color: rgb(0, 0, 0);
}

/* Grid för de två kurstyperna */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Styling för varje kurstyp-block */
.course-type {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
}

.course-type h3 {
  font-size: clamp(1.25rem, 3.4vw, 1.5rem);
  margin-bottom: 18px;
  text-align: center;
  color: #333;
}

/* Lista med kurstillfällen */
.course-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Enskilt kurstillfälle */
.course-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) auto auto;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.course-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.course-content h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #333;
}

.spots-left {
  color: #e44;
  font-size: 14px;
  margin: 0;
}

.price {
  font-weight: bold;
  font-size: 1.0625rem;
  color: #333;
  text-align: right;
}

.course-action .button {
  background: #b69b20;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

.course-action .button:hover {
  background: #cdb237;
}

@media (max-width: 1200px) {
  .course-booking h2 {
    color: rgb(0, 0, 0);
  }

  .course-booking {
    margin-top: 48px;
  }
}

/* Responsiv design */
@media (max-width: 968px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .course-booking h2 {
    color: rgb(0, 0, 0);
  }
}

@media (max-width: 768px) {
  .course-booking {
    margin-top: 34px;
    padding: 24px 0;
  }

  .course-item {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 16px;
  }

  .price {
    text-align: center;
  }

  .course-action {
    display: flex;
    justify-content: center;
  }

  .course-booking h2 {
    color: rgb(0, 0, 0);
  }

  .course-booking-container {
    margin-top: 0;
  }

  .course-action .button {
    margin: auto;
  }
}

@media (max-width: 481px) {
  .course-booking-container {
    margin-top: 0;
  }
}
