/* ── Interactive Team Accordion fa50712d ── */

.ita-fa50712d-wrap {
    display: flex;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

/* ── Individual Item ── */
.ita-fa50712d-item {
    position: relative;
    flex: 1 1 0%;
    min-width: 0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    transition: flex-grow var(--ita-speed, 600ms) cubic-bezier(0.4, 0, 0.2, 1);
}

.ita-fa50712d-item + .ita-fa50712d-item {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

/* ── Image Wrapper ── */
.ita-fa50712d-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ita-fa50712d-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter var(--ita-speed, 600ms) cubic-bezier(0.4, 0, 0.2, 1);
}

.ita-fa50712d-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    transition: opacity var(--ita-speed, 600ms) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

/* ── Active State ── */
.ita-fa50712d-item.ita-fa50712d-active {
    flex-grow: 5;
}

.ita-fa50712d-item.ita-fa50712d-active .ita-fa50712d-img-wrap img {
    filter: grayscale(0%);
}

.ita-fa50712d-item.ita-fa50712d-active .ita-fa50712d-img-wrap::after {
    opacity: 0;
}

/* ── Strip Label (visible when collapsed) ── */
.ita-fa50712d-strip-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: center center;
    white-space: nowrap;
    z-index: 5;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 1;
    transition: opacity calc(var(--ita-speed, 600ms) * 0.5) ease;
    pointer-events: none;
}

.ita-fa50712d-item.ita-fa50712d-active .ita-fa50712d-strip-label {
    opacity: 0;
}

/* ── Content Overlay (visible when expanded) ── */
.ita-fa50712d-content {
    position: relative;
    z-index: 10;
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        width var(--ita-speed, 600ms) cubic-bezier(0.4, 0, 0.2, 1),
        opacity var(--ita-speed, 600ms) cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background-color: #111111;
}

.ita-fa50712d-item.ita-fa50712d-active .ita-fa50712d-content {
    width: 45%;
    opacity: 1;
}

.ita-fa50712d-content-inner {
    padding: 40px 35px;
    min-width: 220px;
}

/* ── Name ── */
.ita-fa50712d-name {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

/* ── Job Title ── */
.ita-fa50712d-job {
    display: block;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #cccccc;
}

/* ── Social Icons ── */
.ita-fa50712d-social {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.ita-fa50712d-social a {
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ita-fa50712d-social a:hover {
    color: #e74c3c;
    transform: translateY(-2px);
}

.ita-fa50712d-social a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: fill 0.25s ease;
}

/* ── Bio ── */
.ita-fa50712d-bio {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #aaaaaa;
}

/* ── Remaining image area fills the rest ── */
.ita-fa50712d-item.ita-fa50712d-active .ita-fa50712d-img-wrap {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

/* ── Mobile: Stack Vertically ── */
@media (max-width: 767px) {
    .ita-fa50712d-wrap {
        flex-direction: column;
        height: auto !important;
    }

    .ita-fa50712d-item {
        flex: none;
        height: 80px;
        transition: height var(--ita-speed, 600ms) cubic-bezier(0.4, 0, 0.2, 1);
    }

    .ita-fa50712d-item + .ita-fa50712d-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .ita-fa50712d-item.ita-fa50712d-active {
        height: 480px;
        flex-grow: unset;
    }

    .ita-fa50712d-item.ita-fa50712d-active .ita-fa50712d-content {
        width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        max-height: 60%;
        overflow-y: auto;
        background: linear-gradient(to top, rgba(17,17,17,0.95) 70%, transparent);
    }

    .ita-fa50712d-item.ita-fa50712d-active .ita-fa50712d-img-wrap {
        position: absolute;
    }

    .ita-fa50712d-strip-label {
        bottom: 50%;
        transform: translateX(-50%) translateY(50%) rotate(0deg);
        font-size: 14px;
    }

    .ita-fa50712d-content-inner {
        padding: 24px 20px;
        min-width: unset;
    }

    .ita-fa50712d-name {
        font-size: 22px;
    }
}
