
.reviews-container {
    width: 100%;
    margin: 40px auto;
    padding: 0;
    font-family: inherit;
    box-sizing: border-box;
}

.overall-rating-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    padding: 12px 32px;
    width: fit-content;
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.rating-score {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}
.rating-group {
    display: flex;
    flex-direction: column;
}
.overall-rating-box .stars {
    color: #fbbc04;
    font-size: 16px;
    letter-spacing: 1px;
}
.rating-divider {
    width: 1px;
    height: 20px;
    background-color: #e0e0e0;
}
.rating-count {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.carousel-track-container::before,
.carousel-track-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.carousel-track-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
.carousel-track-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.reviews-carousel {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: reviews-scroll linear infinite;
}
.reviews-carousel:hover {
    animation-play-state: paused;
}
@keyframes reviews-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.reviewer-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}
.reviewer-name {
    font-weight: 600;
    font-size: 15px;
    margin: 0;
}
.review-stars {
    color: #fbbc04;
    font-size: 14px;
}
.review-text-wrapper {
    flex-grow: 1;
    margin-bottom: 15px;
}
.review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.read-more-btn {
    background: none;
    border: none;
    color: #4285f4;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 0;
    margin-top: 5px;
}
.review-date {
    font-size: 12px;
    color: #888;
}

.google-attribution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 13px;
    color: #777;
}
.google-attribution img {
    height: 16px;
}

@media (max-width: 768px) {
    .overall-rating-box {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
        gap: 10px;
    }
    .rating-divider {
        width: 40px;
        height: 1px;
    }
    .review-card {
        width: 280px;
    }
    .carousel-track-container::before,
    .carousel-track-container::after {
        width: 40px;
    }
}
