.reviews-carousel-section {
    margin: 40px 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.reviews-carousel-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.reviews-swiper {
    position: relative;
    margin-bottom: 30px;
}

.review-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: auto;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.reviewer-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.reviewer-photo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-weight: bold;
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
}

.review-source {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-badge {
    display: inline-block;
    background-color: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.review-body {
    flex: 1;
}

.review-rating {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ffc107;
}

.review-text {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: none;
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-top: 8px;
    text-decoration: none;
    transition: color 0.2s;
}

.read-more-btn:hover {
    color: #0056b3;
    text-decoration: underline;
}

.review-date {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

/* Swiper navigation */
.swiper-button-prev,
.swiper-button-next {
    color: #007bff;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.swiper-pagination {
    bottom: -30px;
}

.swiper-pagination-bullet {
    background-color: #ccc;
}

.swiper-pagination-bullet-active {
    background-color: #007bff;
}

/* Fallback message */
.reviews-fallback {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    color: #888;
}

.reviews-fallback p {
    margin: 10px 0;
    font-size: 16px;
}

/* CTA Buttons */
.reviews-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #0056b3;
}

.cta-link {
    display: inline-block;
    padding: 10px 15px;
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
}

.cta-link:hover {
    text-decoration: underline;
}

/* Modal */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-reviewer-name {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.modal-review-text {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-carousel-section {
        padding: 20px;
    }

    .reviews-carousel-section h2 {
        font-size: 24px;
    }

    .review-card {
        min-height: 220px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        padding: 25px;
    }

    .modal-review-text {
        font-size: 15px;
    }
}
