﻿.review_section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    overflow: hidden;
}

.review_title {
    color: darkblue;
    text-align: center;
    margin: 0 auto 30px;
    font-weight: bold;
    font-size: 1.75rem;
}

.review_slider {
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.review_slide {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollReviews 60s linear infinite;
    will-change: transform;
    backface-visibility: hidden;
}

.review_slide::after {
    content: "";
    display: none; /* Remove if you're manually duplicating content */
}

.review_box {
    flex: 0 0 300px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.1s ease;
}

    .review_box:hover {
        transform: translateY(-5px);
    }

.star_icon {
    text-align: center;
    margin-bottom: 10px;
}

    .star_icon i {
        color: #f5a623;
        margin: 0 1px;
    }

.review_words {
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
}

.review_author {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

@keyframes scrollReviews {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Pause scrolling when hovered */
.review_slide:hover {
    animation-play-state: paused;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .review_slide {
        animation-duration: 30s;
    }

    .review_box {
        flex: 0 0 250px;
    }

    .review_title {
        font-size: 1.5rem;
    }
}
