.card-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.card {
  width: 100%;
  height: 400px;
  perspective: 1000px; /* 3D effect */
  overflow: hidden; /* Clip the overflowing background */
  border-radius: 30px; /* Ensure border radius is consistent */
}

.card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.card:hover .card-inner {
  transform: scale(1.05); /* Slight scale effect on hover */
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 30px; /* Ensure border radius is consistent */
}

.card-front {
  background-color: #fff;
  overflow: hidden;
  position: relative;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.plus-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #00bf62;
  border-radius: 50%;
  bottom: 10px;
  color: #fff;
  font-size: 24px;
  padding: 10px;
  position: absolute;
  right: 10px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  transition: opacity 0.3s ease; /* Fade effect */
}

.card:hover .plus-icon {
  opacity: 0; /* Fade out the plus icon */
}

/* Back Side */
.card-back {
  background-color: transparent;
  color: #333;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transform: rotateY(180deg); /* Initially hidden */
  border-radius: 30px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1; /* Ensure it stays behind the content */
  visibility: hidden; /* Initially hidden */
  opacity: 0; /* Make it invisible initially */
  transition: opacity 0.6s ease, visibility 0s 0.6s; /* Fade in opacity smoothly */
  text-align:start;
}

.card-back p {
  font-size: 14px;
  color: #fff;
  margin-bottom: 20px;
  font-weight:bold;
}

.card-back h4 {  
  color: #fff;
}
.card-back h4 span{  
  color: #000;
}

.ratings {
  display: flex;
  gap: 3px;
  justify-content: start;
}

.star {
  color: #fff;
  font-size: 22px;
  padding:2.5px;
}

/* Background Layer */
.card-background {
  position: absolute;
  width: 0%;
  height: 0%;
  bottom: 0;
  right: 0;
  background-color: #00bf62; /* Green color for the background */
  border-radius: 30%;
  z-index: 0;
  transition: all 1.5s ease; /* Slower transition */
}

/* Keyframes for bubble animation */
@keyframes bubbleEffect {
  0% {
    width: 10%;
    height: 10%;
    transform: scale(0) translate(50%, 50%);
  }
  50% {
    width: 200%;
    height: 200%;
    transform: scale(1) translate(50%, 50%); /* Keep the center at the bottom-right */
  }
  100% {
    width: 400%;
    height: 400%;
    transform: scale(1) translate(50%, 50%);
  }
}

/* Animation: Apply the bubble effect on hover */
.card:hover .card-background {
  animation: bubbleEffect .5s cubic-bezier(0.4, 0, 1, 1) forwards; /* Animation persists after it completes */
}

/* Make the back content visible on hover */
.card:hover .card-back {
  visibility: visible; /* Make the content visible on hover */
  opacity: 1; /* Fade-in the content */
  transform: rotateY(0deg); /* Rotate to show the back */
  z-index: 2; /* Ensure it appears above the background */
  transition: opacity 0.6s ease, visibility 0s 0.3s; /* Ensure the visibility change is delayed until the opacity transition ends */
}

/* On hover, the front card is covered by the back card */
.card:hover .card-front {
  z-index: 0; /* Send front card under the back card */
}


/* Mobile styles */
@media (max-width: 768px) {

  /**/


  .card-container{
    flex-direction:column;
  }

  /* Adjust card size for mobile */
  .card {
    width: 100%;
    height: 500px;
    margin-bottom: 20px; /* Add space between stacked cards */
  }

  /* Adjust icon size */
  .plus-icon {
    font-size: 18px;
    width: 35px;
    height: 35px;
    padding: 8px;
  } 

  /* Make the front image more responsive */
  .card-front img {
    height: 100%; /* Adjust image size proportionally */
  }

}

/* Small screen sizes for mobile */
@media (max-width: 480px) {
  .card {
    width: 100%;
    height: 450px; /* Keep the height reasonable */
  }

  /* Make the plus icon smaller on very small screens */
  .plus-icon {
    font-size: 16px;
    width: 30px;
    height: 30px;
    padding: 5px;
  }  

}

/* Card front/back visibility on touch devices */
.card:hover .card-back {
  visibility: visible;
  opacity: 1;
  transform: rotateY(0deg);
  z-index: 2;
  transition: opacity 0.6s ease, visibility 0s 0.3s;
}

.card:hover .card-front {
  z-index: 0;
}


/* MOBILE TOGGLE */

.card.is-flipped .card-inner {
  transform: scale(1.05); /* or rotateY(180deg) if you have flipping */
}

.card.is-flipped .card-back {
  visibility: visible;
  opacity: 1;
  transform: rotateY(0deg);
  z-index: 2;
  transition: opacity 0.6s ease, visibility 0s 0.3s;
}

.card.is-flipped .card-front {
  z-index: 0;
}

.card.is-flipped .card-background {
  animation: bubbleEffect 0.5s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.card.is-flipped .plus-icon {
  opacity: 0;
}

.custom-swiper-button-next,
.custom-swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  color: #00bf62; /* Green color */
  background: none; /* Remove background */
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Positioning */
.custom-swiper-button-prev {
  left: 10px;
}

.custom-swiper-button-next {
  right: 10px;
}

/* Pagination Container */
.custom-swiper-pagination {
  position: relative !important;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Pagination Dots */
.swiper-pagination-bullet {
  background: #666666!important;
  opacity: 1 !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 4px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Active Dot */
.swiper-pagination-bullet-active {
  background-color: #00bf62 !important;
  border-color: #00bf62 !important;
  opacity: 1;
}



{#---------ARROW---------#}
.animatedcardsslider__navigation .swiper-control-prev,
.animatedcardsslider__navigation .swiper-control-next {
  cursor: pointer;
  position: absolute;
}

.animatedcardsslider__navigation .swiper-control-prev {
  left: -26px!important;
  z-index: 1;
}

.animatedcardsslider__navigation .swiper-control-next {
  right: -26px!important;
  z-index: 1;
}

.animatedcardsslider .swiper-slide{
  margin-top:20px;
}
.animatedcardsslider__container{
  position:relative;
}
.animatedcardsslider__navigation{
  position: absolute;
  top:45%;
  z-index:4;
  width:100%;
}
.animatedcardsslider-arrow svg{
  width:20px;
  fill:var(--primary);
}
.swiper-button-disabled .animatedcardsslider-arrow svg{
  fill:#00b6208f;
  cursor:default;
}
@media(max-width:992px){
  .animatedcardsslider__navigation .swiper-control-prev {
    left: -17px!important;
  }

  .animatedcardsslider__navigation .swiper-control-next {
    right: -17px!important;
  }
  .animatedcardsslider-arrow svg{
    width:15px;
  }
}


@media (max-width: 992px) {
  .bouncerotate {
    animation: bouncerotate 2s ease infinite;
  }

  .plus-icon{
    width:45px;
    height:45px;    
  }
}

@keyframes bouncerotate {
  70% { transform: translateY(0%) rotate(0deg); }
  80% { transform: translateY(-15%) rotate(-20deg); }
  90% { transform: translateY(0%) rotate(-10deg); }
  95% { transform: translateY(-7%) rotate(-12deg); }
  97% { transform: translateY(0%) rotate(-6deg); }
  99% { transform: translateY(-3%) rotate(-8deg); }
  100% { transform: translateY(0%) rotate(0deg); }
}