:root {
    --primary: #0b66c3;
    --primary2: #053b73;
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e6eaf2;
    --shadow: 0 18px 45px rgba(2, 10, 30, 0.10);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    /* font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; */
    font-family: Inter, Maven Pro, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* ===== HEADER ===== */
.top {
    color: #fff;
    padding: 22px 0 22px;
    position: relative;
    overflow: hidden;
}

.top::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -180px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
}

.hero {
    /* margin-top: 18px; */
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
}

.hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}


.logo {
    width: 180px;
    height: 150px;
    padding: 14px;
    border-radius: 20px;
}


.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.hero-title {
    min-width: 0;
}

.hero-title h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.hero-title .sub {
    margin-top: 8px;
    font-weight: 650;
    font-size: 15px;
}

/* JOB LIST */
.job-list {
    margin: 22px 0 60px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.job-row {
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2ff;
    cursor: pointer;
    transition: 0.2s ease;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.job-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.job-left {
    flex: 1;
}

.job-title {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.job-code {
    margin-top: 5px;
    font-size: 13px;
    opacity: 0.7;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.pill {
    font-size: 12px;
    background: #f2f6ff;
    padding: 7px 11px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #1b2b52;
}

.job-right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.btn {
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    background: #1e88e5;
    color: #fff;
}

.arrow {
    font-size: 18px;
    opacity: 0.7;
}

.no-results {
    margin: 25px 0;
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    display: none;
    border: 1px solid #eee;
}

@media(max-width: 650px) {
    .job-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .apply {
        position: static;
    }

    .hero {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .hero-title h1 {
        font-size: 28px;
    }

    .pill {
        width: 100%;
        justify-content: center;
    }

    .meta {
        width: 100%;
    }

    .content {
        padding: 16px;
    }
}

/* ==========================================================
MODAL STYLES
========================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 10, 30, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
}

.modal {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.30);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: pop 0.18s ease-out;
}

@keyframes pop {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-head {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(135deg, #f6fbff 0%, #ffffff 70%);
}

.modal-title {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
}

.close-btn {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid #e6eaf2;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: 0.2s;
}

.close-btn:hover {
    background: #f8fafc;
}

.modal-body {
    padding: 18px;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.field label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid #e6eaf2;
    outline: none;
    font-size: 14px;
    background: #fff;
    transition: 0.2s;
}

.field input:focus {
    border-color: #9cc8ff;
    box-shadow: 0 0 0 2px rgba(21, 128, 255, 0.12);
}

.filebox {
    border: 1px dashed #cfe4ff;
    background: #f6fbff;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.filebox .left {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #0b66c3;
    font-weight: 900;
}

.filebox small {
    display: block;
    font-weight: 700;
    color: #64748b;
    margin-top: 2px;
}

.filebox input[type="file"] {
    width: auto;
    border: none;
    padding: 0;
    background: transparent;
    font-size: 13px;
    color: #334155;
}

.modal-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

.modal-actions .btn {
    box-shadow: none;
}

.btn.gray {
    background: #0f172a;
}

.error {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
    font-weight: 800;
    font-size: 13px;
    display: none;
}

.success {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #065f46;
    font-weight: 900;
    font-size: 13px;
    display: none;
}

.field input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid #e6eaf2;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}


.field input[type="file"]::file-selector-button:hover {
    filter: brightness(1.05);
}

.no-job-wrap {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        radial-gradient(900px 360px at 70% 10%, rgba(39, 70, 153, 0.10), transparent 60%),
        linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
}

.no-job-card {
    width: min(580px, 100%);
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 26px 65px rgba(2, 10, 30, 0.12);
    position: relative;
    overflow: hidden;
}

.no-job-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(650px 260px at 30% 10%, rgba(39, 70, 153, 0.14), transparent 55%),
        radial-gradient(650px 260px at 80% 30%, rgba(39, 70, 153, 0.10), transparent 60%);
    z-index: 0;
}

.no-job-card * {
    position: relative;
    z-index: 1;
}

.no-job-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(39, 70, 153, 0.08);
    border: 1px solid rgba(39, 70, 153, 0.18);
    color: #274699;
    font-size: 24px;
}

.no-job-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.4px;
    color: #0f172a;
}

.no-job-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.no-job-hint {
    margin-top: 18px;
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    color: #274699;
    font-size: 13px;
    font-weight: 900;
}

@media (max-width: 640px) {

    .hero-left {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        /* width: 120px;
        height: 120px; */
        padding: 10px;
        width: 80%;
        height: auto;
    }

    .hero-title {
        width: 100%;
    }

    .hero-title h1 {
        font-size: 24px;
        line-height: 1.25;
    }

    .hero-title .sub {
        font-size: 13px;
        line-height: 1.5;
    }

    .chips {
        flex-direction: column;
        gap: 5px;
    }
}


.jobdesc {
    line-height: 1.7;
    font-size: 15px;
}

.jd-line {
    margin-bottom: 8px;
}

.jd-header {
    font-weight: 700;
    font-size: 16px;
    margin-top: 18px;
    margin-bottom: 10px;
}

.jd-bullet {
    padding-left: 22px;
    margin-bottom: 6px;
    position: relative;
}

.jd-bullet::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}