﻿/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonial-carousel {
    display: block !important;
    max-width: 1180px;
    margin: 0 auto;
}

    .testimonial-carousel:not(.owl-loaded) {
        display: flex !important;
        gap: 22px;
        overflow: hidden;
    }

        .testimonial-carousel:not(.owl-loaded) .item {
            flex: 0 0 calc(33.333% - 15px);
        }

    .testimonial-carousel .item {
        height: 100%;
        padding: 12px;
    }

    .testimonial-carousel.owl-loaded .owl-stage {
        display: flex;
        align-items: stretch;
    }

    .testimonial-carousel.owl-loaded .owl-item {
        display: flex;
    }

    .testimonial-carousel.owl-loaded .item {
        display: flex;
        width: 100%;
    }

.testimonial-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    padding: 34px 28px !important;
    background: #fff;
    border: 1px solid rgba(255, 102, 0, 0.12);
    border-radius: 16px !important;
    box-shadow: 0 14px 38px rgba(15, 34, 58, 0.08) !important;
    transition: 0.3s ease;
}

    .testimonial-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 50px rgba(15, 34, 58, 0.14) !important;
    }

.quote-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 18px;
    color: #fff;
    font-size: 28px;
    line-height: 44px;
    background: linear-gradient(135deg, var(--accent), #ff8c00);
    border-radius: 50%;
}

.testimonial-text {
    min-height: 95px;
    margin-bottom: 24px;
    color: #444 !important;
    font-size: 15px;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-img {
    width: 82px !important;
    height: 82px !important;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(15, 34, 58, 0.16);
}

    .testimonial-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

.testimonial-card h6 {
    margin-top: 14px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 700;
}

.testimonial-card small {
    display: block;
    margin-top: 4px;
    color: var(--text-light);
    font-size: 13px;
}

.testimonial-card .text-warning {
    margin-top: 12px;
    color: #ffb400 !important;
    letter-spacing: 2px;
}

/* Carousel arrows */
.testimonial-carousel .owl-nav {
    margin-top: 22px;
    text-align: center;
}

    .testimonial-carousel .owl-nav button.owl-prev,
    .testimonial-carousel .owl-nav button.owl-next {
        width: 42px;
        height: 42px;
        margin: 0 6px;
        color: #fff !important;
        font-size: 28px !important;
        line-height: 1 !important;
        background: var(--accent) !important;
        border-radius: 50% !important;
        box-shadow: 0 8px 18px rgba(255, 102, 0, 0.28);
    }

    .testimonial-carousel .owl-nav button:hover {
        background: var(--accent-dark) !important;
    }

/* Carousel dots */
.testimonial-carousel .owl-dots {
    margin-top: 16px;
    text-align: center;
}

.testimonial-carousel .owl-dot span {
    display: block;
    width: 9px;
    height: 9px;
    margin: 5px;
    background: #d6d6d6;
    border-radius: 50%;
}

.testimonial-carousel .owl-dot.active span {
    width: 24px;
    background: var(--accent);
    border-radius: 999px;
}
/* ==========================================
   REVIEW EXPAND SYSTEM
========================================== */

/* Equal review height */

.testimonial-review-wrapper {
    min-height: 165px;
}


/* Short review */
.short-review {
    transition: .3s ease;
}

/* Full review */
.testimonial-full-review {
    transition: all .35s ease;
}

/* Read more button */
/* ==========================================
   PREMIUM READ MORE BUTTON
========================================== */

.testimonial-readmore-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 9px 18px;
    border: 1px solid rgba(255, 102, 0, 0.18);
    border-radius: 999px;
    background: rgba(255, 102, 0, 0.06);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    transition: all .3s ease;
}

    /* Hover */

    .testimonial-readmore-btn:hover {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(255, 102, 0, 0.22);
    }

    /* Active */

    .testimonial-readmore-btn:focus,
    .testimonial-readmore-btn:active {
        outline: none;
        box-shadow: none;
    }

/* Smooth collapse */
.testimonial-full-review.collapsing {
    transition: height .35s ease;
}

/* Mobile optimization */

@media (max-width: 991.98px) {
    .testimonial-carousel:not(.owl-loaded) .item {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .testimonial-carousel:not(.owl-loaded) {
        display: block !important;
    }

        .testimonial-carousel:not(.owl-loaded) .item {
            width: 100%;
        }

    .testimonial-card {
        min-height: 320px;
        padding: 28px 20px !important;
    }

    .testimonial-text {
        min-height: auto;
        font-size: 14px;
    }

    .testimonial-full-review p {
        max-height: 220px;
        overflow-y: auto;
        padding-right: 6px;
    }

    .testimonial-readmore-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}
