﻿.hero-module {
    background-size: cover;
    background-position: left bottom;
    background-repeat: no-repeat;
    display: flex;
}

.sub-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 20px; 
    align-items: end; 
}

.sub-h1 {
    color: black;
    font-family: DINBold;
    font-size: 45px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
}

.sub-hero-p {
    color: black;
    font-family: DINRegular;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; 
}

.sub-hero-img {
    object-fit: contain;
    max-width: 740px;
    width: 100%;
}

.left-sub {
    height: 100%;
    display: flex; 
    flex-direction: column;
    justify-content: center;
    margin-bottom: 10px;
    padding-left: 30px;
}

.hero-container {
    height: 100%;
    padding: 70px 112px 0px 112px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;

    @media only screen and (max-width: 767px) {
        padding: 70px 20px;
    }

    @media only screen and (max-width: 980px) {
        padding: 60px 30px;
    }
}

@media only screen and (max-width: 980px) {
    .sub-hero-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
        align-items: center;
        height: auto;
    }

    .sub-hero-img {
        margin-bottom: 0px;
        height: auto !important;
    }

    .sub-h1 {
        font-size: 32px;
    }

    .sub-hero-p {
        font-size: 18px;
    }

    .left-sub {
        padding-left: 0px;
    }
}