.ta-9d7f46b9-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    overflow: hidden;
    gap: 10px;
}

.ta-9d7f46b9-item {
    flex: 1;
    display: flex;
    flex-direction: row;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #f9f9f9;
}

.ta-9d7f46b9-mobile-header {
    display: none;
}

.ta-9d7f46b9-item.is-active {
    flex: 5;
    cursor: default;
}

.ta-9d7f46b9-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.6s ease, width 0.6s ease;
    min-width: 80px;
}

.ta-9d7f46b9-item.is-active .ta-9d7f46b9-image {
    filter: grayscale(0%);
    width: 50%; /* Image takes right half when active */
}

.ta-9d7f46b9-content-wrap {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.6s ease, opacity 0.4s ease, height 0.6s ease;
    display: flex;
    flex-direction: column;
}

.ta-9d7f46b9-item.is-active .ta-9d7f46b9-content-wrap {
    width: 50%;
    opacity: 1;
    transition: width 0.6s ease, opacity 0.8s ease 0.2s, height 0.6s ease;
}

.ta-9d7f46b9-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.ta-9d7f46b9-name {
    margin: 0 0 5px 0;
    font-size: 24px;
    line-height: 1.2;
}

.ta-9d7f46b9-job {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.ta-9d7f46b9-social {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.ta-9d7f46b9-social a {
    font-size: 18px;
    color: #333;
    transition: color 0.3s;
}

.ta-9d7f46b9-bio {
    flex-grow: 1;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.6;
    padding-right: 10px;
    color: #444;
}

/* Custom Scrollbar for Bio */
.ta-9d7f46b9-bio::-webkit-scrollbar {
    width: 6px;
}
.ta-9d7f46b9-bio::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.ta-9d7f46b9-bio::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.ta-9d7f46b9-bio::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .ta-9d7f46b9-container {
        flex-direction: column; 
        height: auto !important; 
        gap: 0;
    }
    
    .ta-9d7f46b9-item {
        flex-direction: column; 
        min-height: auto;
        border-radius: 0;
        border-bottom: 1px solid #eee;
    }

    .ta-9d7f46b9-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        background: #fff;
        cursor: pointer;
    }

    .ta-9d7f46b9-mobile-title {
        font-size: 16px;
        font-weight: bold;
        color: #333;
    }

    .ta-9d7f46b9-mobile-job {
        font-weight: normal;
        color: #777;
        font-size: 14px;
    }

    .ta-9d7f46b9-mobile-toggle {
        font-size: 14px;
        color: #555;
        transition: transform 0.3s ease;
    }

    .ta-9d7f46b9-item.is-active .ta-9d7f46b9-mobile-toggle {
        transform: rotate(180deg);
    }

    .ta-9d7f46b9-item.is-active {
        flex: 1; /* Reset flex */
    }

    .ta-9d7f46b9-image {
        display: none; /* Hide image entirely on mobile */
    }

    .ta-9d7f46b9-item.is-active .ta-9d7f46b9-image {
        display: none;
    }

    .ta-9d7f46b9-content-wrap {
        width: 100%;
        height: 0;
        padding: 0;
        transition: height 0.4s ease;
    }

    .ta-9d7f46b9-item.is-active .ta-9d7f46b9-content-wrap {
        width: 100%;
        height: auto; /* Expand height for content */
        transition: height 0.4s ease;
    }
    
    .ta-9d7f46b9-content {
        padding: 20px;
        /* Hide desktop title/job since it's in header now */
    }

    .ta-9d7f46b9-content .ta-9d7f46b9-name,
    .ta-9d7f46b9-content .ta-9d7f46b9-job {
        display: none;
    }
}
