.jb-ad {
    margin: 24px 0;
}

.jb-ad--jobs-in-feed {
    margin-top: 6px;
}

.jb-ad--home-banner {
    width: calc(100% - 36px);
    max-width: none;
    margin-top: 40px;
    margin-right: auto;
    margin-bottom: 10px;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

li.jb-ad-item {
    list-style: none;
}

.jb-house-ad {
    --jb-house-ad-bg: #18314f;
    --jb-house-ad-bg-soft: #385674;
    --jb-house-ad-accent: #42c5a7;
    --jb-house-ad-text: #ffffff;
    --jb-house-ad-muted: rgba(255, 255, 255, 0.74);

    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 190px;
    overflow: hidden;
    padding: 44px 52px;
    border-radius: 14px;
    background: var(--jb-house-ad-bg);
    color: var(--jb-house-ad-text);
    text-decoration: none;
}

.jb-house-ad::before,
.jb-house-ad::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 999px;
    background: var(--jb-house-ad-bg-soft);
    opacity: 0.62;
}

.jb-house-ad::before {
    width: 330px;
    height: 330px;
    right: -34px;
    top: -112px;
}

.jb-house-ad::after {
    width: 260px;
    height: 260px;
    right: 88px;
    bottom: -148px;
    opacity: 0.44;
}

.jb-house-ad__content {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.jb-house-ad__eyebrow {
    color: var(--jb-house-ad-accent);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.jb-house-ad__title {
    color: var(--jb-house-ad-text);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.12;
}

.jb-house-ad__text {
    color: var(--jb-house-ad-muted);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.45;
}

.jb-house-ad__action {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 154px;
    min-height: 56px;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--jb-house-ad-accent);
    color: #12342e;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.jb-house-ad--job-alerts,
.jb-house-ad--feature-listing,
.jb-house-ad--browse-jobs {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    min-height: 250px;
    max-width: 300px;
    margin-inline: auto;
    padding: 26px;
}

.jb-house-ad--job-alerts,
.jb-house-ad--browse-jobs {
    --jb-house-ad-bg: #41be9d;
    --jb-house-ad-bg-soft: rgba(255, 255, 255, 0.18);
    --jb-house-ad-accent: #073f32;
    --jb-house-ad-text: #073f32;
    --jb-house-ad-muted: rgba(7, 63, 50, 0.76);
}

.jb-house-ad--feature-listing {
    --jb-house-ad-bg: #274666;
    --jb-house-ad-bg-soft: #3a5a79;
    --jb-house-ad-accent: #42c5a7;
}

.jb-house-ad--job-alerts::before,
.jb-house-ad--browse-jobs::before,
.jb-house-ad--feature-listing::before {
    width: 260px;
    height: 260px;
    right: -36px;
    top: -128px;
}

.jb-house-ad--job-alerts::after,
.jb-house-ad--browse-jobs::after,
.jb-house-ad--feature-listing::after {
    width: 230px;
    height: 230px;
    right: 92px;
    bottom: -140px;
    opacity: 0.42;
}

.jb-house-ad--job-alerts .jb-house-ad__content,
.jb-house-ad--feature-listing .jb-house-ad__content,
.jb-house-ad--browse-jobs .jb-house-ad__content {
    gap: 12px;
}

.jb-house-ad--job-alerts .jb-house-ad__title,
.jb-house-ad--feature-listing .jb-house-ad__title,
.jb-house-ad--browse-jobs .jb-house-ad__title {
    font-size: 25px;
    line-height: 1.28;
}

.jb-house-ad--job-alerts .jb-house-ad__text,
.jb-house-ad--feature-listing .jb-house-ad__text,
.jb-house-ad--browse-jobs .jb-house-ad__text {
    font-size: 14px;
    line-height: 1.55;
}

.jb-house-ad--job-alerts .jb-house-ad__action,
.jb-house-ad--feature-listing .jb-house-ad__action,
.jb-house-ad--browse-jobs .jb-house-ad__action {
    min-width: 0;
    min-height: 42px;
    padding: 12px 24px;
    font-size: 14px;
}

.jb-house-ad--job-alerts .jb-house-ad__action,
.jb-house-ad--browse-jobs .jb-house-ad__action {
    color: #ffffff;
}

.jb-house-ad--cv-builder {
    --jb-house-ad-bg: #41be9d;
    --jb-house-ad-bg-soft: rgba(255, 255, 255, 0.18);
    --jb-house-ad-accent: #073f32;
    --jb-house-ad-text: #083a32;
    --jb-house-ad-muted: rgba(8, 58, 50, 0.76);

    min-height: 140px;
    padding: 34px 44px;
}

.jb-house-ad--cv-builder::before {
    width: 260px;
    height: 260px;
    right: 150px;
    top: -128px;
}

.jb-house-ad--cv-builder::after {
    width: 210px;
    height: 210px;
    right: 300px;
    bottom: -120px;
    opacity: 0.5;
}

.jb-house-ad--cv-builder .jb-house-ad__content {
    gap: 8px;
}

.jb-house-ad--cv-builder .jb-house-ad__title {
    font-size: clamp(22px, 3vw, 31px);
    line-height: 1.18;
}

.jb-house-ad--cv-builder .jb-house-ad__text {
    font-size: 18px;
    line-height: 1.35;
}

.jb-house-ad--cv-builder .jb-house-ad__action {
    min-width: 164px;
    min-height: 56px;
    background: var(--jb-house-ad-accent);
    color: #ffffff;
}

.jb-house-ad--get-found {
    --jb-house-ad-bg: #18314f;
    --jb-house-ad-bg-soft: #385674;
    --jb-house-ad-accent: #42c5a7;

    min-height: 90px;
    padding: 24px 28px;
}

.jb-house-ad--get-found::before {
    width: 230px;
    height: 230px;
    right: -22px;
    top: -116px;
}

.jb-house-ad--get-found::after {
    width: 180px;
    height: 180px;
    right: 96px;
    bottom: -118px;
}

.jb-house-ad--get-found .jb-house-ad__content {
    gap: 4px;
}

.jb-house-ad--get-found .jb-house-ad__title {
    font-size: 20px;
}

.jb-house-ad--get-found .jb-house-ad__text {
    font-size: 13px;
}

.jb-house-ad--get-found .jb-house-ad__action {
    min-width: 144px;
    min-height: 42px;
    padding: 10px 22px;
    font-size: 14px;
}

.jb-house-ad:focus-visible {
    outline: 3px solid var(--jb-house-ad-accent);
    outline-offset: 4px;
}

[dir="rtl"] .jb-house-ad::before {
    right: auto;
    left: -34px;
}

[dir="rtl"] .jb-house-ad::after {
    right: auto;
    left: 88px;
}

[dir="rtl"] .jb-house-ad--cv-builder::before {
    right: auto;
    left: 150px;
}

[dir="rtl"] .jb-house-ad--cv-builder::after {
    right: auto;
    left: 300px;
}

[dir="rtl"] .jb-house-ad--job-alerts::before,
[dir="rtl"] .jb-house-ad--browse-jobs::before,
[dir="rtl"] .jb-house-ad--feature-listing::before,
[dir="rtl"] .jb-house-ad--get-found::before {
    right: auto;
    left: -36px;
}

[dir="rtl"] .jb-house-ad--job-alerts::after,
[dir="rtl"] .jb-house-ad--browse-jobs::after,
[dir="rtl"] .jb-house-ad--feature-listing::after {
    right: auto;
    left: 92px;
}

[dir="rtl"] .jb-house-ad--get-found::after {
    right: auto;
    left: 96px;
}

@media (max-width: 991px) {
    .jb-house-ad {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
        min-height: 0;
        padding: 34px 32px;
    }

    .jb-house-ad::before {
        width: 250px;
        height: 250px;
        top: -90px;
    }

    .jb-house-ad::after {
        width: 190px;
        height: 190px;
        bottom: -118px;
    }

    .jb-house-ad--cv-builder {
        min-height: 0;
        padding: 28px 30px;
    }

    .jb-house-ad--cv-builder::before {
        right: -24px;
        top: -110px;
    }

    .jb-house-ad--cv-builder::after {
        right: 110px;
        bottom: -120px;
    }

    [dir="rtl"] .jb-house-ad--cv-builder::before {
        right: auto;
        left: -24px;
    }

    [dir="rtl"] .jb-house-ad--cv-builder::after {
        right: auto;
        left: 110px;
    }

    .jb-house-ad--get-found {
        min-height: 0;
        padding: 26px 24px;
    }
}

@media (max-width: 575px) {
    .jb-ad {
        margin: 18px 0;
    }

    .jb-house-ad {
        padding: 26px 22px;
        border-radius: 12px;
    }

    .jb-house-ad__eyebrow {
        font-size: 12px;
    }

    .jb-house-ad__title {
        font-size: 28px;
    }

    .jb-house-ad__text {
        font-size: 16px;
    }

    .jb-house-ad__action {
        min-width: 132px;
        min-height: 48px;
        font-size: 16px;
    }

    .jb-house-ad--cv-builder .jb-house-ad__title {
        font-size: 23px;
    }

    .jb-house-ad--cv-builder .jb-house-ad__text {
        font-size: 15px;
    }

    .jb-house-ad--job-alerts,
    .jb-house-ad--feature-listing,
    .jb-house-ad--browse-jobs {
        max-width: none;
    }

    .jb-house-ad--job-alerts .jb-house-ad__title,
    .jb-house-ad--feature-listing .jb-house-ad__title,
    .jb-house-ad--browse-jobs .jb-house-ad__title {
        font-size: 23px;
    }
}

/*
 * Home page - job seeker banner.
 *
 * The browse-jobs house ad was written for the blog sidebar, so it carries a
 * 300px cap and a stacked layout. In this full-width homepage slot that reads
 * as a stray tile floating in the middle of the page, so the location restores
 * the horizontal banner layout the employer ad above it already uses.
 */
.jb-ad--home-jobs {
    width: calc(100% - 36px);
    max-width: none;
    margin: 40px auto 10px;
    padding-right: 0;
    padding-left: 0;
}

.jb-ad--home-jobs .jb-house-ad--browse-jobs {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 32px;
    max-width: none;
    min-height: 190px;
    padding: 44px 52px;
}

@media (max-width: 991px) {
    .jb-ad--home-jobs .jb-house-ad--browse-jobs {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        min-height: 0;
        padding: 32px 28px;
    }
}
