/* 
* Seaside Media Testimonials Section Styles
*/

/*-----------------Testimonials Carousel-----------------------*/

/* prevent overflow from items moving out of the frame*/
html, body {
    overflow-x: hidden;
}

/* Testimonials Section */
.testimonials-section .container {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
}

.testimonials-section .section-title {
    padding: 0 15px;
    margin-bottom: 2rem;
}

.testimonials-row {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0 0 1.5rem 15px;
    overflow: visible;
    position: relative;
    left: 0;
}

/*----Animates carousel---*/
.movingreviewssection1 {
    /* Set width to accommodate all testimonials and their duplicates */
    width: 200%;
    /* adjust the line below to change speed animation */
    animation: Scrolltest2 60s linear infinite;
    /* Fix initial position */
    transform: translateX(0);
    left: 0;
    position: relative;
    margin-left: 0;
}

.testimonial-card {
    background-color: #1a2838;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--brand-default);
    flex: 0 0 300px;
    margin-right: 0;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.client-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.15);
}

.client-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: var(--brand-default); /* Orange color */
}

.stars {
    color: gold;
}

.quote {
    font-size: 0.9rem;
    color: white;
}

/*----Keyframes animation---*/
@keyframes Scrolltest2 {
    0% {
        transform: translateX(0);
        -webkit-transform: translateX(0);
    }
    100% {
        /* Move exactly half the width (since we have duplicates) */
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
    }
}

/* ---format and speed animation preferences for mobile----*/
@media only screen and (max-width: 767px) {
    .testimonial-card {
        flex: 0 0 85vw;
    }
    
    /*----Animates carousel---*/
    .movingreviewssection1 {
        width: 200% !important;
    }
}
