.testimonials {

    &[data-color="#ffffff"],
    &[data-color="#efefef"] {
        .wrapper_slider {
            .splide__pagination {
                li {
                    .splide__pagination__page {
                        border: 1px solid var(--main-color-1) !important;

                        &:not(.is-active),
                        &:not(:hover) {
                            background: transparent !important;
                        }

                        &.is-active,
                        &:hover {
                            background: var(--main-color-1) !important;
                        }
                    }
                }
            }
        }
    }

    .section__title {
        &.text-center {
            margin: 0 auto !important;
        }
    }

    &:has(.container .testimonials__slider) {
        &>.container {
            margin-bottom: 20px !important;

            @media (min-width: 992px) {
                margin-bottom: 60px !important;
            }
        }
    }

    .testimonials__item {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        justify-content: center;
        gap: 16px;
        padding: 20px 0;
        overflow: hidden;

        .testimonials__content {
            border-radius: var(--border-radius-sm);
            background: rgba(255, 255, 255, 0.9);
            padding: 15px 30px;
            box-shadow: 9px 10px 10px -3px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 0;

            @media (min-width: 992px) {
                max-width: 500px;
            }

            .testimonials__infos {
                display: flex;
                align-items: center;
                gap: 15px;

                @media (max-width: 991px) {
                    flex-direction: column;
                    align-items: start;
                    margin-bottom: 15px;
                }

                .testimonials__portrait {
                    img {
                        max-width: 67px;
                        max-height: 67px;
                        object-fit: cover;
                        border-radius: var(--border-radius-full);
                    }
                }

                .testimonials__author {
                    margin: 0;

                    * {
                        font-weight: var(--bold);
                    }
                }
            }

            &:after {
                content: '';
                position: absolute;
                background-image: url('../../img/border_testi.svg');
                background-size: cover;
                width: 200px;
                height: 90px;
                bottom: 0px;
                right: 0px;
                z-index: 1;
                pointer-events: none;
                background-repeat: no-repeat;

                @media (min-width: 992px) {
                    bottom: -7px;
                    right: -7px;
                }
            }
        }
    }
}