.team-marquee-container-c3f3cdfd {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.team-marquee-container-c3f3cdfd:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-content {
    display: inline-block;
    animation: marquee-c3f3cdfd 20s linear infinite;
}

@keyframes marquee-c3f3cdfd {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Translate by half to loop seamlessly with doubled content */
}

.team-member-card {
    display: inline-block;
    position: relative;
    width: 250px;
    height: 350px;
    margin: 0 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    white-space: normal; /* Reset whitespace for inner content */
    vertical-align: top;
}

.member-image {
    width: 100%;
    height: 100%;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 1;
    transition: transform 0.3s ease;
}

.member-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    text-align: center;
}

.member-description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.team-member-card:hover .member-overlay {
    opacity: 1;
}

.team-member-card:hover .member-info {
    transform: translateY(100%);
}