/* Interactive Team Accordion – e3aa60f6 */

.ita-e3aa60f6-wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 550px;
    overflow: hidden;
    border-radius: 12px;
}

/* ── Individual Item ── */
.ita-e3aa60f6-item {
    position: relative;
    flex: 1 1 0%;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    transition: flex-grow 600ms cubic-bezier(0.4, 0, 0.2, 1), filter 600ms ease;
}

.ita-e3aa60f6-item.ita-e3aa60f6-active {
    flex-grow: 5;
    filter: grayscale(0%);
}

/* Dark overlay on collapsed items for label readability */
.ita-e3aa60f6-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: opacity 600ms ease;
    pointer-events: none;
}

.ita-e3aa60f6-item.ita-e3aa60f6-active::after {
    opacity: 0;
}

/* ── Collapsed Label (vertical text) ── */
.ita-e3aa60f6-label {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: center center;
    white-space: nowrap;
    z-index: 2;
    transition: opacity 400ms ease;
    pointer-events: none;
}

.ita-e3aa60f6-label-name {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
}

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

/* ── Expanded Content Overlay ── */
.ita-e3aa60f6-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.85) 55%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 600ms ease 600ms;
    z-index: 3;
}

.ita-e3aa60f6-item.ita-e3aa60f6-active .ita-e3aa60f6-content {
    opacity: 1;
    pointer-events: auto;
}

.ita-e3aa60f6-content-inner {
    max-width: 55%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── Text Styles ── */
.ita-e3aa60f6-name {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.ita-e3aa60f6-job {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ita-e3aa60f6-bio {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #cbd5e1;
}

/* ── Social Icons ── */
.ita-e3aa60f6-social {
    display: flex;
    gap: 0.75rem;
    margin: 0.25rem 0;
}

.ita-e3aa60f6-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: background 300ms ease, color 300ms ease;
}

.ita-e3aa60f6-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #38bdf8;
}

.ita-e3aa60f6-social a svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    transition: fill 300ms ease;
}

.ita-e3aa60f6-social a:hover svg {
    fill: #38bdf8;
}

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

    .ita-e3aa60f6-item {
        min-height: 80px;
        flex: 0 0 80px;
        transition: flex 600ms cubic-bezier(0.4, 0, 0.2, 1), filter 600ms ease;
    }

    .ita-e3aa60f6-item.ita-e3aa60f6-active {
        flex: 0 0 420px;
    }

    .ita-e3aa60f6-label {
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(0deg);
    }

    .ita-e3aa60f6-content {
        background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.9) 60%, transparent 100%);
    }

    .ita-e3aa60f6-content-inner {
        max-width: 100%;
    }
}
