.masthead-homepage {
    position: relative;
    background: linear-gradient(45deg, rgba(19, 19, 59, 1) 0%, rgba(26, 71, 130, 1) 100%);
    padding: 94px 0 0 0;
    z-index: 1;
    overflow: hidden;
}

.masthead__bg {
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 144px);
    object-fit: cover;
}

.js-masthead-homepage-slider {
    margin: 0 -16px;
    padding-bottom: 0;
}

.masthead__item {
    padding: 0 16px;
}

.masthead__text {
    padding-bottom: 57px;
}

.masthead__text .sub-heading::before {
    margin-bottom: 25px;
}

.masthead__text h1 {
    color: #fff;
    font-size: 32px;
    line-height: 1.25em;
    padding-bottom: 25px;
}

.masthead__text .description {
    padding-bottom: 25px;
}

.masthead__text .description p {
    color: #fff;
    font-size: 16px;
    line-height: 1.75em;
    font-weight: normal;
}

.masthead__image {
    height: 100%;
    position: relative;
}

.masthead__image img {
    object-position: top;
    border-radius: 10px;
}

.js-masthead-homepage-slider .slick-dots {
    bottom: 258px;
}

.masthead-homepage::after {
    content: '';
    position: absolute;
    bottom: 63px;
    left: 0;
    background-color: #E7E9E9;
    width: 100%;
    height: 37px;
    z-index: -1;
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.masthead-homepage::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #E7E9E9;
    width: 100%;
    height: 64px;
}

@media (min-width: 768px) {
    .masthead-homepage {
        padding: 150px 0 0 0;
    }

    .masthead__bg {
        position: absolute;
        z-index: -1;
        left: 0;
        right: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .js-masthead-homepage-slider {
        padding-bottom: 0;
    }

    .masthead__text {
        padding-top: 0;
        padding-bottom: 42px;
    }

    .masthead__text .sub-heading::before {
        margin-bottom: 0;
    }

    .masthead__text h1 {
        font-size: 42px;
        padding-bottom: 25px;
    }

    .masthead__flex {
        display: flex;
        flex-wrap: wrap;
    }

    .masthead__text,
    .masthead__image {
        width: 100%;
    }

    .masthead__image {
        height: 486px;
    }

    .masthead__image img {
        object-position: top;
    }

    .js-masthead-homepage-slider .slick-dots {
        bottom: 486px;
    }

    .masthead-homepage::after {
        content: '';
        position: absolute;
        bottom: 105px;
        left: 0;
        background-color: #E7E9E9;
        width: 100%;
        height: 85px;
        z-index: -1;
        clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    }

    .masthead-homepage::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        background-color: #E7E9E9;
        width: 100%;
        height: 106px;
    }


}


@media (min-width: 1200px) {
    .masthead-homepage {
        padding: 125px 0 100px 0;
    }


    .masthead__text h1 {
        font-size: 45px;
    }

    .masthead__text,
    .masthead__image {
        width: 50%;
    }

    .masthead__text {
        padding-top: 68px;
        padding-bottom: 0;
    }

    .masthead__image {
        height: auto;
        padding-left: 50px;
    }

    .masthead__image img {
        object-position: top;
    }

    .js-masthead-homepage-slider .slick-dots {
        bottom: -50px;
    }

    .masthead-homepage::after {
        height: 158px;
        bottom: -1px;
    }

    .masthead-homepage::before {
        display: none;
    }
}

@media (min-width: 1200px) {
    .js-masthead-homepage-slider .slick-dots {
        bottom: -50px;
    }
}

@media (min-width: 1350px) {
    .js-masthead-homepage-slider .slick-dots {
        bottom: 3px;
    }
}

@media (min-width: 1620px) {

    .masthead-homepage {
        padding: 112px 0 21px 0;
    }

    .masthead__text h1 {
        font-size: 50px;
        padding-bottom: 30px;
    }

    .masthead__text {
        padding-top: 85px;
        padding-right: 60px;
    }

    .masthead__image {
        padding-left: 0;
    }

    .js-masthead-homepage-slider .slick-dots {
        bottom: 73px;
    }

    .masthead-homepage::after {
        height: 193px;
    }

}

.masthead__bg {
    height: 5046px;
    background-repeat: repeat-y;
    animation: moveUpMasthead 30s linear infinite;
    opacity: .2;
    margin: 0 auto;
    width: 1920px;
}

@keyframes moveUpMasthead {
    0% {
        transform: translate(0);
    }
    100% {
        transform: translateY(-1682px); 
    }
}
