.cards {
  position: relative;
  width: 250px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 12px;
  border-radius: 8px;
  cursor: pointer;
  color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 0 20px 1px var(--body_text);
}

.cards::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -5px;
  margin: auto;
  width: 200px;
  height: 264px;
  border-radius: 10px;
  background: linear-gradient(-45deg, #f71b1b 0%, #9d9d9d 100% );
  z-index: -10;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cards::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(-45deg, #5499d5 0%, #7323e4 100% );
  transform: translate3d(0, 0, 0) scale(0.95);
  filter: blur(20px);
}

.heading-card {
  font-size: 1rem;
  text-transform: capitalize;
  font-weight: 700;
  color: white;
}

.cards p:not(.heading-card) {
  font-size: 0.8rem;
}

.cards p:last-child {
  color: #ffffff;
  font-weight: 600;
}

.cards:hover::after {
  filter: blur(30px);
}

.cards:hover::before {
  transform: rotate(-90deg) scaleX(1.34) scaleY(0.77);
}

.cards-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-direction: column;
}

.cards-text {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 16px;
  background: transparent;
  backdrop-filter: blur(10px);
  border-radius: 0 0 6px 6px;
}

.cards img, .cards video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.cards p {
  color: #ffffff;
}

@media (min-width: 1024px) {
  .cards-wrapper {
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  }

}