/*
|--------------------------------------------------------------------------
| Bali Indo Tour
| Homepage Testimonials
|--------------------------------------------------------------------------
*/

.home-reviews {

    background: var(--surface-secondary);

}


/*
|--------------------------------------------------------------------------
| Testimonial Slider
|--------------------------------------------------------------------------
*/

.home-testimonial-slider {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 1.5rem;

}


.home-testimonial-slide {

    min-width: 0;

    height: 100%;

}


/*
|--------------------------------------------------------------------------
| Testimonial Card
|--------------------------------------------------------------------------
*/

.home-testimonial-card {

    position: relative;

    display: flex;

    flex-direction: column;

    height: 100%;

    min-height: 330px;

    padding: var(--space-xl);

    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

}


.home-testimonial-card:hover {

    transform: translateY(-4px);

    border-color: var(--border-dark);

    box-shadow: var(--shadow);

}


/*
|--------------------------------------------------------------------------
| Card Top
|--------------------------------------------------------------------------
*/

.home-testimonial-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    margin-bottom: var(--space-lg);

}


/*
|--------------------------------------------------------------------------
| Tripadvisor
|--------------------------------------------------------------------------
*/

.home-testimonial-tripadvisor {

    display: block;

    width: auto;

    height: 28px;

    max-width: 110px;

    object-fit: contain;

}


.home-testimonial-source-text {

    color: var(--text);

    font-size: var(--font-xs);

    font-weight: var(--fw-bold);

}


/*
|--------------------------------------------------------------------------
| Rating
|--------------------------------------------------------------------------
*/

.home-testimonial-rating {

    display: flex;

    align-items: center;

    gap: 3px;

    flex-shrink: 0;

    color: #F59E0B;

    font-size: 12px;

    line-height: 1;

}


.home-testimonial-rating i {

    display: inline-block;

    color: #F59E0B;

}


/*
|--------------------------------------------------------------------------
| Content
|--------------------------------------------------------------------------
*/

.home-testimonial-content {

    min-width: 0;

    flex: 1;

}


/*
|--------------------------------------------------------------------------
| Title
|--------------------------------------------------------------------------
*/

.home-testimonial-title {

    display: -webkit-box;

    margin: 0 0 .65rem;

    overflow: hidden;

    color: var(--text);

    font-size: var(--font-md);

    font-weight: var(--fw-bold);

    line-height: 1.4;

    letter-spacing: var(--ls-tight);

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

}


/*
|--------------------------------------------------------------------------
| Review Text
|--------------------------------------------------------------------------
*/

.home-testimonial-text {

    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    color: var(--text-light);

    font-size: var(--font-sm);

    font-weight: var(--fw-normal);

    line-height: 1.7;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 5;

}


/*
|--------------------------------------------------------------------------
| Full Review
|--------------------------------------------------------------------------
*/

.home-testimonial-more {

    display: inline-flex;

    align-items: center;

    gap: .4rem;

    margin-top: .85rem;

    color: var(--text-muted);

    font-size: var(--font-xs);

    font-weight: var(--fw-semibold);

}


.home-testimonial-more i {

    font-size: .65rem;

}


/*
|--------------------------------------------------------------------------
| Author
|--------------------------------------------------------------------------
*/

.home-testimonial-author {

    display: flex;

    align-items: center;

    gap: var(--space-md);

    margin-top: var(--space-xl);

    padding-top: var(--space-lg);

    border-top: 1px solid var(--border);

}


/*
|--------------------------------------------------------------------------
| Avatar
|--------------------------------------------------------------------------
*/

.home-testimonial-avatar {

    width: 44px;

    height: 44px;

    flex: 0 0 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--text);

    background: var(--primary-light);

    border-radius: 50%;

    font-size: var(--font-sm);

    font-weight: var(--fw-bold);

    line-height: 1;

}


/*
|--------------------------------------------------------------------------
| Author Info
|--------------------------------------------------------------------------
*/

.home-testimonial-author-info {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.home-testimonial-author-info strong {

    display: block;

    overflow: hidden;

    color: var(--text);

    font-size: var(--font-sm);

    font-weight: var(--fw-bold);

    line-height: 1.3;

    text-overflow: ellipsis;

    white-space: nowrap;

}


.home-testimonial-author-info span {

    display: block;

    color: var(--text-muted);

    font-size: var(--font-xs);

    line-height: 1.3;

}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 991.98px) {

    .home-testimonial-slider {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 1.25rem;

    }


    .home-testimonial-card {

        min-height: 310px;

        padding: var(--space-lg);

    }


    .home-testimonial-title {

        font-size: var(--font-base);

    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    .home-testimonial-slider {

        display: flex;

        gap: 1rem;

        width: 100%;

        overflow-x: auto;

        padding:
            0 .75rem .75rem;

        scroll-snap-type: x mandatory;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;

    }


    .home-testimonial-slider::-webkit-scrollbar {

        display: none;

    }


    .home-testimonial-slide {

        flex: 0 0 88%;

        scroll-snap-align: start;

    }


    .home-testimonial-card {

        min-height: 300px;

        height: 100%;

        padding: var(--space-lg);

        border-radius: var(--radius-lg);

    }


    .home-testimonial-top {

        gap: .75rem;

        margin-bottom: var(--space-md);

    }


    .home-testimonial-tripadvisor {

        height: 24px;

        max-width: 95px;

    }


    .home-testimonial-rating {

        gap: 2px;

        font-size: 11px;

    }


    .home-testimonial-title {

        margin-bottom: .5rem;

        font-size: var(--font-base);

        line-height: 1.4;

    }


    .home-testimonial-text {

        font-size: var(--font-xs);

        line-height: 1.65;

        -webkit-line-clamp: 4;

    }


    .home-testimonial-more {

        margin-top: .7rem;

        font-size: 11px;

    }


    .home-testimonial-author {

        gap: 10px;

        margin-top: var(--space-lg);

        padding-top: var(--space-md);

    }


    .home-testimonial-avatar {

        width: 40px;

        height: 40px;

        flex-basis: 40px;

        font-size: var(--font-xs);

    }


    .home-testimonial-author-info strong {

        font-size: var(--font-xs);

    }


    .home-testimonial-author-info span {

        font-size: 11px;

    }

}