/* ============================================
   CAREERS PAGE — careers-style.css
   Upload to: wp-content/themes/hello-elementor-child/
   ============================================ */

/* ── Page background ── */
.cpage-wrap {
    background: #0a0a0a;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    width: 100%;
}

/* ── Hero ── */
.cpage-hero {
    background: #111111;
    border-bottom: 1px solid #1e1e1e;
    padding: 128px 60px 48px;
    position: relative;
    overflow: hidden;
    text-align: center;
}


.cpage-label {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #0F67CF;
    margin-bottom: 12px;
    display: block;
    position: relative;
}

.cpage-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(48px, 7vw, 88px) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: -1px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    background: none !important;
    text-shadow: none !important;
    position: relative;
}

.cpage-count {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #555555;
    letter-spacing: 0.03em;
    position: relative;
}

.cpage-count span {
    color: #ffffff;
    font-weight: 600;
}

/* ── Body ── */
.cpage-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 60px 80px;
}

/* ── Filters ── */
.cpage-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
}

.cpage-select {
    background: #151515 !important;
    border: 1px solid #2a2a2a !important;
    color: #bbbbbb !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    padding: 10px 38px 10px 16px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 13px center !important;
    flex: 1;
    min-width: 180px;
    max-width: 300px;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.15s, color 0.15s;
}

.cpage-select:hover {
    border-color: #3a3a3a !important;
    color: #ffffff !important;
}

.cpage-select:focus {
    border-color: #0F67CF !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
}

.cpage-select option {
    background: #1a1a1a;
    color: #ffffff;
}

.cpage-clear {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: #555555;
    text-decoration: none;
    letter-spacing: 0.05em;
    padding: 10px 4px;
    transition: color 0.15s;
    white-space: nowrap;
}

.cpage-clear:hover {
    color: #0F67CF;
    text-decoration: none;
}

/* ── Results meta ── */
.cpage-meta {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #444444;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-bottom: 16px;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 4px;
}

.cpage-meta strong {
    color: #777777;
}

/* ── Job list ── */
.cpage-list {
    display: flex;
    flex-direction: column;
}

/* ── Job row ── */
.cpage-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 16px;
    border-bottom: 1px solid #141414;
    border-left: 3px solid transparent;
    border-top: none;
    border-right: none;
    text-decoration: none;
    background: transparent;
    transition: background 0.15s, border-left-color 0.15s;
    width: 100%;
    color: #ffffff;
}

.cpage-row:first-child {
    border-top: 1px solid #141414;
}

.cpage-row:hover {
    background: #0f0f0f;
    border-left-color: #0F67CF;
    text-decoration: none;
    color: #ffffff;
}

/* ── Row info ── */
.cpage-row-info {
    flex: 1;
    min-width: 0;
}

.cpage-row-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.4;
}

.cpage-row-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Department badges ── */
.cpage-badge {
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    border-left: 2px solid #0F67CF;
    color: #0F67CF;
    background: rgba(15, 103, 207, 0.08);
}

.cpage-sep {
    color: #333333;
    font-size: 12px;
}

.cpage-type {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #555555;
}

/* ── Location ── */
.cpage-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #555555;
    white-space: nowrap;
    flex-shrink: 0;
}

.cpage-location svg {
    opacity: 0.4;
    flex-shrink: 0;
}

/* ── Arrow ── */
.cpage-arrow {
    font-size: 22px;
    color: #2a2a2a;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}

.cpage-row:hover .cpage-arrow {
    color: #0F67CF;
    transform: translateX(4px);
}

/* ── Empty state ── */
.cpage-empty {
    text-align: center;
    padding: 80px 20px;
}

.cpage-empty p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #444444;
    margin-bottom: 16px;
}

.cpage-empty a {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #0F67CF;
    text-decoration: none;
}

.cpage-empty a:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .cpage-hero {
        padding: 40px 24px 32px;
    }

    .cpage-body {
        padding: 28px 24px 60px;
    }

    .cpage-select {
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .cpage-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .cpage-location {
        width: 100%;
        order: 3;
    }

    .cpage-arrow {
        order: 2;
    }
}


/* ============================================
   SINGLE JOB LISTING PAGE — jpage-
   ============================================ */

.jpage-wrap {
    background: #0a0a0a;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    width: 100%;
}

/* ── Header ── */
.jpage-header {
    background: #111111;
    border-bottom: 1px solid #1e1e1e;
    padding: 128px 60px 48px;
}

.jpage-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    column-gap: 40px;
    align-items: center;
}

.jpage-back {
    grid-column: 1 / -1;
}

.jpage-badges {
    grid-column: 1;
}

.jpage-title {
    grid-column: 1;
}

.jpage-meta-row {
    grid-column: 1;
    margin-bottom: 0 !important;
}

.jpage-apply-btn {
    grid-column: 2;
    grid-row: 2 / 5;
    align-self: center;
    white-space: nowrap;
}

/* ── Back link ── */
.jpage-back {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #555555;
    text-decoration: none;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    transition: color 0.15s;
}

.jpage-back:hover {
    color: #0F67CF;
    text-decoration: none;
}

/* ── Badges ── */
.jpage-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.jpage-type-badge {
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid #2a2a2a;
    color: #666666;
    background: #1a1a1a;
}

/* ── Job title ── */
.jpage-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(28px, 4vw, 48px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    line-height: 1.1 !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    background: none !important;
    text-shadow: none !important;
}

/* ── Meta row ── */
.jpage-meta-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.jpage-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #555555;
}

.jpage-meta-item svg {
    opacity: 0.5;
    flex-shrink: 0;
    color: #0F67CF;
}

/* ── Apply button ── */
.jpage-apply-btn {
    display: inline-block;
    background: #0F67CF;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 14px 32px;
    border-radius: 3px;
    text-decoration: none !important;
    transition: background 0.15s, transform 0.15s;
}

.jpage-apply-btn:hover {
    background: #0d58b5;
    text-decoration: none !important;
    transform: translateY(-1px);
}

/* ── Body ── */
.jpage-body {
    padding: 48px 60px 80px;
}

.jpage-body-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* ── Job description content ── */
.jpage-description {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #bbbbbb;
}

.jpage-description h2,
.jpage-description h3,
.jpage-description h4 {
    font-family: 'Poppins', sans-serif !important;
    color: #ffffff !important;
    margin-top: 36px !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
}

.jpage-description h2 { font-size: 20px !important; }
.jpage-description h3 { font-size: 17px !important; }
.jpage-description h4 { font-size: 15px !important; }

.jpage-description p {
    margin-bottom: 16px;
    color: #aaaaaa;
}

.jpage-description ul,
.jpage-description ol {
    padding-left: 20px;
    margin-bottom: 20px;
    color: #aaaaaa;
}

.jpage-description li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.jpage-description strong {
    color: #ffffff;
    font-weight: 600;
}

.jpage-description a {
    color: #0F67CF;
    text-decoration: underline;
}

/* ── Bottom CTA box ── */
.jpage-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #111111;
    border: 1px solid #1e1e1e;
    border-left: 3px solid #0F67CF;
    padding: 28px 32px;
    margin-top: 56px;
    border-radius: 3px;
    flex-wrap: wrap;
}

.jpage-cta-text strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.jpage-cta-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #555555;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .jpage-header {
        padding: 32px 24px;
    }

    .jpage-body {
        padding: 32px 24px 60px;
    }

    .jpage-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .jpage-apply-btn {
        width: 100%;
        text-align: center;
    }
}

/* Hide WP Job Manager default output on single job pages */
.jpage-description .single_job_listing .job-listing-meta,
.jpage-description .single_job_listing .job_application,
.jpage-description .single_job_listing ul.job-listing-meta,
.jpage-description .single_job_listing .application {
    display: none !important;
}

/* ============================================
   APPLICATION MODAL
   ============================================ */

.jpage-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.jpage-modal.active {
    display: flex;
}

.jpage-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.jpage-modal-box {
    position: relative;
    background: #111111;
    border: 1px solid #1e1e1e;
    border-top: 3px solid #0F67CF;
    border-radius: 4px;
    width: 90%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.jpage-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 28px;
    border-bottom: 1px solid #1e1e1e;
    position: sticky;
    top: 0;
    background: #111111;
    z-index: 2;
}

.jpage-modal-label {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0F67CF;
    margin-bottom: 4px;
}

.jpage-modal-job-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.jpage-modal-close {
    background: none;
    border: 1px solid #2a2a2a;
    color: #666666;
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
    flex-shrink: 0;
}

.jpage-modal-close:hover {
    border-color: #0F67CF;
    color: #ffffff;
}

.jpage-modal-body {
    padding: 28px 28px 0px 28px;
}

.jpage-modal-body .frm_forms {
    color: #ffffff;
}

.jpage-modal-body .frm_form_field label,
.jpage-modal-body .frm_forms label {
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #aaaaaa !important;
    margin-bottom: 6px !important;
    display: block;
}

.jpage-modal-body input[type="text"],
.jpage-modal-body input[type="email"],
.jpage-modal-body input[type="tel"],
.jpage-modal-body input[type="url"],
.jpage-modal-body textarea,
.jpage-modal-body select {
    background: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    padding: 10px 14px !important;
    border-radius: 3px !important;
    width: 100% !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.15s;
}

.jpage-modal-body input:focus,
.jpage-modal-body textarea:focus,
.jpage-modal-body select:focus {
    border-color: #0F67CF !important;
    outline: none !important;
    box-shadow: none !important;
}

.jpage-modal-body textarea {
    min-height: 100px !important;
    resize: vertical !important;
}

.jpage-modal-body input[type="submit"],
.jpage-modal-body button[type="submit"] {
    background: #0F67CF !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 12px 12px !important;
    border: none !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    width: 100% !important;
    margin-top: 8px !important;
}

.jpage-modal-body input[type="submit"]:hover,
.jpage-modal-body button[type="submit"]:hover {
    background: #0d58b5 !important;
}

@media (max-width: 768px) {
    .jpage-modal-box {
        width: 95%;
        max-height: 95vh;
    }

    .jpage-modal-header {
        padding: 20px;
    }

    .jpage-modal-body {
        padding: 20px;
    }
}

.jpage-modal-body .frm_dropzone {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    display: block !important;
}

.jpage-modal-body .frm_form_field {
    margin-bottom: 24px !important;
}