/* Team global ---------------------------------- */
.th-team {
    position: relative;
    .box-img {
        position: relative;
        overflow: hidden;
        img {
            width: 100%;
            transition: 0.4s ease-in-out;
        }
    }
    .box-desig {
        display: block;
        margin-bottom: -0.45em;
        transition: 0.4s ease-in-out;
        color: $theme-color2;
    }
    .th-social {
        transition: 0.4s ease-in-out;
        a {
            --icon-size: 40px;
            background-color: $white-color;
            color: $theme-color;
            &:hover {
                background-color: $theme-color;
                color: $white-color;
            }
        }
    }
    .box-title {
        margin-bottom: 0;
    }
}
/* Team Card ---------------------------------- */
.team-card {
    position: relative;
    text-align: center;
    margin-top: -3px;
    .img-wrap {
        position: relative;
        margin-left: 11px;
        margin-bottom: 21px;
        padding: 14px 12px;
        .shape {
            position: absolute;
            inset: 0;
            background-color: $border-color;
            &:after {
                content: '';
                position: absolute;
                inset: 0;
                background-image: $gr-bg1;
                transition: 0.4s ease-in-out;
                opacity: 0;
                transform: rotate(90deg);
            }
            
        }
    }
    .play-btn {
        position: absolute;
        left: 0;
        bottom: 22%;
        --icon-size: 40px;
        font-size: 14px;
        &:before,
        &:after {
            background-color: rgba($color: #fff, $alpha: 0.6);
        }
    }
    .th-social {
        position: absolute;
        left: 55px;
        bottom: 22%;
        transform: scaleX(0);
        transform-origin: left;
        a {
            margin-right: 2px;
            color: #171B2A;
            @include sm {
                margin-right: 0;
            }
            @include xs {
                margin-right: 4px;
            }
            &:hover {
                background-image: $gr-bg1;
                color: $white-color;
            }
        }
    }
    .box-img {
        position: relative;
        &:after {
            content: '';
            position: absolute;
            inset: 0;
            opacity: 0;
            background-color: #000;
            transition: 0.4s ease;
        }
    }
    .box-desig {
        margin-bottom: -0.3em;
    }
    .box-title {
        margin-bottom: 6px;
        font-weight: 600;
    }
    &:hover {
        .img-wrap {
            .shape {
                &:after {
                    opacity: 1;
                    transform: rotate(0);
                }
            }
        }
        .box-img {
            &:after {
                opacity: 0.4;
            }
        }
        .th-social {
            transform: scaleX(1);
        }
    }
}

@include xs {
    .team-card {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Team Box ---------------------------------- */
.team-box {
    position: relative;
    display: flex;
    .box-img {
        flex: 50%;
        border-radius: 30px 30px 0 0;
    }
    &-row {
        
        > * {
            &:nth-child(1) {
                .box-img {
                    border-bottom-left-radius: 30px;
                    @include lg {
                        border-top-right-radius: 30px !important;
                    }
                }
            }
            &:nth-child(3),
            &:nth-child(4) {
                @media (min-width: 1200px) {
                    .team-box {
                        flex-direction: row-reverse;
                    }
                    .box-img {
                        border-radius: 0 0 30px 30px;
                    }
                }
            }
            &:nth-child(3) {
                @media (min-width: 1199px) {
                    .box-content {
                        padding-left: 0;
                    }
                }
            }
            &:nth-child(4) {
                .box-img {
                    border-top-right-radius: 30px;
                    @include lg {
                        border-bottom-left-radius: 30px !important;
                    }
                }
            }
        }
        > * {
            &:nth-child(even) {
                .team-box {
                    .box-content {
                        padding-right: 0;
                        @include lg {
                            padding-left: 0;
                            padding-right: 24px;
                        }
                    }
                    @include lg {
                        flex-direction: row-reverse;
                        .box-img {
                            border-radius: 0 30px 30px 0;
                        }
                    }
                }
            }
            &:nth-child(odd) {
                .team-box {
                    @include lg {
                        .box-img {
                            border-radius: 30px 0 0 30px;
                        }
                    }
                }
            }
        }
    }   
    .box-desig {
        margin-bottom: 16px;
    }
    .box-title {
        font-weight: 700;
        font-size: 30px;
        color: $white-color;
        @include sm {
            font-size: 24px;
        }
    }
    .box-content {
        flex: 50%;
        padding: 30px 24px 30px 30px;
        align-self: center;
    }
    .th-social {
        margin-top: 30px;
        a:not(:hover) {
            color: $body-color;
            background-color: #27282E;
        }
    }
    &:hover {
        .img-wrap {
            .shape {
                background-color: $theme-color;
                transform: rotate(80deg);
            }
        }
    }
}
@include xs {
    .team-box {
        &-row {
            --bs-gutter-y: 35px;
        }
        flex-direction: column !important;
        .box-img {
            border-radius: 30px !important;
        }
        .box-content {
            text-align: center;
            padding: 30px 5px 0 5px !important;
        }
    }
}

/* Team Grid ---------------------------------- */
.team-grid {
    text-align: center;
    .box-img {
        position: relative;
        overflow: hidden;
        border-radius: 30px;
        margin-bottom: 30px;
        z-index: 2;
    }
    .th-social {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        visibility: hidden;
        opacity: 0;
    }
    .box-desig {
        margin-bottom: -0.35em;
    }
    .box-title {
        margin-bottom: 0;
        font-weight: 600;
    }
    &:hover {
        .box-img {
            img {
                transform: scale(1.08);
            }
        }
        .th-social {
            bottom: 30px;
            visibility: visible;
            opacity: 1;
        }
    }
}

/* Team Details ---------------------------------- */
.about-card-img {
    position: relative;
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 30px;
    @include sm {
        border-radius: 20px;
    }
    img {
        width: 100%;
    }
}

.about-card {
    margin-left: 50px;
    @include xl {
        margin-left: 0;
    }
    .box-desig {
        color: $theme-color;
        margin-bottom: 0;
    }
    hr {
        margin: 33px 0;
        color: inherit;
        background-color: $border-color;
        opacity: 1;
    }
    .team-table {
        table {
            border: none;
            padding: 0;
            margin: 0;
        }
        th,
        td {
            padding: 0;
            border: none;
            width: 27%;
            vertical-align: text-top;
            @include sm {
                width: 20px;
            }
        }
        th {
            font-size: 18px;
            font-weight: 600;
            color: $title-color;
        }
        tr {
            th, td {
                padding-bottom: 8px;
            }
            &:first-child {
                th, td {
                    padding-bottom: 15px;
                }
            }
            &:last-child {
                th, td {
                    padding-bottom: 0;
                }
            }
        }
    }
}

.about-info-box {
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.06);
    border-radius: 30px;
    padding: 40px;
    @include sm {
        border-radius: 20px;
    }
    @include xs {
        padding: 25px;
    }
    .box-title {
        font-size: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid $border-color;
        margin-bottom: 23px;
    }
    .box-info {
        display: flex;
        margin-bottom: 11px;
        b {
            color: $title-color;
            font-weight: 600;
            width: 140px;
            @include vxs {
                width: 100px;
            }
        }
    }
    .social-title {
        border-top: 1px solid $border-color;
        padding-top: 23px;
        margin-top: 23px;
    }
    .th-social {
        a {
            color: $theme-color;
            background-color: transparent;
            border: 1px solid $border-color;
            &:hover {
                background-color: $theme-color;
                border-color: $theme-color;
                color: $white-color;
            }
        }
    }
}

.skill-feature {
    text-align: left;
    &:not(:last-child) {
        margin-bottom: 30px;
    }
    .box-title,
    .progress-value {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 10px;
        margin-top: -0.3em;
        font-family: $title-font;
        color: $title-color;
    }
    .progress {
        position: relative;
        height: 6px;
        background-color: $border-color;
        overflow: visible;
        border-radius: 0;
        border-radius: 9px;
    }
    .progress-bar {
        background-color: $theme-color;
        height: 100%;
        border-radius: inherit;
        overflow: visible;
        position: relative;
    }
    .progress-value {
        position: absolute;
        top: -30px;
        right: -8px;
    }
}