:root {
    --navy: #172554;
    --blue: #1643b8;
    --blue-dark: #003a9a;
    --purple: #6d13c9;
    --orange: #ff8b00;
    --green: #159957;
    --page-bg: #ffffff;
    --border: #dce3ef;
    --muted: #34466f;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--navy);
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

.site-shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 960px;
    padding: 0 20px 24px;
    overflow: hidden;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    height: 120px;
    display: flex;
    align-items: center;
}

.header-inner {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.header-link {
    display: contents;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    width: 250px;
    flex: 0 0 250px;
    display: flex;
    align-items: center;
}

.qx-mark {
    width: 102px;
    height: 82px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-family: Arial, sans-serif;
}

.qx-mark .q {
    position: absolute;
    left: 0;
    top: -8px;
    color: #070707;
    font-size: 72px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -10px;
}

.qx-mark .x {
    position: absolute;
    left: 49px;
    top: 23px;
    color: #df171b;
    font-size: 57px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -7px;
}

.brand-copy {
    padding-top: 1px;
    font-size: 18px;
    line-height: 1.38;
    font-weight: 400;
    letter-spacing: .3px;
    color: #202020;
}

.brand-copy span {
    display: block;
}

.brand-copy .technology {
    color: #cf171c;
}

.header-divider {
    width: 1px;
    height: 68px;
    margin-left: 8px;
    margin-right: 28px;
    background: #9aabc9;
}

.company-copy h1 {
    margin: 0 0 6px;
    color: #1b294e;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
}

.company-copy p {
    margin: 0;
    color: #26375e;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
}

/* =========================
PRIMARY ACTIONS - DESKTOP
========================= */

.actions {
    margin-left: auto;
    display: flex;
    gap: 18px;
}

.actions .btn {
    min-width: 155px;
    height: 57px;
    border: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

/* Find Job Button */
.find {
    background: linear-gradient(135deg, #2554ba, #1749bd);
}

/* Apply Now Button */
.apply {
    background: linear-gradient(135deg, #f89b12, #ff7800);
}

/* View Profile Button */
.profile {
    background: linear-gradient(135deg, #159957, #137a46);
}

/* Profile Dropdown (View Profile + Logout) */
.profile-dropdown {
    display: inline-flex;
}

.profile-dropdown .profile:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.profile-dropdown .dropdown-toggle-split {
    flex: 0 0 auto;
    width: 40px;
    min-width: 40px;
    padding: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 1px solid rgba(255, 255, 255, .3);
}

.profile-dropdown .dropdown-toggle-split::after {
    margin: 0;
}

.profile-dropdown .dropdown-menu {
    min-width: 160px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(23, 37, 84, .14);
}

.profile-dropdown .dropdown-menu form {
    margin: 0;
}

.profile-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #172554;
    font-size: .88rem;
    font-weight: 700;
    text-align: left;
}

.profile-dropdown .dropdown-item:hover,
.profile-dropdown .dropdown-item:focus {
    background: #fdeeee;
    color: #b91c1c;
}

/* Button Icons */
.actions i {
    font-size: 1.35rem;
}

/* =========================================================
MAIN
========================================================= */

main {
    display: block;
}


/* =========================================================
HERO
========================================================= */

.hero {
    position: relative;
    min-height: 303px;
    padding: 46px 52px 64px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(133, 49, 255, 0.68),
            transparent 31%
        ),
        linear-gradient(
            115deg,
            #1b4a96 0%,
            #1b328a 56%,
            #6925c4 100%
        );
    border-radius: 10px 10px 0 0;
}


/* Hero Content */

.copy {
    position: relative;
    z-index: 5;
    max-width: 620px;
}

.hero h2 {
    margin: 0;
    font-size: clamp(2.15rem, 3.5vw, 3.15rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero p {
    margin: 13px 0 25px;
    font-size: 1.05rem;
    font-weight: 600;
}


/* =========================================================
HERO SEARCH
========================================================= */

.search {
    width: min(100%, 612px);
    height: 71px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    gap: 16px;

    color: #53637f;
    background: #fff;

    border-radius: 11px;

    box-shadow: 0 9px 20px rgba(7, 24, 77, 0.22);
}

.search i {
    flex: 0 0 auto;
    font-size: 1.75rem;
}

.search input {
    width: 100%;
    min-width: 0;

    border: 0;
    outline: 0;

    color: #172554;
    background: transparent;

    font-size: 0.98rem;
    font-weight: 600;
}


/* =========================================================
HERO WORLD MAP
========================================================= */

.map {
    position: absolute;

    top: 22px;
    right: 18px;

    width: 54%;
    height: 238px;

    opacity: 0.84;

    background-image:
        radial-gradient(
            circle,
            rgba(226, 232, 255, 0.95) 1.3px,
            transparent 1.7px
        );

    background-size: 6px 6px;

    -webkit-mask:
        radial-gradient(
            ellipse 21% 36% at 20% 40%,
            #000 57%,
            transparent 61%
        ),
        radial-gradient(
            ellipse 17% 41% at 38% 59%,
            #000 53%,
            transparent 57%
        ),
        radial-gradient(
            ellipse 24% 38% at 57% 37%,
            #000 55%,
            transparent 59%
        ),
        radial-gradient(
            ellipse 13% 42% at 70% 61%,
            #000 50%,
            transparent 54%
        ),
        radial-gradient(
            ellipse 18% 29% at 89% 66%,
            #000 52%,
            transparent 56%
        );

    mask:
        radial-gradient(
            ellipse 21% 36% at 20% 40%,
            #000 57%,
            transparent 61%
        ),
        radial-gradient(
            ellipse 17% 41% at 38% 59%,
            #000 53%,
            transparent 57%
        ),
        radial-gradient(
            ellipse 24% 38% at 57% 37%,
            #000 55%,
            transparent 59%
        ),
        radial-gradient(
            ellipse 13% 42% at 70% 61%,
            #000 50%,
            transparent 54%
        ),
        radial-gradient(
            ellipse 18% 29% at 89% 66%,
            #000 52%,
            transparent 56%
        );
}


/* =========================================================
FLIGHT PATH + AIRPLANE
========================================================= */

.route {
    position: absolute;
    z-index: 3;

    top: 82px;
    right: 70px;

    width: 325px;
    height: 152px;

    border-top: 2px dashed rgba(255, 255, 255, 0.86);
    border-radius: 50%;

    transform: rotate(-9deg);
}

.route::before {
    content: "";

    position: absolute;

    top: 46px;
    left: -145px;

    width: 185px;
    height: 92px;

    border-bottom: 2px dashed rgba(255, 255, 255, 0.86);
    border-radius: 50%;

    transform: rotate(18deg);
}

.plane {
    position: absolute;
    z-index: 4;

    top: 65px;
    right: 61px;

    font-size: 3rem;

    transform: rotate(17deg);
}


/* =========================================================
MAP PINS
========================================================= */

.pin {
    position: absolute;
    z-index: 4;

    filter: drop-shadow(
        0 4px 7px rgba(0, 0, 0, 0.28)
    );
}

.p1 {
    top: 28px;
    right: 33%;

    color: #9a67ff;
    font-size: 2.05rem;
}

.p2 {
    top: 120px;
    right: 25%;

    color: #9a67ff;
    font-size: 2rem;
}

.p3 {
    right: 7.6%;
    bottom: 65px;

    color: #ff9a00;
    font-size: 2.35rem;
}


/* =========================================================
FLOATING FILTER SECTION
========================================================= */

.filters {
    position: relative;
    z-index: 10;

    margin: -28px 37px 0;
    padding: 24px 29px;

    border-radius: 16px;

    background: #fff;

    box-shadow:
        0 9px 24px rgba(25, 44, 92, 0.15);
}

.filtergrid {
    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr
        auto;

    align-items: center;
    gap: 17px;
}


/* =========================================================
FILTER CONTROLS
========================================================= */

.filter {
    height: 76px;
    padding: 0 18px;

    border: 1px solid #d7dfeb;
    border-radius: 11px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #172554;
    background: #fff;

    box-shadow:
        0 3px 9px rgba(26, 46, 94, 0.04);
}

.filter {
    position: relative;
    text-align: left;
    cursor: pointer;
}

.filter small {
    display: block;

    margin-bottom: 5px;

    color: #63728c;

    font-size: 0.67rem;
    font-weight: 700;
}

.filter strong {
    display: block;

    font-size: 0.88rem;
    font-weight: 800;
}

.filter i {
    font-size: 1rem;
    pointer-events: none;
}

.filter select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 24px 18px 8px;
    border: 0;
    outline: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    color: transparent;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
}

.filter select:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 11px;
}


/* =========================================================
SORT BUTTON
========================================================= */

.sort {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 16px;

    padding-left: 7px;

    white-space: nowrap;

    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.sort span {
    color: #5e6d86;
}

.sort i {
    font-size: 0.9rem;
}


/* =========================================================
JOB LIST SECTION
========================================================= */

.jobs {
    padding: 28px 38px 24px;
}

.count {
    margin: 0 0 14px 3px;

    font-size: 1.02rem;
    font-weight: 800;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #5e6d86;
    font-weight: 600;
}


/* =========================================================
JOB CARD
========================================================= */

.job {
    --accent: #2563eb;

    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        210px
        100px
        190px;

    align-items: center;

    min-height: 125px;

    margin-bottom: 10px;

    overflow: hidden;

    border: 1px solid #dfe6f0;
    border-radius: 17px;

    background: #fff;

    box-shadow:
        0 5px 16px rgba(25, 43, 87, 0.09);
}


/* Left Accent Bar */

.job::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 6px;

    background: var(--accent);
}


/* =========================================================
JOB INFORMATION
========================================================= */

.main {
    padding: 20px 20px 18px 43px;
}

.title {
    margin: 0 0 5px;

    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.2;
}

.location {
    margin-bottom: 10px;

    color: #50617c;

    font-size: 0.83rem;
    font-weight: 600;
}


/* =========================================================
JOB TAGS
========================================================= */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag {
    padding: 6px 16px;

    border-radius: 999px;

    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.tb {
    color: #214e9d;
    background: #e5efff;
}

.tp {
    color: #6436a8;
    background: #eee7ff;
}

.tg {
    color: #26734c;
    background: #dcefe6;
}


/* =========================================================
JOB META
========================================================= */

.meta,
.open,
.jobaction {
    min-height: 53px;

    border-left: 1px solid #dce4ef;
}


/* Posted Date */

.meta {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    color: #51617d;

    font-size: 0.69rem;
    font-weight: 700;

    text-align: center;
}

.meta i {
    font-size: 1rem;
}


/* =========================================================
OPENINGS COUNT
========================================================= */

.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.open strong {
    color: #197142;

    font-size: 1.55rem;
    line-height: 1;
}

.open span {
    margin-top: 6px;

    color: #53627b;

    font-size: 0.68rem;
    font-weight: 700;
}


/* =========================================================
JOB ACTION BUTTON
========================================================= */

.jobaction {
    padding: 0 31px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.jobaction .btn {
    width: 100%;
    height: 50px;

    border: 0;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #fff;
    background: var(--accent);

    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}


/* =========================================================
PAGINATION
========================================================= */

.pages {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding-top: 11px;
}

.pg,
.current {
    width: 52px;
    height: 52px;

    border: 0;
    border-radius: 50%;

    display: grid;
    place-items: center;

    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.pg {
    border: 1px solid #d4deeb;

    color: #455572;
    background: #fff;
}

.pg:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.pg.page-number {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
}

.current {
    color: #fff;
    background: #2459c5;

    box-shadow:
        0 7px 17px rgba(37, 89, 197, 0.24);
}


/* =========================================================
CHAT BUTTON
========================================================= */

.chat {
    position: absolute;

    right: 0;

    width: 70px;
    height: 70px;

    border: 0;
    border-radius: 50%;

    display: grid;
    place-items: center;

    color: #fff;
    background: #2459c5;

    box-shadow:
        0 8px 19px rgba(37, 89, 197, 0.25);

    font-size: 1.7rem;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1199.98px) {
    .site-shell {
        padding-right: 24px;
        padding-left: 24px;
    }
}

/* =========================================================
   TABLET / 768
========================================================= */

@media (max-width: 991.98px) {
    .site-header {
        height: auto;
        padding: 28px 0;
    }

    .header-inner {
        align-items: flex-start;
    }

    .brand-logo {
        width: auto;
        flex-basis: auto;
    }

    .header-divider {
        margin-right: 24px;
    }

    .actions {
        margin-left: auto;
    }

    /* Hero */

    .map {
        width: 63%;
        right: -55px;

        opacity: 0.56;
    }


    /* Filters */

    .filters {
        margin-inline: 24px;
        padding: 18px;
    }

    .filtergrid {
        grid-template-columns:
            1fr
            1fr
            1fr;
    }

    .sort {
        justify-content: flex-start;
    }


    /* Jobs */

    .jobs {
        padding-inline: 24px;
    }

    .job {
        grid-template-columns:
            minmax(0, 1fr)
            150px
            85px
            145px;
    }

    .jobaction {
        padding: 14px;
    }

}

/* =========================================================
   MOBILE / 375
========================================================= */

@media (max-width: 767.98px) {
    .site-shell {
        padding: 0 12px 20px;
    }

    .site-header {
        padding: 20px 8px;
    }

    .header-inner {
        flex-direction: column;
        gap: 18px;
    }

    .brand-logo {
        width: 100%;
    }

    .header-divider {
        display: none;
    }

    .actions {
        width: 100%;
        margin-left: 0;
        gap: 10px;
    }

    .actions .btn {
        flex: 1;
        min-width: 0;
        height: 50px;
        font-size: 0.8rem;
    }

    .company-copy h1 {
        font-size: 22px;
    }

    .company-copy p {
        font-size: 15px;
    }

    /* Hero */

    .hero {
        min-height: 300px;
        padding: 35px 22px 52px;
    }

    .hero h2 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 0.87rem;
    }


    /* Search */

    .search {
        height: 62px;
    }


    /* Map */

    .map {
        top: 118px;
        right: -130px;

        width: 85%;
        height: 180px;

        opacity: 0.38;
    }

    .p1,
    .p2 {
        display: none;
    }

    .p3 {
        right: 11%;
        bottom: 48px;
    }


    /* Airplane */

    .plane {
        top: 155px;
        right: 28px;

        font-size: 2.2rem;
    }


    /* Flight Route */

    .route {
        top: 166px;
        right: -45px;

        width: 230px;

        opacity: 0.55;
    }


    /* Filters */

    .filters {
        margin: -25px 12px 0;
        padding: 14px;
    }

    .filtergrid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .filter {
        height: 68px;
    }

    .sort {
        padding-left: 4px;
    }


    /* Job List */

    .jobs {
        padding: 23px 12px 18px;
    }


    /* Job Card Mobile Layout */

    .job {
        grid-template-columns: 1fr 1fr;

        grid-template-areas:
            "main main"
            "meta open"
            "action action";
    }

    .main {
        grid-area: main;

        padding: 17px 15px 15px 27px;
    }

    .meta {
        grid-area: meta;

        min-height: 48px;

        border-top: 1px solid #dbe3ef;
        border-left: 0;
    }

    .open {
        grid-area: open;

        min-height: 48px;

        border-top: 1px solid #dbe3ef;
    }

    .jobaction {
        grid-area: action;

        min-height: 60px;

        padding: 8px 13px;

        border-top: 1px solid #dbe3ef;
        border-left: 0;
    }

    .jobaction .btn {
        height: 43px;
    }


    /* Pagination */

    .pg,
    .current {
        width: 46px;
        height: 46px;
    }


    /* Chat */

    .chat {
        right: 4px;

        width: 58px;
        height: 58px;

        font-size: 1.4rem;
    }

}


/* =========================================================
   TYPOGRAPHY SCALE — 10% SMALLER THAN ORIGINAL
   Logo artwork and icon sizes remain unchanged.
========================================================= */
.brand-copy { font-size: 16.2px; }
.company-copy h1 { font-size: 24.3px; }
.company-copy p { font-size: 16.2px; }


@media (max-width: 767.98px) {
    .company-copy h1 { font-size: 19.8px; }
    .company-copy p { font-size: 13.5px; }
}



/* =========================================================
   SUPPLIED QX LOGO
========================================================= */
.brand-logo {
    width: 250px;
    flex: 0 0 250px;
    display: flex;
    align-items: center;
}

.brand-logo-image {
    display: block;
    width: 227px;
    height: auto;
    max-height: 95px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .brand-logo-image {
        width: min(227px, 100%);
        height: auto;
    }
}

.site-footer {
    text-align: center;
    padding: 24px 0;
    color: #64718c;
    font-size: 13px;
    font-weight: 600;
}
