@use '../helpers/variables' as vars;
@use 'sass:map';
.banner-section{
    // vertical gradient 80% opacity overlay on banner background image FFFFFF at location 0% opacity 100%, 00659C at location 57% opacity 25%, 000000 at location 100% opacity 100%
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
    &::after{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(0, 101, 156, 0.279) 57%, rgba(0,0,0,1) 100%);
        z-index: 1;
    }
    &.banner-bg{
        background-image: url('../images/banner/banner-bg.jpeg');
        background-size: cover;
        background-position: center;
        transition: 1.2s ease-in-out;
    }

     .banner-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
        opacity: 0;
        transition: opacity 1.2s ease-in-out;
        pointer-events: none;
    }

    &.show-video {
        .banner-video {
            opacity: 1;
        }

        &.banner-bg {
            background-image: none;
        }
    }

    .banner-content{
        position: relative;
        z-index: 2;
        max-width: 950px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        @media (max-width: 1024px) {
            max-width: 700px;
        }
        h1{
            font-size: map.get(vars.$heading-sizes, 3xlarge);
            color: var(--white);
            margin-bottom: 20px;
            line-height: 4.9rem;
            font-weight: map.get(vars.$font-weights, normal);
            @media (max-width: 1120px) {
                font-size: 60px;
                line-height: 4.5rem;
            }
            @media (max-width: 1080px) {
                font-size: 55px;
                line-height: 4rem;
                margin-bottom: 0;
            }
             @media (max-width: 925px) {
                font-size: 48px;
                line-height: 3.5rem;
            }
            @media (max-width: 768px) {
                font-size: 36px;
                line-height: 2.5rem;
            }
        }
        p{
            font-size: map.get(vars.$font-sizes, large);
            color: var(--white);
            @media (max-width: 1120px) {
                font-size: map.get(vars.$font-sizes, medium);
            }
        }
    }
}