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

/*----------------------------------------*/
/*  4.7 campus life css
/*----------------------------------------*/

.rs-campus-life{
    &-one{
        position: relative;
        .rs-campus-life-shape{
            position: absolute;
            bottom: 0;
            opacity: .5;
        }
        .rs-campus-life-sec-desc {
            max-width: 430px;
            margin-inline-start: auto;
            border-inline-start: 2px solid var(--rs-theme-yellow);
            padding-inline-start: 20px;
            @media #{$md}{
               max-width: 100%;
               margin-inline-start: unset;
            }
            @media #{$xs}{
                padding-inline-start: 15px;
            }
        }
        .rs-campus-life-item{
            position: relative;
            border: 10px solid #F6F4EE;
            border-radius: 100px;
            &:hover{
                .rs-campus-life-thumb{
                    &::before{
                        opacity: 1;
                        visibility: visible;
                    }
                }
                .rs-campus-life-content{
                    visibility: visible;
                    opacity: 1;
                }
            }
        }
        .rs-campus-life-thumb{
            position: relative;
            overflow: hidden;
            &::before{
                content: "";
                position: absolute;
                left: 0;
                top: 0;
                height: 100%;
                width: 100%;
                background-image: linear-gradient(180deg, #003A6500 0%, var( --rs-theme-blue) 100%);
                opacity: 0;
                visibility: hidden;
                transition: 0.6s;
                border-radius: 100px;
                z-index: 1;
            }
            img{
                width: 100%;
                border-radius: 100px;
            }
        }
        .rs-campus-life-content {
            position: absolute;
            opacity: 0;
            visibility: hidden;
            bottom: -140px;
            width: 100%;
            padding: 40px;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: 0.6s;
            z-index: 1;
            writing-mode: sideways-lr;
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }
        .rs-campus-life-title{
            color: var(--rs-white);
        }
    }
    &-two{
        position: relative;
        z-index: 1;
        overflow-x: clip;
        .rs-campus-life-bg-thumb{
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: -1;
            &::before{
                position: absolute;
                content: "";
                left: 0;
                top: 0;
                height: 100%;
                width: 100%;
                background: linear-gradient(180deg,rgba(3,3,3,0) 45.38%,#030303 111.13%);
                z-index: 1;
            }
        }
        .section-title{
            font-size: 120px;
            color: var(--rs-white);
            line-height: 1.15;
            @media #{$laptop}{
                font-size: 110px;
            }
            @media #{$xl}{
                font-size: 90px;
            }
            @media #{$lg}{
                font-size: 80px;
            }
            @media #{$md}{
                font-size: 70px;
            }
            @media #{$sm}{
                font-size: 60px;
            }
            @media #{$xs}{
                font-size: 50px;
            }
            @media #{$mobile}{
                font-size: 40px;
            }
        }
        .item-details-active{
            height: 715px;
            @media #{$laptop}{
                height: 650px;
            }
            @media #{$xl}{
                height: 600px;
            }
            @media #{$lg}{
                height: 550px;
            }
            @media #{$md}{
                height: 500px;
            }
            @media #{$sm}{
                height: 450px;
            }
        }
        .rs-campus-life-sec-wrapper{
            position: absolute;
            top: 120px;
            z-index: 2;
        }
        .rs-campus-life-sec-wrapper {
            position: absolute;
            top: 100px;
            z-index: 2;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            text-align: center;
            @media #{$xs}{
                top: 50px;
            }
        }
        .item-details-nav{
            .swiper-wrapper{
                .custom-button{
                    width: 130px;
                    height: 130px;
                    border-radius: 30px;
                    border: 4px solid var(--rs-white);
                    &:hover{
                        border-color: var(--rs-theme-red);
                    }
                }
            }
            .swiper-slide-thumb-active{
                .custom-button{
                    border-color: var(--rs-theme-red);
                }
            }
        }
        .rs-campus-life-thumb-small {
            position: absolute;
            bottom: 40px;
            z-index: 1;
            width: 100%;
        }
        .item-details-nav{
            .swiper-wrapper{
                justify-content: center;
                @media #{$xs}{
                    justify-content: start;
                }
            }
        }
        &.has-theme-yellow{
            .section-title{
                line-height: 1.25;
            }
            .swiper-wrapper{
                .custom-button{
                    &:hover{
                        border-color: var(--rs-theme-yellow);
                    }
                }
            }
            .swiper-slide-thumb-active{
                .custom-button{
                    border-color: var(--rs-theme-yellow);
                }
            }
        }
    }
    &-three{
        position: relative;
        overflow-x: clip;
        &.no-bg{
            &::before{
                content: none;
            }
            .rs-campus-life-thumb{
                border-color:var(--rs-theme-blue) ;
            }
        }
        &::before{
            position: absolute;
            content: '';
            width: 100%;
            height: 400px;
            bottom: 0;
            left: 0;
            background: var(--rs-bg-black);
        }
        .rs-campus-life-wrapper {
            padding-top: 90px;
            padding-bottom: 40px;
            margin-inline: 60px;
            position: relative;
            z-index: 1;
            @media #{$laptop}{
                margin-inline: 15px;
            }
            @media #{$md}{
                padding-top: 70px;
            }
        }
        .rs-campus-life-item{
            &.has-video{
                position: relative;
            }
        }
        .rs-campus-life-video{
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        .rs-campus-life-bg-thumb{
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: -1;
            border-radius: 16px;   
        }
        .rs-campus-life-title{
            font-size: 120px;
            color: var(--rs-white);
            text-align: center;
            margin-bottom: 75px;
            @media #{$laptop}{
                font-size: 110px;
            }
            @media #{$xl}{
                font-size: 100px;
            }
            @media #{$lg}{
                font-size: 90px;
            }
            @media #{$md}{
                font-size: 80px;
                margin-bottom: 40px;
            }
            @media #{$sm}{
                font-size: 70px;
            }
            @media #{$xs}{
                font-size: 60px;
            }
            @media #{$mobile}{
                font-size: 40px;
            }
        }
        .rs-campus-life-item-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-campus-life-thumb {
            border: 6px solid #231F30;
            border-radius: 20px;
            overflow: hidden;
            img {
                width: 100%;
                display: block;
            }
        }
        &.has-theme-cyan{
            &::before{
                background: var(--rs-theme-cyan);
            }
            .rs-campus-life-thumb{
                border-color: var(--rs-theme-cyan);
            }
        }
        &.has-theme-blue{
            .rs-campus-life-bg-thumb{
                &::before{
                    position: absolute;
                    content: "";
                    width: 100%;
                    height: 100%;
                    top: 0;
                    left: 0;
                    background: linear-gradient(180deg, rgba(16, 14, 18, 0) -22.13%, #100E12 100%, #100E12 100%);
                    border-radius: 12px;
                }
            }
            .rs-campus-life-title{
                text-align: center;
                margin-bottom: 45px;
                font-size: 100px;
                color: rgba(255, 255, 255, 0.1);
                -webkit-text-stroke-width: 1px;
                stroke-width: 1px;
                -webkit-text-stroke-color: rgba(255, 255, 255, 0.6);
                stroke: rgba(255, 255, 255, 0.6);
                @media #{$xl}{
                    font-size: 80px;
                }
                @media #{$lg}{
                    font-size: 70px;
                }
                @media #{$md}{
                    font-size: 60px;
                }
                @media #{$sm}{
                    font-size: 50px;
                }
                @media #{$xs}{
                    font-size: 40px;
                }
            }
            .rs-campus-life-thumb{
                border-color: rgba(255, 255, 255, 0.3);
            }
        }
    }
    &-four{
        background: var(--rs-theme-green);
        padding-top: 150px;
        position: relative;
        z-index: 1;
        overflow-x: clip;
        @media #{$lg}{
            padding-top: 100px;
        }
        @media #{$md}{
            padding-top: 80px;
        }
        .rs-campus-life-shape-one{
            position: absolute;
            inset-inline-end: 140px;
            top: 160px;
            @media #{$md}{
                display: none;
            }
        }
        .rs-campus-life-shape-two{
            position: absolute;
            top: 80px;
            inset-inline-start: 110px;
            animation: rs-rotate-anim 3s linear 0s infinite alternate;
            @media #{$laptop}{
                inset-inline-start: 30px;
                top: 50px;
            }
            @media #{$lg}{
                display: none;
            }
        }
        .rs-campus-life-bg-thumb{
            position: absolute;
            width: 100%;
            height: 700px;
            bottom: 0;
            left: 0;
            border-radius: 16px 16px 0px 0px;
            z-index: -1;
            @media #{$laptop}{
                height: 650px;
            }
            @media #{$lg}{
                height: 500px;
            }
            @media #{$md}{
                display: none;
            }
        }
        .rs-campus-life-wrapper{
            margin-inline: 60px;
            padding-bottom: 60px;
            position: relative;
            z-index: 1;
            @media #{$laptop}{
                margin-inline: 15px;
            }
            @media #{$md}{
                margin-inline: 0px;
            }
        }
        .rs-campus-life-content-wrapper {
            display: grid;
            grid-template-columns: 780px auto;
            gap: 30px 120px;
            @media #{$laptop}{
                grid-template-columns: 700px auto;
                gap: 30px 30px;
            }
            @media #{$lg}{
                grid-template-columns: auto auto;
            }
            @media #{$md}{
                grid-template-columns: auto;
            }
        }
        .section-title{
            font-size: 120px;
            color: var(--rs-white);
            margin-bottom: 120px;
            @media #{$laptop}{
                font-size: 110px;
            }
            @media #{$lg}{
                font-size: 100px;
                margin-bottom: 80px;
            }
            @media #{$md}{
                font-size: 80px;
                margin-bottom: 30px;
            }
            @media #{$sm}{
                font-size: 60px;
                margin-bottom: 30px;
            }
            @media #{$xs}{
                font-size: 40px;
                margin-bottom: 30px;
            }
        }
        .rs-campus-life-thumb-wrapper {
            display: flex;
            align-items: center;
            gap: 30px 35px;
            position: relative;
            z-index: 1;
            @media #{$xs}{
                flex-wrap: wrap;
            }
        }
        .rs-campus-life-thumb{
            border: 6px solid var(--rs-white);
            border-radius: 30px;
            overflow: hidden;
            img{
                width: 100%;
                display: block;
            }
        }
        .rs-campus-life-badge{
            background: var(--rs-theme-green);
            padding: 20px;
            display: flex;
            align-items: center;
            border-radius: 50%;
            width: 130px;
            height: 130px;
            position: absolute;
            left: 50%;
            transform: translate(-50%,-50%);
            z-index: 1;
            top: 50%;
            img{
                width: 90px;
            }
        }
        .rs-notice-wrapper {
            background-color: var(--rs-white);
            padding-top: 25px;
            padding-bottom: 30px;
            padding-inline-start: 35px;
            padding-inline-end: 35px;
            border-radius: 16px;
            @media #{$laptop}{
                padding-inline-start: 25px;
                padding-inline-end: 25px;
                padding-bottom: 25px;
            }
            .popup-circle {
                width: 8px;
                height: 8px;
                position: relative;
                &::before {
                    background: var(--rs-theme-yellow);
                }
                &::after {
                    background: var(--rs-theme-yellow);
                }
            }
            .rs-notice-sec-title {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                border-bottom: 1px solid var(--rs-border-primary);
                margin-bottom: 20px;
            }
            .rs-notice-item {
                &:not(:last-child){
                    border-bottom: 1px solid var(--rs-border-primary);
                    padding-bottom: 15px;
                    margin-bottom: 15px;
                }
            }
            .rs-notice-title {
                font-size: 17px;
                margin-bottom: 10px;
            }
            .rs-notice-content {
                display: flex;
                align-items: end;
                justify-content: space-between;
                gap: 20px;
            }
            .rs-notice-meta {
                display: flex;
                flex-direction: column;
                gap: 5px;
            }
            .rs-notice-date {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: 14px;
                svg {
                    width: 14px;
                    height: 14px;
                }
            }
            .rs-notice-id {
                font-size: 13px;
            }
            .rs-notice-link {
                svg {
                    width: 20px;
                    height: 20px;
                    path{
                        transition: .3s;
                    }
                }
                a{
                    &:hover{
                        svg{
                            path{
                                fill: var(--rs-theme-yellow);
                            }
                        }
                    }
                }
            }
        }
    }
    &-five{
        background: var(--rs-theme-green-two);
        position: relative;
        overflow-x: clip;
        .rs-campus-life-shape{
            position: absolute;
            top: 80px;
            inset-inline-start: 120px;
            @media #{$lg}{
                inset-inline-start: 30px;
            }
        }
        .rs-campus-life-shape-two{
            position: absolute;
            top: 160px;
            inset-inline-end: -100px;
        }
        .section-title-wrapper{
            padding-top: 100px;
            padding-bottom: 50px;
            @media #{$lg}{
                padding-top: 80px;
            }
            @media #{$md}{
                padding-top: 70px;
            }
        }
        .section-title{
            font-size: 120px;
            color: var(--rs-white);
            @media #{$laptop}{
                font-size: 100px;
            }
            @media #{$lg}{
                font-size: 90px;
            }
            @media #{$md}{
                font-size: 80px;
            }
            @media #{$sm}{
                font-size: 70px;
            }
            @media #{$xs}{
                font-size: 60px;
            }
            @media #{$mobile}{
                font-size: 50px;
            }
        }
        .rs-campus-life-wrapper{
            position: relative;
            z-index: 1;
            padding-top: 120px;
            @media #{$lg}{
                padding-top: 100px;
            }
            @media #{$md}{
                padding-top: 80px;
            }
        }
        .rs-campus-life-bg-thumb{
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: -1;
        }
        .rs-notice-wrapper {
            background-color: var(--rs-white);
            padding-top: 25px;
            padding-bottom: 30px;
            padding-inline-start: 35px;
            padding-inline-end: 35px;
            border-radius: 16px 16px 0px 0px;
            @media #{$md}{
                padding-bottom: 25px;
                padding-inline-start: 25px;
                padding-inline-end: 25px;
            }
            .popup-circle {
                width: 8px;
                height: 8px;
                position: relative;
                &::before {
                    background: var(--rs-theme-green-two);
                }
                &::after {
                    background: var(--rs-theme-green-two);
                }
            }
            .rs-notice-sec-title {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                border-bottom: 1px solid var(--rs-border-primary);
                margin-bottom: 20px;
            }
            .rs-notice-item {
                &:not(:last-child){
                    border-bottom: 1px solid var(--rs-border-primary);
                    padding-bottom: 15px;
                    margin-bottom: 15px;
                }
            }
            .rs-notice-title {
                font-size: 17px;
                margin-bottom: 10px;
            }
            .rs-notice-content {
                display: flex;
                align-items: end;
                justify-content: space-between;
                gap: 20px;
            }
            .rs-notice-meta {
                display: flex;
                flex-direction: column;
                gap: 5px;
            }
            .rs-notice-date {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: 14px;
                svg {
                    width: 14px;
                    height: 14px;
                }
            }
            .rs-notice-id {
                font-size: 13px;
            }
            .rs-notice-link {
                svg {
                    width: 20px;
                    height: 20px;
                    path{
                        transition: .3s;
                    }
                }
                a{
                    &:hover{
                        svg{
                            path{
                                fill: var(--rs-theme-green-two);
                            }
                        }
                    }
                }
            }
        }
        .rs-campus-life-content-wrapper{
            display: grid;
            grid-template-columns: 375px 500px;
            justify-content: space-between;
            gap: 30px;
            @media #{$md}{
                grid-template-columns: repeat(1,1fr);
            }
        }
        .rs-campus-life-thumb{
            @include rtl {
                transform: rotateY(180deg);
            }
            img{
                width: 100%;
                border: 6px solid var(--rs-white);
            }
        }
        .rs-campus-life-thumb-wrapper {
            display: grid;
            grid-template-columns: repeat(2,1fr);
            gap: 30px;
            position: relative;
            z-index: 1;
            .rs-campus-life-thumb{
                &:nth-child(2){
                    img{
                        border-radius: 96% 0% 0% 0%;
                    }
                }
                &:nth-child(3){
                    img{
                        border-radius: 0% 96% 0% 0%;
                    }
                }
                &:nth-child(4){
                    img{
                        border-radius: 96% 0% 0% 0%;
                    }
                }
                &:nth-child(5){
                    img{
                        border-radius: 0% 96% 0% 0%;
                    }
                }
            }
        }
        .rs-about-badge{
            background: var(--rs-theme-green-two);
            padding: 20px;
            display: flex;
            align-items: center;
            border-radius: 50%;
            width: 130px;
            height: 130px;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%,-50%);
            z-index: 1;
            @media #{$mobile}{
                width: 100px;
                height: 100px;
                padding: 15px;
            }
            img{
                width: 90px;
            }
        }
    }
    &-six{
        .rs-campus-life-wrapper{
            display: grid;
            grid-template-columns: repeat(3,1fr);
            gap: 30px;
            margin-top: 45px;
            @media #{$md}{
                grid-template-columns: repeat(2,1fr);
            }
            @media #{$sm}{
                grid-template-columns: repeat(1,1fr);
            }
        }
        .rs-campus-life-item {
            border-radius: 12px;
            background: var(--rs-white);
            padding-top: 28px;
            padding-bottom: 12px;
            padding-inline: 12px;
            text-align: center;
            box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.06);
            display: flex;
            flex-direction: column;
        }
        .rs-campus-life-shape{
            position: absolute;
            top: 50px;
            inset-inline-start: 0;
        }
        .rs-campus-life-thumb{
            height: 100%;
            img{
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 12px;
            }
        }
        .rs-campus-life-desc {
            margin-top: 10px;
            margin-bottom: 25px;
            padding-inline: 20px;
            @media #{$xl}{
                padding-inline: 10px;
                font-size: 15px;
            }
        }
        .rs-campus-life-title {
            position: relative;
            z-index: 1;
            padding-top: 20px;
            &::before{
                position: absolute;
                content: "";
                width: 40px;
                height: 3px;
                background: var(--rs-theme-yellow);
                left: 50%;
                top: 0;
                transform: translateX(-50%);
            }
        }
    }
    &-seven{
        overflow-x: clip;
        .section-title{
            font-size: 120px;
            color: var(--rs-white);
            text-align: center;
            line-height: 1;
            padding-top: 100px;
            padding-bottom: 70px;
            background: var(--rs-theme-red);
            @media #{$laptop}{
                font-size: 100px;
                padding-top: 80px;
                padding-bottom: 50px;
            }
            @media #{$lg}{
                font-size: 60px;
                padding-top: 60px;
            }
            @media #{$md}{
                font-size: 50px;
                padding-top: 40px;
                padding-bottom: 30px;
            }
            @media #{$sm}{
                font-size: 40px;
            }
        }
        .rs-campus-life-notice {
            width: 390px;
            position: absolute;
            bottom: 0;
            inset-inline-end: 315px;
            @media #{$md}{
                inset-inline-start: 50%;
                transform: translateX(-50%);
            }
            @media #{$mobile}{
                width: 100%;
                padding-inline: 15px;
            }
        }
        .rs-campus-life-video{
            height: 560px;
            position: relative;
            @media #{$laptop}{
                height: 500px;
            }
            @media #{$laptop}{
                height: 500px;
            }
            video{
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
        .rs-notice-wrapper {
            background-color: var(--rs-white);
            padding-top: 25px;
            padding-bottom: 30px;
            padding-inline-start: 35px;
            padding-inline-end: 35px;
            border-radius: 16px 16px 0px 0px;
            @media #{$mobile}{
                padding-bottom: 25px;
                padding-inline-start: 25px;
                padding-inline-end: 25px;
            }
            .popup-circle {
                width: 8px;
                height: 8px;
                position: relative;
                &::before {
                    background: var(--rs-theme-red);
                }
                &::after {
                    background: var(--rs-theme-red);
                }
            }
            .rs-notice-sec-title {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                border-bottom: 1px solid var(--rs-border-primary);
                margin-bottom: 20px;
            }
            .rs-notice-item {
                &:not(:last-child){
                    border-bottom: 1px solid var(--rs-border-primary);
                    padding-bottom: 15px;
                    margin-bottom: 15px;
                }
            }
            .rs-notice-title {
                font-size: 17px;
                margin-bottom: 10px;
                @media #{$xs}{
                    font-size: 15px;
                }
            }
            .rs-notice-content {
                display: flex;
                align-items: end;
                justify-content: space-between;
                gap: 20px;
            }
            .rs-notice-meta {
                display: flex;
                flex-direction: column;
                gap: 5px;
            }
            .rs-notice-date {
                display: flex;
                align-items: center;
                gap: 8px;
                font-size: 14px;
                margin-bottom: 5px;
                svg {
                    width: 14px;
                    height: 14px;
                }
            }
            .rs-notice-id {
                font-size: 13px;
            }
            .rs-notice-link {
                svg {
                    width: 20px;
                    height: 20px;
                    path{
                        transition: .3s;
                    }
                }
                a{
                    &:hover{
                        svg{
                            path{
                                fill: var(--rs-theme-red);
                            }
                        }
                    }
                }
            }
        }
    }
}
