$img-h: 150px;

.card {
  background-color: #fff;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(174, 190, 205, 0.3);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  &:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }
  &__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2rem;
    row-gap: 2rem;
    padding-bottom: 3rem;
  }
  &__content {
    flex: 1;
    padding: 1rem;
    width: 100%;
    border-radius: 0 0 8px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  &__img {
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #3093eb;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    position: relative;
    img {
      position: absolute;
      content: '';
      transition: all 0.3s ease;
      width: 100%;
      height: 100%;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      object-fit: cover;
      display: block;
      border-radius: 8px 8px 0 0;
    }
  }
  &__tags {
  }
  &__tag {
    border-radius: 4px;
    // background-color: red;
    padding: 0.3rem 0.5rem;
    font-size: 10px;
    color: white;
    text-transform: uppercase;
  }
  &__title {
    font-size: 1rem;
    // margin-bottom: 1rem;
    // padding: 0.8rem 0;
    color: #2a3b47;
  }
  &__info,
  &__icons {
    display: flex;
    align-items: center;
  }
  &__info {
    justify-content: center;
  }
  &__icons {
    padding-left: 0.5rem;
    color: darken(#fff, 65);
    font-size: 0.85rem;
    svg {
      margin-right: 5px;
    }
  }
  &__instructor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-top: 1px solid rgba(#000000, 0.04);
    // background-color: #fcfcfc;
    img {
      width: 25px;
      min-width: 25px;
      border-radius: 50%;
      object-fit: cover;
    }
  }
  &__text {
    font-size: 13px;
    color: #697477;
  }
}
@media (max-width: 992px) {
  .card {
    &__grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
}

@media (max-width: 768px) {
  .card {
    &__grid {
      grid-template-columns: 1fr;
    }
  }
}
