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

/*----------------------------------------*/
/*  3.1.7 banner style 7
/*----------------------------------------*/

.rs-banner{
    &-seven{
        overflow-x: clip;
        position: relative;
        .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;
            @include rtl {
                transform: rotateY(180deg);
            }
            &::before{
                position: absolute;
                content: "";
                width: 100%;
                height: 100%;
                top: 0;
                left: 0;
                background: linear-gradient(
                    to right, 
                    rgba(13, 37, 63, 1) 0%,
                    rgba(13, 37, 63, 0.8) 35%,
                    rgba(13, 37, 63, 0) 65%
                );
                z-index: -1;
            }
        }
        .rs-banner-wrapper{
            padding-top: 200px;
            padding-bottom: 230px;
            padding-inline: 150px;
            position: relative;
            z-index: 1;
            @media #{$laptop}{
                padding-top: 170px;
                padding-bottom: 200px;
                padding-inline: 120px;
            }
            @media #{$lg}{
                padding-top: 150px;
                padding-bottom: 180px;
            }
            @media #{$md}{
                padding-top: 130px;
                padding-bottom: 150px;
                padding-inline: 100px;
            }
            @media #{$sm}{
                padding-inline: 0px;
                padding-top: 80px;
                padding-bottom: 100px;
            }
        }
        .rs-banner-subtitle {
            font-size: 22px;
            font-weight: 400;
            color: var(--rs-white);
            display: inline-block;
            font-style: italic;
            @media #{$sm}{
                font-size: 20px;
            }
        }
        .rs-banner-title{
            color: var(--rs-white);
            text-transform: capitalize;
            margin-top: 20px;
            margin-bottom: 40px;
            font-size: unset;
            .banner-title-primary{
                font-size: 100px;
                line-height: 1;
                margin-bottom: 15px;
                display: inline-block;
                @media #{$laptop}{
                    font-size: 80px;
                }
                @media #{$lg}{
                    font-size: 60px;
                }
                @media #{$md}{
                    font-size: 50px;
                }
                @media #{$sm}{
                    font-size: 40px;
                }
            }
            .banner-title-secondary{
                font-size: 130px;
                font-weight: 700;
                display: grid;
                grid-template-columns: 90px auto;
                align-items: center;
                gap: 30px;
                line-height: 1;
                @media #{$laptop}{
                    font-size: 100px;
                }
                @media #{$lg}{
                    font-size: 80px;
                    grid-template-columns: 70px auto;
                }
                @media #{$md}{
                    font-size: 70px;
                    grid-template-columns: 50px auto;
                }
                @media #{$sm}{
                    font-size: 60px;
                    gap: 10px;
                }
                @media #{$xs}{
                    font-size: 50px;
                }
            }
        }
        .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;
                }
                @include rtl {
                    transform: translateY(-50%) rotateY(180deg);
                }
            }
        }
        .rs-pagination.swiper-pagination {
            position: absolute;
            bottom: 40px;
            &.swiper-pagination-bullet-active{
                background: var(--rs-theme-red);
            }
            .swiper-pagination-bullet{
                &.swiper-pagination-bullet-active{
                    &::before{
                        border-color: var(--rs-white);
                    }
                }
            }
        }
    }
}

// slider animation
.rs-banner-seven {
     .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);
        }
    }
}