@import "../settings/_mixins";
@import "../settings/_variables";

.dnetor-advanced-testimonial {
    .dnetor-testimonial-rating {
        color: #ffc824;
        margin-bottom: 20px;
    }

    .dnetor-testimonial-quote {
        text-align: center;
        margin-bottom: 20px;
        img {
            width: 60px;
            height: 60px;
            object-fit: cover;
            border-radius: 50%;
        }
    }

    .dnetor-testimonial-item {
        --dnetor-testimonial-avatar-width: 75px;
        --dnetor-testimonial-avatar-height: 75px;
        width: 100%;
        height: 100%;
        border-radius: 16px;
        padding: 30px;
        text-align: center;
        background-color: #fff;
        .dnetor-testimonial-content {
            margin-bottom: 20px;
            p {
                margin: 0;
            }
        }

        .dnetor-testimonial-info {
            margin-bottom: 20px;
        }

        .dnetor-testimonial-avatar img {
            height: var(--dnetor-testimonial-avatar-height);
            width: var(--dnetor-testimonial-avatar-width);
            object-fit: cover;
            border-radius: 100%;
        }

        .dnetor-testimonial-author-name {
            margin-bottom: 10px;
            color: #555;
            font-size: 18px;

            span {
                font-style: italic;
                color: #888;
            }
        }
        .dnetor-testimonial-author-job {
            display: block;
            font-size: 0.85rem;
            color: var(--e-global-color-muted);
        }
    }

    &.dnetor-testimonial-layout-01 {
        .dnetor-testimonial-item {
            padding: 0 30px;
        }
    }

    .avatar-swiper {
        width: 100%;
        margin: 0 auto;
        overflow: hidden;
        height: 105px;

        .dnetor-testimonial-avatar {
            display: flex;
            justify-content: center;
            img {
                width: 75px;
                height: 75px;
                border-radius: 50%;
                object-fit: cover;
                border: 1px solid transparent;
                transition: all 0.3s;
                padding: 5px;
                cursor: pointer;
            }
        }
        .swiper-wrapper {
            align-items: center;
            justify-content: center;
        }
        .swiper-slide {
            height: auto;
        }
        .swiper-slide-thumb-active {
            .dnetor-testimonial-avatar img {
                width: 90px;
                height: 90px;
                border-color: var(--e-global-color-accent);
            }
        }
    }

    @keyframes slides_right_to_left {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(-100%);
        }
    }
    @keyframes slides_left_to_right {
        from {
            transform: translateX(-100%);
        }
        to {
            transform: translateX(0);
        }
    }
}
