.cards_wrapper {
  width: 100%;
  float:right;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  direction:rtl
}
.card {
  display: block;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-bottom: 0px solid #333;
}
.card-img {
    position:relative;
    width:100%;
    aspect-ratio: 3/2;
    overflow:hidden;
}
.card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.card-content {
  padding: 50px 20px 30px;
  text-align: center;
  position: relative;
  color: #ffffff;
}
.card-icon {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
}
.card-icon img {
  width: 100%;
  border-radius: 50%;
  border: 1px solid #ffffff;
  background: #33333385;
  box-sizing:border-box;
  padding:5px
}
.card-title {
  font-weight: 700;
  margin-bottom: 0px;
}
.card-text {
  margin-bottom: 20px;
  height:55px;
}
.card-btn {
  display: inline-block;
  padding: 8px 20px;
  border-bottom: bpx solid #f9eadc;
  border-right: 0px solid #f9eadc;
  background: #f9eadc;
  color: #333;
  border-radius: 25px;
  font-size: 16px;
}
.card-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid #fff;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px auto 0;
  transition: 0.3s;
}

.card-arrow .arrow {
  width: 8px;
  height: 8px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.card:hover .card-arrow {
  background: #fff;
  border-color: #fff;
}

.card:hover .card-arrow .arrow {
  border-color: #333;
}
.card-bottom-stripe {
  position:absolute;
  height: 4px;
  width: 100%;
  bottom:0;
  background: repeating-linear-gradient(
    45deg,
    #333,
    #333 15px,    
    #fff 12px,
    #fff 18px
  );
}
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-btn {
    display: none;
  }

  .desktop {
    display: none;
  }
  .cards {
  gap: 20px;
}
.card-content {
  padding: 50px 15px 30px;
}
.card-text {
  margin-bottom: 0px;
  height:95px;
}
.card-bottom-stripe {
  height: 3px;
}
}

@media (min-width: 769px) {
  .mobile {
    display: none;
  }
}