.review-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for larger screens */
    gap: 20px; /* Space between the cards */
    padding: 20px;
}

/* Mobile styles: One column layout */
@media (max-width: 768px) {
    .review-cards-container {
        grid-template-columns: 1fr; /* One column layout for smaller screens */
        padding: 10px; /* Reduce padding */
        gap: 15px; /* Reduce gap between cards */
    }
}

.review-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* Space at the bottom of each card */
}

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

.rateit {
    flex: 1;
}

.reviewer-info {
    margin-bottom: 0px;
    margin-left: 15px;
    font-weight: bold;
    color: #555;
    white-space: normal; /* Allow wrapping of text */
}

.review-message {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .review-card {
        margin: 0 10px 20px 10px; /* Adjust margins for mobile */
    }

    .review-header {
        flex-direction: column; /* Stack header content vertically on mobile */
        align-items: flex-start;
    }

    .reviewer-info {
        margin-left: 0; /* Remove left margin for mobile */
        margin-top: 10px; /* Add some space between the rating and the reviewer info */
        white-space: normal; /* Ensure text wraps properly on mobile */
    }
}
