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

/*----------------------------------------*/
/*  3.1.2 banner style 2
/*----------------------------------------*/

.rs-banner{
    &-two{
        overflow-x: clip;
        position: relative;
        .b-line-one {
            position: absolute;
            content: "";
            width: 1px;
            height: 100%;
            background: var(--rs-border-tertiary);
            inset-inline-start: 150px;
            top: 0;
            z-index: 2;
            @media #{$xs}{
                display: none;
            }
        }
        .b-line-two {
            position: absolute;
            content: "";
            width: 1px;
            height: 100%;
            background: var(--rs-border-tertiary);
            inset-inline-end: 150px;
            top: 0;
            z-index: 2;
             @media #{$xs}{
                display: none;
            }
        }
        .b-line-three {
            position: absolute;
            content: "";
            width: 100%;
            height: 1px;
            background: var(--rs-border-tertiary);
            left: 0px;
            bottom: 140px;
            z-index: 2;
        }
        .rs-banner-item-wrapper{
            position: relative;
            z-index: 1;
        }
        .rs-banner-bg-thumb {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 1;
            transition: transform 7000ms ease, opacity 1500ms ease-in, -webkit-transform 7000ms ease;
            &::before{
                position: absolute;
                content: "";
                width: 100%;
                height: 100%;
                top: 0;
                left: 0;
                background: linear-gradient(180deg, rgba(3, 3, 3, 0) -2.4%, #030303 111.13%);
                z-index: -1;
            }
        }
        .rs-banner-wrapper{
            padding: 300px 0 210px;
            text-align: center;
            position: relative;
            z-index: 1;
            @media #{$laptop}{
                padding: 250px 0 200px;
            }
            @media #{$xl}{
                padding: 200px 0 150px;
            }
            @media #{$sm}{
                padding: 110px 0 90px;
            }
        }
        .rs-banner-subtitle {
            font-size: 20px;
            font-weight: 600;
            color: var(--rs-white);
            display: inline-block;
        }
        .rs-banner-title{
            font-size: 70px;
            color: var(--rs-white);
            text-transform: capitalize;
            line-height: 1.15;
            margin-top: 20px;
            margin-bottom: 40px;
            @media #{$laptop}{
		        font-size: 60px;
            }
            @media #{$lg}{
                font-size: 55px;
            }
            @media #{$md}{
                font-size: 50px;
            }
            @media #{$sm}{
                font-size: 45px;
            }
            @media #{$xs}{
                font-size: 40px;
            }
            @media #{$mobile}{
                font-size: 35px;
            }
        }
        .rs-banner-navigation{
            @media #{$sm}{
                display: none;
            }
            .swiper-button-prev,
            .swiper-button-next{
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
            }
            button{
                inset-inline-start: 30px;
                &.swiper-button-next{
                    inset-inline-end: 30px;
                    inset-inline-start: auto;
                }
            }
        }
        .rs-pagination.swiper-pagination {
            position: absolute;
            bottom: 40px;
                &.swiper-pagination-bullet-active{
                    background: var(--rs-theme-red);
                    &::before{
                        border-color: var(--rs-theme-red);
                    }
            }
        }
    }
}

// slider animation
.rs-banner-two {
     .swiper-slide-active {
         .rs-banner-subtitle,
         .rs-banner-title,
         .rs-banner-btn{
            animation-fill-mode: both;
            animation-name: fadeInUp;
         }
    }
     .swiper-slide-active {
        .rs-banner-subtitle{
            animation-delay: .3s;
            animation-duration: 0.7s;
        }
         .rs-banner-title {
            animation-delay: .5s;
            animation-duration: 0.9s;
        }
         .rs-banner-btn {
            animation-delay: .9s;
            animation-duration: 1.1s;
        }
        .rs-banner-bg-thumb {
            transform: scale(1.15);
        }
    }
}
