@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Work+Sans:wght@400;500;600;700&display=swap");

:root {
    --accent-strong: #005a9c;
    --accent-mid: #1f5ea2;
    --accent-soft: #e6f1ff;
    --ink-900: #0f1f2f;
    --ink-700: #2d4258;
    --ink-500: #607489;
    --surface-100: #f7fbff;
    --surface-200: #ecf3fb;
    --surface-300: #dde8f6;
    --line-strong: #cad9ec;
    --line-soft: #d9e6f6;
    --shadow-card: 0 14px 30px rgba(10, 39, 74, 0.1);
    --shadow-soft: 0 10px 24px rgba(10, 39, 74, 0.08);
}

* {
    box-sizing: border-box;
}

body.modal-open {
    overflow: hidden;
}

.jobs-shell {
    min-height: 100vh;
    background:
        radial-gradient(900px 500px at -8% -12%, #d8e9ff 0%, rgba(216, 233, 255, 0) 65%),
        radial-gradient(840px 420px at 112% 6%, #d5e9ff 0%, rgba(213, 233, 255, 0) 62%),
        linear-gradient(180deg, #f7fbff 0%, #edf4fc 100%);
    color: var(--ink-900);
    font-family: "Work Sans", "Trebuchet MS", sans-serif;
}

.top-bar {
    background: linear-gradient(90deg, #0f2538 0%, #15324b 45%, #1a4c66 100%);
    color: #ffffff;
    min-height: 44px;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icons a {
    color: #d8f4ff;
    margin-right: 14px;
    font-size: 0.95rem;
    transition: color 0.18s ease, transform 0.18s ease;
}

.social-icons a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.contact-info {
    font-size: 0.92rem;
    letter-spacing: 0.1px;
}

.header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 8px 20px rgba(16, 38, 63, 0.08);
    backdrop-filter: blur(6px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(16, 54, 97, 0.18);
}

.brand-text {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #102d48;
    letter-spacing: 0.2px;
}

.header nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.header nav a {
    color: #1d3e5e;
    text-decoration: none;
    font-weight: 600;
    padding: 9px 11px;
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header nav a:hover {
    background: #eaf2fc;
    color: #0b2f50;
}

.jobs-button {
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent-mid));
    color: #ffffff;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #004a84;
    box-shadow: 0 10px 20px rgba(0, 90, 156, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jobs-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 90, 156, 0.32);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: #1d3e5e;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.mobile-close-btn,
.mobile-only-nav-item {
    display: none;
}

.sidebar-overlay {
    display: none;
}

.main-content {
    max-width: 1220px;
    margin: 0 auto;
    padding: 24px 16px 42px;
}

.hero-panel {
    border: 1px solid var(--line-soft);
    background:
        radial-gradient(480px 260px at 10% 0%, rgba(0, 90, 156, 0.14) 0%, rgba(0, 90, 156, 0) 66%),
        radial-gradient(340px 180px at 92% 100%, rgba(28, 116, 196, 0.1) 0%, rgba(28, 116, 196, 0) 70%),
        #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    padding: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    animation: panelRise 0.45s ease both;
}

.hero-kicker {
    font-family: "Sora", sans-serif;
    color: var(--accent-strong);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.hero-copy h1 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.95rem);
    line-height: 1.22;
    color: #10233a;
}

.hero-copy p {
    margin: 10px 0 0;
    color: var(--ink-700);
    max-width: 620px;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stat-box {
    min-width: 110px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-soft);
    text-align: left;
}

.stat-box span {
    display: block;
    color: var(--ink-500);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stat-box strong {
    display: block;
    margin-top: 2px;
    font-family: "Sora", sans-serif;
    font-size: 1.25rem;
    color: #102a45;
}

.search-and-display-options {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.search-bar {
    position: relative;
    flex: 1 1 360px;
}

.search-bar input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(11, 41, 72, 0.06);
    padding: 0 44px 0 14px;
    color: #15304b;
    font-size: 0.97rem;
}

.search-bar input:focus {
    border-color: #90b8e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(69, 136, 214, 0.16);
}

.search-bar i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6f869d;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-filter {
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: #1f3b58;
    padding: 0 12px;
    min-width: 135px;
    font-weight: 600;
}

.view-toggle {
    display: inline-flex;
    background: #e8f0fa;
    border-radius: 10px;
    padding: 4px;
    border: 1px solid #d3e1f3;
}

.view-btn {
    border: 0;
    background: transparent;
    color: #31506f;
    border-radius: 8px;
    min-width: 72px;
    height: 34px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

.view-btn.active {
    background: #ffffff;
    color: #0f2f4f;
    box-shadow: 0 6px 12px rgba(7, 39, 72, 0.11);
}

.result-count {
    margin: 10px 2px 0;
    color: #2f4a66;
    font-weight: 600;
}

.job-card-container {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
    gap: 14px;
}

.job-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    box-shadow: var(--shadow-soft);
    padding: 16px;
    opacity: 0;
    transform: translateY(14px) scale(0.99);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, opacity 0.24s ease;
}

.job-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.job-card:hover {
    border-color: #b8cde7;
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(9, 40, 76, 0.14);
}

.job-card.is-hidden {
    display: none;
}

.job-card.taken {
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

.job-main h2 {
    margin: 8px 0 6px;
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
    line-height: 1.35;
    color: #132e49;
}

.job-main h3 {
    margin: 0;
    font-size: 1.06rem;
    color: #0f4f87;
    font-family: "Sora", sans-serif;
}

.job-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.job-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-status.open {
    background: var(--accent-soft);
    color: #0d4e88;
    border: 1px solid #97bbe3;
}

.job-status.taken {
    background: #fff1f0;
    color: #b43f3a;
    border: 1px solid #f0b6b3;
}

.job-ref {
    color: #607993;
    font-size: 0.82rem;
    font-weight: 600;
}

.job-description-preview {
    margin: 10px 0 0;
    color: #3f5872;
    line-height: 1.45;
    font-size: 0.94rem;
}

.job-card-details {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.job-card-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #42607f;
    font-size: 0.9rem;
}

.job-card-detail-item i {
    color: #2c6fa3;
}

.card-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.details-button {
    border: 1px solid #a6c2e2;
    background: #edf5ff;
    color: #1f4670;
    border-radius: 10px;
    padding: 9px 12px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.details-button:hover {
    border-color: #88afd7;
    background: #e3efff;
}

.apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    padding: 9px 14px;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent-mid));
    color: #ffffff;
    border: 1px solid #004a84;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0, 90, 156, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.apply-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 90, 156, 0.32);
}

.apply-button.disabled {
    background: #f5f5f5;
    border-color: #dfdfdf;
    box-shadow: none;
    color: #ad4b4b;
    cursor: not-allowed;
    pointer-events: none;
}

.empty-state {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px dashed #bfd2e8;
    border-radius: 16px;
    text-align: center;
    padding: 32px 16px;
    color: #325272;
}

.empty-state h3 {
    margin: 0;
    font-family: "Sora", sans-serif;
}

.empty-state p {
    margin: 10px 0 0;
}

.job-card-container.list-view {
    grid-template-columns: 1fr;
}

.job-card-container.list-view .job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px 16px;
}

.job-card-container.list-view .card-actions {
    justify-content: flex-end;
    min-width: 210px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(7, 20, 33, 0.62);
    backdrop-filter: blur(3px);
    padding: 16px;
}

.modal.open {
    display: flex;
}

.modal-content {
    width: min(720px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    border-radius: 18px;
    border: 1px solid #c8d9ef;
    background:
        radial-gradient(320px 140px at 90% 0, rgba(31, 124, 201, 0.12) 0%, rgba(31, 124, 201, 0) 65%),
        #ffffff;
    padding: 22px;
    position: relative;
    box-shadow: 0 24px 48px rgba(8, 30, 54, 0.35);
    animation: modalRise 0.22s ease both;
}

.close-button {
    border: 0;
    background: transparent;
    position: absolute;
    top: 10px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #607993;
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
}

.close-button:hover {
    background: #eaf2fb;
    color: #1e3f5f;
}

.job-detail-title {
    margin: 0 0 12px;
    padding-right: 36px;
    font-family: "Sora", sans-serif;
    color: #112f4a;
    font-size: 1.4rem;
}

.job-detail-section {
    margin-bottom: 13px;
}

.job-detail-section h4 {
    margin: 0 0 6px;
    font-family: "Sora", sans-serif;
    font-size: 0.95rem;
    color: #1d3f62;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.job-detail-section p {
    margin: 0;
    color: #37526d;
    line-height: 1.55;
}

.job-detail-info {
    margin: 8px 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.job-detail-info span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2f5070;
}

.job-detail-info i {
    color: #2d74ab;
}

.job-detail-info a {
    color: #195c92;
}

.pricing-box {
    border: 1px solid #cde0f5;
    border-radius: 12px;
    background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
    padding: 12px;
}

.pricing-box ul {
    margin: 8px 0 0 18px;
    padding: 0;
    color: #345271;
}

.pricing-title {
    margin-bottom: 8px;
    color: #1a3a5a;
    font-weight: 700;
}

.terms-row {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #183857;
    font-weight: 600;
}

#continue-button {
    margin-top: 14px;
    width: 100%;
    height: 46px;
    border-radius: 10px;
    border: 1px solid #004a84;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent-mid));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

#continue-button:disabled {
    background: #d4dae1;
    border-color: #c3ccd7;
    color: #73879a;
    cursor: not-allowed;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
    white-space: nowrap;
}

@keyframes panelRise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalRise {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1020px) {
    .header nav {
        gap: 4px;
    }

    .header nav a {
        padding: 8px 9px;
        font-size: 0.92rem;
    }
}

@media (max-width: 880px) {
    .top-bar {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .jobs-button {
        display: none;
    }

    .header nav {
        position: fixed;
        top: 0;
        left: -290px;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        gap: 0;
        background: #ffffff;
        border-right: 1px solid var(--line-soft);
        box-shadow: 0 16px 34px rgba(8, 29, 49, 0.22);
        z-index: 1300;
        padding: 12px 14px;
        transition: left 0.24s ease;
    }

    .header nav.active {
        left: 0;
    }

    .header nav a {
        width: 100%;
        border-radius: 8px;
        margin: 0;
        padding: 12px 10px;
    }

    .mobile-close-btn {
        display: block;
        align-self: flex-end;
        font-size: 1.4rem;
        padding: 6px;
        cursor: pointer;
        color: #42607f;
    }

    .mobile-only-nav-item {
        display: block;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1250;
        background: rgba(9, 23, 36, 0.46);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .hero-panel {
        padding: 18px;
    }

    .job-card-container.list-view .job-card {
        grid-template-columns: 1fr;
    }

    .job-card-container.list-view .card-actions {
        justify-content: flex-start;
        min-width: auto;
    }
}

@media (max-width: 620px) {
    .main-content {
        padding: 18px 12px 34px;
    }

    .hero-copy h1 {
        font-size: 1.32rem;
    }

    .hero-copy p {
        font-size: 0.94rem;
    }

    .hero-stats {
        width: 100%;
    }

    .stat-box {
        flex: 1;
    }

    .search-and-display-options {
        align-items: stretch;
    }

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

    .status-filter {
        flex: 1;
    }

    .view-toggle {
        flex-shrink: 0;
    }

    .job-card {
        padding: 14px;
    }

    .card-actions {
        width: 100%;
    }

    .details-button,
    .apply-button {
        flex: 1;
        justify-content: center;
    }

    .modal-content {
        padding: 18px;
    }
}
