:root {
    --testim-bg: #000000;
    --testim-card-bg: #FFFFFF;
    --testim-text-main: #FFFFFF;
    /* Headers on Black Background */
    --testim-card-text: #000000;
    /* Text on White Cards */
    --testim-text-sec: #D1D5DB;
    --testim-accent: #000000;
    /* Default accent, can be overridden */
    --testim-gap: 20px;
    --testim-card-width: 320px;
    --testim-speed: 30s;
}

.testimonials-section {
    background-color: var(--testim-bg);
    padding: 64px 0;
    overflow: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.testimonials-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.testimonials-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--testim-text-main);
    margin-bottom: 16px;
    line-height: 1.2;
}

.testimonials-header p {
    font-size: 18px;
    color: var(--testim-text-sec);
    line-height: 1.5;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 16px;
}

.testimonials-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.testimonials-container {
    display: flex;
    gap: var(--testim-gap);
    width: max-content;
    /* Initial state specifically for JS control, but fallback CSS animation can be applied */
    cursor: grab;
    /* Hardware acceleration for smoother animation */
    will-change: transform;
}

.testimonials-container:active {
    cursor: grabbing;
}

.testimonial-card {
    background: var(--testim-card-bg);
    width: var(--testim-card-width);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    /* Prevent shrinking */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.customer-photo {
    margin-bottom: 16px;
}

.customer-photo img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-size: 16px;
    line-height: 1.5;
    color: var(--testim-card-text);
    font-style: italic;
    margin-bottom: 24px;
    flex-grow: 1;
    /* Pushes details to bottom */
}

.customer-details {
    border-top: 1px solid #E5E7EB;
    padding-top: 16px;
}

.customer-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--testim-card-text);
}

.customer-title {
    font-size: 14px;
    color: var(--testim-text-sec);
    margin-top: 2px;
}

/* Controls */
/* Controls removed */

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-header h2 {
        font-size: 24px;
    }

    .testimonial-card {
        width: 280px;
        /* Slightly narrower on mobile */
        padding: 20px;
    }

    :root {
        --testim-gap: 16px;
    }
}