.ia-3fa54bd6-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    gap: 10px;
    border-radius: 12px;
    /* Added hardware acceleration hint */
    transform: translateZ(0); 
}

.ia-3fa54bd6-item {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    /* Switched to cubic-bezier for smoother feel, increased duration */
    transition: flex 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    border-radius: 8px;
    min-width: 60px;
    /* Force GPU rendering for smoother animation */
    will-change: flex;
}

.ia-3fa54bd6-item.is-active {
    flex: 5;
    cursor: default;
}

.ia-3fa54bd6-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Smother filter transition */
    transition: filter 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: grayscale(100%);
    z-index: 1;
    will-change: filter, left, width;
}

.ia-3fa54bd6-item.is-active .ia-3fa54bd6-bg {
    filter: grayscale(0%);
    width: 60%;
    left: 40%; /* Smoothly slide instead of jumping auto/right */
}

.ia-3fa54bd6-content {
    position: relative;
    z-index: 2;
    width: 40%;
    padding: 30px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease 0s, transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
    visibility: hidden;
    pointer-events: none;
    will-change: opacity, transform;
}

.ia-3fa54bd6-item.is-active .ia-3fa54bd6-content {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    /* Delay content reveal slightly to let flex expansion start */
    transition: opacity 0.6s ease 0.3s, transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s;
}

.ia-3fa54bd6-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
}

.ia-3fa54bd6-subtitle {
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

.ia-3fa54bd6-button {
    display: inline-block;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    align-self: flex-start;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ia-3fa54bd6-button:hover {
    background: #333;
    color: #fff;
}

@media (max-width: 767px) {
    .ia-3fa54bd6-container {
        flex-direction: column;
        height: auto !important;
        min-height: 600px;
    }
    .ia-3fa54bd6-item {
        min-height: 80px;
    }
    .ia-3fa54bd6-item.is-active .ia-3fa54bd6-bg {
        width: 100%;
        height: 50%;
        top: 0;
        left: 0;
    }
    .ia-3fa54bd6-content {
        width: 100%;
        height: 50%;
        margin-top: auto;
        padding: 20px;
        transform: translateY(20px);
    }
    .ia-3fa54bd6-item.is-active .ia-3fa54bd6-content {
        transform: translateY(0);
    }
}