/* ==========================================================================
   Page Hero — unified site hero (dark photo + gradient overlay + badge)
   Reusable by all listing/landing pages via <x-frontend.page-hero>.
   Scoped to .page-hero* only. No global overrides.
   ========================================================================== */

.page-hero {
    position: relative;
    background-color: #192d4b; /* fallback base when no banner image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 96px 0 84px;
    isolation: isolate;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg,
            rgba(13, 32, 56, 0.92) 0%,
            rgba(13, 32, 56, 0.78) 45%,
            rgba(13, 32, 56, 0.55) 100%);
}

.page-hero__inner {
    position: relative;
    z-index: 1;
}

.page-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    margin-bottom: 22px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    backdrop-filter: blur(4px);
}

.page-hero__badge i {
    font-size: 15px;
}

.page-hero__title {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.08;
}

.page-hero__subtitle {
    margin: 0;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.6;
}

.page-hero__badge:focus-visible {
    outline: 2px solid var(--tg-theme-primary, #1a8f5c);
    outline-offset: 3px;
}

@media (max-width: 991px) {
    .page-hero {
        padding: 76px 0 64px;
    }
}

@media (max-width: 767px) {
    .page-hero {
        padding: 62px 0 52px;
    }
}
