/* General */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f9fc;
    color: #333;
}

/* Review card styles */
.card {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    padding: 12px 15px;
}

.card-body {
    padding: 15px;
}

/* Ensure container shows everything */
.container.mt-5 {
    overflow: visible !important;
}

/* Review text formatting */
.card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-top: 10px;
}

/* Review header alignment */
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* User icon styling */
.user-icon {
    font-size: 1rem;
    color: #fff;
    margin-right: 10px;
}

/* Review Form */
form {
    border-radius: 12px;
}

form h4 {
    font-weight: 600;
    color: #333;
}

form .btn {
    font-weight: 600;
    border-radius: 8px;
}

/* Star Rating - Input */
.star-rating {
    direction: rtl;
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 3px;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: gold;
}

/* Star Rating - Display */
.review-stars {
    margin-top: 5px;
    color: gold;
    font-size: 1.1rem;
}

/* Pagination */
.pagination .page-item .page-link {
    color: #007bff;
    border-radius: 50%;
    margin: 0 3px;
    transition: all 0.2s ease-in-out;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.pagination .page-item .page-link:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Alerts */
.alert {
    border-radius: 10px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .card-header h5 {
        font-size: 1rem;
    }

    .card-header small {
        font-size: 0.75rem;
    }
}
