@use '../../utils' as *;

/*----------------------------------------*/
/*  7.16 team css
/*--------------------------------*/

.tp-team {
    &-content-box {
        bottom: 0;
        left: 0;
        right: 0;
        margin: 20px;
        position: absolute;
        padding: 14px 20px;
        padding-right: 15px;
        padding-bottom: 20px;
        background: rgba(255, 255, 255, 0.96);
        transform-origin: center;
        transition: all 0.5s ease-in-out;
        transform: perspective(400px) rotateX(-90deg);
    }

    &-title {
        font-weight: 700;
        font-size: 18px;
        margin-bottom: 0;
        line-height: 1;
        letter-spacing: -0.02em;
        color: var(--tp-common-black-2);
    }

    &-content {
        & span {
            font-weight: 400;
            font-size: 14px;
            line-height: 1;
            color: #57595c;
            display: block;
        }
    }

    &-social {
        & a {
            height: 40px;
            width: 40px;
            line-height: 33px;
            border-radius: 50%;
            display: inline-block;
            text-align: center;
            transition: .3s;
            color: var(--tp-common-black);
            border: 1px solid rgba(20, 24, 32, 0.2);

            &:hover {
                color: var(--tp-common-white);
                border-color: var(--tp-common-black);
                background-color: var(--tp-common-black);
            }
        }
    }

    &-thumb {
        overflow: hidden;

        & img {
            width: 100%;
            transition: .4s;
        }
    }

    &-item {
        height: 100%;

        &:hover {
            & .tp-team-thumb {
                & img {
                    filter: grayscale(100%);
                    transform: scale(1.1);
                }
            }

            & .tp-team-content-box {
                transform: perspective(400px) rotateX(0deg);
            }
        }
    }

    &-link {
        &-box {
            height: 100%;
            background: #242934;
            padding: 80px 20px;
            border: 1px solid rgba(255, 255, 255, 0.02);
        }

        &-icon {
            height: 44px;
            width: 44px;
            text-align: center;
            display: inline-block;
            border-radius: 50%;
            line-height: 44px;
            margin-bottom: 15px;
            color: var(--tp-common-black);
            background-color: var(--tp-theme-1);

            &:hover {
                color: var(--tp-common-black);
                background-color: var(--tp-common-white);
            }
        }

        &-text {
            font-weight: 400;
            font-size: 18px;
            display: block;
            text-align: center;
            letter-spacing: -0.02em;
            color: var(--tp-common-white);

            &:hover {
                color: var(--tp-common-white);
            }
        }
    }

    &-style-2 {
        & .tp-team-link-box {
            background: #eef0f5;
        }

        & .tp-team-link-icon {
            color: var(--tp-common-white);
            background-color: var(--tp-common-blue);

            &:hover {
                color: var(--tp-common-white);
                background-color: var(--tp-common-black);
            }
        }

        & .tp-team-link-text {
            color: var(--tp-common-black);
        }
    }
}

.tp-team-4{
    &-area{
        @media #{$xs}{
            padding-top: 70px;
            padding-bottom: 70px;
        }
    }
    &-item {
        &:hover {
            & .tp-team-4 {
                &-thumb {
                    & img {
                        transform: scale(1.04);
                    }
                    &::after {
                        height: 100%;
                    }
                }

                &-hover-box {
                    bottom: 20px;
                    opacity: 1;
                }
            }
        }
    }
    &-thumb {
        overflow: hidden;
        border-radius: 10px;
        margin-bottom: 20px;
        & img {
            width: 100%;
            transition: 0.5s;
            border-radius: 10px;
            @media #{$md,$sm,$xs} {
                width: 100%;
            }
        }
        &::after {
            position: absolute;
            content: '';
            bottom: 0;
            left: 0;
            height: 0;
            width: 100%;
            border-radius: 10px;
            @include tp-transition();
            background: linear-gradient(180deg, rgba(71, 67, 236, 0) 38.02%, #4743ec 100%);
        }
    }
    &-hover {
        &-box {
            position: absolute;
            left: 20px;
            right: 20px;
            bottom: 10px;
            opacity: 0;
            z-index: 1;
            transition: all .5s;
        }
    }
    &-social {
        & > a {
            width: 40px;
            height: 40px;
            line-height: 42px;
            border-radius: 50%;
            text-align: center;
            display: inline-block;
            color: var(--tp-common-black);
            background-color: var(--tp-common-white);
            &:not(:last-of-type) {
                margin-right: 5px;
            }
            &:hover {
                color: var(--tp-common-black);
                background-color: var(--tp-common-yellow);
            }
        }
    }
    &-btn {
        & > a {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--tp-common-white);
            &:hover {
                & span {
                    color: var(--tp-common-black);
                    background-color: var(--tp-common-yellow);
                }
            }
            & > span {
                display: inline-block;
                text-align: center;
                width: 40px;
                height: 40px;
                line-height: 37px;
                border-radius: 50%;
                margin-left: 5px;
                border: 1px solid rgba(255, 255, 255, 0.20);
                transition: all .3s ease-in-out;
            }
        }
    }
    &-title {
        font-weight: 700;
        font-size: 24px;
        letter-spacing: -0.02em;
        color: var(--tp-common-black);
        & a {
            &:hover {
                color: var(--tp-common-purple);
            }
        }
    }
    &-content {
        & span {
            font-weight: 400;
            font-size: 14px;
            color: #525356;
            line-height: 1.43;
        }
    }
    &-shape{
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }
}

.team-details{
    &-thumb{
        & img{
            width: 100%;
            border-radius: 14px;
        }
    }
    &-left{
        &-info{
            line-height: 1;
            padding: 16px 20px;
            display: inline-block;
            border-top: 1px solid rgba(10, 11, 15, 0.1);
            border-bottom: 1px solid rgba(10, 11, 15, 0.1);
            & > span{
                font-weight: 700;
                font-size: 12px;
                line-height: 1;
                color: #2f3233;
                margin-right: 20px;
                padding-right: 20px;
                text-transform: uppercase;
                position: relative;
                &::after{
                    position: absolute;
                    top: -2px;
                    right: 0;
                    width: 1px;
                    height: 20px;
                    content: '';
                    background-color: rgba(10, 11, 15, 0.1);
                }

            }
            & a{
                & span{
                    & svg{
                        transform: translateY(-1px);
                    }               
                }
            }
        }
    }
    &-social{
        & a{
            height: 40px;
            width: 40px;
            margin-left: 5px;
            line-height: 35px;
            border-radius: 50%;
            text-align: center;
            display: inline-block;
            border: 1px solid rgba(10, 11, 15, 0.1);
            &:hover{
                color: var(--tp-common-white);
                border-color: var(--tp-common-blue);
                background-color: var(--tp-common-blue);
            }
        }
    }
    &-right{
        &-wrap{
            margin-left: 75px;
            @media #{$lg}{
                margin-left: 30px;
            }
            @media #{$md,$xs}{
                margin-left: 0px;
            }
        }
    }
    &-author{
        &-info{
            margin-bottom: 30px;
            & h5{
                font-weight: 700;
                font-size: 34px;
                line-height: 1;
                letter-spacing: -0.02em;
                color: var(--tp-common-black);
            }
            & span{
                font-weight: 400;
                font-size: 16px;
                color: #525356;
            }
        }
    }
    &-text{
        & p{
            font-weight: 400;
            font-size: 18px;
            line-height: 1.56;
            color: #4d5051;
            margin-bottom: 0;
        }
    }
    &-more{
        &-info{
            & ul{
                & li{
                    list-style-type: none;
                    &:not(:last-child){
                        margin-bottom: 10px;
                    }
                    & span{
                        font-weight: 400;
                        font-size: 16px;
                        line-height: 1.25;
                        color: #525356;
                        min-width: 135px;
                        display: inline-block;
                    }
                    & i{
                        font-weight: 500;
                        font-size: 16px;
                        line-height: 1.25;
                        font-style: normal;
                        color: var(--tp-common-black);
                    }
                }
            }
        }
    }
    &-info-title{
        font-weight: 700;
        font-size: 24px;
        line-height: 1;
        margin-bottom: 25px;
        letter-spacing: -0.02em;
        color: var(--tp-common-black);
    }
    &-exprience{
        & ul{
            & li{
                font-weight: 400;
                font-size: 16px;
                line-height: 1.5;
                padding-left: 15px;
                position: relative;
                list-style-type: none;
                color: var(--tp-common-black);
                &:not(:last-child){
                    margin-bottom: 20px;
                }
                &::after{
                    position: absolute;
                    content: '';
                    top: 6px;
                    left: 0;
                    height: 4px;
                    width: 4px;
                    border-radius: 50%;
                    background-color: var(--tp-common-black);
                }
            }
        }
    }
    &-skill{
        &-style{
            & .tp-progress-bar-item {
                padding: 0;
                padding-bottom: 30px;
            }
        }
    }
    &-input{
        & input,
        & textarea{
            border-radius: 6px;
            color: var(--tp-common-black);
            border: 1px solid rgba(1, 17, 22, 0.16);
            @include tp-placeholder{
                font-weight: 500;
                font-size: 14px;
                color: #848788;
                letter-spacing: -0.02em;
            }
            &:focus {
                border: 1px solid #277dff;
                box-shadow: 0 0 0 3px rgba(39, 125, 255, 0.1);
            }
        }
        & textarea{
            height: 160px;
            resize: none;
        }
    }
}