@use '../../root' as *;
@use '../../utilities' as *;


.hero1 {
    position: relative;
    padding: 156px 0 148px;
    margin-top: 123px;
    border-radius: 20px;
    @include breakpoint (max-xl){
        margin-top: 105px;
    }
    @include breakpoint (max-sm){
        padding: 110px 0 110px;
    }
    #heroSlider1 {
        position: relative;
        z-index: 9;
    }
    &-sliderBtn {
        position: absolute;
        z-index: 9;
        left: 6%;
        top: 50%;
        display: flex;
        flex-direction: column;
        gap: 10px;
        
        svg rect {
            &:hover {
                fill: $title-color;
                fill-opacity: 1;
            }
        }

        @include breakpoint (max-xl3){
            left: 4%;
        }
        @include breakpoint (max-xl2){
            left: 2%;
        }
        @include breakpoint (max-xxxl){
            display: none;
        }
    }
    &-background-image {
        position: absolute;
        inset: 0;
        z-index: 5;
        background-repeat: no-repeat;
        background-size: cover;

        &::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 20px;
            background: linear-gradient(270deg, rgba(9, 50, 36, 0.00) 0%, #093224 91.23%);
            z-index: 1;
        }
    }    
    &-content {
        position: relative;
        z-index: 9;
        &__subtitle {
            display: inline-block;
            padding: 0 15px;
            border-radius: 100px;
            border: 1.5px solid rgba(255, 255, 255, 0.14);
            color: $white;
            font-family: $body-font;
            font-size: 20px;
            font-style: normal;
            font-weight: 600;
            line-height: 58px; 
            text-transform: uppercase;
            margin-bottom: 22px;
            @include breakpoint (max-xsmall){
                padding: 0 5px;
                font-size: 14px;
            }
            
        }
        &__title { 
            padding-bottom: 30px;
            color: $white;
            font-family: $body-font;
            font-size: 90px;
            font-style: normal;
            font-weight: 600;
            line-height: 94px; /* 104.444% */
            span {
                color: $title-color2;
                font-family: $body-font;
                font-size: 90px;
                font-style: normal;
                font-weight: 600;
                line-height: 94px;
                text-decoration-line: underline;
                text-decoration-style: solid;
                text-decoration-skip-ink: none;
                text-decoration-thickness: auto;
                text-underline-offset: auto;
                text-underline-position: from-font;
                @include breakpoint (max-lg) {
                    font-size: 58px;
                    line-height: 70px;
                }
                @include breakpoint (max-md) {
                    font-size: 45px;
                    line-height: 50px;
                }
                @include breakpoint (max-sm) {
                    font-size: 42px;
                    line-height: 50px;
                }
            }
            @include breakpoint (max-lg) {
                font-size: 58px;
                line-height: 70px;
            }
            @include breakpoint (max-md) {
                font-size: 45px;
                line-height: 50px;
            }
            @include breakpoint (max-sm) {
                font-size: 42px;
                line-height: 50px;
            }
        } 
        &__desc {
            max-width: 639px;
            padding-right: 0px;
            color: $white;
            font-family: $body-font;
            font-size: 18px;
            font-style: normal;
            font-weight: 500;
            line-height: 30px;
            opacity: 0.8;
        }
        &-cta {
            display: flex;
            align-items: center;
            gap: 30px;
            @include breakpoint (max-md){
                flex-direction: column;
                align-items: self-start;
                gap: 25px;
            }
            &-link {

                img {
                    padding-right: 14px;
                }

                &__text {
                    color: $white;
                    font-family: $body-font;
                    font-size: 20px;
                    font-style: normal;
                    font-weight: 500;
                    line-height: normal;
                    text-decoration-line: underline;
                    text-decoration-style: solid;
                    text-decoration-skip-ink: none;
                    text-decoration-thickness: 6%; /* 1.2px */
                    text-underline-offset: 16%; /* 3.2px */
                    text-underline-position: from-font;
                }
            }
        }   
    }
    &-card {
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 5;
        padding: 23px 34px;
        border-radius: 20px 0px;
        background: #C5ED82;
        display: flex;
        align-items: center;
        gap: 12px;
        @include breakpoint (max-xxl){
            display: none;
        }
        &-item {
            &__title {
                color: #1F1F1F;
                font-family: Roboto;
                font-size: 20px;
                font-style: normal;
                font-weight: 500;
                line-height: 30px; /* 150% */
            }
            &__desc {
                color: rgba(31, 31, 31, 0.70);
                font-family: Roboto;
                font-size: 16px;
                font-style: normal;
                font-weight: 500;
                line-height: 30px; /* 187.5% */
                text-transform: uppercase;
            }
        }
    }   
}

