/* NGOpedia - NGO Job Openings page; selectors are scoped to .job-openings-page */
.job-openings-page {
    --job-navy: #102b46;
    --job-blue: #164e78;
    --job-teal: #0f9b8e;
    --job-orange: #f3a43b;
    --job-ink: #1e3347;
    --job-muted: #687b8d;
    --job-line: #e3ebf1;
    color: var(--job-ink);
    background: #f4f8fb;
    padding: 26px clamp(16px, 4vw, 58px) 64px;
    margin: 0 auto;
    min-height: 70vh;
    box-sizing: border-box;
}
.job-openings-page *,
.job-openings-page *::before,
.job-openings-page *::after { box-sizing: border-box; }

.job-openings-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 230px;
    display: flex;
    align-items: center;
    padding: clamp(28px, 5vw, 54px);
    border-radius: 24px;
    background: linear-gradient(120deg, #102b46 0%, #164e78 58%, #137c85 100%);
    box-shadow: 0 16px 40px rgba(16, 43, 70, .16);
}
.job-openings-hero__content { position: relative; z-index: 2; max-width: 700px; }
.job-openings-eyebrow, .job-openings-kicker {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 2px; line-height: 1.5;
}
.job-openings-eyebrow { color: #9ce7dc; margin-bottom: 12px; }
.job-openings-hero h1 {
    color: #fff; font-size: clamp(30px, 4vw, 46px); font-weight: 800; line-height: 1.12; margin: 0 0 13px;
}
.job-openings-hero p {
    color: rgba(255,255,255,.84); font-size: clamp(14px, 1.5vw, 17px); line-height: 1.75; margin: 0; max-width: 600px;
}
.job-openings-hero__orb {
    position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; pointer-events: none;
}
.job-openings-hero__orb--one { width: 310px; height: 310px; right: 7%; top: -120px; }
.job-openings-hero__orb--two { width: 220px; height: 220px; right: 1%; bottom: -140px; background: rgba(255,255,255,.045); }

.job-openings-list { padding-top: clamp(32px, 5vw, 54px); }
.job-openings-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.job-openings-kicker { color: #138d83; margin-bottom: 8px; }
.job-openings-heading h2 {
    color: var(--job-navy); font-size: clamp(23px, 2.6vw, 31px); font-weight: 800; line-height: 1.25; margin: 0 0 8px;
}
.job-openings-heading p { color: var(--job-muted); margin: 0; line-height: 1.65; font-size: 14px; }

.job-openings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.job-card {
    min-width: 0; display: flex; flex-direction: column; padding: 22px;
    border: 1px solid var(--job-line); border-radius: 18px; background: #fff;
    box-shadow: 0 7px 22px rgba(18, 51, 78, .055);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.job-card:hover { transform: translateY(-4px); border-color: #c8e4e3; box-shadow: 0 16px 32px rgba(18, 51, 78, .11); }
.job-card__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.job-card__status {
    display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 10px;
    border-radius: 999px; background: #e8f8f4; color: #147b6f; font-size: 11px; font-weight: 800; overflow-wrap: anywhere;
}
.job-card__status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #19a58f; }
.job-card__date { color: #8393a1; font-size: 11px; line-height: 1.4; }
.job-card__date i { margin-right: 4px; }
.job-card__icon {
    display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
    border-radius: 16px; background: linear-gradient(145deg, #e9f3fb, #e4f8f4); color: var(--job-blue); font-size: 21px; margin-bottom: 15px;
}
.job-card__title { color: var(--job-navy); font-size: 21px; font-weight: 800; line-height: 1.4; margin: 0 0 20px; overflow-wrap: anywhere; }
.job-card__ngo { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #edf2f6; border-bottom: 1px solid #edf2f6; }
.job-card__ngo-icon {
    display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px;
    border-radius: 13px; background: #e9f3fb; color: var(--job-blue); font-size: 18px;
}
.job-card__ngo-info { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.job-card__ngo-name { color: #183c5c; font-weight: 800; font-size: 14px; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.job-card__ngo-name:hover { color: #0f9288; text-decoration: underline; }
.job-card__ngo-status { color: #168a78; font-size: 11px; overflow-wrap: anywhere; }
.job-card__location { display: flex; align-items: center; gap: 8px; padding-top: 15px; color: var(--job-muted); font-size: 13px; }
.job-card__location i { color: var(--job-orange); }
.job-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.job-card__note { color: #8a99a6; font-size: 10px; line-height: 1.5; }
.job-card__note i { color: #e58a58; margin-right: 4px; }
.job-card__button {
    appearance: none; display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto;
    border: 0; border-radius: 10px; padding: 10px 15px; background: linear-gradient(135deg, #0f9b8e, #087d83);
    color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 5px 12px rgba(15,155,142,.18);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.job-card__button:hover { color: #fff; filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 8px 16px rgba(15,155,142,.25); }
.job-card__button:focus-visible { outline: 3px solid rgba(15,155,142,.35); outline-offset: 3px; }

@media (max-width: 1100px) { .job-openings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 650px) {
    .job-openings-page { padding: 14px 14px 40px; }
    .job-openings-hero { min-height: 210px; border-radius: 18px; padding: 27px 22px; }
    .job-openings-hero__orb--one { right: -150px; }
    .job-openings-hero__orb--two { right: -90px; }
    .job-openings-heading { margin-bottom: 18px; }
    .job-openings-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .job-card { padding: 19px; border-radius: 16px; }
    .job-card__footer { align-items: flex-start; flex-direction: column; }
    .job-card__button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .job-card, .job-card__button { transition: none; } }
