.testimonials {
    position: relative;
    z-index: 1;
    color: var(--color-black);
}

.testimonials--inner {
    overflow: hidden;
}

.testimonials--homepage {
    padding: 50px 0;
    clip-path: polygon(0 20px, 100% 0%, 100% 100%, 0% 100%);
    margin-top: -21px;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(50% + 20px);
    background: linear-gradient(0deg, rgba(1,51,93,1) 0%, rgba(0,43,79,1) 90%); 
    clip-path: polygon(0 0, 100% 0%, 100% 98%, 0% 100%);
    z-index: -1;
}

.testimonials--inner.testimonials::before {
    content: '';
    position: absolute;
    top: 260px;
    left: 0;
    width: 100%;
    height: 1020px;
    background: linear-gradient(to bottom,  var(--color-blue) 0%,var(--color-blue-2) 100%); 
    z-index: -1;
    clip-path: polygon(0 10%, 100% 0%, 100% 100%, 0% 100%);
}

.testimonial-col__wrap::before {
    display: none;
}

.testimonials::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(50% + 101px);
    background: rgb(0,8,16);
    background: linear-gradient(0deg, rgba(0,8,16,1) 0%, rgba(0,42,78,1) 52%); 
    z-index: -2;
}

.testimonials--inner.testimonials::after {
    display: none;
}

.testimonials--team.testimonials::after {
    display: block;
    height: 360px;
    background: linear-gradient(to bottom,  var(--color-blue-2) 0%,#000810 100%);
    z-index: -1;
    clip-path: polygon(0 11%, 100% 0%, 100% 100%, 0% 100%);
}

.testimonial-heading h2 {
    color: var(--color-white);
    margin: 0;
    padding: 0 0 40px;
}

.testimonial-item-hover {
    display: none;
}

.testimonial-item {
    border-radius: 15px;
    background-color: var(--color-white);
    padding: 29px 10px 32px 32px;
    position: relative;
}

.testimonial-item::before {
    content: '\e90a';
    font-family: 'icomoon';
    color: #FFD540;
    font-size: 48px;
    position: absolute;
    top: -37px;
    left: 0;
    z-index: 2;
}

.testimonial-item-scroll {
    overflow: hidden;
    height: 195px;
    scrollbar-width: thin;
    padding-right: 12px;
    scrollbar-color: #007DC5 var(--color-white);
}

.testimonial-item-scroll p {
    color: var(--color-black);
}

.testimonial-item-scroll::-webkit-scrollbar {
    width: 12px;
}

.testimonial-item-scroll::-webkit-scrollbar-track {
    background: var(--color-white);
}

.testimonial-item-scroll::-webkit-scrollbar-thumb {
    background-color: #007DC5;
    border-radius: 30px;
    border: 3px solid var(--color-white);
}

.testimonial-item-bottom {
    padding: 10px 0 0;
    margin-top: auto;
}

.testimonial-item-bottom h5 {
    text-transform: uppercase;
    color: var(--color-blue);
    font-size: 18px;
    padding: 0 0 7px;
}

.testimonial-item-bottom h6 {
    font-size: 16px;
    color: #007DC5;
    margin: 0;
}

.testimonial-btn {
    margin-top: 20px;
}

.testimonials.testimonials--inner {
    clip-path: none;
    margin-top: 0;
}

.testimonial-col__wrap .testimonials-flex {
    justify-content: center;
}

.testimonials .testimonial-item {
    margin-bottom: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonials--inner .testimonial-btn {
    margin-top: 0;
}

.testimonials--inner .testimonial-btn .btn::after{
    transform: rotate(90deg);
    top: 10px;
    font-weight: 700;
}

.testimonial-col__wrap {
    position: relative;
}

.testimonial-col__wrap::before {
    content: "";
    position: absolute;
    right: -22px;
    top: -22px;
    width: 100px;
    height: 100px;
    border-radius: 15px;
    background: var(--color-yellow);
}

.testimonials-flex > div:not(:first-child) {
    display: none;
}

.testimonial-col_button {
    margin-top: 40px;
    text-align: center;
}

@media(min-width: 768px) {

    .testimonials--homepage {
        padding: 114px 0 75px;
        clip-path: polygon(0 43px, 100% 0%, 100% 100%, 0% 100%);
        margin-top: -45px;
    }

    .testimonial-item-scroll {
        height: 246px;
    }

    .testimonial-item-bottom {
        padding-right: 25px;
    }

    .testimonial-item-bottom h6 {
        font-size: 18px;
        line-height:  1.666em;
    }

    .testimonial-item-scroll {
        padding-right: 15px;
    }

    .testimonial-btn {
        margin-top: 30px;
    }

    .testimonials::before {
        height: calc(38% + 20px);
        clip-path: polygon(0 0, 100% 0%, 100% 90%, 0% 100%);
    }

    .testimonials::after {
        height: calc(58% + 101px);
    }

    .testimonials--inner .testimonial-item {
        margin-bottom: 50px;
    }

    .testimonials--inner .testimonial-btn .btn {
        padding-right: 56px;
    }

    .testimonials--inner .testimonial-btn .btn::after{
        top: 16px;
        right: 26px;
    }

    .testimonials-flex > div:not(:first-child) {
        display: block;
    }

    .testimonials-flex > div:last-child {
        display: none;
    }
}

@media(min-width: 1200px) {

    .testimonial-col_button {
        margin-top: 50px;
        text-align: center;
    }

    .testimonials--homepage {
        margin-top: -105px;
        padding: 146px 0 100px;
        clip-path: polygon(0 103px, 100% 0%, 100% 100%, 0% 100%);
    }

    .testimonial-item {
        padding: 29px 10px 32px 33px;
    }

    .testimonial-item-scroll {
        height: 187px;
    }

    .testimonial-item-scroll {
        padding-right: 15px;
    }

    .testimonials-flex {
        margin-bottom: -50px;
    }

    .testimonials-flex > div {
        margin-bottom: 50px;
    }

    .testimonials--inner .testimonial-item {
        margin-bottom: 0;
        height: 100%;
    }

    .testimonial-item-hover {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        background-color: rgb(255, 255, 255);
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 15px;
        text-align: center;
        padding: 9px 20px;
        opacity: 0;
        transition: all 0.3s ease-in-out;
        visibility: hidden;
        z-index: 1;
    }

    .testimonial-item-hover h5 {
        font-size: 18px;
        color: var(--color-blue);
        text-transform: uppercase;
        margin: 0;
        padding: 0 0 7px;
    }

    .testimonial-item-hover h6 {
        color: #007DC5;
        font-size: 18px;
        padding: 0 0 20px;
        margin: 0;
        line-height: 1.66em;
    }

    .testimonial-item-hover-col:last-child h6 {
        padding: 0;
    }

    .testimonial-item:hover .testimonial-item-hover {
        opacity: 1;
        visibility: visible;
    }

    .testimonial-btn {
        margin-top: 40px;
    }

    .testimonials::before {
        height: calc(50% + 90px);
        clip-path: polygon(0 0, 100% 0%, 100% 77%, 0% 100%);
    }

    .testimonials::after {
        height: calc(50% + 173px);
    }

    .testimonial-col__wrap::before {
        right: -24px;
        top: -22px;
        width: 142px;
        height: 142px;;
    }

    .testimonials-flex > div:last-child {
        display: block;
    }
}

.testimonials--show-all .testimonial-item-scroll {
    height: auto;
}

.testimonials--show-all .testimonials-flex > div {
    margin-bottom: 35px;
}

@media (min-width: 768px) {
    .testimonials--show-all .testimonials-flex > div {
        margin-bottom: 50px;
    }
}

.testimonials--show-all .testimonial-item {
    margin-bottom: 0;
}

.testimonials--show-all .testimonials-flex>div:not(:first-child) {
    display: block;
}