.otters-team-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 400px;
    gap: 40px;
    position: relative;
}

/* Info Column */
.otters-team-info {
    flex: 1;
    position: relative;
    min-height: 200px;
}

.otters-info-item {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.otters-info-item.is-active {
    opacity: 1;
    visibility: visible;
}

/* Header Layout */
.otters-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Name & Role */
.otters-name-role {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.otters-name {
    font-weight: 700;
    margin: 0;
}

.otters-role {
    display: block;
    font-size: 14px;
    opacity: 0.8;
}

/* Social Icons */
.otters-social {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
}

.otters-social a,
.otters-social a svg {
    transition: all 0.3s ease-in-out;
}

.otters-desc {
    margin: 0;
    line-height: 1.6;
}

/* Image Stack Column */
.otters-team-images {
    width: 300px;
    height: 300px;
    position: relative;
    align-self: flex-end;
    margin-right: calc((var(--otters-total-cards, 1) - 1) * var(--otters-card-gap, 55px));
}

.otters-image-item {
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    cursor: pointer;
    opacity: 1 !important;
    transform: translateX(calc(var(--stack-idx, 0) * var(--otters-card-gap, 55px)));
    filter: brightness(calc(1 - (var(--stack-idx, 0) * 0.15)));
    background-repeat: no-repeat;
    background-position: center center;
}

/* Active & Stack Positions (LTR) */
.otters-image-item.is-active {
    transform: translateY(-25px) translateX(0) !important;
    filter: brightness(1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* RTL Support */
html[dir="rtl"] .otters-team-images {
    margin-right: 0;
    margin-left: calc((var(--otters-total-cards, 1) - 1) * var(--otters-card-gap, 55px));
}

html[dir="rtl"] .otters-image-item {
    right: 0;
    left: auto;
    transform: translateX(calc(var(--stack-idx, 0) * var(--otters-card-gap, 55px) * -1));
}

html[dir="rtl"] .otters-image-item.is-active {
    transform: translateY(-25px) translateX(0) !important;
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
    .otters-team-wrapper {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 60px;
    }

    .otters-info-header {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        text-align: center;
    }

    .otters-social {
        justify-content: center;
    }

    .otters-team-images {
        margin: 0 auto !important;
        display: block;
        transform: translateX(calc((var(--otters-total-cards, 1) - 1) * var(--otters-card-gap, 55px) * -0.5));
    }

    html[dir="rtl"] .otters-team-images {
        transform: translateX(calc((var(--otters-total-cards, 1) - 1) * var(--otters-card-gap, 55px) * 0.5));
    }

    .otters-image-item {
        left: 0 !important;
        margin-left: 0 !important;
        right: auto !important;
    }
}