.testimonial-slider.fx-slider .fx-slide {
    display: block;
}

.testimonial-slider.fx-slider .fx-slide:nth-child(n+4) {
    display: none;
}

.testmonials__left .sub-heading {
    font-size: 24px;
    text-transform: capitalize;
}

.testmonials.testmonials-padding {
    position: relative;
    overflow: hidden;
}

.testmonials__left h2 {
    text-transform: capitalize;
}

.testimonial-item {
    margin: 24px 0 0;
    padding: 54px 45px 35px 25px;
    background: var(--navy);
    border-radius: 12px;
    position: relative;
    color: var(--white);
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.testimonial-item:after {
    content: "\e90f";
    font-family: 'infinite-networks-icon';
    width: 58px;
    height: 58px;
    position: absolute;
    left: 25px;
    top: -24px;
    background: radial-gradient(55% 55% at 26% 67%, #2A876C 0%, #157F99 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
}

.testmonials__left {
    margin: 0 0 22px;
}

.testimonial-slider {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-bottom {
    margin: 35px 0 0;
}

.testimonial-bottom p {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2em;
    margin: 0 0 5px;
}

.testimonial-bottom h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--white);
}

.testimonial-desription--scroll {
    overflow: auto;
    max-height: 216px;
    padding: 0 16px 0 0;
    margin: 0 -20px 65px 0;
}

.testimonial-desription--scroll::-webkit-scrollbar {
    width: 10px;
}

.testimonial-desription--scroll::-webkit-scrollbar-track {
    background: var(--blue);
}

.testimonial-desription--scroll::-webkit-scrollbar-thumb {
    background: var(--green);
}

.testimonial-desription--scroll::-webkit-scrollbar-thumb:hover {
    background: var(--teal);
}

.testmonials__right__btn {
    margin: 35px 0 0;
    text-align: center;
}

.testmonials__right__btn .btn {
    color: var(--white);
}

.testmonials__right {
    padding: 0 0 65px;
}

.testmonials__wrapper {
    position: relative;
    z-index: 1;
}

.testmonials__wrapper:after {
    content: "";
    position: absolute;
    left: -81px;
    width: 848px;
    height: 471px;
    background: var(--blue);
    bottom: 0;
    z-index: -1;
    clip-path: polygon(13% 0%, 100% 0, 100% 100%, 0% 100%);
}

.testmonials__right__btn .btn::after {
    color: var(--teal);
}

.testmonials:has(~ .testmonials) {
    margin-bottom: 0;
}

.bg-light-blue .testmonials__wrapper::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 40%, rgba(230, 255, 248, 1) 100%);
    bottom: -65px;
}

.bg-light-blue .testmonials__right {
    padding: 0;
}

.bg-light-blue .testmonials__right__btn .btn {
    color: var(--true-black);
}

.testmonials-padding {
    padding: 65px 0;
}

.testmonials-padding.bg-darkest-navy {
    background: #fff;
}

.testmonials-padding.bg-darkest-navy .sub-heading, 
.testmonials-padding.bg-darkest-navy .sub-heading p,
.testmonials-padding.bg-darkest-navy .testmonials__left h2,
.testmonials-padding.bg-darkest-navy .testmonials__left h3,
.testmonials-padding.bg-darkest-navy .testmonials__left h4,
.testmonials-padding.bg-darkest-navy .testmonials__left h5,
.testmonials-padding.bg-darkest-navy .testmonials__left h6,
.testmonials-padding.bg-darkest-navy p a {
    color: #000;
}

.home .testmonials-padding.bg-darkest-navy .sub-heading {
    color: var(--blue);
}

.home .testmonials-padding.testmonials {
    padding-top: 0;
}

.testmonials-padding.bg-darkest-navy .testmonials-curve path {
    fill: #fff;
}

.bg-darkest-navy.testmonials-padding .btn-tertiary::before {
    background: #fff;
}

.bg-darkest-navy.testmonials-padding .btn-tertiary {
    color: #152630;
}

.bg-darkest-navy.testmonials-padding .btn-tertiary:hover {
    color: var(--green);
}

.bg-darkest-navy.testmonials-padding .btn-tertiary::after {
    opacity: 1;
}

.testmonials__left > .hidden-md-down + .btn {
    margin-top: 25px;
}

@media(min-width: 768px) {
    .testimonial-slider .slick-slide {
        margin: 0 16px;
        height: auto;
    }

    .testimonial-slider .slick-slide>*,
    .testimonial-slide {
        height: 100%;
    }

    .testimonial-item {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin: 0;
    }

    .testimonial-slider .slick-track {
        display: flex;
        padding-top: 24px;
        margin-top: 9px;
    }

    .testimonial-slider {
        margin: 0 -52px;
        padding: 0 11px 62px;
    }

    .testimonial-slider .slick-arrow {
        width: 35px;
        height: 35px;
        left: unset;
        right: 37px;
    }

    .testimonial-slider .slick-prev {
        right: 86px;
    }

    .testimonial-slider .slick-arrow:before {
        font-size: 12px;
    }

    .testimonial-slider ul.slick-dots {
        bottom: 12px;
        right: 159px;
        left: unset;
        transform: unset;
    }

    .testmonials__right__btn {
        margin: -38px 0 0;
    }

    .testmonials__right {
        padding: 0 0 50px;
    }

    .testmonials-curve {
        position: absolute;
        left: 51px;
        bottom: 0;
        height: 472px;
        z-index: -1;
    }

    .testmonials__wrapper:after {
        left: unset;
        width: calc(100% - 10px);
        right: -52px;
        height: 472px;
        bottom: 0;
        clip-path: unset;
        z-index: -2;
    }

    .testmonials:has(~ .testmonials) {
        margin-bottom: 80px;
    }

    .bg-light-blue .testmonials__wrapper::after {
        background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 40%, rgba(230, 255, 248, 1) 100%);
        bottom: 0;
    }

    .bg-light-blue .testmonials__right {
        padding: 0 0 60px;
    }

    .bg-light-blue .slick-arrow {
        border-color: var(--true-black);
        color: var(--true-black);
    }

    .bg-light-blue ul.slick-dots li button {
        background: var(--true-black);
    }

    .bg-light-blue ul.slick-dots li.slick-active button {
        background: var(--teal);
    }

    .testmonials-padding {
        padding: 80px 0 0;
    }

    .bg-light-blue .slick-arrow:hover {
        background: var(--true-black);
    }

    .bg-light-blue .slick-arrow:hover:before {
        color: var(--green);
    }
}


@media(min-width: 1200px) {
    .testmonials__wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .testmonials__left {
        width: 40%;
        margin: 0;
    }

    .testmonials__right {
        width: calc(60% - 48px);
        padding: 75px 0;
    }

    .testimonial-slider {
        margin: 0 -63px 0 -16px;
        padding: 0 0 85px;
    }

    .testimonial-slider .slick-slide {
        margin: 0 16px;
        height: auto;
        width: 424px;
    }

    .testimonial-item {
        padding: 86px 52px 50px 25px;
    }

    .testimonial-desription--scroll {
        max-height: 231px;
        margin: 0 -20px 0 0;
    }

    .testmonials__wrapper:after {
        width: calc(61% - 10px);
        right: -63px;
        height: 100%;
        bottom: unset;
        top: 0;
    }

    .testmonials-curve {
        left: calc(44% - 22px);
        bottom: unset;
        height: calc(100% + 2px);
        top: -1px;
    }

    .testimonial-slider .slick-arrow {
        width: 44px;
        height: 44px;
        right: 43px;
    }

    .testimonial-slider .slick-prev {
        right: 101px;
    }

    .testimonial-slider ul.slick-dots {
        right: 204px;
    }

    .testimonial-item:after {
        width: 75px;
        height: 75px;
        font-size: 39px;
    }

    .testmonials:has(~ .testmonials) {
        margin-bottom: 100px;
    }

    .bg-light-blue .testmonials__wrapper::after {
        background: linear-gradient(91deg, var(--white) 0%, #D2FFF2 81.66%);
        width: calc(63% - 10px);
        height: calc(100% + 100px);
        top: -100px;
        clip-path: polygon(20% 0%, 100% 1%, 100% 100%, 0% 100%);
    }

    .bg-light-blue .testmonials__right {
        padding: 0 0 75px;
    }

    .testmonials--inner {
        padding-bottom: 0;
        margin-bottom: 100px;
    }

    .testmonials-padding {
        padding: 75px 0 0;
    }

    .testimonial-slider .slick-arrow:before {
        font-size: 15px;
    }

    .testmonials__left .sub-heading {
        font-size: 28px;
    }
}

@media(min-width: 1600px) {
    .testmonials__wrapper:after {
        width: calc(53% - 10px);
    }

    .testimonial-bottom p {
        font-size: 20px;
    }

    .testimonial-bottom h3 {
        font-size: 28px;
    }

    .testmonials-curve {
        left: calc(51% - 24px);
    }

    .testmonials__right {
        padding: 100px 0;
    }

    .testmonials__left {
        width: 39%;
    }

    .testmonials {
        position: relative;
    }

    .testmonials:after {
        content: "";
        position: absolute;
        right: -81px;
        width: 40%;
        height: 100%;
        background: var(--blue);
        bottom: 0;
        z-index: -1;
    }

    .testimonial-slider {
        margin: 0 0 0 -16px;
        padding: 0 0 95px;
    }

    .testimonial-slider .slick-list {
        width: 2000px;
    }

    .testimonial-slider .slick-arrow {
        right: 130px;
    }

    .testimonial-slider .slick-prev {
        right: 187px;
    }

    .testimonial-slider ul.slick-dots {
        right: 290px;
    }

    .testmonials__left .btn {
        margin: 20px 0 0;
    }

    .testmonials:has(~ .testmonials),
    .testmonials--inner {
        margin-bottom: 125px;
    }

    .bg-light-blue .testmonials__wrapper::after {
        background: linear-gradient(91deg, var(--white) 0%, #D2FFF2 81.66%);
        width: calc(54% - 10px);
        height: calc(100% + 125px);
        top: -125px;
        clip-path: polygon(20% 0%, 100% 1%, 100% 100%, 0% 100%);
        background: linear-gradient(91deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 30%, rgba(241, 255, 251, 1) 60%, #e6fff9 90%, #e6fff9 100%);
    }

    .bg-light-blue .testmonials__right {
        padding: 0 0 100px;
    }

    .testmonials-padding {
        padding: 100px 0 0;
    }
}


@media(max-width: 767px) {
    .testmonials+.section-margins {
        margin-top: 0 !important;
    }
}