/* General Styles */
.hero-section {
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.testimonial-slide {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.client-info h5 {
    margin: 0;
    font-size: 16px;
}

.client-info p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

/* Desktop Animations - Vertical Scrolling */
@keyframes scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes scrollReverse {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Mobile Animations - Horizontal Scrolling */
@keyframes scrollHorizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollHorizontalReverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.testimonial-container {
    height: 500px;
    overflow: hidden;
    position: relative;
}

.testimonial-group {
    display: flex;
    flex-direction: column;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Desktop styles */
.testimonial-column:nth-child(1) .testimonial-group {
    animation: scroll 20s linear infinite;
}

.testimonial-column:nth-child(2) .testimonial-group {
    animation: scrollReverse 20s linear infinite;
}

/* Pause animation on hover */
.testimonial-container:hover .testimonial-group {
    animation-play-state: paused;
}

/* Mobile styles */
@media (max-width: 768px) {
    .testimonial-container {
        height: auto;
        width: 100%;
        overflow-x: hidden;
        margin-bottom: 30px;
    }
    
    .testimonial-group {
        flex-direction: row;
        width: auto; /* Will be determined by JS */
    }
    
    .testimonial-slide {
        flex: 0 0 280px;
        margin-right: 20px;
        margin-bottom: 0;
    }
    
    .testimonial-column:nth-child(1) .testimonial-group {
        animation: scrollHorizontal 20s linear infinite;
    }
    
    .testimonial-column:nth-child(2) .testimonial-group {
        animation: scrollHorizontalReverse 20s linear infinite;
    }
    
    /* Adjust row layout */
    .row {
        flex-direction: column;
    }
    
    .content-left {
        margin-bottom: 30px;
    }
    
    .col-lg-7 .row {
        flex-direction: column;
    }
}