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

/*----------------------------------------*/
/*  4.39 Team css
/*----------------------------------------*/

.rs-team {
    &-one{
        position: relative;
        .rs-team-life{
            position: absolute;
            bottom: 150px;
            inset-inline-start: 50px;
            animation: rs-rotate-anim 3s linear 0s infinite alternate;
            @media #{$desktop}{
                inset-inline-start: 10px;
            }
            @media #{$laptop}{
                display: none;
            }
        }
        .rs-team-life-two{
            position: absolute;
            top: 200px;
            inset-inline-end:40px;
            @media #{$desktop}{
                inset-inline-end:10px;
            }
            @media #{$laptop}{
                display: none;
            }
        }
        .rs-team-item {
            box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.06);
            border-radius: 15px;
            background: var(--rs-white);
            padding-top: 30px;
            padding-inline: 30px;
            padding-bottom: 35px;
            border: 1px solid var(--rs-border-primary);
            position: relative;
            &:hover{
                .rs-team-social{
                    a{
                        opacity: 1;
                        visibility: visible;
                        &:nth-child(2){
                            bottom: 44px;
                        }
                        &:nth-child(3){
                            bottom: 88px;
                        }
                        &:nth-child(4){
                            bottom: 132px;
                        }
                        &:nth-child(5){
                            bottom: 176px;
                        }
                    }
                }
            }
        }
        .rs-team-thumb{
            margin-bottom: 40px;
            position: relative;
            img{
                width: 346px;
                height: 346px;
                object-fit: cover;
                object-position: top center;
                border-radius: 50%;
                @media #{$laptop}{
                    width: 100%;
                    height: 100%;
                    aspect-ratio: 1 / 1;
                }
            }
        }
        .rs-team-content-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            text-align: center;
        }
        .rs-team-title{
            margin-bottom: 5px;
            letter-spacing: 0.01em;
            &:hover{
                color: var(--rs-theme-yellow);
            }
        }
        .rs-team-designation {
            font-size: 16px;
            font-weight: 500;
            letter-spacing: 0.01em;
        }
        .rs-team-social{
            display: inline-flex;
            gap: 8px;
            align-items: center;
            flex-direction: column-reverse;
            position: absolute;
            bottom: 0;
            left: 50%;
            z-index: 1;
            transform: translate(-50%, 18px);
            .social-icon{
                width: 36px;
                height: 36px;
                background: var(--rs-theme-yellow);
                color: var(--rs-black);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 14px;
            }
            a{
                position: absolute;
                bottom: 0;
                opacity: 0;
                visibility: hidden;
                transition: all .5s ease;
            }
        }
        .rs-team-pagination{
            margin-top: 45px;
        }
        &.has-theme-red{
            .rs-team-social{
                .social-icon{
                    background: var(--rs-theme-red);
                    color: var(--rs-white);
                }
            }
            .rs-team-title{
                a{
                    &:hover{
                        color: var(--rs-theme-red);
                    }
                }
            }
        }
        &.has-theme-red-two{
            .rs-team-item{
                transition: .5s;
                &:hover{
                    background: var(--rs-theme-red);
                    .rs-team-shape-one{
                        opacity: 0;
                        visibility: hidden;
                    }
                    .rs-team-shape-two{
                        opacity: 1;
                        visibility: visible;
                    }
                    .rs-team-title{
                        color: var(--rs-white);
                        a{
                            &:hover{
                                color: var(--rs-white);
                            }
                        }
                    }
                    .rs-team-designation{
                        color: var(--rs-white);
                    }
                    .rs-team-social{
                        .social-icon{
                            background: var(--rs-black);
                            color: var(--rs-white);
                        }
                    }
                }
            }
            .rs-team-shape-one {
                position: absolute;
                inset-inline-start: 0;
                top: 35px;
                transition: .3s;
            }
            .rs-team-shape-two {
                position: absolute;
                inset-inline-start: 0;
                top: 50px;
                opacity: 0;
                visibility: hidden;
                transition: .3s;
                @media #{$laptop}{
                    top: 0;
                }
                @media #{$md}{
                    top: 0;
                }
                @media #{$sm}{
                    top: 50px;
                }
                @media #{$mobile}{
                    top: 0;
                }
            }
            .rs-team-social{
                .social-icon{
                    background: var(--rs-theme-red);
                    color: var(--rs-white);
                }
            }
        }
        &.has-theme-cyan{
            .rs-team-item {
                border-radius: 15px;
                background: var(--rs-white);
                padding-top: 12px;
                padding-inline: 12px;
                padding-bottom: 35px;
                border: 1px solid var(--rs-border-primary);
                position: relative;
                box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.5);
                transition: .5s;
                &:hover{
                    background: var(--rs-theme-cyan);
                    .rs-team-title{
                    color: var(--rs-white);
                        a{
                            &:hover{
                                color: var(--rs-white);
                            }
                        }
                    }
                    .rs-team-designation{
                        color: var(--rs-white);
                    }
                }
                .rs-team-social{
                    .social-icon{
                        background: var(--rs-theme-light-cyan);
                        color: var(--rs-white);
                    }
                }
            }
            .rs-team-thumb{
                img{
                    border-radius: 8px;
                    width: 100%;
                }
            }
        }
        &.has-theme-blue{
            .rs-team-wrapper{
                display: grid;
                grid-template-columns: repeat(3,1fr);
                gap: 30px;
                @media #{$md}{
                    grid-template-columns: repeat(2,1fr);
                }
                @media #{$sm}{
                    grid-template-columns: repeat(1,1fr);
                }
            }
            .rs-team-item{
                transition: .5s;
                &:hover{
                    background: var(--rs-theme-blue);
                    .rs-team-shape-one{
                        opacity: 0;
                        visibility: hidden;
                    }
                    .rs-team-shape-two{
                        opacity: 1;
                        visibility: visible;
                    }
                    .rs-team-title{
                        color: var(--rs-white);
                        a{
                            &:hover{
                                color: var(--rs-white);
                            }
                        }
                    }
                    .rs-team-designation{
                        color: var(--rs-white);
                    }
                }
            }
            .rs-team-shape-one {
                position: absolute;
                inset-inline-start: 0;
                top: 35px;
                transition: .3s;
            }
            .rs-team-shape-two {
                position: absolute;
                inset-inline-start: 0;
                top: 50px;
                opacity: 0;
                visibility: hidden;
                transition: .3s;
                @media #{$laptop}{
                    top: 0;
                }
                @media #{$md}{
                    top: 0;
                }
                @media #{$sm}{
                    top: 50px;
                }
                @media #{$mobile}{
                    top: 0;
                }
            }
            .rs-team-social{
                .social-icon{
                    background: var(--rs-theme-yellow);
                    color: var(--rs-black);
                }
            }
        }
    }
    &-two{
        position: relative;
        .rs-team-wrapper{
            display: grid;
            grid-template-columns: repeat(3,1fr);
            gap: 30px;
            @media #{$lg}{
                grid-template-columns: repeat(2,1fr);
            }
            @media #{$xs}{
                grid-template-columns: repeat(1,1fr);
            }
        }
        .rs-team-item {
            &:hover{
                .rs-team-thumb{
                    img{
                        transform: scale3d(1.1, 1.1, 1);
                    }
                }
            }
        }
        .rs-team-sec-title{
            color: var(--rs-title-tertiary);
        }
        .rs-team-thumb{
            position: relative;
            overflow: hidden;
            border-radius: 10px 10px 0px 0px;
            img{
                width: 100%;
                height: 100%;
                aspect-ratio: 1/1;
                transform: scale(1.02);
                transition: all 0.8s ease;
                object-fit: cover;
                object-position: top center;
            }
        }
        .rs-team-content{
            background: var(--rs-white);
            box-shadow: 0 4px 30px 0 rgba(0,0,0,.06);
            border-radius: 0px 0px 10px 10px;
            padding-top: 18px;
            padding-bottom: 18px;
            padding-inline: 15px;
            text-align: center;
        }
        .rs-team-title{
            margin-bottom: 5px;
            color: var(--rs-title-tertiary);
            font-size: 20px;
            &:hover{
                color: var(--rs-theme-yellow);
            }
        }
        .rs-team-designation {
            font-size: 15px;
        }
    }
    &-three{
        .rs-team-wrapper{
            display: grid;
            grid-template-columns: repeat(3,1fr);
            gap: 30px;
            margin-top: 30px;
            @media #{$md}{
                grid-template-columns: repeat(2,1fr);
            }
            @media #{$sm}{
                grid-template-columns: repeat(1,1fr);
            }
        }
        .rs-team-item{
            background: var(--rs-bg-primary);
            border-radius: 16px;
            padding-top: 12px;
            padding-inline: 12px;
            padding-bottom: 30px;
            &:hover {
                .rs-team-thumb {
                    img {
                        transform: scale3d(1.1, 1.1, 1);
                    }
                }
            }
        }
        .rs-team-thumb {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            img {
                width: 100%;
                transition: all 0.8s ease;
            }
        }
        .rs-team-title {
            margin-bottom: 12px;
            color: var(--rs-title-tertiary);
            a {
                &:hover {
                    color: var(--rs-theme-yellow);
                }
            }
        }
        .rs-team-content {
            padding-inline-start: 20px;
            padding-inline-end: 20px;
            padding-top: 27px;
        }
        .rs-team-desc {
            margin-bottom: 28px;
        }
        .rs-team-desig {
            margin-bottom: 10px;
            display: inline-block;
        }
        .rs-team-bio {
	        margin-bottom: 22px;
        }
    }
    &-four{
        position: relative;
        .rs-team-wrapper{
            display: grid;
            grid-template-columns: repeat(3,1fr);
            gap: 30px;
        }
        .rs-team-item {
            box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.06);
            border-radius: 16px;
            background: var(--rs-white);
            padding-top: 12px;
            padding-inline: 12px;
            padding-bottom: 30px;
            position: relative;
            transition: .5s;
            &:hover{
                background: var(--rs-theme-blue);
                .rs-team-social{
                    opacity: 1;
                    visibility: visible;
                    inset-inline-start:30px ;
                }
                .rs-team-title{
                    color: var(--rs-white);
                    a{
                        &:hover{
                            color: var(--rs-white);
                        }
                    }
                }
                .rs-team-designation{
                    color: var(--rs-white);
                }
            }
        }
        .rs-team-thumb{
            margin-bottom: 35px;
            position: relative;
            img{
                width: 100%;
                transform: scale(1.02);
                transition: all 0.8s ease;
                height: 346px;
                aspect-ratio: 1/1;
                object-fit: cover;
                object-position: top center;
                border-radius: 16px;
                @media #{$mobile}{
                    height: 100%;
                }
            }
        }
        .rs-team-content-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            text-align: center;
        }
        .rs-team-title{
            margin-bottom: 5px;
            letter-spacing: 0.01em;
            &:hover{
                color: var(--rs-theme-yellow);
            }
        }
        .rs-team-designation {
            font-size: 16px;
            font-weight: 500;
            letter-spacing: 0.01em;
        }
        .rs-team-social{
            display: inline-flex;
            gap: 8px;
            align-items: center;
            flex-direction: column;
            position: absolute;
            bottom: 30px;
            inset-inline-start: 0;
            z-index: 1;
            visibility: hidden;
            opacity: 0;
            transition: all .5s ease;
            .social-icon{
                width: 36px;
                height: 36px;
                background: var(--rs-theme-yellow);
                color: var(--rs-black);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 14px;
            }
        }
        .rs-team-wrapper{
            display: grid;
            grid-template-columns: repeat(3,1fr);
            gap: 30px;
            @media #{$md}{
                grid-template-columns: repeat(2,1fr);
            }
            @media #{$sm}{
                grid-template-columns: repeat(1,1fr);
            }
        }
        .rs-team-social{
            .social-icon{
                background: var(--rs-theme-yellow);
                color: var(--rs-black);
            }
        }
        .rs-team-life{
            position: absolute;
            bottom: 150px;
            inset-inline-start: 50px;
            animation: rs-rotate-anim 3s linear 0s infinite alternate;
            @media #{$desktop}{
                inset-inline-start: 10px;
            }
            @media #{$laptop}{
                display: none;
            }
        }
        .rs-team-life-two{
            position: absolute;
            top: 200px;
            inset-inline-end:40px;
            @media #{$desktop}{
                inset-inline-end:10px;
            }
            @media #{$laptop}{
                display: none;
            }
        }
        .rs-team-pagination{
            margin-top: 45px;
        }
    }
    &-details{
        .rs-team-details-wrapper{
            display: grid;
            grid-template-columns: 400px auto;
            gap: 30px 50px;
            align-items: start;
            @media #{$laptop}{
                grid-template-columns: 350px auto;
                gap: 30px 30px;
            }
            @media #{$lg}{
                grid-template-columns: 300px auto;
            }
            @media #{$md}{
                grid-template-columns: auto;
            }
        }
        .rs-team-details-thumb-wrapper{
            background: var(--rs-white);
            box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.06);
            border-radius: 16px;
            padding-top: 12px;
            padding-inline: 12px;
            padding-bottom: 25px;
            @media #{$laptop}{
                position: sticky;
                top: 110px;
            }
            @media #{$md}{
                position: relative;
                top: unset;
            }
        }
        .rs-team-details-author-thumb{
            img{
                width: 100%;
                border-radius: 12px;
            }
        }
        .rs-team-details-author-info{
            padding-top: 20px;
        }
        .rs-team-details-author-name{
            margin-bottom: 5px;
        }
        .rs-team-details-details-title {
	        margin-bottom: 15px;
        }
        .rs-team-details-desc {
            border-bottom: 1px solid var(--rs-border-primary);
            padding-bottom: 30px;
            margin-bottom: 33px;
        }
        .rs-team-details-info {
            display: grid;
            grid-template-columns: repeat(2,1fr);
            gap: 20px;
            border-bottom: 1px solid var(--rs-border-primary);
            padding-bottom: 30px;
            margin-bottom: 33px;
            @media #{$sm}{
                grid-template-columns: repeat(1,1fr);
            }
        }
        .rs-info-list{
            li{
                list-style: none;
                position: relative;
                padding-inline-start: 12px;
                &:not(:last-child){
                    margin-bottom: 8px;
                }
                &::before{
                    position: absolute;
                    content: "";
                    width: 5px;
                    height: 5px;
                    background: #4C4C4C;
                    border-radius: 50%;
                    top: 9px;
                    inset-inline-start: 0;
                }
            }
        }
        .rs-team-details-info-title {
	        margin-bottom: 20px;
        }
        .rs-contact-info-item{
            background-color: var(--rs-white);
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 8px 14px 8px 14px;
            border-radius: 100px;
            box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.06);
            transition: .5s;
            svg{
                width: 20px;
                height: 20px;
                path{
                    transition: .5s;
                }
            }
            &:hover{
                color: var(--rs-title-primary);
                background: var(--rs-theme-yellow);
                svg{
                    path{
                        fill: var(--rs-black);
                    }
                }
            }
        }
        .rs-contact-wrapper {
            gap: 20px 30px;
            display: flex;
            flex-wrap: wrap;
        }
        .rs-team-details-title {
	        margin-bottom: 16px;
        }
        .rs-team-details .rs-contact-wrapper {
            gap: 30px;
            display: flex;
            align-items: center;
        }
        .rs-team-details-contact-title {
	        margin-bottom: 25px;
        }
    }
}










