.google-reviews {
    padding: 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Arial', sans-serif;
    background-color: transparent;
}

.google-reviews .overall-rating {
    font-size: 1.8em;
    text-align: center;
    color: #333;
    margin-bottom: 10px;
}

.google-reviews .rating-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.google-reviews .rating-stars .star {
    color: #F1BE42;
    margin: 0 2px;
    font-size: 1.5em;
}

.google-reviews .rating-description {
    text-align: center;
    margin: 10px 0;
    font-size: 1.2em;
    color: #666;
}

.google-reviews .review-count {
    text-align: center;
    margin: 5px 0;
    font-size: 0.9em;
    color: #999;
}

.google-reviews .review-count a {
    color: #007bff;
    text-decoration: none;
}

.google-reviews .review-count a:hover {
    text-decoration: underline;
}

.carousel-container {
    overflow-x: auto; /* Allow horizontal scrolling */
    position: relative;
    width: 100%;
}

.reviews-container {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.review {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    flex: 0 0 calc(100% / 3); /* Show 3 reviews at a time */
    box-sizing: border-box;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.review-author {
    font-weight: bold;
    margin: 0;
}

.review-date {
    font-size: 0.8em;
    color: #999;
    margin: 0;
}

.review-rating {
    margin: 10px 0;
    color: #F1BE42;
}

.review-rating .star {
    color: #F1BE42;
    margin-right: 5px;
}

.review-text {
    font-size: 1em;
    color: #555;
    flex-grow: 1;
}

.read-more-btn {
    background-color: #C29E73;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #C29E73;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
}

.popup-review-header {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.popup-review-author {
    font-weight: bold;
    margin: 0;
}

.popup-review-date {
    font-size: 0.8em;
    color: #999;
    margin-left: auto;
}

.popup-review-rating {
    margin: 10px 0;
    color: #F1BE42;
}

.popup-review-rating .star {
    color: #F1BE42;
    margin-right: 5px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.view-all-reviews {
    text-align: center;
    margin-top: 20px;
}

.view-all-reviews a {
    color: #007bff;
    text-decoration: none;
    font-size: 1em;
}

.view-all-reviews a:hover {
    text-decoration: underline;
}

.carousel-navigation {
    text-align: center;
    margin-top: 10px;
}

.prev-btn, .next-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 5px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .review {
        flex: 0 0 calc(100%); /* Show 1 review at a time on smaller screens */
    }

    .google-reviews .overall-rating {
        font-size: 1.5em;
    }

    .google-reviews .rating-description {
        font-size: 1em;
    }

    .google-reviews .review-count {
        font-size: 0.8em;
    }

    .read-more-btn {
        font-size: 0.9em;
    }

    .popup-content {
        width: 90%;
    }
}
