@use '../../utils' as *;

/*----------------------------------------*/
/*  7.20 Team css
/*----------------------------------------*/

.#{$theme-prifix}-team {
    &.tp-plr-rs {
        @media #{$sm,$xs} {
            padding-bottom: 0;
        }
    }

    &-wrapp {
        @media #{$sm,$xs} {
            margin-bottom: 0;
        }
    }

    &-item {
        padding: 40px 55px;
        border-radius: 15px;
        border: 1px solid var(--tp-border-1);
        @include tp-transition();

        @media #{$xl} {
            padding: 40px 30px;
        }

        @media #{$lg,$sm,$xs} {
            padding: 40px 20px;
        }

        @media #{$md,$sm,$xs} {
            margin-bottom: 20px;
        }

        &:hover {
            border-radius: 15px;
            transform: translateY(-6px);
            border: 1px solid transparent;
            background-color: rgb(255, 255, 255);
            box-shadow: 0px 0px 70px 0px rgba(84, 79, 73, 0.12);
        }
    }

    &-thumb {
        text-align: center;
        margin-bottom: 30px;

        & img {
            width: 150px;
            height: 150px;
            border-radius: 50%;
        }
    }

    &-content {
        padding-bottom: 25px;
        margin-bottom: 25px;
        border-bottom: 1px solid var(--tp-border-1);
    }

    &-title {
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 3px;
        display: inline-block;
        color: var(--tp-common-black);
        @include tp-transition();

        &:hover {
            color: var(--tp-theme-1);
        }

        &-box {
            @media #{$sm,$xs} {
                margin-bottom: 15px;
            }

            & .tp-section-title {
                @media #{$xs} {
                    font-size: 26px;
                }
            }
        }
    }

    &-designation {
        font-size: 16px;
        font-weight: 500;
        display: block;
    }

    &-social {
        & ul {
            & li {
                display: inline-block;
                margin-right: 20px;

                &:last-child {
                    margin-right: 0;
                }

                & a {
                    font-size: 16px;

                    & .fb {
                        color: #1877f2;
                    }

                    & .inst {
                        color: #943925;
                    }

                    & .tw {
                        color: #1c96e8;
                    }

                    & .pnt {
                        color: #df0022;
                    }
                }
            }
        }
    }

    &-notes {
        position: relative;

        &::before,
        &::after {
            position: absolute;
            width: 270px;
            height: 1px;
            top: 50%;
            left: 0;
            content: "";
            transform: translateY(-50%);
            background: var(--tp-border-1);

            @media #{$xl} {
                width: 226px;
            }

            @media #{$lg} {
                width: 136px;
            }

            @media #{$md,$sm,$xs} {
                display: none;
            }
        }

        &::after {
            left: auto;
            right: 0;
        }

        &-content {
            padding: 15px 100px;
            border-radius: 30px;
            display: inline-block;
            border: 1px solid var(--tp-border-1);

            @media #{$sm} {
                padding: 10px 30px;
            }

            @media #{$xs} {
                display: none;
            }
        }

        &-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 0;
            color: var(--tp-common-black);
        }
    }

    &-2 {
        &.tp-plr-rs{
            @media #{$sm,$xs} {
                padding-top: 0;
            }
        }
        & .tp-team {
            &-item {
                border: 0;
                padding: 0 30px 30px 33px;
                background-color: rgb(255, 255, 255);
                box-shadow: 0px 0px 40px 0px rgba(16, 12, 33, 0.08);
                border-radius: 15px;

                @media #{$lg,$md,$sm,$xs} {
                    padding: 0 13px 30px 15px;
                }

                @media #{$md,$sm,$xs} {
                    margin-bottom: 80px;
                    text-align: center;
                }

                &:hover {
                    & .tp-team {
                        &-thumb {
                            & img {
                                transform: scale(1.2);
                            }
                        }
                    }
                }
            }

            &-thumb {
                position: relative;
                text-align: center;
                margin-bottom: 5px;
                overflow: hidden;
                display: inline-block;
                border-radius: 15px;
                margin-top: -50px;

                & img {
                    width: 100%;
                    height: auto;
                    border-radius: 15px;
                    transition: 1.3s;
                }
            }

            &-content {
                padding: 0;
                margin: 20px;
                border: 0;
            }

            &-title {
                @media #{$lg,$md} {
                    font-size: 18px;
                }

                &:hover {
                    color: var(--tp-theme-1);
                }
            }

            &-social {
                & ul {
                    & li {
                        & a {
                            transition: .3s;

                            &:hover {
                                color: var(--tp-theme-1);
                            }
                        }
                    }
                }
            }
        }
    }

    &-3 {
        &-item {
            &:hover {
                & .tp-team-3 {
                    &-thumb {
                        & img {
                            transform: scale(1.1);
                        }
                    }
                }
            }
        }

        &-thumb {
            overflow: hidden;
            border-radius: 15px;

            & img {
                width: 100%;
                border-radius: 15px;
                transition: 1.3s;
            }
        }

        &-content {
            position: absolute;
            width: 286px;
            bottom: -50px;
            left: 0;
            right: 0;
            text-align: center;
            margin: auto;
            padding: 24px 30px;
            border-radius: 15px;
            background: #fff;
            box-shadow: 0px 0px 40px 0px rgba(22, 25, 52, 0.08);
        }

        &-title {
            font-size: 20px;
            font-weight: 700;
            display: inline-block;
            color: var(--tp-common-black);
            margin-bottom: 0;
            @include tp-transition();

            &:hover {
                color: var(--tp-theme-1);
            }

            &-box {
                & .tp-section-title {
                    font-weight: 700;

                    @media #{$xs} {
                        font-size: 28px;
                    }
                }
            }
        }

        &-subtitle {
            display: block;
            font-weight: 600;
            text-align: left;
        }

        &-social {
            &-box {
                position: absolute;
                right: -20px;
                z-index: 1;

                @media #{$lg} {
                    right: 20px;
                }

                &:hover {
                    & .tp-team-3 {
                        &-social {
                            &-link {
                                opacity: 1;
                                height: 180px;
                                visibility: visible;
                            }

                            &-icon {
                                & span {
                                    transform: rotate(-360deg);
                                }
                            }
                        }
                    }
                }
            }

            &-icon {
                position: relative;

                & span {
                    width: 48px;
                    height: 48px;
                    cursor: pointer;
                    font-size: 16px;
                    line-height: 48px;
                    border-radius: 50%;
                    text-align: center;
                    display: inline-block;
                    color: var(--tp-common-white);
                    background: var(--tp-common-black);
                    @include tp-transition();
                }
            }

            &-link {
                position: absolute;
                left: 0;
                right: 0;
                bottom: 0;
                height: 0;
                padding: 16px 0 60px 16px;
                opacity: 0;
                visibility: hidden;
                border-radius: 30px;
                background: var(--tp-theme-1);
                transition: .3s;
                z-index: -1;

                & ul {
                    & li {
                        display: block;
                        text-align: left;

                        & a {
                            font-size: 17px;
                            color: var(--tp-border-1);
                            @include tp-transition();

                            &:hover {
                                color: var(--tp-common-white);
                            }
                        }
                    }
                }
            }
        }

        &-active {
            padding-top: 0;
            padding-bottom: 80px;

            @media #{$lg} {
                margin: 0 -5px;
            }
        }
    }

    &-4 {
        @media #{$sm,$xs} {
            padding-bottom: 80px;
        }
        &-item {
            padding: 40px 56px;
            border-radius: 15px;
            background-color: rgb(255, 255, 255);
            box-shadow: 0px 4px 60px 0px rgba(22, 23, 26, 0.08);

            @media #{$lg} {
                padding: 15px 20px 25px 20px;
            }

            @media #{$md} {
                padding: 40px 35px;
                margin-bottom: 20px;
            }

            @media #{$sm,$xs} {
                margin-bottom: 20px;
            }

            @media #{$xs} {
                padding: 40px 30px;
            }

            &:hover {
                & .tp-team-4 {
                    &-thumb {
                        & a::before {
                            opacity: 0.4;
                            visibility: visible;
                            transform: scale(1);
                        }

                        &::after {
                            border: 15px solid var(--tp-theme-1);
                            border-bottom: 0;
                        }
                    }
                }
            }
        }

        &-thumb {
            width: 260px;
            height: 260px;
            border-radius: 50%;

            &>a {
                position: relative;
                display: inline-block;

                &::before {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    top: 0;
                    left: 0;
                    opacity: 0;
                    visibility: hidden;
                    border-radius: 50%;
                    content: "";
                    transform: scale(.5);
                    background-color: rgb(0, 13, 22);
                    @include tp-transition();
                }
            }

            &::after {
                position: absolute;
                width: 285px;
                height: 58%;
                top: 0;
                left: -12px;
                content: "";
                border-top-left-radius: 290px;
                border-top-right-radius: 290px;
                border: 15px solid #f6dbe4;
                border-bottom: 0;
                @include tp-transition();
            }

            & img {
                width: 260px;
                height: 260px;
                border-radius: 50%;
            }

            @media #{$sm} {
                text-align: center;
                margin: auto;
                margin-bottom: 40px;
            }
        }

        &-social {
            &-box {
                position: absolute;
                left: 0;
                right: 0;
                bottom: -15px;
                margin: auto;
                text-align: center;
                z-index: 2;
            }

            &-icon {
                display: inline-block;

                & span {
                    width: 38px;
                    height: 38px;
                    cursor: pointer;
                    line-height: 38px;
                    border-radius: 50%;
                    text-align: center;
                    display: inline-block;
                    color: var(--tp-common-white);
                    background: var(--tp-theme-1);
                    @include tp-transition();

                    &:hover {
                        transform: rotate(360deg);
                    }
                }

                &:hover {
                    & .tp-team-4 {
                        &-social {
                            &-link {
                                opacity: 1;
                                visibility: visible;
                                margin-bottom: 10px;
                            }
                        }
                    }
                }
            }

            &-link {
                opacity: 0;
                margin-bottom: 0;
                visibility: hidden;
                @include tp-transition();

                & ul {
                    & li {
                        margin-right: 22px;
                        display: inline-block;

                        &:last-child {
                            margin-right: 0;
                        }

                        & a {
                            font-size: 16px;
                            display: inline-block;
                            color: var(--tp-common-white);
                            @include tp-transition();

                            &:hover {
                                color: var(--tp-theme-1);
                            }
                        }
                    }
                }
            }
        }
    }

    &-inner {
        & .tp-team-3-item {
            margin-bottom: 90px;
        }
    }

    &-details {
        &-wrapp {
            padding: 0 100px;

            @media #{$md,$sm,$xs} {
                padding: 0;
            }
        }

        &-thumb {
            background: #fbdaca;
            border-radius: 15px 0 0 15px;

            @media #{$sm,$xs} {
                border-radius: 15px 15px 0 0px;
            }

            &-content {
                padding: 47px 35px 47px 45px;
                background-color: rgb(255, 255, 255);
                box-shadow: 0px 4px 80px 0px rgba(30, 22, 22, 0.06);
                border-radius: 0 15px 15px 0;

                @media #{$xl} {
                    padding: 60px 28px 60px 30px;
                }

                @media #{$lg} {
                    padding: 30px 35px 36px 30px;
                }

                @media #{$md} {
                    padding: 20px 20px 45px 20px;
                }

                @media #{$sm} {
                    padding: 30px 20px 45px 35px;
                }

                @media #{$xs} {
                    padding: 20px 20px 45px 20px;
                }
            }
        }

        &-title {
            font-size: 40px;
            font-weight: 700;
            color: var(--tp-common-black);
        }

        &-social {
            & ul {
                & li {
                    display: inline-block;
                    margin-right: 6px;

                    & a {
                        width: 38px;
                        height: 38px;
                        line-height: 35px;
                        text-align: center;
                        border-radius: 50%;
                        display: inline-block;
                        border: 1px solid var(--tp-border-1);
                        @include tp-transition();

                        &:hover {
                            color: var(--tp-common-white);
                            background: var(--tp-theme-1);
                            border: 1px solid var(--tp-theme-1);
                        }
                    }
                }
            }
        }

        &-subtitle {
            font-size: 36px;
            font-weight: 700;
            color: var(--tp-common-black);
        }

        &-list {
            & ul {
                & li {
                    position: relative;
                    padding-left: 16px;
                    display: block;
                    margin-bottom: 7px;

                    &::before {
                        position: absolute;
                        width: 6px;
                        height: 6px;
                        left: 0;
                        top: 10px;
                        content: "";
                        background: var(--tp-text-body);
                        border-radius: 50%;
                    }

                }
            }
        }
    }

    &-author {
        &-info {
            & span {
                font-size: 18px;
                display: inline-block;
                color: var(--tp-theme-1);
                margin-bottom: 20px;
            }

            &-title {
                font-size: 16px;
                font-weight: 600;
                margin-bottom: 10px;
                color: var(--tp-common-black);
                display: flex;
                & span {
                    font-weight: 400;
                    color: var(--tp-text-body);
                    margin-left: 20px;

                    @media #{$xs} {
                        margin-left: 10px;
                    }
                }

                & b{
                    min-width: 135px;
                    display: inline-block;
                    font-weight: 600;
                }
            }
        }
    }
}