/* --- Reviews Section Styles (as a Swiper container) --- */
#reviews-swiper {
    width: 100%;
    height: 100%;
}

#reviews-list-container {
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 0;
    overflow: hidden;
    position: relative;
}

/* Style for individual review cards (now swiper slides) */
.review-card {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    /* Reduced padding for more compact look */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
    /* Further reduced min-height for shorter cards */
    height: 100%;
    /* Stretches to fill swiper wrapper height */
    text-align: left;
    box-sizing: border-box;
    flex-shrink: 0;
    /* This is crucial for Swiper.js to prevent slides from shrinking */
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.review-card .review-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: nowrap;
}

.review-card .reviewer-name-top {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.review-card .review-header-right {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

/* Styles for the star rating container */
.review-rating-container {
    display: inline-flex;
    font-size: 1.2rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

/* All Unicode stars will be styled with background gradient */
.review-rating-container span {
    display: flex;
    white-space: nowrap;
    color: transparent;
    /* Hide original star color */
    background-image: linear-gradient(to right, #FF007A var(--rating-fill, 0%), #cccccc var(--rating-fill, 0%));
    -webkit-background-clip: text;
    /* Clip background to text shape */
    background-clip: text;
}

.review-card .review-date {
    font-size: 0.85rem;
    color: #718096;
    margin-left: 0;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.review-comment {
    font-size: 0.612rem;
    line-height: 1.5;
    color: #4a5568;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    /* Limit to 4 lines */
    line-clamp: 4;
    /* Standard property for compatibility */
    margin-bottom: 4px;
}

.review-card .read-more-btn {
    background: none;
    border: none;
    color: #FF007A;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: left;
    align-self: flex-start;
    transition: color 0.2s;
    display: block;
}

.review-card .read-more-btn:hover {
    text-decoration: underline;
    color: #e6006e;
}

.review-card .reviewer-info-bottom {
    font-size: 0.9rem;
    color: #a0aec0;
    text-align: left;
    font-style: normal;
    width: 100%;
    margin-top: 10px;
}