.testimonial {
    background: rgba(var(--primary-rgb, 17, 160, 31), 0.06);
    padding: 60px 100px;
    border-radius: 30px;
    max-width: 1200px;
    margin: auto;
}

.testimonial-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.testimonial-left {
    /* max-width: 220px;
    min-width: 160px; */
    width: 50%;
    display: flex;
    align-items: center;
    /* justify-content: center; */
}

.testimonial-right {
    flex: 1 1 0%;
    max-width: 700px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.avatar-group {
    position: relative;
    display: flex;
    align-items: center;
    /* min-width: 350px; */
    margin-right: 30px;
}

.owl-item:not(.active) {
    opacity: 0;
}

.avatar-group .avt {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    margin-left: -30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    background: #fff;
    z-index: 1;
    transition: box-shadow 0.2s;
}

.avatar-group .avt:first-child {
    margin-left: 0;
    z-index: 3;
}

.avatar-group .avt:nth-child(2) {
    z-index: 2;
}

.avatar-group .avt:nth-child(3) {
    z-index: 1;
}

.rating-badge {
    background: #fff;
    color: var(--primary);
    padding: 8px 22px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
    position: absolute;
    left: 90%;
    font-weight: 700;
    font-size: 22px;
    min-width: 90px;
    text-align: center;
}

.testimonial-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 700px;
}

.testimonial-right h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #181D1B;
}

.author {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--primary);
}

.content {
    font-size: 18px;
    line-height: 27px;
    max-width: 700px;
    color: #222;
}

.testimonial .owl-dots {
    margin-top: 32px;
    text-align: left;
    padding-left: 10px;
}

.testimonial .owl-dot span {
    width: 12px !important;
    height: 12px !important;
    background: #DDD !important;
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
}

.testimonial .owl-dot.active span {
    background: var(--primary) !important;
}

@media (max-width: 768px) {
    .testimonial-left {
        width: 100%;
    }

    .rating-badge {
        left: 100%;
    }

    .testimonial {
        padding: 40px 30px;
    }

    .testimonial-inner {
        flex-direction: column;
    }

    .testimonial .owl-dots {
        text-align: center;
    }

    .testimonial-right h2 {
        font-size: 18px;
        text-align: left;
        margin-top: 20px;
    }

    .testimonial-right .item {
        text-align: left;
    }

    .testimonial-right {
        flex: unset;
        max-width: 100%;
        width: 100%;
        padding: 0 16px;
        align-items: center;
        text-align: center;
    }
}