$course-img: 150px;
.bg-color-gray {
  @include gradient-gen($footer-color-primary);
  position: relative;
}
.courses {
  &__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    row-gap: 3.5rem;
  }
  &__card {
    display: flex;
    flex-direction: row;
    cursor: pointer;
    padding: 1rem 1rem 0rem 0rem;
    border-radius: 20px;
    transition: all 0.2s ease-out;
    -webkit-tap-highlight-color: rgba(#fff, 0.3);
    background-color: #fff;
    box-shadow: 0 7px 40px rgba(0, 0, 0, 0.3);
    &:hover {
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      .courses__title {
        color: darken(#3093eb, 15);
      }
    }
    &.active {
      background-color: #fff;
      box-shadow: 0 7px 40px rgba(0, 0, 0, 0.05);
    }
  }
  &__img {
    width: $course-img;
    height: $course-img;
    min-width: $course-img;
    background-color: #ccfee7;
    border-radius: 20px;
    // @include boxshadow-md(#000);
    transition: all 0.3s ease-out;
    transform: translate(-10px, 10px);
    img {
      width: $course-img;
      min-width: $course-img;
      display: inline-block;
      height: $course-img;
      object-fit: cover;
      border-radius: 20px;
    }
  }
  &__content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    .icon-feather {
      color: #3093eb;
    }
  }
  &__description {
    display: flex;
    flex-direction: column;
    // align-items: flex-start;
  }
  &__title {
    font-size: 20px;
    // color: $footer-color-primary;
    color: darken(#3093eb, 5);
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
    font-weight: bold;
    // height: 50px;
    width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  &__price {
    // flex: 1;
    transition: all 0.3s ease-out;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #3093eb;
    // padding: 0.5rem;
    border-radius: 4px;
  }
  &__info {
    // width: 100%;
    display: flex;
    justify-content: flex-end;
    .flex {
      color: #3093eb;
      display: flex;
      padding-left: 0.8rem;
      // justify-content: center;
      // text-transform: uppercase;
      font-size: 14px;
      font-weight: 500;
      // color: darken(#fff, 50);
    }
  }
  &__button {
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    .icon-feather {
      margin-left: 6px;
      // color: #145be4;
    }
  }
}
@media (max-width: 1200px) {
  .courses {
    &__grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      column-gap: 1.5rem;
      row-gap: 3.5rem;
    }
  }
}
@media (max-width: 756px) {
  .courses {
    &__grid {
      display: grid;
      grid-template-columns: 1fr;
      column-gap: 1.5rem;
      row-gap: 3.5rem;
    }
    &__title {
      font-size: 20px;
      // color: $footer-color-primary;
      color: darken(#fff, 70);
      font-weight: bold;
      // height: 50px;
      width: 100%;
      overflow: visible;
      text-overflow: clip;
      white-space: normal;
    }
    &__card {
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background-color: #fff;
      box-shadow: 0 7px 40px rgba(0, 0, 0, 0.05);
      text-align: center;
      padding: 0;
    }
    &__img {
      width: 100%;
      height: 200px;
      background-color: #fff;
      border-radius: 20px;
      transition: all 0.3s ease-out;
      // transform: translate(-10px, 10px);
      transform: translate(0, 0);
      img {
        width: 100%;
        min-width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        border-radius: 20px;
      }
    }
    &__content {
      text-align: center;
      margin-top: 0.5rem;
      padding-bottom: 1rem;
    }
    &__price {
      text-align: center;
    }
    &__info {
      justify-content: center;
      font-size: 14px;
      margin-top: 0.8rem;
    }
  }
}
