.all-courses {
  width: 100%;
}

.all-courses__wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.all-courses__title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  color: var(--gray);
  padding: 0.8rem;
  border-bottom: 1px solid var(--gray);
}

/* Filter Section Start */

.filter {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.filter-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 2.8rem;
  background-color: white;
  box-shadow: var(--shadow-black) 0 3px 6px 0;
  border-radius: 5.1rem;
  gap: 1rem;
  cursor: pointer;
}

.filter-box__text {
  font-size: 1.5rem;
  font-weight: bold;
  flex: 1;
  text-align: center;
  color: #707070;
}

.filter-box__icon {
  margin-right: auto;
  width: 15px;
}

.options {
  border-radius: 3.2rem;
  padding: 6rem 4rem;

  /* display: flex; */
  flex-wrap: wrap;
  /* justify-content: space-between; */
  gap: 1rem;
  box-shadow: var(--shadow-black) 0 3px 6px 0;
  background-color: white;
}

.option {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 5rem;
  box-shadow: var(--shadow-black) 0 3px 6px 0;
  border-radius: 5.1rem;
  background-color: var(--background-white);
  margin-bottom: 1rem;
}

.option:has(img) {
  cursor: pointer;
}

.option__text {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--text-black);
  flex: 1;
  text-align: center;
}

.option__icon {
  margin-right: auto;
  width: 1.4rem;
  height: 0.9rem;
}

.option__half-size {
  padding-right: 2rem;
  padding-left: 2rem;
  /* flex-basis: 48%; */
}

.option__input {
  width: 7.2rem;
  border: none;
  margin-left: 1.6rem;
  background-color: transparent;
}

.option__input:focus-visible {
  outline: transparent;
}

.option__input,
.option__input::placeholder {
  font-size: 1.4rem;
  font-weight: 400;
  color: #a8a8a8;
}

.option__input::placeholder {
  color: var(--link-gray);
  font-weight: bold;
}

.option__unit {
  font-size: 1.2rem;
  font-weight: bold;
}

.options__button {
  width: 100%;
  padding: 1rem;
  background-color: var(--green);
  text-align: center;
  color: var(--link-white);
  font-size: 2rem;
  font-weight: bold;
  border-radius: 5.1rem;
  border: none;
  cursor: pointer;
}

/* Filter Section End */

/* All Courses Cards Start */

.all-courses__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4rem;
  gap: 20px;
}

.all-courses__cards__card {
  width: 100%;
  max-width: 620px;
  display: flex;
  background-color: white;
  border-radius: 2.3rem;
  box-shadow: var(--shadow-black) 0 3px 6px 0;
  padding: 0.8rem 1rem 0.2rem 1.5rem;
  margin-top: 4rem;
  text-decoration: none;
}

.all-courses__cards__card .card__image-container {
  flex: 1;
  position: relative;
  /* height: 100%; */
}

.all-courses__cards__card .card__image-container__image {
  width: 108%;
  height: 128%;
  position: absolute;
  object-fit: cover;
  left: 0;
  right: -1.3rem;
  top: -12%;
  aspect-ratio: 1 / 2;
  border-radius: 18px;
}

.card__desc {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 1rem;
}

.card__desc__title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--title-black);
  display: flex;
  justify-content: space-between;
}

.card__desc__author {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-black);
}

.card__desc__info {
  display: flex;
  justify-content: space-between;
  color: var(--text-black);
}

.desc__info__text {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
}

.desc__info__date {
  font-size: 1.3rem;
  font-weight: 400;
}

.card__desc__divider {
  border: none;
  height: 1px;
  background-color: var(--green);
  opacity: unset;
}

.card__desc__address-price {
  display: flex;
  justify-content: space-between;
  color: var(--text-black);
}

.desc__address {
  display: flex;
  gap: 0.5rem;
  flex: 1;
}

.desc__address__text {
  font-size: 1.1rem;
  font-weight: 400;
}

.desc__price {
  color: black;
  font-weight: bold;
}

.desc__price__text {
  font-size: 1.2rem;
}

.desc__price__unit {
  font-size: 0.9rem;
  font-weight: bold;
}

.expire-course {
  border: 1px solid #d80000;
  border-radius: 17px;
  margin-right: 8%;
  color: #d80000;
  padding: 5px;
  padding-right: 9px;
  padding-left: 10px;
  font-size: 8px;
}

/* All Courses Cards End */

@media (min-width: 960px) {
  .all-courses__title {
    font-size: 3.3rem;
  }

  .expire-course {
    border: 1px solid #d80000;
    border-radius: 17px;
    margin-right: 17%;
    color: #d80000;
    padding: 8px;
    padding-right: 20px;
    padding-left: 20px;
    font-size: 12px;
  }

  .filter-box__text {
    font-size: 3.3rem;
  }

  .filter-box__icon {
    width: 2.6rem;
    height: 1.5rem;
  }

  .all-courses__cards {
    row-gap: 3rem;
  }

  .card__desc__title {
    font-size: 2.1rem;
  }

  .card__desc__author {
    font-size: 2rem;
  }

  .desc__info__text {
    font-size: 1.5rem;
  }

  .desc__info__date {
    font-size: 1.8rem;
  }

  .desc__address__text {
    font-size: 2.3rem;
  }

  .desc__price__text {
    font-size: 2rem;
  }

  .desc__price__unit {
    font-size: 1.9rem;
  }

  .all-courses__cards__card .card__image-container__image {
    right: -2.5rem;
    top: -21%;
    height: 25rem !important;
  }
}
