/* ==========================================================================
   JordanJobs homepage sections ([jj-hero], [jj-categories], ...)
   8px spacing scale · one line-icon family · tinted section backgrounds
   ========================================================================== */

.jj-sec {
    --s-bg: #ffffff;
    --s-fg: var(--jj-dark, #10251b);
    --s-muted: #5d6b64;
    --s-card: #ffffff;
    --s-line: var(--jj-line, #e5e1d8);
    position: relative;
    padding: 72px 0;
    background: var(--s-bg);
    color: var(--s-fg);
}

.jj-sec-tight { padding: 32px 0; background: transparent; }

.jj-bg-white { --s-bg: #ffffff; }
.jj-bg-tint { --s-bg: #eef7f1; }
.jj-bg-sand { --s-bg: var(--jj-bg, #f6f4ef); }
.jj-bg-blue { --s-bg: #eef3fa; }
.jj-bg-dark { --s-bg: var(--jj-dark, #10251b); --s-fg: #ffffff; --s-muted: rgba(255, 255, 255, .74); --s-card: rgba(255, 255, 255, .06); --s-line: rgba(255, 255, 255, .14); }

.jj-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* Reset theme content styles inside our sections (.ck-content wraps page content) */
.jj-sec h1, .jj-sec h2, .jj-sec h3, .jj-sec p { margin: 0; }
.jj-sec ul, .jj-sec ol { list-style: none; margin: 0; padding: 0; }
.jj-sec li { margin: 0; }
.ck-content .jj-sec a,
.jj-sec a { text-decoration: none !important; }
.jj-sec img { max-width: 100%; }
.jj-i { flex: 0 0 auto; display: inline-block; vertical-align: middle; }

/* ---------- Section header ---------- */
.jj-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.ck-content .jj-sec .jj-sec-title,
.jj-sec-title {
    font-family: var(--jj-display, 'Cairo', sans-serif);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--s-fg);
}

.jj-sec-sub {
    margin-top: 8px !important;
    max-width: 620px;
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--s-muted);
}

.jj-sec-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 10px 16px;
    border: 1px solid var(--s-line);
    border-radius: 999px;
    background: var(--s-card);
    color: var(--s-fg) !important;
    font-family: var(--jj-display, 'Cairo', sans-serif);
    font-size: 14.5px;
    font-weight: 700;
    transition: border-color .15s ease, color .15s ease;
}

.jj-sec-link:hover { border-color: var(--jj-primary); color: var(--jj-primary-dark, #13803d) !important; }

/* ---------- Buttons & badges ---------- */
.jj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: var(--jj-display, 'Cairo', sans-serif);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.jj-btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.jj-btn-primary { background: var(--jj-primary); color: #fff !important; }
.jj-btn-primary:hover { background: var(--jj-primary-dark, #13803d); }
.jj-btn-soft { background: color-mix(in srgb, var(--jj-primary) 10%, #fff); color: var(--jj-primary-dark, #13803d) !important; }
.jj-btn-soft:hover { background: var(--jj-primary); color: #fff !important; }
.jj-btn-light { background: #fff; color: var(--jj-dark, #10251b) !important; }
.jj-btn-light:hover { background: color-mix(in srgb, var(--jj-primary) 12%, #fff); }
.jj-btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff !important; }
.jj-btn-ghost:hover { background: rgba(255, 255, 255, .1); }

.jj-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--jj-primary) 10%, #fff);
    color: var(--jj-primary-dark, #13803d);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}

.jj-badge-accent { background: color-mix(in srgb, var(--jj-accent, #d1162b) 10%, #fff); color: var(--jj-accent, #d1162b); }
.jj-muted { color: var(--s-muted); }

.jj-logo {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid var(--s-line);
    border-radius: 12px;
    background: #fff;
    color: var(--jj-primary-dark, #13803d);
    font-family: var(--jj-display, 'Cairo', sans-serif);
    font-size: 20px;
    font-weight: 800;
}

.jj-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.jj-logo-sm { flex-basis: 40px; width: 40px; height: 40px; border-radius: 10px; font-size: 16px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.jj-hero {
    padding: 64px 0 72px;
    overflow: hidden;
}

.jj-hero.jj-bg-tint,
.jj-hero.jj-bg-blue,
.jj-hero.jj-bg-sand {
    background-image: radial-gradient(color-mix(in srgb, var(--jj-primary) 16%, transparent) 1px, transparent 1.2px);
    background-size: 22px 22px;
    background-position: 0 0;
}

.jj-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.jj-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 6px 12px;
    border: 1px solid color-mix(in srgb, var(--jj-primary) 25%, transparent);
    border-radius: 999px;
    background: #fff;
    color: var(--jj-primary-dark, #13803d);
    font-size: 14px;
    font-weight: 700;
}

.ck-content .jj-sec .jj-hero-title,
.jj-hero-title {
    font-family: var(--jj-display, 'Cairo', sans-serif);
    font-size: 46px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--s-fg);
    text-wrap: balance;
}

.jj-hl { color: var(--jj-primary); }

.jj-hero-sub {
    margin-top: 14px !important;
    max-width: 580px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--s-muted);
}

.jj-search {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 28px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--s-line);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(var(--jj-dark-rgb, 16, 37, 27), .08);
}

.jj-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0 12px;
    border-inline-end: 1px solid var(--s-line);
    color: #7a8781;
}

.jj-field-kw { flex: 1.6 1 0; }
.jj-field:last-of-type { border-inline-end: 0; }

.jj-field input,
.jj-field select {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: var(--jj-dark, #10251b);
    font-family: var(--primary-font);
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
}

.jj-field select { cursor: pointer; background-image: none !important; }
.jj-field:focus-within { color: var(--jj-primary); }
.jj-search-btn { flex: 0 0 auto; min-width: 120px; }

.jj-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 14.5px;
}

.jj-popular > span { color: var(--s-muted); font-weight: 600; }

.jj-popular a {
    padding: 5px 12px;
    border: 1px solid var(--s-line);
    border-radius: 999px;
    background: #fff;
    color: var(--jj-text, #2c3a33) !important;
    transition: border-color .15s ease, color .15s ease;
}

.jj-popular a:hover { border-color: var(--jj-primary); color: var(--jj-primary-dark, #13803d) !important; }

.jj-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 26px !important;
}

.jj-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--s-fg);
    font-size: 14.5px;
    font-weight: 600;
}

.jj-trust .jj-i { color: var(--jj-primary); }

.jj-panel {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--s-line);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(var(--jj-dark-rgb, 16, 37, 27), .08);
}

.jj-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-family: var(--jj-display, 'Cairo', sans-serif);
}

.jj-panel-head strong { font-size: 17px; color: var(--jj-dark, #10251b); }
.jj-panel-head a { color: var(--jj-primary-dark, #13803d) !important; font-size: 14px; font-weight: 700; }

.jj-mini-job {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    color: inherit !important;
    transition: background-color .15s ease;
}

.jj-mini-job + .jj-mini-job { border-top: 1px solid #f0ede6; }
.jj-mini-job:hover { background: #f7f8f7; }
.jj-mini-job-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jj-mini-job-text strong { overflow: hidden; color: var(--jj-dark, #10251b); font-size: 15px; font-weight: 700; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.jj-mini-job-text small { display: inline-flex; align-items: center; gap: 4px; color: #6f7c76; font-size: 13px; }
.jj-panel-empty { padding: 16px 4px; color: #6f7c76; }

.jj-panel-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.jj-panel-stats div {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eef7f1;
}

.jj-panel-stats div + div { background: #eef3fa; }
.jj-panel-stats strong { color: var(--jj-dark, #10251b); font-family: var(--jj-display, 'Cairo', sans-serif); font-size: 22px; font-weight: 800; line-height: 1.3; }
.jj-panel-stats span { color: #5d6b64; font-size: 13.5px; }

/* ==========================================================================
   Categories
   ========================================================================== */
.jj-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.jj-cat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--s-card);
    border: 1px solid var(--s-line);
    border-radius: 16px;
    color: var(--s-fg) !important;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.jj-cat:hover { border-color: var(--tile-fg); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--jj-dark-rgb, 16, 37, 27), .06); }

.jj-cat-icon {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--tile-bg);
    color: var(--tile-fg);
}

.jj-cat-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.jj-cat-text strong { font-family: var(--jj-display, 'Cairo', sans-serif); font-size: 16px; font-weight: 700; line-height: 1.5; }
.jj-cat-text small { color: var(--s-muted); font-size: 13.5px; }
.jj-cat-arrow { color: #a3aea9; transition: color .15s ease, transform .15s ease; }
.jj-cat:hover .jj-cat-arrow { color: var(--tile-fg); transform: translateX(-3px); }
html[dir="ltr"] .jj-cat-arrow svg, html[lang="en"] .jj-i[data-dir] { transform: scaleX(-1); }

/* ==========================================================================
   Job cards
   ========================================================================== */
.jj-job-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.jj-job {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--s-line);
    border-radius: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.jj-job:hover { border-color: color-mix(in srgb, var(--jj-primary) 45%, var(--s-line)); box-shadow: 0 12px 28px rgba(var(--jj-dark-rgb, 16, 37, 27), .07); }
.jj-job.is-featured { box-shadow: inset 0 3px 0 var(--jj-accent, #d1162b); }

.jj-job-top { display: flex; align-items: flex-start; gap: 12px; }
.jj-job-head { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }

.ck-content .jj-sec .jj-job-title,
.jj-job-title {
    font-family: var(--jj-display, 'Cairo', sans-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.55;
}

.jj-job-title a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--jj-dark, #10251b) !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.jj-job-title a:hover { color: var(--jj-primary-dark, #13803d) !important; }
.jj-job-company { color: #5d6b64; font-size: 14px; }

.jj-job-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.jj-job-meta li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    background: #f4f5f3;
    color: #46544d;
    font-size: 13px;
    line-height: 1.4;
}

.jj-job-meta .jj-i { color: #7a8781; }

.jj-job-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0ede6;
}

.jj-job-salary { display: inline-flex; align-items: center; gap: 6px; color: var(--jj-dark, #10251b); font-size: 14.5px; font-weight: 700; }
.jj-job-salary .jj-i { color: var(--jj-primary); }
.jj-job-salary .jj-muted { font-weight: 500; font-size: 13.5px; }

.jj-empty {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px;
    background: #fff;
    border: 1px dashed var(--s-line);
    border-radius: 16px;
}

.jj-empty > div { flex: 1; }
.jj-empty strong { display: block; margin-bottom: 4px; font-family: var(--jj-display, 'Cairo', sans-serif); font-size: 17px; color: var(--jj-dark, #10251b); }
.jj-empty p { color: #5d6b64; }
.jj-empty-icon { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; background: #eef7f1; color: var(--jj-primary); }

/* ==========================================================================
   Steps
   ========================================================================== */
.jj-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    counter-reset: none;
}

.jj-step {
    padding: 28px 24px;
    background: var(--s-card);
    border: 1px solid var(--s-line);
    border-radius: 20px;
}

.jj-bg-white .jj-step { background: #f8f9f8; border-color: transparent; }

.jj-step-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--jj-primary);
    color: #fff;
}

.jj-step:nth-child(2) .jj-step-icon { background: #2459c9; }
.jj-step:nth-child(3) .jj-step-icon { background: var(--jj-accent, #d1162b); }

.jj-step-icon b {
    position: absolute;
    top: -6px;
    inset-inline-end: -6px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--jj-dark, #10251b);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.ck-content .jj-sec .jj-step h3,
.jj-step h3 { margin-bottom: 8px; font-family: var(--jj-display, 'Cairo', sans-serif); font-size: 19px; font-weight: 700; color: var(--s-fg); }
.jj-step p { color: var(--s-muted); font-size: 15.5px; line-height: 1.8; }

/* ==========================================================================
   Locations
   ========================================================================== */
.jj-loc-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.jj-loc {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid var(--s-line);
    border-radius: 16px;
    color: var(--jj-dark, #10251b) !important;
    transition: border-color .15s ease, transform .15s ease;
}

.jj-loc:hover { border-color: #2459c9; transform: translateY(-2px); }

.jj-loc-icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8f0fc;
    color: #2459c9;
}

.jj-loc-text { display: flex; flex-direction: column; min-width: 0; }
.jj-loc-text strong { font-family: var(--jj-display, 'Cairo', sans-serif); font-size: 16.5px; font-weight: 700; }
.jj-loc-text small { color: #5d6b64; font-size: 13px; line-height: 1.5; }

.jj-count {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    min-width: 24px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--jj-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* ==========================================================================
   Employer CTA
   ========================================================================== */
.jj-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px;
    border-radius: 24px;
    background: var(--s-bg);
    color: var(--s-fg);
    overflow: hidden;
    position: relative;
}

.jj-cta.jj-bg-dark { background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px); background-size: 22px 22px; }
.jj-cta-text { display: flex; align-items: flex-start; gap: 18px; }

.jj-cta-icon {
    display: grid;
    place-items: center;
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: var(--jj-primary);
    color: #fff;
}

.ck-content .jj-sec .jj-cta h2,
.jj-cta h2 { font-family: var(--jj-display, 'Cairo', sans-serif); font-size: 28px; font-weight: 800; color: var(--s-fg); line-height: 1.4; }
.jj-cta p { margin-top: 6px !important; max-width: 560px; color: var(--s-muted); font-size: 16px; line-height: 1.8; }
.jj-cta-list { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px !important; }
.jj-cta-list li { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; }
.jj-cta-list .jj-i { color: #7ee2a4; }
.jj-cta-actions { display: flex; flex-direction: column; gap: 10px; flex: 0 0 auto; min-width: 220px; }

/* ==========================================================================
   Companies
   ========================================================================== */
.jj-co-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.jj-co {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 14px;
    background: var(--s-card);
    border: 1px solid var(--s-line);
    border-radius: 16px;
    color: var(--s-fg) !important;
    text-align: center;
    transition: border-color .15s ease;
}

.jj-co:hover { border-color: var(--jj-primary); }

.jj-co-logo {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 1px solid #efece5;
    border-radius: 16px;
    background: #fff;
    color: var(--jj-primary-dark, #13803d);
    font-family: var(--jj-display, 'Cairo', sans-serif);
    font-size: 26px;
    font-weight: 800;
}

.jj-co-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.jj-co strong { display: -webkit-box; overflow: hidden; font-family: var(--jj-display, 'Cairo', sans-serif); font-size: 15px; font-weight: 700; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.jj-co small { color: var(--s-muted); font-size: 13px; }

/* ==========================================================================
   Posts
   ========================================================================== */
.jj-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.jj-post {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--s-line);
    border-radius: 18px;
    transition: box-shadow .15s ease;
}

.jj-post:hover { box-shadow: 0 14px 32px rgba(var(--jj-dark-rgb, 16, 37, 27), .08); }

.jj-post-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef3fa; }
.jj-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.jj-post:hover .jj-post-img img { transform: scale(1.03); }
.jj-post-img span { display: grid; place-items: center; height: 100%; color: #2459c9; }

.jj-post-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; padding: 20px; }

.ck-content .jj-sec .jj-post h3,
.jj-post h3 { font-family: var(--jj-display, 'Cairo', sans-serif); font-size: 18px; font-weight: 700; line-height: 1.55; }
.jj-post h3 a { color: var(--jj-dark, #10251b) !important; }
.jj-post h3 a:hover { color: var(--jj-primary-dark, #13803d) !important; }
.jj-post p { color: #5d6b64; font-size: 15px; line-height: 1.8; }
.jj-read { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--jj-primary-dark, #13803d) !important; font-weight: 700; font-size: 14.5px; }

/* LTR pages: flip directional arrows */
html[lang="en"] .jj-sec-link .jj-i,
html[lang="en"] .jj-cat-arrow .jj-i,
html[lang="en"] .jj-read .jj-i { transform: scaleX(-1); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
    .jj-job-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jj-co-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .ck-content .jj-sec .jj-hero-title, .jj-hero-title { font-size: 40px; }
}

@media (max-width: 991.98px) {
    .jj-sec { padding: 48px 0; }
    .jj-hero { padding: 32px 0 40px; }
    .jj-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .jj-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jj-loc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .jj-steps { grid-template-columns: 1fr; }
    .jj-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jj-cta { flex-direction: column; align-items: stretch; padding: 28px; }
    .jj-cta-actions { flex-direction: row; min-width: 0; }
    .jj-cta-actions .jj-btn { flex: 1; }
    .jj-co-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .jj-container { padding-inline: 16px; }
    .jj-sec { padding: 36px 0; }
    .jj-sec-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
    .ck-content .jj-sec .jj-sec-title, .jj-sec-title { font-size: 22px; }
    .jj-sec-sub { font-size: 15px; }

    .ck-content .jj-sec .jj-hero-title, .jj-hero-title { font-size: 28px; line-height: 1.45; }
    .jj-hero-sub { font-size: 16px; }
    .jj-eyebrow { margin-bottom: 12px; font-size: 13px; }

    .jj-search { flex-direction: column; gap: 0; padding: 6px; border-radius: 16px; }
    .jj-field { padding: 0 10px; border-inline-end: 0; border-bottom: 1px solid var(--s-line); }
    .jj-field:last-of-type { border-bottom: 0; }
    .jj-search-btn { width: 100%; margin-top: 6px; }

    .jj-popular { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
    .jj-popular::-webkit-scrollbar { display: none; }
    .jj-popular a, .jj-popular > span { flex: 0 0 auto; }
    .jj-trust { gap: 8px 16px; }
    .jj-trust li { font-size: 13.5px; }

    .jj-hero-side { display: none; }

    .jj-cat-grid { gap: 10px; }
    .jj-cat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .jj-cat-icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 12px; }
    .jj-cat-arrow { display: none; }
    .jj-cat-text strong { font-size: 15px; }

    .jj-job-grid { grid-template-columns: 1fr; gap: 12px; }
    .jj-job { padding: 16px; }

    .jj-loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .jj-loc { padding: 14px 12px; }
    .jj-loc:last-child:nth-child(odd) { grid-column: 1 / -1; }

    .jj-cta { padding: 24px 20px; border-radius: 20px; }
    .jj-cta-text { flex-direction: column; gap: 14px; }
    .ck-content .jj-sec .jj-cta h2, .jj-cta h2 { font-size: 22px; }
    .jj-cta-actions { flex-direction: column; }

    .jj-co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .jj-post-grid { grid-template-columns: 1fr; gap: 14px; }
    .jj-empty { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .jj-sec * { transition: none !important; }
}

/* Theme content styles (.ck-content ol/ul) must not leak into our sections */
.ck-content .jj-sec ol,
.ck-content .jj-sec ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.ck-content .jj-sec li { margin: 0 !important; }
.ck-content .jj-sec li::marker { content: none; }

/* Grid items must be allowed to shrink (the scrollable tag row would otherwise widen the hero) */
.jj-hero-main,
.jj-hero-side,
.jj-cat, .jj-loc, .jj-job, .jj-co, .jj-post { min-width: 0; }
.jj-hero { overflow-x: clip; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* Text pages wrapped by the plugin (about, contact, terms, services...) */
.jj-page-body { padding-top: 40px; padding-bottom: 56px; }
.jj-page-body > .ck-content { max-width: 880px; }
.jj-page-body > .ck-content > .jj-landing-intro,
.jj-page-body > .ck-content > p:first-child { font-size: 17px; }
.jj-page-body .jj-jobs-block > .container,
.jj-page-body .section-box > .container { padding-inline: 0; max-width: none; }
.jj-page-body > .ck-content:has(.jj-jobs-block),
.jj-page-body > .ck-content:has(.jj-contact-grid) { max-width: none; }
.jj-page-body .jj-jobs-block { margin-top: 24px !important; }
.jj-page-body .section-box.mt-70 { margin-top: 32px !important; }

/* Contact cards: icons drawn in CSS (page content cannot contain SVG) */
.jj-contact-icon::before {
    content: "";
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: var(--jj-ic) center / contain no-repeat;
    mask: var(--jj-ic) center / contain no-repeat;
}

.jj-contact-icon svg { display: none; }
.jj-contact-card:nth-child(1) .jj-contact-icon { --jj-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.jj-contact-card:nth-child(2) .jj-contact-icon { --jj-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.jj-contact-card:nth-child(3) .jj-contact-icon { --jj-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3C/svg%3E"); }
.jj-contact-card:nth-child(3) .jj-contact-icon { background: #e7f7ee; color: #128c4b; }
.jj-contact-card:nth-child(2) .jj-contact-icon { background: #e8f0fc; color: #2459c9; }

/* Job & company cover: size the box to the image instead of a fixed 350px */
.banner-image-single,
.banner-hero.banner-image-single { height: auto !important; min-height: 0 !important; background: none !important; }
.banner-image-single .wrap-cover-image img,
.banner-image-single img { display: block; width: 100%; height: 260px !important; max-height: none !important; object-fit: cover; border-radius: var(--jj-radius-lg, 20px) !important; }

@media (max-width: 991.98px) {
    .banner-image-single .wrap-cover-image img,
    .banner-image-single img { height: 150px !important; border-radius: 0 0 var(--jj-radius, 14px) var(--jj-radius, 14px) !important; }
}

/* Listing banner (search-box style-3): the category carousel under the search is not needed */
.banner-hero.hero-3 .container.mt-60 { display: none !important; }
.banner-hero.hero-3 { padding-bottom: 40px !important; }

/* Blog article */
.cover-image-post { display: block; width: 100%; height: 340px; object-fit: cover; }
.archive-header .box-white { border: 1px solid var(--jj-line); border-radius: var(--jj-radius-lg, 20px); box-shadow: 0 12px 32px rgba(var(--jj-dark-rgb, 16, 37, 27), .06); }
.archive-header h2 { font-weight: 800; line-height: 1.5; }
.single-body,
.content-single { font-size: 17px; }
.toc_container, #toc_container, .toc-wrapper { border: 1px solid var(--jj-line) !important; border-radius: var(--jj-radius, 14px) !important; background: var(--jj-surface, #fff) !important; }

@media (max-width: 767.98px) {
    .cover-image-post { height: 190px; }
    .archive-header h2 { font-size: 24px !important; }
    .jj-page-body { padding-top: 24px; padding-bottom: 36px; }
}

/* Page header (breadcrumb banner): the theme can add a demo photo + dark overlay; keep it clean */
.jj-hero-light .breadcrumb-cover,
.jj-hero-light .breadcrumb-cover.bg-img-about { background-image: none !important; background-color: var(--jj-surface, #fff) !important; }
.jj-hero-light .breadcrumb-cover::before,
.jj-hero-light .breadcrumb-cover::after,
.jj-hero-light .bg-img-about::before { display: none !important; }
.breadcrumb-cover .breadcrumbs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 6px 12px; border: 1px solid var(--jj-line); border-radius: 999px; background: var(--jj-bg, #f6f4ef); }
.breadcrumb-cover p { max-width: 720px; }
