.custom-slider {
  position: relative;
  height: 105vh;
  overflow: hidden;
}
.custom-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flip-card {
  background: transparent;
  width: 100%;
  max-width: 100%;
  height: 100%;
  perspective: 1000px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front h2 {
  font-size: 72px;
  font-weight: 600;
  font-family: Nunito;
  width: 55%;
  text-align: center;
}
.flip-card-front p {
  font-size: 22px;
  font-weight: 400;
  font-family: "Nunito";
  text-align: center;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 95%;
  backface-visibility: hidden;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 55px;
}

.flip-card-back {
  transform: rotateY(180deg);
}
.slide-nav {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.slide-nav button {
  margin: 5px 0;
  padding: 10px;
  background: rgb(255 255 255 / 7%);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}
button:hover {
  background: #333;
}
.flip-card-front button {
  color: white;
  background: #1d00ff;
  border: none;
  border-radius: 30px;
  padding: 10px 40px;
}
.flip-card-front button:focus {
  color: white;
  background: #1d00ff;
}
.flip-card-back button {
  color: white;
  background: #1d00ff;
  border: none;
  border-radius: 30px;
  padding: 10px 40px;
}
.flip-card-back button:focus {
  color: white;
  background: #1d00ff;
}
.flip-card-back button:hover {
  color: white;
  background: #1d00ff;
}
.flip-card-front button:hover {
  color: white;
  background: #1d00ff;
}
.slide-nav button:hover {
  color: white;
  background: #1d00ff;
}

.slide-nav button:active {
  color: white;
  background: #1d00ff;
}
.slide-nav button:focus {
  color: white;
  background: #1d00ff;
}
/* Overlay effect */
.flipping-slide {
  position: relative;
  overflow: hidden;
}

.flipping-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

/* Slide transition effect */
.flipping-slide {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.flipping-slide.active {
  opacity: 1;
  z-index: 2;
}

@media only screen and (max-width: 470px) {
  .flip-card-front,
  .flip-card-back {
    padding: 15px;
  }
  .flip-card-front h2 {
    font-size: 32px;
    font-weight: 600;
    font-family: Nunito;
    width: 92%;
    text-align: center;
  }
  .flip-card-front p {
    font-size: 14px;
    font-weight: 400;
    font-family: Nunito;
    text-align: center;
  }
  .flip-card-back p {
    font-size: 12px;
  }
  .custom-slider {
    position: relative;
    height: 130vh;
    overflow: hidden;
  }
  .slide-nav {
    position: absolute;
    right: 30%;
    top: 92%;
    gap: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    z-index: 10;
  }
   .flip-card-front, .flip-card-back {
    height: 80vh !important;
    padding-top: 100px !important;
    padding-bottom: 100px !important;
    /*margin-top: -60px;*/
    }
}
.slide-nav button {
  border-radius: 05px !important;
}
@media (min-width: 429px) and (max-width: 1024px) {
  .flip-card-front,
  .flip-card-back {
    padding: 15px;
  }
  .flip-card-front h2 {
    font-size: 42px;
    font-weight: 600;
    font-family: Nunito;
    width: 75%;
    text-align: center;
  }
  .flip-card-front p {
    font-size: 18px;
    font-weight: 400;
    width: 75%;
    font-family: Nunito;
    text-align: center;
  }
  .flip-card-back p {
    font-size: 14px;
    line-height: 1.2em;
  }
  .custom-slider {
    position: relative;
    height: 110vh;
    overflow: hidden;
  }
  .slide-nav {
    position: absolute;
    right: 42%;
    top: 93%;
    gap: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    z-index: 10;
  }

  .flip-card-back .back-content-wrapper {
    max-height: 300px !important;
    overflow-y: auto !important;
    padding: 10px;
  }

  /* Optional: Style the scrollbar for better UX */
  .flip-card-back .back-content-wrapper::-webkit-scrollbar {
    width: 6px;
  }
  .flip-card-back .back-content-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }

  /* Ensure fixed height on flip card for mobile */
  @media (max-width: 768px) {
    .flip-card,
    .flip-card-inner {
      height: 100%;
      max-height: 400px;
    }
    .flip-card-back {
      overflow: hidden;
    }
  }
}
.back-content-wrapper{
  display: grid;
  justify-content: center;
}
@media (min-width: 471px) and (max-width: 768px) {
  .flip-card-front, .flip-card-back{
    height:99vh;
    /*margin-top:-195px;*/
  }
}
.read-more-toggle:hover{
    color:#f27227 !important;
}
@media (min-width: 1025px) and (max-width: 1420px){
.elementor-74 .elementor-element.elementor-element-d05ba93{
    display:none;
}
}