.team-carousel-advanced {
    --tca-accent: #c90000;
    --tca-bg: #edeef1;
    --tca-text: #111111;
    --tca-muted: #555555;
    --tca-pink: #f7dada;
    --tca-anim-duration: 400ms;
    --tca-anim-easing: ease;
    display: flex;
    flex-direction: column;
    gap: 40px;
    font-family: inherit;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.team-carousel-advanced *,
.team-carousel-advanced *::before,
.team-carousel-advanced *::after {
    box-sizing: border-box;
}

.tca-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 80px;
    width: 100%;
}

.tca-title {
    color: var(--tca-accent);
    margin: 0;
    font-size: clamp(48px, 7vw, 110px);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.tca-desc {
    max-width: 520px;
    color: var(--tca-text);
    font-size: 18px;
    line-height: 1.35;
}

.tca-desc p {
    margin: 0 0 10px;
}

.tca-desc p:last-child {
    margin-bottom: 0;
}

.tca-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: var(--tca-body-gap, 40px);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.tca-active-side {
    flex: 1 1 65%;
    position: relative;
    background: var(--tca-bg);
    border-radius: 20px;
    min-height: 400px;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.tca-active-card {
    display: none;
    flex-direction: row;
    align-items: stretch;
    padding: 40px;
    gap: 20px;
    min-height: inherit;
    height: 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.tca-active-card.active {
    display: flex;
    animation-duration: var(--tca-anim-duration);
    animation-timing-function: var(--tca-anim-easing);
    animation-fill-mode: both;
}

.team-carousel-advanced[data-animation="fade"] .tca-active-card.active {
    animation-name: tcaFadeIn;
}

.team-carousel-advanced[data-animation="slide"] .tca-active-card.active {
    animation-name: tcaSlideInNext;
}

.team-carousel-advanced[data-animation="slide"][data-direction="prev"] .tca-active-card.active {
    animation-name: tcaSlideInPrev;
}

.team-carousel-advanced[data-animation="fade_slide"] .tca-active-card.active {
    animation-name: tcaFadeSlideInNext;
}

.team-carousel-advanced[data-animation="fade_slide"][data-direction="prev"] .tca-active-card.active {
    animation-name: tcaFadeSlideInPrev;
}

.team-carousel-advanced[data-animation="scale_fade"] .tca-active-card.active {
    animation-name: tcaScaleFadeIn;
}

.team-carousel-advanced[data-animation="none"] .tca-active-card.active {
    animation: none;
}

.tca-card-content {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
}

.tca-number {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: var(--tca-accent);
    color: #ffffff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 20px;
    font-weight: 700;
    line-height: 1;
}

.tca-pills {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 0 0 20px;
    flex-wrap: wrap;
    align-items: center;
}

.tca-pill {
    background: var(--tca-accent);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 16px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.tca-name {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--tca-text);
}

.tca-bio {
    color: var(--tca-muted);
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.tca-bio p {
    margin: 0 0 10px;
}

.tca-bio p:last-child {
    margin-bottom: 0;
}

.tca-card-image {
    flex: 1 1 50%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-width: 0;
}

.tca-card-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
}

.tca-nav-side {
    width: 35%;
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
    min-width: 0;
    max-width: 100%;
    align-self: stretch;
}

.tca-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
}

.tca-counter {
    background: var(--tca-pink);
    color: var(--tca-accent);
    padding: 10px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.tca-arrows {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    flex: 0 0 auto;
}

.tca-btn {
    width: 46px;
    height: 46px;
    min-width: 0;
    min-height: 0;
    border: 2px solid var(--tca-accent);
    border-radius: 999px;
    background: transparent;
    color: var(--tca-accent);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease, opacity 200ms ease;
    appearance: none;
}

.tca-btn:hover,
.tca-btn:focus-visible {
    outline: none;
}

.tca-btn svg,
.tca-btn i {
    display: block;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
}

.team-carousel-advanced[data-arrow-hover-transform="scale"] .tca-btn:hover {
    transform: scale(1.08);
}

.team-carousel-advanced[data-arrow-hover-transform="move"] .tca-prev:hover {
    transform: translateX(-4px);
}

.team-carousel-advanced[data-arrow-hover-transform="move"] .tca-next:hover {
    transform: translateX(4px);
}

.tca-btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.tca-thumbnails-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.tca-thumbnails {
    display: flex;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    transition: opacity var(--tca-anim-duration) var(--tca-anim-easing), transform var(--tca-anim-duration) var(--tca-anim-easing);
}

.tca-thumb {
    --tca-thumb-min-width: 150px;
    --tca-thumb-min-height: 150px;
    width: 150px;
    height: 170px;
    background: var(--tca-bg);
    border: 0;
    border-radius: 12px;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    transition: transform 200ms ease, opacity 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
    appearance: none;
}


.team-carousel-advanced[data-thumb-fill-width="yes"] .tca-thumbnails {
    display: grid;
    grid-template-columns: repeat(var(--tca-visible-current, 3), minmax(0, 1fr));
    width: 100%;
}

.team-carousel-advanced[data-thumb-fill-width="yes"] .tca-thumb {
    width: 100%;
    min-width: 0;
    flex: none;
}

.team-carousel-advanced[data-thumb-square="yes"] .tca-thumb {
    aspect-ratio: 1 / 1;
    height: auto;
}

.team-carousel-advanced[data-thumb-fill-width="yes"][data-thumb-square="yes"] .tca-thumb {
    height: auto;
    min-height: 0;
}

.tca-thumb[hidden] {
    display: none !important;
}

.tca-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
}

.team-carousel-advanced[data-clickable-thumbs="no"] .tca-thumb {
    cursor: default;
    pointer-events: none;
}

.team-carousel-advanced[data-thumb-hover-transform="scale"] .tca-thumb:hover {
    transform: scale(1.04);
}

.team-carousel-advanced[data-thumb-hover-transform="move_up"] .tca-thumb:hover {
    transform: translateY(-5px);
}

.tca-thumbnails.is-updating {
    opacity: 0.65;
}

@keyframes tcaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tcaSlideInNext {
    from { transform: translateX(24px); }
    to { transform: translateX(0); }
}

@keyframes tcaSlideInPrev {
    from { transform: translateX(-24px); }
    to { transform: translateX(0); }
}

@keyframes tcaFadeSlideInNext {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes tcaFadeSlideInPrev {
    from { opacity: 0; transform: translateX(-28px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes tcaScaleFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}


@media (max-width: 1360px) {
    .team-carousel-advanced[data-thumb-fill-width="yes"] .tca-thumbnails {
        grid-template-columns: repeat(var(--tca-visible-current, 2), minmax(0, 1fr));
    }

    .team-carousel-advanced[data-thumb-fill-width="yes"][data-thumb-square="yes"] .tca-thumb {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 1024px) {
    .tca-header {
        gap: 40px;
    }

    .tca-body {
        flex-direction: column;
    }

    .tca-active-side,
    .tca-nav-side {
        width: 100%;
        flex-basis: auto;
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .team-carousel-advanced {
        gap: 28px;
    }

    .tca-header {
        flex-direction: column;
        gap: 18px;
    }

    .tca-title,
    .tca-desc {
        width: 100%;
        max-width: 100%;
    }

    .tca-active-card {
        flex-direction: column;
    }

    .tca-card-content,
    .tca-card-image {
        width: 100%;
        flex-basis: auto;
    }

    .tca-card-image {
        justify-content: center;
    }

    .tca-nav-header {
        flex-wrap: wrap;
    }

    .team-carousel-advanced[data-mobile-scroll="yes"] .tca-thumbnails-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .team-carousel-advanced[data-mobile-scroll="yes"] .tca-thumbnails {
        width: max-content;
        min-width: 100%;
    }

    .team-carousel-advanced[data-mobile-scroll="yes"][data-thumb-fill-width="yes"] .tca-thumbnails {
        width: 100%;
        min-width: 0;
    }
}
