/* =============================================
   page-hero.css  --  Reusable image-background hero
   ADOPTION FOR PAGES 2-4: ...
   ============================================= */

/* Base band -- T123: flex centering so text block sits at vertical mid-point.
   ::before and ::after are position:absolute so they are NOT flex items;
   background-image is on the element itself, also unaffected by flex.      */
.page-hero-img {
    position: relative;
    overflow: hidden;
    background-color: #ecf5f8;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
    padding: 5rem 0 5rem;
    display: flex;
    align-items: center;
    min-height: 560px;
}

/* Group A: standalone pages (eRAI, Services) */
#main-content > .page-hero-img {
    margin-bottom: 5rem;
}

/* Group B: CMS pages (Products, Integrations) */
.section > .page-hero-img {
    margin-bottom: 5rem;
}

/* White to transparent left scrim */
.page-hero-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,1)    0%,
        rgba(255,255,255,0.97) 30%,
        rgba(255,255,255,0.65) 52%,
        rgba(255,255,255,0)    70%
    );
    pointer-events: none;
    z-index: 0;
}

/* Subtle depth: navy radial vignette, right half only */
.page-hero-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 78% 50%, rgba(10,37,64,0.12) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.page-hero-img > .container { position: relative; z-index: 1; }
.page-hero-text { max-width: 580px; }
.page-hero-img .svc-hero-sub { color: #5A6B72; margin-bottom: 1.75rem; max-width: 540px; }

/* Button */
.page-hero-btn { display: inline-block; background: #fff; color: #0A7E8C !important;
    border: 2px solid #0A7E8C; border-radius: 8px; padding: .7rem 2rem;
    font-size: .9375rem; font-weight: 600; font-family: 'Poppins', sans-serif;
    text-decoration: none !important; line-height: 1.4; transition: background .18s, color .18s; }
.page-hero-btn:hover, .page-hero-btn:focus-visible { background: #0A7E8C; color: #fff !important; }

/* Per-page modifiers */
.page-hero-img--erai {
    background-image: url('/application/themes/infoed_global/assets/images/heroes/hero-bg-erai.png?v=16');
}
.page-hero-img--integrations {
    background-image: url('/application/themes/infoed_global/assets/images/heroes/hero-bg-integrations.png?v=16');
}
.page-hero-img--integrations::before {
    background: linear-gradient(to right,
        rgba(255,255,255,1)    0%,   rgba(255,255,255,1)    45%,
        rgba(255,255,255,0.75) 63%,  rgba(255,255,255,0)    82%);
}
.page-hero-img--products {
    background-image: url('/application/themes/infoed_global/assets/images/heroes/hero-bg-products.png?v=16');
}
.page-hero-img--products::before {
    background: linear-gradient(to right,
        rgba(255,255,255,1)    0%,   rgba(255,255,255,1)    40%,
        rgba(255,255,255,0.75) 62%,  rgba(255,255,255,0)    80%);
}
.page-hero-img--products .svc-hero-sub { margin-bottom: 0; }
.page-hero-img--services {
    background-image: url('/application/themes/infoed_global/assets/images/heroes/hero-bg-services.png?v=16');
    background-position: right 38%;
}
.page-hero-img--services::before {
    background: linear-gradient(to right,
        rgba(255,255,255,1)    0%,   rgba(255,255,255,1)    42%,
        rgba(255,255,255,0.72) 63%,  rgba(255,255,255,0)    80%);
}
.page-hero-img--services .svc-hero-sub { margin-bottom: 0; }

/* Tablet @media (max-width: 991px) */
@media (max-width: 991px) {
    .page-hero-img::before {
        background: linear-gradient(to right,
            rgba(255,255,255,1)    0%,   rgba(255,255,255,0.97) 40%,
            rgba(255,255,255,0.8)  62%,  rgba(255,255,255,0)    84%);
    }
}

/* Mobile @media (max-width: 767px) */
@media (max-width: 767px) {
    .page-hero-img { padding: 3.5rem 0 3.5rem; min-height: 0; }
    .page-hero-img::before { background: rgba(255,255,255,0.92); }
    .page-hero-img::after { display: none; }
    #main-content > .page-hero-img { margin-top: 0; margin-bottom: 0; }
    .section > .page-hero-img { margin-bottom: 0; }
    .page-hero-text { max-width: 100%; }
    .page-hero-img .svc-hero-sub { max-width: 100%; }
}