/* Active Jobs listing ([active_jobs] shortcode)
   Typography/palette mirrors the shop design system:
   headings Libre Baskerville 700 #483c51, body DM Sans #483c51,
   accent #9f76be, muted #5c5c5c, tint #e2d1ef, hover #422954. */

/* Hero banner -- mirrors the site's Elementor page banners:
   cover image, #5e5069 overlay at 50%, centered white heading. */
.ssb-jobs-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #5e5069;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
}

.ssb-jobs-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: #5e5069;
    opacity: 0.5;
}

.ssb-jobs-hero__content {
    position: relative;
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
}

.ssb-jobs-hero__title {
    margin: 0 0 16px;
    color: #fff;
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: 1.15;
}

.ssb-jobs-hero__description {
    margin: 0;
    color: #fff;
    font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
}

.ssb-jobs-hero + .ssb-active-jobs {
    margin-top: 48px;
    margin-bottom: 48px;
}

.ssb-active-jobs {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 auto;
    max-width: 860px;
    font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
    color: #483c51;
}

.ssb-active-jobs__empty {
    text-align: center;
    color: #5c5c5c;
    font-size: 1.125rem;
    padding: 40px 16px;
}

.ssb-job-card {
    background: #fff;
    border: 1px solid #e2d1ef;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(94, 80, 105, 0.08);
    padding: 24px 28px;
}

.ssb-job-card__title {
    margin: 0 0 8px;
    color: #483c51;
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
}

.ssb-job-card__meta {
    margin: 0 0 4px;
    color: #5c5c5c;
    font-size: 0.938rem;
}

.ssb-job-card__salary {
    margin: 0;
    font-weight: 500;
    color: #9f76be;
}

.ssb-job-card__details {
    margin-top: 14px;
    border-top: 1px solid #e2d1ef;
    padding-top: 12px;
}

.ssb-job-card__details summary {
    cursor: pointer;
    font-weight: 500;
    color: #9f76be;
}

.ssb-job-card__details summary:hover {
    color: #422954;
}

.ssb-job-card__section h4 {
    margin: 16px 0 6px;
    color: #483c51;
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    font-size: 1.125rem;
}

.ssb-job-card__section p {
    margin: 0;
    color: #483c51;
    font-size: 1rem;
    line-height: 1.6;
}

.ssb-job-card__actions {
    margin: 18px 0 0;
}

.ssb-job-card__apply {
    display: inline-block;
    background: #9f76be;
    color: #fff !important;
    border: 1px solid #9f76be;
    border-radius: 12px;
    padding: 14px 24px;
    font-family: Poppins, "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.ssb-job-card__apply:hover {
    background: #422954;
    border-color: #422954;
}

@media (max-width: 600px) {
    .ssb-jobs-hero {
        min-height: 280px;
    }
    .ssb-jobs-hero__description {
        font-size: 1rem;
    }
    .ssb-job-card {
        padding: 18px 16px;
    }
    .ssb-job-card__title {
        font-size: 1.25rem;
    }
}
