/* Reviews Section Styles */
.reviews-section {
    background-color: rgb(243, 248, 245);
}

.reviews-slider {
    position: relative;
    max-width: 100%;
    margin: 20px auto;
    overflow: hidden;
}

.reviews-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Space between reviews */
    transition: transform 0.5s ease-in-out;
    flex-wrap: nowrap; /* Ensure no wrapping of reviews */
}

.review-card {
    position: relative;
    width: 250px; /* Adjust width for better mobile layout */
    height: 220px; /* Adjust height to better fit mobile layout */
    padding: 15px; /* Adjust padding for smaller screen */
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 1;
    transform: scale(0.8); /* Make the reviews behind smaller initially */
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px; /* Add margin between cards for spacing */
}

/* Centered stars */
.stars {
    color: #ffc107;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: bold;
    margin-top: 10px;
    font-size: 14px; /* Adjust font size for mobile */
}

.reviewer-email {
    color: #6c757d;
    font-size: 12px; /* Adjust email font size for mobile */
}

/* Hover effect for bringing a review forward */
.review-card:hover {
    transform: scale(1);
    opacity: 1;
}

/* Optional: for better visibility of the review being hovered over */
.review-card:hover .stars {
    color: #ffdf00;
}

/* Star Rating Styles */
.star-filled {
    color: #ffc107; /* Gold color for filled stars */
    font-size: 20px;
}

.star-empty {
    color: #ddd; /* Light gray for empty stars */
    font-size: 20px;
}

/* Centered stars in a horizontal line */
.star-rating {
    display: flex;
    flex-direction: row-reverse; /* Reverse the flex direction */
    justify-content: start; /* Align the stars to the left */
    gap: 5px; /* Space between stars */
}

/* Hide the input radio buttons */
.star-rating input {
    display: none;
}

/* Style the stars (Font Awesome icons) */
.star-rating label i {
    color: #ddd; /* Light gray for empty stars */
    font-size: 30px; /* Adjust size for smaller screens */
}

/* Default gray color for unfilled stars */
.star-rating label i {
    color: #ddd; /* Light gray for empty stars */
    font-size: 30px; /* Size of stars */
}

/* Change color to yellow when the star is selected */
.star-rating input:checked ~ label i {
    color: #ffc107; /* Yellow for filled stars */
}

/* Hover effect: Fill stars from left to right */
.star-rating label:hover i,
.star-rating label:hover ~ label i {
    color: #ffc107; /* Change color to yellow on hover */
}

/* Make sure checked stars maintain yellow color */
.star-rating input:checked:hover ~ label i,
.star-rating input:checked ~ label:hover i {
    color: #ffc107;
}

/* Change color to yellow on selection or hover */
.star-rating input:checked ~ label i,
.star-rating label:hover i,
.star-rating label:hover ~ label i {
    color: #ffc107; /* Yellow for filled stars */
}

/* Responsive adjustments for max-width 414px */
@media (max-width: 414px) {
    /* Ensure the reviews stay in a single row */
    .reviews-container {
        flex-wrap: nowrap; /* Disable wrapping to keep the reviews in a single row */
        overflow-x: auto; /* Allow horizontal scrolling if necessary */
        justify-content: flex-start; /* Align items to the start */
    }

    /* Adjust review cards to be smaller for mobile screens */
    .review-card {
        width: 200px; /* Make cards narrower */
        height: auto; /* Let height adjust based on content */
        padding: 10px; /* Smaller padding */
    }

    /* Adjust font sizes for better readability on mobile */
    .reviewer-name {
        font-size: 12px; /* Smaller name font */
    }

    .reviewer-email {
        font-size: 11px; /* Smaller email font */
    }

    /* Adjust star sizes to be smaller on mobile */
    .star-rating label i {
        font-size: 24px; /* Smaller stars */
    }

    /* Adjust spacing and layout */
    .reviews-container {
        gap: 15px; /* Reduced space between reviews */
    }
}
