.testimonials {
    padding: 100px 20px;
    gap: 64px;
    max-width: none;
    width: 100%;
    align-self: stretch;
    align-items: center;
    box-sizing: border-box;
    background-image: url(/wp-content/themes/bytecrab/inc/assets/modules/testimonials_module/images/testimonials-bg.webp);
    background-size: 1850px;
    background-repeat: no-repeat;
    background-position: calc(50% + 200px) 0;
}

.testimonials > .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.testimonials h2 {
    font-size: 36px;
    font-weight: 500;
    line-height: 48px;
    text-transform: none;
}

.testimonials .header h5 {
    color: #9CA2A7;
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    text-transform: uppercase;
}

.testimonials .slider {
    display: flex;
    flex-direction: column;
    gap: 52px;
    max-width: 1280px;
    position: relative;
    overflow: hidden;
    width: 100%;
    cursor: grab;
}

.testimonials .slider.dragging {
    cursor: grabbing;
}

.testimonials .sliders {
    display: flex;
    gap: 24px;
    will-change: transform;
}

.testimonials .slide {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 6px;
    border: 2px solid #85D0C700;
    background: #FFF;
    box-shadow: 0px 6px 16px 0px rgba(156, 180, 200, 0.20);
    gap: 8px;
    padding: 40px;
    box-sizing: border-box;
}

.testimonials .slide:hover {
    border: 2px solid #008777;
}

.testimonials .quote {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonials .quote svg {
    width: 36px;
}

.testimonials .quote p {
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

.testimonials .quoted {
    display: flex;
    align-items: center;
    gap: 24px;
}

.testimonials .quoted img {
    height: 70px;
    width: 70px;
    border-radius: 40px;
    object-fit: cover;
}

.testimonials .quoted .name {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
}

.testimonials .quoted .name p {
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
}

.testimonials .prev,
.testimonials .next {
    cursor: pointer;
    user-select: none;
}

.testimonials .controls {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    max-width: 544px;
    width: 100%;
    align-self: center;
}

.testimonials .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.testimonials .dot {
    width: 32px;
    height: 4px;
    background-color: #C2C7CB;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 2px;
}

.testimonials .dot.active {
    background-color: #008777;
}

.inactive {
    cursor: auto;
}

.inactive svg path {
    stroke: #C2C7CB;
}

@media only screen and (max-width: 1024px) {
    .testimonials h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .testimonials > .header {
        gap: 12px;
    }
}

@media only screen and (max-width: 767px) {
    .testimonials {
        padding: 60px 16px;
        gap: 32px;
        background-size: cover;
        background-position: center;
    }

    .testimonials .header h5 {
        color: #121212;
        font-size: 16px;
        line-height: 24px;
    }

    .testimonials .prev,
    .testimonials .next {
        display: none;
    }

    .testimonials .slider {
        gap: 32px;
    }

    .testimonials .sliders {
        gap: 16px;
    }

    .testimonials .slide {
        padding: 32px 24px;
    }

    .testimonials .quote {
        gap: 12px;
    }

    .testimonials .quote p {
        font-size: 14px;
        line-height: 20px;
    }

    .testimonials .quoted img {
        height: 60px;
        width: 60px;
    }

    .testimonials .quoted .name {
        font-size: 16px;
        line-height: 22px;
    }

    .testimonials .quoted .name p {
        font-size: 14px;
        line-height: 20px;
    }
}
