.review-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 30px 0;
    user-select: none;
}

.review-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 0 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    touch-action: pan-x;
    cursor: grab;
}

.review-carousel::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 280px;
    height: 265px;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #E1E1E1;
    overflow: hidden;
    position: relative;
}

.stars {
    color: #4C4C4C;
    font-size: 14px;
    margin-bottom: 10px;
}

.stars span {
    font-size: 10px;
    font-weight: 400;
}

/* Wrapper for text and read more button */
.review-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: 1;
    overflow: hidden;
}

.review-text {
    font-size: 16px;
    line-height: 20px;
    color: #4C4C4C;
    overflow: hidden;
}

/* Short version of the review */
.review-text .short-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Full version, scrollable */
.review-text .full-text {
    display: none;
    overflow-y: auto;
    max-height: 100%;
    white-space: normal;
    padding-right: 5px;
}

.review-text .full-text::-webkit-scrollbar {
    width: 6px;
}

.review-text .full-text::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}
.review-text .full-text {
    transition: max-height 0.3s ease;
}
/* Optional if you use this class dynamically */
.review-text.expanded {
    -webkit-line-clamp: unset;
    overflow: auto;
}

/* Separate block for read more, always bottom aligned */
.read-more-wrapper {
    margin-top: 10px;
    flex-shrink: 0;
}

.read-more-btn {
    font-size: 10px;
    color: #2EC39F;
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
}

.carousel-nav {
    position: absolute;
    right: calc(42% - 300px);
    z-index: 2;
    bottom: -20px;
}

.carousel-nav button {
    width: 40px;
    height: 40px;
    background: url('arrow.png') no-repeat center center;
    cursor: pointer;
    padding: 0;
    color: transparent;
    border: none;
    outline: none;
    overflow: hidden;
}

.carousel-nav button.hidden {
    display: none;
}

/* Mobile layout */
@media (max-width: 767px) {
    .review-carousel-wrapper {
        position: unset;
    }

    .review-card {
        flex: 0 0 80%;
        min-width: 80%;
    }

    .review-text {
        overflow-y: scroll;
    }


    .carousel-nav {
        right: 20px;
        bottom: -23px;
    }
}
