/**
* Styling for the L2 Hero Block
* Created By: RubicoTech (Philip Pradeep)
* @Package SBX Genesis Collection
*/
.module_hero-l2 {
    background-color: var(--gradient-teal);
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.module_hero-l2:not(.img-overlay) + *:not([class^="module_"]) {
    margin-top: 30px !important;
}

.module_hero-l2 .grid-wrap {
    padding-top: var(--text-spacing--l);
    padding-bottom: var(--text-spacing--l);
    background-image: none;
    min-height: 150px;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.module_hero-l2 .txt_hero_l2 h1 {
    margin: 0 !important;
}

.module_hero-l2 .txt_hero_l2 p {
    margin: var(--text-spacing--l) 0 0;
    max-width: 725px;
}

/* -- For L2 Img Overlay -- */
.module_hero-l2.img-overlay {
    background-color: transparent;
    position: relative;
    overflow: visible;
}
.module_hero-l2.img-overlay .grid-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: initial;
}
.module_hero-l2.img-overlay .wrap-img-overlay {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding-bottom: 40px;
}
.module_hero-l2 .wrap-img-overlay img {
    width: 100%;
}
.module_hero-l2:not(.img-overlay) .wrap-img-overlay {
    display: none;
}

/* -- Media Break-Points -- */
@media (min-width: 768px) {
    .module_hero-l2 .grid-wrap {
        padding-top: calc(var(--module-spacing) - 25px);
        padding-bottom: calc(var(--module-spacing) - 25px);
        display: grid;
        align-content: center;
        min-height: 300px;
    }
    .module_hero-l2 .txt_hero_l2 {
        grid-column: 1 / 9;
    }
    .module_hero-l2:not(.img-overlay) .wrap-img-overlay {
        grid-column: 9 / 13;
        margin: -60px 0;
        display: block;
    }
    /* -- For L2 Img Overlay -- */
    .module_hero-l2.img-overlay .grid-wrap {
        padding-top: 45px !important;
        padding-bottom: 45px !important;
    }
    .module_hero-l2.img-overlay .txt_hero_l2 {
        grid-column: 1 / 7;
        align-self: center;
    }
    .module_hero-l2.img-overlay {
        margin-bottom: 110px !important;
    }
    .module_hero-l2.img-overlay .wrap-img-overlay {
        grid-column: 7 / 13;
        margin-bottom: -100px;
        margin-top: 0;
        padding-bottom: 0;
    }
}
@media (min-width: 1024px) {
    /* -- For L2 Img Overlay -- */
    .module_hero-l2.img-overlay {
        margin-bottom: 150px !important;
    }
    .module_hero-l2.img-overlay .wrap-img-overlay {
        grid-column: 7 / 13;
        margin-bottom: -130px !important;
    }
}

@media (max-width: 767px) {
    /* -- For L2 Img Overlay -- */
    .module_hero-l2.img-overlay .grid-wrap .txt_hero_l2 {
        width: 100%;
        padding-top: 45px !important;
        padding-bottom: 45px !important;
        position: relative;
    }
    .module_hero-l2.img-overlay .wrap-img-overlay {
        overflow: visible;
        padding-top: 40px;
    }
    .module_hero-l2.img-overlay .wrap-img-overlay:before {
        content: '';
        position: absolute;
        left: -20px;
        right: -20px;
        top: 0;
        bottom: 0;
        background: #fff;
        z-index: 0;
    }
    .module_hero-l2.img-overlay .wrap-img-overlay > img {
        position: relative;
        z-index: 1;
        border-radius: 30px;
    }
} 
@media (min-width: 992px) and (max-width: 1024px) {
    .single-resource .module_hero-l2.img-overlay .txt_hero_l2 h1 {
        font-size: 50px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* -- For L2 Img Overlay -- */
    .single-resource .module_hero-l2.img-overlay .grid-wrap .txt_hero_l2 {
        width: 100%;
        padding-top: 0 !important;
        padding-bottom: 45px !important;
        position: relative;
        grid-column: span 12;
    }
    .single-resource .module_hero-l2.img-overlay .wrap-img-overlay {
        overflow: visible;
        padding-top: 40px;
        grid-column: span 12;
        padding-bottom: 40px;
    }
    .single-resource .module_hero-l2.img-overlay .wrap-img-overlay:before {
        content: '';
        position: absolute;
        left: -40px;
        right: -40px;
        top: 0;
        bottom: 0;
        background: #fff;
        z-index: 0;
    }
    .single-resource .module_hero-l2.img-overlay .wrap-img-overlay > img {
        position: relative;
        z-index: 1;
        border-radius: 30px;
    }
}