/* styles.css */

.reviews-slider-wrapper {
    overflow-x: auto;
    padding: 1rem;
}

.reviews-slider {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
    background-color: transparent;
    max-height: 100%;
}

.review-card {
    flex: 0 0 100%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px;
    background-color: #fff;
    margin: 1rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    min-height: 15rem;
    overflow: hidden;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.Google-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    margin-right: 1rem;
    margin-top: 1rem;
    position: absolute;
    top: 0;
    right: 0;
}

.reviewer-img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    margin-right: 1rem;
    flex-shrink: 0;
}

.reviewer-info {
    text-align: left;
    flex: 1;
}

.reviewer-name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: bold;
}

.review-rating {
    color: #fbb224;
    margin: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.star {
    display: inline-block;
    width: clamp(0.8rem, 2.5vw, 1.5rem);
    height: clamp(0.8rem, 2.5vw, 1.5rem);
    background: linear-gradient(to bottom, #ffdc73, #ffa500);
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"/></svg>') no-repeat center / contain;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"/></svg>') no-repeat center / contain;
    flex-shrink: 0;
}

.review-text {
    font-size: 1rem;
    color: #333;
    margin: 1rem 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.review-date {
    font-size: 0.9rem;
    color: #777;
    margin-top: auto;
    padding-top: 0.75rem;
    word-break: break-word;
}

/* Animation */
@keyframes slide {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.reviews-slider::before,
.reviews-slider::after {
    content: '';
    position: absolute;
    width: 5vw;
    height: 100%;
    z-index: 2;
    top: 0;
}

.reviews-slider::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.reviews-slider::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.reviews-container {
    display: flex;
    animation: slide 20s linear infinite;
    gap: 1rem;
    padding: 1rem 0;
}

/* Responsive Layouts */
@media (min-width: 600px) {
    .review-card {
        flex: 0 0 48%;
        max-width: 48%;
    }
}

@media (min-width: 900px) {
    .review-card {
        flex: 0 0 33%;
        max-width: 33%;
    }
}
