/* ============================================================
   ENTRY HERO (ISOLATED FROM FRONTPAGE HERO)
   File: hero-entry.css
============================================================ */

/* ============================================================
   HERO MAX-WIDTH WRAPPER (NEW)
   - Centers the hero
   - Constrains width to 1200px
   - Keeps hero height + overlay behaviour unchanged
============================================================ */
.entry-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* ------------------------------
   HERO CONTAINER
------------------------------ */
.connect-hero.ce-entry-hero {
    margin-top: 10px;
    position: relative;
    width: 100%;
    height: 250px;              /* FIXED UNIFORM HEIGHT */
    overflow: hidden;
    z-index: 1;
}

/* ------------------------------
   HERO IMAGE (OVERRIDES ALL GLOBAL RULES)
------------------------------ */
.connect-hero.ce-entry-hero .connect-hero__image {
    width: 100%;
    height: 100%;
    position: relative;
}

.connect-hero.ce-entry-hero .connect-hero__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* ------------------------------
   HERO OVERLAY (SNAPS TO HERO HEIGHT)
------------------------------ */
.connect-hero.ce-entry-hero .connect-hero__overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 2;
}

/* ------------------------------
   HERO CONTENT (TITLE)
------------------------------ */
.connect-hero.ce-entry-hero .connect-hero__content {
    position: absolute;
    bottom: 40px;
    left: 60px;
    z-index: 3;
    color: #fff;
}

.connect-hero.ce-entry-hero .connect-hero__title {
    font-size: 48px;
    color: #fff;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}

/* ------------------------------
   ENTRY TYPE COLOUR SCHEMES
   (BUSINESS / COMMUNITY / EACHOTHER)
------------------------------ */
.ce-entry--business .connect-hero__overlay {
    background: linear-gradient(to right, var(--connect-blue) 0%, transparent 80%);
}

.ce-entry--community .connect-hero__overlay {
    background: linear-gradient(to right, var(--connect-green) 0%, transparent 80%);
}

.ce-entry--eachother .connect-hero__overlay {
    background: linear-gradient(to right, var(--connect-orange) 0%, transparent 80%);
}

/* ------------------------------
   MOBILE (PORTRAIT)
------------------------------ */
@media (max-width: 600px) and (orientation: portrait) {

    .connect-hero.ce-entry-hero {
        height: 300px !important;
    }

    .connect-hero.ce-entry-hero .connect-hero__title {
        font-size: 36px !important;
    }

    .connect-hero.ce-entry-hero .connect-hero__content {
        bottom: 20px !important;
        left: 30px !important;
    }

    .connect-hero.ce-entry-hero .connect-hero__image img {
        height: 100% !important;
        object-fit: cover !important;
    }
}
