/* 03-php-03-hero.css */

/* ============================================================
   03-php-03-hero — full-width background-image hero with a
   title centered in the middle of the image (PHP port of the
   React macro 02-ma-01-hero "Hero").
   The centered inner wrapper comes from _partials/cmp-container.
   ============================================================ */



.page-organization .page-heading .inner-content {
  min-height: 263px;
}



.page-heading,
.page-heading * {
    box-sizing: border-box;
}

/* Full-width background image; the title is centered on top of it. */
.page-heading {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;          /* vertical centering   */
    justify-content: center;      /* horizontal centering */
    background-size: cover;
    background-position: 50% top;
    background-repeat: no-repeat;
    color: #fff;
}

/* Dim overlay so light title text stays readable over any photo. */
.page-heading::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .35);
}

/* Keep the inner wrapper (and its text) above the overlay. */
.page-heading .page-heading__inner {
    position: relative;
    z-index: 1;
}

.page-heading .inner-content {
    text-align: center;
}

.page-heading .inner-content h2 {
    margin: 0;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.page-heading .inner-content span {
    display: block;
    margin-top: 14px;
    font-size: 20px;
    font-weight: 400;
    color: #f2f2f2;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 959px) {
    .page-heading {
        min-height: 340px;
    }
    .page-heading .inner-content h2 {
        font-size: 36px;
    }
    .page-heading .inner-content span {
        font-size: 18px;
    }
}

@media (max-width: 639px) {
    .page-heading {
        min-height: 260px;
    }
    .page-heading .inner-content h2 {
        font-size: 28px;
    }
    .page-heading .inner-content span {
        font-size: 16px;
    }
}
