:root {
    --k86-red: #e4453b;
    --k86-red-dark: #cf352d;
    --k86-navy: #07152f;
    --k86-text: #2f3a4b;
    --k86-muted: #697386;
    --k86-line: #e1e5eb;
    --k86-soft: #f4f5f7;
    --k86-white: #fff;
    --k86-job-container: 1280px;
}

/* ==========================================================
   GENERATEPRESS / THEME COMPATIBILITY
   Only the single job detail page is reset.
========================================================== */
body.single-k86_job #page {
    max-width: none !important;
}

body.single-k86_job .site-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.single-k86_job #primary,
body.single-k86_job .k86-job-primary {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-k86_job #main,
body.single-k86_job .k86-job-page {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-k86_job .widget-area,
body.single-k86_job #right-sidebar,
body.single-k86_job #left-sidebar {
    display: none !important;
}

.k86-job-page,
.k86-job-page *,
.k86-jobs-list,
.k86-jobs-list * {
    box-sizing: border-box;
}

.k86-job-container {
    width: min(var(--k86-job-container), calc(100% - 48px));
    max-width: var(--k86-job-container);
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================
   FULL-WIDTH RED TITLE BAR
========================================================== */
.k86-job-banner {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--k86-red);
    color: #fff;
    overflow: hidden;
}


.k86-job-banner__inner {
    position: relative;
    z-index: 1;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
}

.k86-job-banner__inner strong {
    max-width: 55%;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 650;
}

.k86-job-banner__inner span {
    margin-right: 170px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .58em;
    white-space: nowrap;
}

.k86-job-banner__mark {
    position: absolute;
    z-index: 0;
    right: 0;
    top: 50%;
    width: 150px;
    height: 150px;
    max-width: none !important;
    transform: translateY(-50%);
    object-fit: contain;
    opacity: .42;
    pointer-events: none;
    user-select: none;
}

.k86-job-banner__inner > strong,
.k86-job-banner__inner > span {
    position: relative;
    z-index: 2;
}

/* ==========================================================
   SHARED PAGE ALIGNMENT
   Banner title, breadcrumb, page title, content and form all
   use the same 1280px axis as the site header/logo.
========================================================== */
body.single-k86_job .k86-job-banner__inner,
body.single-k86_job .k86-job-page > .k86-job-container {
    width: min(var(--k86-job-container), calc(100% - 48px)) !important;
    max-width: var(--k86-job-container) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================
   BREADCRUMB
========================================================== */
.k86-job-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 18px 0 10px;
    color: #8a94a4;
    font-size: 13px;
}

.k86-job-breadcrumb a {
    color: var(--k86-navy);
    font-weight: 650;
    text-decoration: none;
}

.k86-job-breadcrumb a:hover {
    color: var(--k86-red);
}

/* ==========================================================
   JOB LIST SHORTCODE
========================================================== */
.k86-jobs-list {
    width: 100%;
}

.k86-jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.k86-job-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 108px;
    padding: 25px 28px;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    background: #fff;
    color: var(--k86-navy) !important;
    text-decoration: none !important;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.k86-job-card:hover,
.k86-job-card.is-featured {
    border-color: var(--k86-red);
    box-shadow: 0 12px 28px rgba(7, 21, 47, .08);
    transform: translateY(-1px);
}

.k86-job-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--k86-navy);
}

.k86-job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    color: #657083;
    font-size: 14px;
}

.k86-job-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.k86-job-card svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.k86-job-card__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: var(--k86-red);
    font-size: 14px;
    font-weight: 700;
}

.k86-job-card__action svg {
    transition: transform .2s ease;
}

.k86-job-card:hover .k86-job-card__action svg {
    transform: translateX(3px);
}

.k86-jobs-empty {
    padding: 40px;
    border: 1px solid var(--k86-line);
    border-radius: 12px;
    background: var(--k86-soft);
    text-align: center;
}

.k86-jobs-empty strong,
.k86-jobs-empty span {
    display: block;
}

.k86-jobs-empty strong {
    margin-bottom: 6px;
    color: var(--k86-navy);
    font-size: 20px;
}

.k86-jobs-empty span {
    color: var(--k86-muted);
}

/* ==========================================================
   SINGLE JOB DETAIL
========================================================== */
.k86-job-detail {
    padding: 28px 0 90px;
}

.k86-job-detail__header {
    padding: 10px 0 24px;
    border-bottom: 1px solid var(--k86-line);
}

.k86-job-detail__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--k86-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.k86-job-detail h1 {
    margin: 0 0 14px !important;
    color: var(--k86-navy) !important;
    font-size: clamp(36px, 4vw, 48px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.035em !important;
    font-weight: 600 !important;
}

.k86-job-detail__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    color: #273247;
}

.k86-job-detail__meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.k86-job-detail__meta svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.k86-job-deadline {
    color: var(--k86-red) !important;
    font-weight: 700;
}

.k86-job-content {
    padding: 34px 0 52px;
    color: #3b4657;
    font-size: 16px;
    line-height: 1.78;
}

.k86-job-content > :first-child {
    margin-top: 0 !important;
}

.k86-job-content h2,
.k86-job-content h3,
.k86-job-content h4 {
    color: var(--k86-navy) !important;
    margin-top: 34px !important;
    margin-bottom: 14px !important;
}

.k86-job-content p {
    margin-top: 0;
    margin-bottom: 18px;
}

.k86-job-content ul,
.k86-job-content ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

.k86-job-content li {
    margin-bottom: 7px;
}

/* ==========================================================
   APPLICATION FORM
========================================================== */
.k86-apply-box {
    padding: 34px;
    border: 1px solid #e7e9ee;
    border-radius: 16px;
    background: linear-gradient(180deg, #f5f6f8 0%, #f0f2f5 100%);
}

.k86-apply-box__heading {
    margin-bottom: 27px;
}

.k86-apply-box__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--k86-red);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.k86-apply-box h2 {
    margin: 0 0 7px !important;
    color: var(--k86-navy) !important;
    font-size: 26px !important;
}

.k86-apply-box__heading p {
    margin: 0;
    color: var(--k86-muted);
}

.k86-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.k86-field {
    min-width: 0;
}

.k86-field.is-full {
    grid-column: 1 / -1;
}

.k86-field label:not(.k86-file-input) {
    display: block;
    margin-bottom: 8px;
    color: var(--k86-navy);
    font-size: 14px;
    font-weight: 700;
}

.k86-field em {
    color: var(--k86-red);
    font-style: normal;
}

.k86-field input[type="text"],
.k86-field input[type="email"],
.k86-field input[type="tel"],
.k86-field textarea {
    width: 100%;
    border: 1px solid #cfd5de;
    border-radius: 8px;
    background: #fff;
    padding: 13px 14px;
    color: var(--k86-navy);
    font: inherit;
    outline: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.k86-field input:focus,
.k86-field textarea:focus {
    border-color: var(--k86-red);
    box-shadow: 0 0 0 3px rgba(228, 69, 59, .10);
}

.k86-field textarea {
    min-height: 145px;
    resize: vertical;
}

.k86-field small {
    display: block;
    margin-top: 7px;
    color: #6f7888;
    font-size: 12px;
}

.k86-file-input {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 14px;
    border: 1px dashed #7e8998;
    border-radius: 8px;
    background: #fff;
    color: #687386 !important;
    cursor: pointer;
}

.k86-file-input:hover {
    border-color: var(--k86-red);
    color: var(--k86-red) !important;
}

.k86-file-input svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.k86-file-input input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.k86-consent label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0 !important;
    font-weight: 500 !important;
}

.k86-consent input {
    margin-top: 3px;
}

.k86-consent a {
    color: var(--k86-navy);
    text-decoration: underline;
}

.k86-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 180px;
    border: 0;
    border-radius: 8px;
    background: var(--k86-red);
    color: #fff;
    padding: 14px 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(228, 69, 59, .18);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.k86-submit:hover {
    background: var(--k86-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(228, 69, 59, .24);
}

.k86-submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.k86-form-message {
    margin: 0 0 24px;
    padding: 14px 16px;
    border-radius: 9px;
    font-size: 14px;
}

.k86-form-message.is-success {
    background: #eaf7ef;
    color: #176535;
    border: 1px solid #bfe5cc;
}

.k86-form-message.is-error {
    background: #fff0ef;
    color: #9b2c25;
    border: 1px solid #f2c7c3;
}

.k86-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 900px) {
    .k86-jobs-grid {
        grid-template-columns: 1fr;
    }

    .k86-job-banner__inner span {
        display: none;
    }

    .k86-job-banner__mark {
        right: -8px;
        width: 108px;
        height: 108px;
        opacity: .34;
    }


    .k86-form-grid {
        grid-template-columns: 1fr;
    }

    .k86-field.is-full {
        grid-column: auto;
    }

    .k86-apply-box {
        padding: 24px;
    }

    .k86-job-container {
        width: min(calc(100% - 30px), var(--k86-job-container));
    }
}

@media (max-width: 520px) {
    .k86-job-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .k86-job-card__action {
        align-self: flex-end;
    }

    .k86-job-banner__inner strong {
        max-width: 80%;
        font-size: 17px;
    }

    .k86-job-detail {
        padding-bottom: 60px;
    }

    .k86-job-detail h1 {
        font-size: 34px !important;
    }

    .k86-apply-box {
        padding: 20px 16px;
        border-radius: 12px;
    }
}
