.services-card-holder {
  display: flex;
  max-width: 1400px;
  padding: 200px 0;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
  align-self: stretch;
}

.service-card-label h2 {
  font-size: 60px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 1.8px;
  text-transform: capitalize;
  text-align: center;
}

.service-card-label h2 span {
  color: #0A4B7D;
  display: inline-block;
}

.hover-3d-slider {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
  perspective: 880px;
  position: relative;
  width: 880px;
  flex-grow: 0;
  flex-shrink: 0;
}

.hover-3d-slide {
  width: 300px;
  margin-left: -120px;
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative;
  transition: transform 0.5s ease, opacity 0.5s ease, margin 0.5s ease;
  transform: rotateY(-35deg);
}

.hover-3d-slide:first-child {
  margin-left: 0;
}

.hover-3d-card {
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3.3px 3.3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border-radius: 7.402px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%), #C4212E;
  box-shadow: 0 2.961px 2.961px 0 rgba(0, 0, 0, 0.25);
}

.hover-3d-card-image {
  height: 355px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
}

.hover-3d-text {
  color: #FFF;
  text-align: center;
  font-family: "ringold-sans", sans-serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.844px;
  line-height: 36px;
  text-transform: capitalize;
  padding: 20px 0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

a:hover {
  text-decoration: none;
}

.hover-3d-slide.active-default{
  transform: rotateY(0deg) translateZ(60px);
  margin: 0 40px;
  z-index: 5;
}

.hover-3d-slider:hover .hover-3d-slide:not(:hover):not(.active-default) {
  transform: rotateY(-35deg);
  margin-left: -120px;
}

.hover-3d-slider:hover .hover-3d-slide.active-default:has(~ .hover-3d-slide:hover),
.hover-3d-slider:hover .hover-3d-slide.active-default:hover~.hover-3d-slide:hover {
  transform: rotateY(-35deg);
  margin-left: -120px;
}

.hover-3d-slide:hover {
  transform: rotateY(0deg) translateZ(60px) !important;
  margin: 0 40px !important;
  z-index: 10;
}

.hover-3d-slide:nth-child(1) {
  z-index: 10;
}

.hover-3d-slide:nth-child(2) {
  z-index: 9;
}

.hover-3d-slide:nth-child(3) {
  z-index: 8;
}

.hover-3d-slide:nth-child(4) {
  z-index: 7;
}

.hover-3d-slide:nth-child(5) {
  z-index: 6;
}

.hover-3d-slide:nth-child(6) {
  z-index: 5;
}

.hover-3d-slide:nth-child(7) {
  z-index: 4;
}

.hover-3d-slide:nth-child(8) {
  z-index: 3;
}

.hover-3d-slide:nth-child(9) {
  z-index: 2;
}

.hover-3d-slide:nth-child(10) {
  z-index: 1;
}
@media only screen and (max-width: 1520px) {
  .hover-3d-slider {
    perspective: 780px;
    width: 780px;
  }
}
@media only screen and (max-width: 1440px) {
  .services-card-holder{
    gap: 10px;
  }
  .hover-3d-slider {
    perspective: 710px;
    width: 710px;
  }
  .hover-3d-card-image{
    height: 280px;
  }
  .hover-3d-text{
    font-size: 24px;
  }
}
@media only screen and (max-width: 1240px) {
  .service-card-label h2 span{
    display: block;
  }
  .services-card-holder{
    flex-direction: column;
  }
  .hover-3d-slider {
    perspective: 100%;
    width: 100%;
  }
}
@media only screen and (max-width: 959px) {
  .services-card-holder{
    padding: 70px 0;
  }
  .hover-3d-text{
    padding: 14px 0;
font-size: 18px;
font-weight: 400;
line-height: normal;
letter-spacing: 0.551px;
  }
  .service-card-label h2 {
    font-size: 40px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 1.2px;
  }

  .hover-3d-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
    perspective: none !important;
    padding: 0;
  }

  /* Each slide becomes a normal block */
  .hover-3d-slide {
    margin: 0 !important;
    transform: none !important;
    position: relative;
    width: 100%;
    z-index: auto !important;
    cursor: pointer;
  }

  /* No hover transforms on mobile */
  .hover-3d-slide:hover {
    transform: none !important;
    margin: 0 !important;
    z-index: auto !important;
  }

  /* Remove negative margins and forced layout */
  .hover-3d-slide:first-child {
    margin-left: 0 !important;
  }

  /* Remove active-default forced transform */
  .hover-3d-slide.active-default {
    transform: none !important;
    margin: 0 !important;
  }

  /* Ensure image height is smaller for mobile */
  .hover-3d-card-image {
    height: 220px;
  }


}
@media only screen and (max-width: 768px) {
  .hover-3d-card-image {
  	height: 150px;
  }
}
@media only screen and (max-width: 420px) {
  .hover-3d-slider{
    gap: 15px;
  }
}
