.courses {
  width: 100%;
}

.nearest-courses__title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  color: var(--gray);
  padding: 0.8rem;
  border-bottom: 1px solid var(--gray);
  margin-bottom: 0.8rem;
}

.nearest-courses__cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.nearest-courses__cards__card {
  border-radius: 2rem;
  box-shadow: var(--shadow-black) 0 3px 6px 0;
  width: 45%;
  max-width: 38rem;
  cursor: pointer;
  text-decoration: none;
  color: black;
}

.card__image-container__image {
  width: 100%;
}

.card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.8rem 0.8rem;
  text-align: center;
}

.card__info__text {
  border-top: var(--gray) 1px solid;
  border-bottom: var(--gray) 1px solid;
  width: 100%;
  padding: 0.5rem 0;
  font-size: 1.2rem;
}

.card__info__text:last-child,
.card__info__text:first-child {
  border: none;
}
.card__info__title {
  font-size: 1.8rem;
  font-weight: bold;
  /* white-space: nowrap; */
}

@media (min-width: 960px) {
  .nearest-courses__title {
    font-size: 3.3rem;
    padding: 1.8rem;
    margin-bottom: 1.8rem;
  }

  .nearest-courses__cards{
    gap: 2.5rem;
  }

  .nearest-courses__cards__card {
    width: 20%;
  }

  .card__info__title{
    font-size: 3.3rem;
  }

}
