.review-card {
    border-bottom: 1px solid #eee;
    padding: 25px 0;
    position: relative;
}
.review-card:last-child {
    border-bottom: none;
}
.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    color: #6c757d;
} 
.overall-rating { 
    margin-bottom: 10px; 
    display: flex;
    justify-content: space-between;
}
.rating-number {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    display: flex; 
}
.rating-count {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
} 
.rating-category {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.rating-label {
    width: 70px;
    font-size: 14px;
    color: #333;
}
.rating-bar-container {
    flex: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin: 0 15px;
    overflow: hidden;
}
.rating-bar {
    height: 100%;
}
.rating-count-number {
    width: 30px;
    text-align: right;
    font-size: 14px;
    color: #6c757d;
}
.rating-excellent .rating-bar {
    background-color: #28a745;
}
.rating-good .rating-bar {
    background-color: #5cb85c;
}
.rating-average .rating-bar {
    background-color: #ffc107;
}
.rating-poor .rating-bar {
    background-color: #fd7e14;
}
.rating-terrible .rating-bar {
    background-color: #dc3545;
}
.search-filter-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
}
.search-box {
    margin-bottom: 15px;
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-btn {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 14px;
    color: #555;
    transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
    background-color: #337ab7;
    color: white;
    border-color: #337ab7;
}
.form-group {
    margin-bottom: 15px; 
}

.reviewer-details {
    flex: 1;
}
.reviewer-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}
.review-date {
    color: #6c757d;
    font-size: 14px;
}
.review-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 5px;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
}
.review-text.truncated {
    max-height: 72px;
}
.review-text.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, white);
}
.read-more {
    color: #007bff;
    cursor: pointer;
    font-weight: 500;
    display: inline-block;
    margin-top: 5px;
}
.read-more:hover {
    text-decoration: underline;
}
.review-highlight {
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    padding: 15px;
    margin-top: 15px;
    border-radius: 0 4px 4px 0;
}
.rating-stars {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 15px;
}
@media (max-width: 767px) {
    .reviews-container {
        padding: 20px 15px;
    }
    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }
}
.pagination-section {
    margin-top: 30px; 
    display: flex;
    justify-content: space-between;
}
.pagination {
    margin: 0;
}

[type="radio"]:checked + label:before {
    border: unset;
}

.pagination .active {
    background: unset;
    /* color: white; */
    border-radius: 20px;
    padding: unset;
    border: unset;
}
.pagination > li > a {
    color: #337ab7;
    border-radius: 4px;
    margin: 0 3px;
}
.pagination > li.active > a {
    background-color: #337ab7;
    border-color: #337ab7;
}
.results-info {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}
@media (max-width: 767px) {
    .reviews-container {
        padding: 20px 15px;
    }
    .reviewer-avatar {
        width: 40px;
        height: 40px;
    }
    .filter-buttons {
        justify-content: center;
    }
}
input[type="radio"], input[type="checkbox"] {
    margin: 0;
}
[type="radio"]:not(:checked) + label:before, [type="radio"]:not(:checked) + label:after {
    border: unset;
}
.char-counter {
    text-align: right;
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}
.form-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.star-rating {
    direction: rtl;
    display: inline-block;
}
.star-rating input[type="radio"] {
    display: none;
}
.star-rating label {
    color: #bbb;
    font-size: 24px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
    color: #f2b600;
}
.checked {
    color: gold;
}  






.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation-duration: 40s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
} 
.review-box {
    background: #f3f3f3;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s;
} 
.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
} 
.name {
    font-weight: 600;
    margin: 0;
}
.role {
    font-size: 12px;
    color: #aaa;
    margin: 0;
}