/* ============================================================
   Blog Hero (title + search)
   ============================================================ */

.huc-blog-hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 4rem;
    background-color: var(--huc-blue-clr);
}

.huc-blog-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.huc-blog-hero-media__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    transform: scaleX(-1);
}

.huc-blog-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
            rgba(5, 10, 18, 0.92) 0%,
            rgba(5, 10, 18, 0.82) 40%,
            rgba(5, 10, 18, 0.55) 65%,
            rgba(5, 10, 18, 0.28) 100%);
}

.huc-blog-hero-container {
    position: relative;
    z-index: 2;
    /* max-width: 40rem; */
}

.huc-blog-hero-script {
    margin: 0 0 0.5rem;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    line-height: 1.15;
    font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
    color: var(--huc-white-clr);
}

.huc-blog-hero-subtitle {
    margin: 0 0 1.75rem;
    font-weight: 700;
    font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
    color: var(--huc-white-clr);
}

/* ---- Search ---- */
.huc-blog-hero-search {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 34rem;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    background-color: var(--huc-white-clr);
    border-radius: 999px;
    box-shadow: 0 15px 35px rgba(var(--huc-blue-rgb), 0.3);
}

.huc-blog-hero-search i {
    color: var(--huc-gray-clr);
    font-size: 1.0625rem;
}

.huc-blog-hero-search input[type="search"] {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9375rem;
    color: var(--huc-darkGray-clr);
}

.huc-blog-hero-search input[type="search"]::placeholder {
    color: var(--huc-gray-clr);
}

.huc-blog-hero-search button {
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    background-color: var(--huc-orange-clr);
    color: var(--huc-white-clr);
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--transition-base);
}

.huc-blog-hero-search button:hover {
    background-color: var(--huc-orange-dark-clr);
}

.huc-blog-hero-search__clear {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--huc-gray-clr);
    text-decoration: none;
    white-space: nowrap;
}

.huc-blog-hero-search__clear:hover {
    color: var(--huc-orange-clr);
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .huc-blog-hero-overlay {
        background: linear-gradient(180deg,
                rgba(5, 10, 18, 0.85) 0%,
                rgba(5, 10, 18, 0.8) 55%,
                rgba(5, 10, 18, 0.55) 100%);
    }
}

@media (max-width: 575.98px) {
    .huc-blog-hero {
        padding: 2.75rem 0 3rem;
    }

    .huc-blog-hero-search {
        max-width: 100%;
        flex-wrap: wrap;
        padding: 0.6rem;
        border-radius: 20px;
    }

    .huc-blog-hero-search input[type="search"] {
        min-width: 0;
    }

    .huc-blog-hero-search button {
        flex: 1 1 100%;
        justify-content: center;
    }

    .huc-blog-hero-search__clear {
        flex: 1 1 100%;
        text-align: center;
    }
}
