.ita-wrapper-759902c4 {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.ita-wrapper-759902c4::-webkit-scrollbar {
    height: 8px;
}

.ita-wrapper-759902c4::-webkit-scrollbar-track {
    background: transparent;
}

.ita-wrapper-759902c4::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.ita-container-759902c4 {
    display: flex;
    gap: 15px;
    height: 100%; /* Height controlled by Elementor setting */
    min-width: min-content; /* Allow container to grow beyond wrapper */
}

.ita-item-759902c4 {
    flex: 0 0 calc(20% - 12px); /* Base width for 5 items, minus gap */
    min-width: 150px; /* Absolute minimum width */
    max-width: 400px; /* Don't get too wide on very large screens */
    display: flex;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), min-width 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    background: #ffffff;
    opacity: 0;
    transform: translateX(50px); /* Changed animation to be less intrusive for scrolling */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ita-item-759902c4:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ita-item-759902c4.ita-animated-759902c4 {
    opacity: 1;
    transform: translateX(0);
}

.ita-item-759902c4.ita-active-759902c4 {
    flex: 0 0 450px; /* Fixed wider width for active item */
    min-width: 450px; /* Ensure it stays wide */
}

.ita-image-759902c4 {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.6s ease, width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    min-width: 100px;
}

.ita-image-759902c4::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 15%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.ita-item-759902c4.ita-active-759902c4 .ita-image-759902c4 {
    width: 50%;
    filter: grayscale(0%) contrast(1);
}

.ita-item-759902c4.ita-active-759902c4 .ita-image-759902c4::after {
    opacity: 1;
}

.ita-content-759902c4 {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease 0.2s;
    display: flex;
    align-items: center;
    padding: 0;
    background: #ffffff;
    z-index: 2;
}

.ita-item-759902c4.ita-active-759902c4 .ita-content-759902c4 {
    width: 50%;
    opacity: 1;
    padding: 25px;
    overflow-y: auto;
}

.ita-content-inner-759902c4 {
    min-width: 200px;
    transform: translateX(-20px);
    opacity: 0;
    transition: transform 0.5s ease 0.3s, opacity 0.5s ease 0.3s;
}

.ita-item-759902c4.ita-active-759902c4 .ita-content-inner-759902c4 {
    transform: translateX(0);
    opacity: 1;
}

.ita-name-759902c4 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 700;
}

.ita-job-759902c4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

.ita-bio-759902c4 {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #555;
}

.ita-social-759902c4 {
    display: flex;
    gap: 12px;
}

.ita-social-link-759902c4 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ita-social-link-759902c4 svg {
    width: 14px;
    height: 14px;
    transition: all 0.3s ease;
}

.ita-social-link-759902c4:hover {
    transform: translateY(-3px);
    background: #e9e9e9;
}

@media (max-width: 1024px) {
    .ita-item-759902c4 {
        flex: 0 0 calc(33.333% - 10px); /* Show ~3 items on tablet */
    }
    .ita-item-759902c4.ita-active-759902c4 {
        flex: 0 0 400px;
        min-width: 400px;
    }
}

@media (max-width: 767px) {
    .ita-wrapper-759902c4 {
        height: auto !important; /* Override elementor height on mobile if needed, or let user control it */
    }
    .ita-container-759902c4 {
        height: 400px; /* Fixed height for horizontal scroll on mobile */
    }
    .ita-item-759902c4 {
        flex: 0 0 120px; /* Fixed width for inactive items on mobile */
        min-width: 120px;
        flex-direction: column-reverse; /* Stack content and image */
    }
    
    .ita-item-759902c4.ita-active-759902c4 {
        flex: 0 0 300px; /* Width for active item */
        min-width: 300px;
    }
    
    .ita-item-759902c4.ita-active-759902c4 .ita-image-759902c4,
    .ita-item-759902c4.ita-active-759902c4 .ita-content-759902c4 {
        width: 100%;
        height: 50%; /* 50/50 split vertically */
    }
    
    .ita-item-759902c4.ita-active-759902c4 .ita-content-759902c4 {
        padding: 20px;
    }
    
    .ita-image-759902c4::after {
        background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 20%);
    }
}