.testimonial-slider__wrapper {
    position: relative;
    width: 100%;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    padding-top: 20px !important;
}

.testimonial-slider__item {
    height: auto;
    width: 100%;
    max-width: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
    .testimonial-slider__item {
        width: 100%;
        max-width: 390px;
    }
}

@media screen and (min-width: 1200px) {
    .testimonial-slider__item {
        max-width: 450px;
    }
}

.testimonial-slider__flip-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    perspective: 1000px;
    cursor: pointer;
}

.testimonial-slider__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.testimonial-slider__card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotateY(0deg);
}

.testimonial-slider__card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
}

.testimonial-slider__flip-container.flipped .testimonial-slider__card-front {
    transform: rotateY(-180deg);
}

.testimonial-slider__flip-container.flipped .testimonial-slider__card-back {
    transform: rotateY(0deg);
    box-shadow: 0px 8px 35px 0px #6363631F;
}

.testimonial-slider__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.testimonial-slider__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-slider__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(28, 154, 149, 0) 19.8%, rgba(28, 154, 149, 0.95) 74.92%);
    z-index: 2;
    pointer-events: none;
}

.testimonial-slider__overlay-back {
    background: linear-gradient(180deg, rgba(28, 154, 149, 0) -10%, rgba(28, 154, 149, 0.8) 50%, rgba(28, 154, 149, 0.85) 100%);
}

.testimonial-slider__content-back {
    color: var(--color-custom, #06353C);
    justify-content: center;
}

.testimonial-slider__content-back .testimonial-slider__text p {
    color: var(--color-custom, #06353C);
}

.testimonial-slider__content {
    position: relative;
    padding: 30px;
    color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 3;
}

.testimonial-slider__card-back .testimonial-slider__content {
    justify-content: flex-start;
}

.testimonial-slider__quote {
    font-weight: 600;
    font-size: 80px;
    line-height: 29px;
    letter-spacing: 5%;
    text-transform: capitalize;
}

.testimonial-slider__quote-icon svg {
    width: 30px;
    height: 30px;
}

.testimonial-slider__text {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    /* flex-grow: 1; */
}


.testimonial-slider__text-full {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    text-overflow: unset;
    margin-bottom: 0;
}

.testimonial-slider__name {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-custom, #06353C);
}

.testimonial-slider__text p {
    margin: 0 0 15px 0;
    color: #fff;
}

.testimonial-slider__text p:last-child {
    margin-bottom: 0;
}

.testimonial-slider__rating-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* margin-top: auto; */
}

.testimonial-slider__rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

button.testimonial-slider__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #FFFFFF26 !important;
    padding: 0 !important;
    border: 1px solid #F1F1F180 !important;
    border-radius: 8px !important;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, outline 0.2s ease;
    padding: 0;
}

button.testimonial-slider__arrow:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

button.testimonial-slider__arrow:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.2) !important;
}

.testimonial-slider__star {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease;
}

.testimonial-slider__star.active {
    color: #fff;
}

.testimonial-slider__star svg {
    width: 25px;
    height: 25px;
}

/* Swiper Navigation */
.testimonial-slider__navigation {
    margin-top: 45px;
    gap: 30px;
}

button.testimonial-slider__navigation-prev,
button.testimonial-slider__navigation-next {
    cursor: pointer;
    transition: all 0.3s ease;
    width: 47px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

button.testimonial-slider__navigation-prev:focus,
.testimonial-slider__navigation-next:focus {
    outline: 2px solid #06353C;
    outline-offset: 4px;
    border-radius: 4px;
}

button.testimonial-slider__navigation-prev:hover {
    transform: translateX(-5px);
}

button.testimonial-slider__navigation-next:hover {
    transform: translateX(5px);
}

button.testimonial-slider__navigation-prev.swiper-button-disabled,
button.testimonial-slider__navigation-next.swiper-button-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

button.testimonial-slider__navigation-prev.swiper-button-disabled:focus,
button.testimonial-slider__navigation-next.swiper-button-disabled:focus {
    outline: none;
}

@media screen and (max-width: 767px) {
    .testimonial-slider__wrapper {
        padding-inline: 20px;
    }

    .testimonial-slider__content{
        padding: 20px;
    }

    .testimonial-slider__navigation{
        margin-top: 35px;
    }

    .testimonial-slider__navigation-prev,
    .testimonial-slider__navigation-next {
        width: 35px;
    }

    .testimonial-slider__navigation-prev svg,
    .testimonial-slider__navigation-next svg {
        width: 100%;
    }
}