:root {
    --primary-blue: #2d68c4;
    --primary-navy: #1e4fa0;
    --primary-dark: #163a7a;
    --accent-gold: #f4b800;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f3f4f6;
    --border-color: #e5e7eb;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --navy: #0f172a;
    --gold: #f4b800;
    --gold-light: #fef9e0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1);
}

.job-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(22, 58, 122, .92) 0%,
            rgba(45, 104, 196, .70) 60%,
            rgba(0, 0, 0, .35) 100%);
    z-index: 1;
}

.job-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, .7) 50%,
            rgba(255, 255, 255, 1) 100%);
    z-index: 3;
    pointer-events: none;
}

.job-hero-inner {
    position: relative;
    z-index: 4;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: clamp(.8rem, 2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: inline-block;
}

.hero-title-main {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    font-family: 'Arial Black', Impact, sans-serif;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .5);
    margin: 0 0 12px;
}

.hero-title-main span {
    color: var(--accent-gold);
}

.hero-desc {
    font-size: clamp(.95rem, 2vw, 1.15rem);
    color: #f3f4f6;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .6);
    max-width: 600px;
}

.search-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding: 0 20px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.search-card {
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
    padding: 17px 22px;
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff),
        linear-gradient(90deg, var(--primary-blue) 70%, var(--accent-gold) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
}

.input-group-custom {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    transition: background .3s;
    position: relative;
}

.input-group-custom:hover {
    background: #f0f5ff;
}

.input-group-custom label {
    font-size: clamp(.75rem, 1.5vw, .85rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.custom-select-wrapper select {
    display: none;
}

.custom-select {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.select-selected {
    font-size: clamp(.95rem, 2vw, 1.05rem);
    font-weight: 500;
    color: var(--text-dark);
    padding-right: 25px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select-selected::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d68c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform .3s;
}

.select-selected.select-arrow-active::after {
    transform: translateY(-50%) rotate(180deg);
}

.select-items {
    position: absolute;
    bottom: calc(100% + 5px);
    left: 0;
    right: 0;
    z-index: 99;
    background: linear-gradient(135deg, var(--primary-blue) 75%, var(--accent-gold) 100%);
    border-radius: 12px;
    box-shadow: 0 -15px 35px rgba(45, 104, 196, .25);
    max-height: 250px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
}

.select-items.select-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-items div {
    color: #fff;
    padding: 12px 18px;
    font-size: .95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    transition: all .2s;
}

.select-items div:last-child {
    border-bottom: none;
}

.select-items div:hover,
.same-as-selected {
    background-color: rgba(255, 255, 255, .2);
    padding-left: 22px;
}

.select-items::-webkit-scrollbar {
    width: 16px;
}

.select-items::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 0 12px 12px 0;
}

.select-items::-webkit-scrollbar-thumb {
    background: #8c8c8c;
    border-radius: 10px;
    border: 4px solid #fff;
    background-clip: padding-box;
}

.input-divider {
    width: 2px;
    height: 50px;
    background: var(--border-color);
    border-radius: 2px;
}

.btn-search {
    background: var(--primary-blue);
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: clamp(.95rem, 2vw, 1.1rem);
    font-weight: 700;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(45, 104, 196, .35);
}

.btn-search:hover {
    background: var(--primary-navy);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(45, 104, 196, .45);
}

.jobs-section {
    padding: 5rem 0 7rem;
    background: #fff;
}

.sec-eyebrow {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.sec-eyebrow::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 2px;
    background: var(--gold);
}

.sec-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
}

.sec-title span {
    font-style: italic;
}

.sec-desc {
    font-size: clamp(.85rem, 2vw, .95rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-gold) 100%);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
}

.job-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: calc(1rem + 2px);
    overflow: hidden;
    height: 100%;
    padding: 2px;
    background: linear-gradient(160deg, var(--primary-blue) 70%, var(--accent-gold) 100%);
    transition: all .35s cubic-bezier(.4, 0, .2, 1);
    text-decoration: none !important;
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -5px rgba(45, 104, 196, .2);
    background: linear-gradient(160deg, var(--accent-gold) 0%, var(--primary-blue) 100%);
}

.job-card-inner {
    background: #fff;
    border-radius: calc(1rem - 1px);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: .6rem;
}

.jc-loc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.jc-loc i {
    color: var(--primary-blue);
    font-size: .8rem;
}

.jc-loc strong {
    color: var(--primary-blue);
}

.jc-badge {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(45, 104, 196, .1) 0%, rgba(244, 184, 0, .15) 100%);
    color: var(--primary-dark);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 100px;
    border: 1px solid rgba(45, 104, 196, .2);
}

.jc-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    flex-grow: 1;
}

.jc-divider {
    height: 1px;
    background: var(--slate-100);
    margin: .25rem 0;
}

.jc-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary-blue);
    text-decoration: none !important;
    transition: gap .25s, color .25s;
    margin-top: .25rem;
}

.jc-link i {
    transition: transform .25s;
}

.job-card:hover .jc-link {
    gap: .65rem;
    color: var(--primary-dark);
}

.job-card:hover .jc-link i {
    transform: translateX(3px);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--slate-100);
    border-radius: 16px;
    border: 2px dashed var(--slate-200);
}

.empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 auto 1.25rem;
}

.empty-state h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .5rem;
}

.empty-state p {
    font-size: .9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .job-hero {
        padding-bottom: 200px;
    }

    .search-wrapper {
        margin-top: -140px;
    }

    .search-form {
        flex-direction: column;
        gap: 5px;
    }

    .input-group-custom {
        width: 100%;
        padding: 10px 15px;
    }

    .input-group-custom:hover {
        background: transparent;
    }

    .input-divider {
        width: 100%;
        height: 1px;
        margin: 5px 0;
        background: var(--slate-200);
    }

    .btn-search {
        width: 100%;
        margin-top: 15px;
        padding: 18px 20px;
        justify-content: center;
    }

    .jobs-section {
        padding: 3rem 0 5rem;
    }
}

@media (max-width: 576px) {
    .job-hero {
        padding-bottom: 160px;
    }

    .search-wrapper {
        margin-top: -110px;
    }
}