.icon-box-carousel {
    overflow: hidden;
    position: relative;
    padding: 50px 0;
    margin-top: -50px;
    margin-bottom: -50px;
}
.icon-box-carousel .swiper-slide {
    overflow: visible !important;
}
.icon-box {
    position: relative;
    height: 282px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.icon-box i {
    display: block;
    font-size: 40px;
    margin-bottom: 25px;
}
.icon-box .wrap {
    position: relative;
    overflow: hidden;
    height: 100%;
/*     background: rgba(0, 0, 0, 0.3); */
    outline: 1px solid #3d3d3d;
    padding: 40px 11.02941% 40px 18.38235%;
    transition: all 300ms linear;
    min-height: 100%;
}
.icon-box .sub-h {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #D81023;
}
.icon-box .bg {
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transform: scale(1);
    transition: all 300ms ease-in-out;
}
/* Mirror desktop :hover when mobile JS toggles .is-hovered */
.icon-box.is-hovered .bg{
  opacity: 1;
  transform: scale(1.1);
}

/* On touch (JS adds .touch-mode on the wrapper), ignore :hover and rely on .is-hovered */
.icon-box-carousel.touch-mode .icon-box:hover .bg{
  opacity: 0;
  transform: scale(1);
}
.icon-box-carousel.touch-mode .icon-box:hover .wrap{
  height: 100%;
  margin: 0;
}
.icon-box-carousel.touch-mode .icon-box:hover .dropdown{
  display: none;
}

/* Smooth bg transition (helps both hover and tap) */
.icon-box .bg{
  transition: all 300ms ease-in-out;
}


.icon-box:hover .bg {
    opacity: 1;
    transform: scale(1.1);
}
/* .icon-box .bg:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 300ms ease-in-out;
} */

.icon-box:hover .bg:before {
    opacity: 0;
    scale: ;
}

.button-style-icobox {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Controls spacing between text and icon */
}

.button-style-icobox i {
    line-height: 1;
    display: inline-block;
}


.icon-box .content {
    position: relative;
    z-index: 2;
}

.icon-box h5.h {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.icon-box .h {
    line-height: 1.25;
    margin: 0;
}
.icon-box .h:after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    margin: 25px 0 10px;
    background: #D81023;
}
.icon-box .dropdown {
    display: none;
    width: 100%;
}

.icon-box .dropdown .desc {
    margin-bottom: 10px;
    color: #fff;
}
.icon-box .desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.28571;
    color: #b1b0b0;
    letter-spacing: .025em;
}
.icon-box .button-style-icobox {
    display: inline-block;
    color: #D81023;
    background-color: transparent;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
    padding: 10px 0;
}

/* Swiper navigation */
.icon-box-carousel .swiper-button-next,
.icon-box-carousel .swiper-button-prev {
    color: #D81023;
    transition: color 0.3s ease;
}

.icon-box-carousel .swiper-button-next:hover,
.icon-box-carousel .swiper-button-prev:hover {
    color: #000;
}

/* Pagination */
.icon-box-carousel .swiper-pagination-bullet {
    background: #D81023;
    opacity: 1;
}

.icon-box-carousel .swiper-pagination-bullet-active {
    background: #000;
}
.elementor-edit-mode .icon-box {
    outline: 1px dashed #ccc; /* Visual cue for editing */
}

.icon-box-carousel.swiper-container:not(.swiper-container-initialized)>.swiper-wrapper, .icon-box-carousel.swiper:not(.swiper-initialized)>.swiper-wrapper {
    overflow: visible;
}

@media (max-width: 479px) {
.icon-box-carousel {
    padding: 70px 0;
}
}

/* Testimonial CSS */
#blocks-testimonials .elementor-main-swiper .swiper-slide {
transition: filter 0.3s ease, opacity 0.3s ease;
position: relative;
z-index: 1;
}

#blocks-testimonials .swiper-slide.dimmed {
filter: blur(3px);
opacity: 0.4;
}

#blocks-testimonials .elementor-testimonial {
  transition: transform 0.3s ease;
}