.nepalevs-expert-reviews h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.expert-reviews-carousel {
    position: relative;
    padding: 0;
}

.swiper-slide {
    height: 240px; /* Fixed height for desktop */
    display: flex;
    align-items: stretch;
}

.expert-review-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    border: none;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expert-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.top-critic-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4d4f;
    color: #fff;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expert-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #2d2d2d;
    height: 24px; /* Fixed height */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-comment {
    font-size: 14px;
    margin: 0 0 8px;
    line-height: 1.5;
    color: #4a4a4a;
    height: 66px; /* Fixed height for 3 lines on desktop */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.see-more-container {
    height: 20px; /* Fixed height */
    margin-bottom: 8px;
}

.see-more-link {
    color: #1e90ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.see-more-link:hover {
    color: #40c4ff;
}

.comment-tooltip {
    visibility: hidden;
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d2d2d;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 240px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.comment-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #2d2d2d;
}

.see-more-link:hover .comment-tooltip {
    visibility: visible;
    opacity: 1;
    top: -110%;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b6b6b;
    height: 18px; /* Fixed height */
    margin-top: auto;
}

.review-rating {
    font-weight: 500;
    color: #4a4a4a;
}

.full-review-link {
    color: #1e90ff;
    text-decoration: none;
    font-weight: 500;
}

.full-review-link:hover {
    color: #40c4ff;
}

/* Ensure arrows are hidden */
.swiper-button-prev,
.swiper-button-next {
    display: none !important;
}

.view-all-reviews {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: #1e90ff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.view-all-reviews:hover {
    color: #40c4ff;
    text-decoration: underline;
}

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

.expert-review-modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    max-width: 95%; /* Slightly more width for larger screens */
    width: 1200px; /* Increased width for more horizontal text spread */
    max-height: 70%; /* Reduced height to encourage horizontal flow */
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-comment-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.expert-review-modal-content p {
    font-size: 18px; /* Larger font for better readability */
    line-height: 1.8; /* Increased line height for more horizontal spread */
    color: #2d2d2d;
    margin: 0;
    white-space: pre-wrap; /* Preserve line breaks and spacing */
    text-align: left;
    width: 100%; /* Ensure text uses full width of modal */
    overflow-wrap: break-word; /* Break long words to prevent overflow */
}

.expert-review-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    color: #4a4a4a;
    cursor: pointer;
    font-weight: bold;
}

.expert-review-modal-close:hover {
    color: #1e90ff;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .nepalevs-expert-reviews h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .expert-reviews-carousel {
        padding: 0 8px;
    }

    .swiper-slide {
        height: 280px; /* Increased height for mobile to accommodate more comment text */
    }

    .expert-review-card {
        padding: 12px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
    }

    .expert-review-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    }

    .expert-name {
        font-size: 15px;
        height: 22px;
        margin-bottom: 6px;
    }

    .review-comment {
        font-size: 13px;
        line-height: 1.5;
        height: 114px; /* Increased to 4 lines to show more text */
        -webkit-line-clamp: 4; /* Allow 4 lines */
    }

    .see-more-container {
        height: 18px;
        margin-bottom: 6px;
    }

    .see-more-link {
        font-size: 12px;
    }

    .comment-tooltip {
        max-width: 200px;
        font-size: 12px;
        padding: 8px 12px;
    }

    .review-meta {
        font-size: 12px;
        height: 16px;
    }

    .expert-review-modal-content {
        width: 95%;
        padding: 16px;
        max-height: 80%; /* Slightly more height on mobile */
    }

    .expert-review-modal-content p {
        font-size: 16px; /* Slightly smaller font on mobile */
        line-height: 1.6; /* Adjusted for mobile readability */
    }

    .expert-review-modal-close {
        font-size: 20px;
        top: 12px;
        right: 12px;
    }
}

/* Desktop adjustments */
@media (min-width: 1024px) {
    .expert-reviews-carousel {
        padding: 0;
    }

    .swiper-slide {
        height: 240px;
    }
}