.flipbox {
  width: 100%;
  height: 100%;
  perspective: 1000px;
  margin: 0;
  /* remove the margin */
  padding: 0;
  /* remove the padding */
}

.flipbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border: 3px solid #24346a;
  border-radius: 12px;
  
}

.flipbox:hover .flipbox-inner {
  transform: rotateY(180deg);
}
@media (max-width: 1100px) and (min-width: 912px) {
  .flipbox:hover .flipbox-inner {
    transform: rotateY(180deg) translateX(-100px)!important;
   
  }
}

.flipbox-front,
.flipbox-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.flipbox-front {
  background: #ffffff;
  /* yellow-500 */
  color: #000;
}

.flipbox-front img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  margin-bottom: -15px;
}

.flipbox-back {
  background: #ffffff;
  /* yellow-600 */
  color: #24346a;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
  /* Hide overflow */
}

.flipbox-back p {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  width: 100%;
  padding: 0 10px;
  /* Optional padding for spacing */
  box-sizing: border-box;
  white-space: normal;
  /* Ensure wrapping */
  height: auto;
  /* Let it grow vertically */
  max-height: fit-content;
  /* Ensure it fits within flipbox */
  max-width: fit-content;
}

.flipbox-front h3 {
  font-size: 1.4rem;
  text-align: center;
  padding: 0 10px;
  display: inline-block;
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
}

