/*** Team section ***/
.team-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.team-section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.team-section-bg-image {
    position: absolute;
    inset: -20px;
    background-image: var(--team-bg-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(12px);
    opacity: .35;
    transform: scale(1.08);
}

.team-section-bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .82) 0%, rgba(244, 246, 249, .9) 100%);
}

.team-section .tech-bg-canvas {
    opacity: .18;
}

.team-section-content {
    position: relative;
    z-index: 1;
}

.team-carousel-wrap {
    position: relative;
    overflow: hidden;
}

.team-carousel-wrap--slider {
    padding: 0 3rem;
}

.team-carousel.is-slider:not(.owl-loaded) {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1rem;
    overflow: hidden;
}

.team-carousel.is-slider:not(.owl-loaded) > .team-carousel-item {
    flex: 0 0 auto;
    width: 280px;
    max-width: 280px;
}

.team-carousel .owl-stage-outer {
    overflow: hidden;
}

.team-carousel-item {
    padding: .5rem .25rem 1.25rem;
}

.team-glass-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, .42);
    border: 1px solid rgba(255, 255, 255, .72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 10px 36px rgba(15, 23, 43, .08),
        inset 0 1px 0 rgba(255, 255, 255, .92);
    overflow: hidden;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.team-glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(254, 161, 22, .28);
    box-shadow:
        0 18px 44px rgba(15, 23, 43, .12),
        0 0 0 1px rgba(254, 161, 22, .08),
        inset 0 1px 0 rgba(255, 255, 255, .95);
}

.team-glass-card-avatar {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(254, 161, 22, .82), rgba(245, 158, 11, .68));
    border-bottom: 1px solid rgba(255, 255, 255, .35);
}

.team-glass-card-avatar-ring {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, .85);
    box-shadow: 0 8px 24px rgba(15, 23, 43, .15);
    background: rgba(255, 255, 255, .22);
}

.team-glass-card-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border: 0;
    box-shadow: none;
}

.team-glass-card-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 2.75rem;
}

.team-glass-card-body {
    padding: 1.35rem 1.25rem 1.5rem;
}

.team-glass-card-name {
    margin: 0 0 .35rem;
    font-weight: 700;
    color: var(--dark);
    font-size: 1.05rem;
}

.team-glass-card-position {
    display: block;
    color: #64748b;
    font-size: .88rem;
    line-height: 1.5;
}

.team-glass-card-social {
    display: flex;
    justify-content: center;
    gap: .45rem;
    margin-top: 1rem;
}

.team-glass-card-social a {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(254, 161, 22, .12);
    border: 1px solid rgba(254, 161, 22, .2);
    color: var(--primary);
    text-decoration: none;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.team-glass-card-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.team-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin: 0;
    pointer-events: none;
}

.team-carousel .owl-nav button.owl-prev,
.team-carousel .owl-nav button.owl-next {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .75) !important;
    border: 1px solid rgba(255, 255, 255, .9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--dark) !important;
    font-size: 1.1rem !important;
    box-shadow: 0 8px 24px rgba(15, 23, 43, .1);
    pointer-events: auto;
    transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.team-carousel .owl-nav button.owl-prev {
    left: -2.75rem;
    right: auto;
}

.team-carousel .owl-nav button.owl-next {
    right: -2.75rem;
    left: auto;
}

.team-carousel .owl-nav button.owl-prev:hover,
.team-carousel .owl-nav button.owl-next:hover {
    background: var(--primary) !important;
    color: #fff !important;
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(254, 161, 22, .28);
}

.team-carousel .owl-nav button.disabled {
    opacity: .35;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .team-carousel-wrap--slider {
        padding: 0;
    }

    .team-carousel .owl-nav {
        display: none !important;
    }

    .team-carousel .owl-stage-outer {
        overflow: hidden;
    }

    .team-carousel .owl-item {
        display: flex;
        align-items: flex-start;
    }

    .team-carousel-item {
        padding: .2rem .12rem .65rem;
        width: 100%;
    }

    .team-glass-card {
        height: auto;
        width: 100%;
        border-radius: 14px;
    }

    .team-glass-card-avatar {
        min-height: 0 !important;
        height: 76px !important;
        max-height: 76px !important;
        padding: .5rem !important;
    }

    .team-glass-card-avatar-ring {
        width: 54px;
        height: 54px;
    }

    .team-glass-card-fallback {
        font-size: 1.25rem;
    }

    .team-glass-card-body {
        padding: .6rem .5rem .75rem;
    }

    .team-glass-card-name {
        font-size: .76rem;
        margin-bottom: .15rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .team-glass-card-position {
        font-size: .64rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .team-glass-card-social {
        gap: .3rem;
        margin-top: .5rem;
    }

    .team-glass-card-social a {
        width: 26px;
        height: 26px;
        border-radius: 7px;
        font-size: .7rem;
    }

    .team-carousel .owl-nav button.owl-prev {
        left: -2.25rem;
        right: auto;
    }

    .team-carousel .owl-nav button.owl-next {
        right: -2.25rem;
        left: auto;
    }
}

@media (max-width: 575.98px) {
    .team-carousel-wrap--slider {
        padding: 0;
    }

    .team-glass-card-avatar {
        height: 70px !important;
        max-height: 70px !important;
    }

    .team-glass-card-avatar-ring {
        width: 50px;
        height: 50px;
    }

    .team-carousel .owl-nav button.owl-prev,
    .team-carousel .owl-nav button.owl-next {
        width: 40px;
        height: 40px;
    }

    .team-carousel .owl-nav button.owl-prev {
        left: -1.5rem;
        right: auto;
    }

    .team-carousel .owl-nav button.owl-next {
        right: -1.5rem;
        left: auto;
    }
}

html[dir="rtl"] .team-carousel .owl-nav button.owl-prev {
    right: -2.75rem;
    left: auto;
}

html[dir="rtl"] .team-carousel .owl-nav button.owl-next {
    left: -2.75rem;
    right: auto;
}

@media (max-width: 991.98px) {
    html[dir="rtl"] .team-carousel .owl-nav button.owl-prev {
        right: -2.25rem;
    }

    html[dir="rtl"] .team-carousel .owl-nav button.owl-next {
        left: -2.25rem;
    }
}

@media (max-width: 575.98px) {
    html[dir="rtl"] .team-carousel .owl-nav button.owl-prev {
        right: -1.5rem;
    }

    html[dir="rtl"] .team-carousel .owl-nav button.owl-next {
        left: -1.5rem;
    }
}
