
.flip-card {
  perspective: 1000px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.flip-card--text {
  height: 220px;
}

.flip-card--image {
  height: 320px;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.flip-card__front {
  padding: 1rem;
}

.flip-card__back {
  transform: rotateY(180deg);
  padding: 1rem;
  background: #0d6efd;
  color: #fff;
}

.flip-card--image .flip-card__front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.container {
  max-width: 800px;
  margin: auto;
}

.card {
  width: 500px;
  height: 350px;
  margin: 50px auto;
  perspective: 1000px;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  border-radius: 10px;
}

.card-front {
  background: #fc0570;
  color: white;
  border-radius: 10px;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.card-back {
  background: #057dfc;
  color: white;
  transform: rotateY(180deg);
}