/* Shared page banner — all inner pages */
.pg-banner {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(200px, 28vw, 320px);
    padding: clamp(2.5rem, 5vw, 3.5rem) 1.25rem;
    overflow: hidden;
    background: #1a1c22;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

.pg-banner__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
}

.pg-banner__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.pg-banner__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(16, 18, 24, 0.55) 0%, rgba(16, 18, 24, 0.62) 50%, rgba(16, 18, 24, 0.7) 100%);
    pointer-events: none;
}

.pg-banner__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(46rem, 100%);
    margin: 0 auto;
    padding: 0 0.15rem;
    box-sizing: border-box;
}

.pg-banner__title {
    margin: 0;
    color: #fff;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(1.55rem, 4.2vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

.pg-banner__sub {
    margin: 0.75rem auto 0;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.88);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(0.9rem, 1.6vw, 1.12rem);
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Job detail / text-only — no photo */
.pg-banner--plain {
    min-height: 0;
    padding: clamp(2.35rem, 4.5vw, 3.25rem) 1.25rem;
    background:
        radial-gradient(ellipse 70% 80% at 85% 10%, rgba(227, 65, 51, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 60% at 5% 90%, rgba(255, 255, 255, 0.06), transparent 50%),
        linear-gradient(135deg, #15171d 0%, #1e222c 48%, #12141a 100%);
}

.pg-banner--plain .pg-banner__title {
    text-shadow: none;
}

.pg-banner--plain .pg-banner__sub {
    color: rgba(255, 255, 255, 0.72);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    text-shadow: none;
}

@media (max-width: 900px) {
    .pg-banner {
        min-height: clamp(180px, 34vw, 260px);
        padding: 2.5rem 1.1rem;
    }

    .pg-banner--plain {
        min-height: 0;
        padding: 2.15rem 1.1rem;
    }

    .pg-banner__title {
        font-size: clamp(1.45rem, 5.5vw, 2.35rem);
    }
}

@media (max-width: 640px) {
    .pg-banner {
        min-height: 0;
        padding: 2rem 1rem;
    }

    .pg-banner--plain {
        padding: 1.85rem 1rem;
    }

    .pg-banner__inner {
        max-width: 100%;
    }

    .pg-banner__title {
        font-size: clamp(1.35rem, 6.2vw, 1.85rem);
        line-height: 1.2;
    }

    .pg-banner__sub {
        margin-top: 0.6rem;
        max-width: none;
        font-size: 0.9rem;
        line-height: 1.45;
    }
}

@media (max-width: 400px) {
    .pg-banner,
    .pg-banner--plain {
        padding: 1.65rem 0.85rem;
    }

    .pg-banner__title {
        font-size: 1.28rem;
    }
}
