/* Testimonials Section */
#testimonials_section {
    width: 100%;
    margin-top: 80px;
    margin-bottom: 40px;
}

#testimonials_heading {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: black;
    position: relative;
    padding-bottom: 15px;
}

#testimonials_heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32%;
    height: 2px;
    background: linear-gradient(90deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #0000ff,
        #4b0082,
        #9400d3,
        #ff0000
    );
    background-size: 200% 100%;
    border-radius: 1px;
    animation: rainbowFlow 8s linear infinite;
}

@keyframes rainbowFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

#testimonials_scroll_container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

#testimonials_scroll_container::-webkit-scrollbar {
    height: 8px;
}

#testimonials_scroll_container::-webkit-scrollbar-track {
    background: transparent;
}

#testimonials_scroll_container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

#testimonials_scroll_container::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

.testimonial_card {
    min-width: 300px;
    max-width: 300px;
    background: black;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.testimonial_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.testimonial_text {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial_author_container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.testimonial_avatar {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: black;
    flex-shrink: 0;
}

.testimonial_stars {
    font-size: 16px;
    color: #FFD700;
    letter-spacing: 2px;
}

/* Mobile ------------------------------------------- */
@media screen and (max-width: 900px) {
    #testimonials_heading {
        font-size: 24px;
        margin-bottom: 20px;
    }

    #testimonials_scroll_container {
        padding: 10px 10px 30px 10px;
    }

    .testimonial_card {
        min-width: 280px;
        max-width: 280px;
        padding: 20px;
    }

    .testimonial_text {
        font-size: 15px;
    }

    .testimonial_avatar {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .testimonial_stars {
        font-size: 14px;
    }
}
