.testimonials {
    padding: 6rem 0;
    background-color: #000;
    border-top: 1px solid #111;
    overflow: hidden;
    /* Hide overflow for marquee */
}

.container {
    /* max-width: 1200px; removed to allow full width scroll */
    width: 100%;
    padding: 0 1rem;
}

.title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 700;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Marquee Container */
.marqueeWrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.grid {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
    width: max-content;
    /* Ensure it takes full width of content */
    padding-left: 2rem;
    /* Initial offset */
}

.grid:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assuming content is duplicated */
}

.card {
    background: #0a0a0a;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #222;
    width: 350px;
    /* Fixed width for smooth scroll */
    flex-shrink: 0;
}

.quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 2rem;
    font-style: italic;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.name {
    font-weight: 600;
    color: white;
}

.role {
    font-size: 0.85rem;
    color: #888;
}