﻿.mhg-blog-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.mhg-blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.96) 100% );
    z-index: 1;
}

.mhg-blog-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1216px;
    margin: 0 auto;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 70px 55px;
}

.mhg-blog-hero__text {
    width: 100%;
    max-width: 520px;
    color: #fff;
}

    .mhg-blog-hero__text h1 {
        margin: 0 0 24px;
        color: #fff;
        font-size: 48px;
        line-height: 1;
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .mhg-blog-hero__text p {
        margin: 0 0 34px;
        color: #fff;
        font-size: 22px;
        line-height: 1.45;
        font-weight: 400;
    }

.mhg-blog-hero__search {
    position: relative;
    width: 100%;
}

.mhg-blog-hero__search-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #b9c4d4;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
}

.mhg-blog-hero__search input {
    width: 100%;
    height: 50px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background-color: #1f2a3a;
    color: #fff;
    font-size: 16px;
    padding: 0 20px 0 52px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .mhg-blog-hero__search input::placeholder {
        color: #b9c4d4;
    }

    .mhg-blog-hero__search input:focus {
        border-color: #EC1C24;
        box-shadow: 0 0 0 3px rgba(236, 28, 36, 0.25);
    }

@media (max-width: 991px) {
    .mhg-blog-hero,
    .mhg-blog-hero__content {
        min-height: 390px;
    }

    .mhg-blog-hero__content {
        justify-content: center;
        padding: 60px 30px;
    }

    .mhg-blog-hero__text {
        max-width: 650px;
        text-align: center;
    }

        .mhg-blog-hero__text h1 {
            font-size: 42px;
        }

        .mhg-blog-hero__text p {
            font-size: 19px;
        }

    .mhg-blog-hero__overlay {
        background: rgba(0, 0, 0, 0.65);
    }
}

@media (max-width: 575px) {
    .mhg-blog-hero,
    .mhg-blog-hero__content {
        min-height: 360px;
    }

    .mhg-blog-hero__content {
        padding: 46px 20px;
    }

    .mhg-blog-hero__text h1 {
        font-size: 34px;
    }

    .mhg-blog-hero__text p {
        font-size: 17px;
        margin-bottom: 26px;
    }

    .mhg-blog-hero__search input {
        height: 48px;
        font-size: 15px;
    }
}
