/* Reviews Section */
.reviews-section-wrapper {
    padding: 80px 0;
    width: 100%;
    position: relative;
    background: linear-gradient(to bottom, #fcfcfc 0%, #f7fafc 100%);

}

.reviews-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 60px 0;
    border-radius: 24px;
    background: #e0f2fe;
    position: relative;
    overflow: hidden;
    display: flex;
    max-height: 800px;
    flex-direction: column;
}

.reviews-copy {
    padding: 12px 0;
    text-align: center;
}

.reviews-title {
    font-size: 42px;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.reviews-link {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.reviews-link:hover {
    color: #1d4ed8;
}

.reviews-grid-wrapper {
    flex: 1.5;
    position: relative;
    height: 420px;
    overflow: hidden;
}

/* Gradient handled by .reviews-section::after */
.reviews-grid-wrapper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to top, #e0f2fe 35%, rgba(248,249,250,0));
    pointer-events: none;
    z-index: 1;
}

.reviews-grid {
    height: 100%;
    overflow: hidden;
    column-gap: 24px;
    column-count: 3;
}

.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    display: inline-block;
    width: 100%;
    break-inside: avoid-column;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-stars {
    color: #ef4444; /* Red stars as per image */
    letter-spacing: 1px;
    font-size: 14px;
}

.review-card h4 {
    font-size: 18px;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.review-card span {
    font-size: 12px;
    color: #9ca3af;
    display: block;
    margin-bottom: 12px;
}

.review-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #374151;
    margin: 0;
    font-weight: 500;
}

/* Mobile Carousel Styles */
@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 0;
        max-height: none;
        background: #fff5f5; /* Light reddish background as per image */
    }

    .reviews-copy {
        padding: 0 20px 32px;
    }

    .reviews-title {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .reviews-grid-wrapper {
        height: auto;
        overflow: hidden;
    }

    .reviews-grid-wrapper::after {
        display: none;
    }

    .reviews-grid {
        display: none;
    }

    .reviews-carousel-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .reviews-carousel-row {
        display: flex;
        gap: 16px;
        width: max-content;
    }

    /* Top row: Left to Right */
    .reviews-carousel-row.row-top {
        animation: scrollRight 30s linear infinite;
    }

    /* Bottom row: Right to Left */
    .reviews-carousel-row.row-bottom {
        animation: scrollLeft 30s linear infinite;
    }

    .reviews-carousel-row:hover {
        animation-play-state: paused;
    }

    .review-card {
        flex: 0 0 300px;
        width: 300px;
        margin-bottom: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        border: 1px solid rgba(0,0,0,0.03);
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 3 - 16px * 3));
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(calc(-300px * 3 - 16px * 3));
    }
    100% {
        transform: translateX(0);
    }
}
