/* New parent container styles for layout */
.flip-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* Ensures three cards fit side by side */
}

/* Existing .flip-card styles */
.flip-card {
  background-color: transparent;
  width: 500px; /* Adjusted width for three cards */
  height: 500px;
  border: 0px solid #f1f1f1;
  perspective: 1000px; /* 3D effect */
  margin: 10px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s !important; /* Ensure transition applies */
  transform-style: preserve-3d !important; /* 3D effect preserved */
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg) !important; /* Ensure rotation happens on hover */
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: #bbb;
  color: black;
}

.flip-card-back {
  background-color: dodgerblue;
  color: white;
  transform: rotateY(180deg);
}

.image-container {
  position: relative;
  width: 100%;
  height: auto;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
}

.learn-more-box-hp {
  position: absolute;
  bottom: 10px; /* Adjust the vertical positioning */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5); /* Optional: add background for contrast */
  color: white;
  padding: 10px;
  font-size: 18px;
  text-align: center;
  z-index: 1; /* Ensure it overlaps the image */
}
