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

/*----------------------------------------*/
/*  4.41 text slide css
/*----------------------------------------*/

.rs-text-slide {
    &-one {
        overflow-x: clip;
        position: relative;
        z-index: 1;
        padding-bottom: 100px;
        @media #{$sm} {
            padding-bottom: 70px;
        }
        @media #{$mobile} {
            padding-bottom: 60px;
        }
        .rs-text-slide-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            text-align: center;
        }
        .rs-text-slide-inner {
            min-width: max-content;
            display: flex;
            align-items: center;
            gap: 0px 40px;
        }
        .rs-text-slide-item {
            display: inline-flex;
            align-items: center;
            gap: 0px 30px;
            &:nth-child(2n){
                .rs-text-slide-title{
                    color: var(--rs-theme-yellow);
                }
            }
        }
        .rs-text-slide-title {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--rs-title-tertiary);
            font-size: 70px;
            text-transform: uppercase;
            line-height: .9;
            @media #{$lg}{
                font-size: 60px;
            }
            @media #{$md}{
                font-size: 50px;
            }
            @media #{$sm}{
                font-size: 40px;
            }
        }
        .rs-text-slide-thumb {
            img {
                width: 60px;
            }
        }
        &.has-section-space{
            padding-top: 120px;
            padding-bottom: 60px;
            @media #{$lg}{
                padding-top: 100px;
            }
            @media #{$md}{
                padding-top: 50px;
                padding-bottom: 50px;
            }
        }
        &.has-theme-green{
            background: var(--rs-theme-green);
            .rs-text-slide-title{
                color: var(--rs-white);
            }
        }
        &.has-theme-red{
            .rs-text-slide-item {
                &:nth-child(2n){
                    .rs-text-slide-title{
                        color: var(--rs-theme-red);
                    }
                }
            }
        }
        &.has-theme-red-two{
            padding-top: 100px;
            position: relative;
            overflow: hidden;
            @media #{$md}{
                padding-top: 60px;
                padding-bottom: 60px;
            }
            @media #{$sm}{
                padding-top: 50px;
                padding-bottom: 50px;
            }
            .rs-text-slide-title{
                color: var(--rs-title-primary);
            }
            .rs-text-slide-item {
                &:nth-child(2n){
                    .rs-text-slide-title{
                        color: var(--rs-title-primary);
                    }
                }
            }
            .rs-text-slide-shape{
                position: absolute;
                width: 100%;
                height: 100%;
                bottom: -60px;
                left: 0;
                background-position: bottom right;
                background-repeat: no-repeat;
                opacity: 0.5;
            }
        }
    }
}
