/* =========================================================
   INSTAWORKS JOBS PAGE
========================================================= */

.jobs-page {
    min-height: 100vh;
    background: #f7f8fc;
}


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

.jobs-page-hero {
    padding: 50px 0 35px;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(111, 66, 193, 0.14),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #faf8ff 0%,
            #f7f8fc 100%
        );
}

.jobs-hero-content {
    max-width: 850px;

    margin: 0 auto;

    text-align: center;
}

.jobs-eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 16px;

    color: #6f1aa8;

    background: #f0e6f8;

    border-radius: 999px;

    font-size: 0.85rem;

    font-weight: 750;
}

.jobs-eyebrow i {
    font-size: 0.8rem;
}

.jobs-hero-content h1 {
    margin: 18px 0 0;

    color: #101828;

    font-size: clamp(2.25rem, 5vw, 4rem);

    font-weight: 850;

    line-height: 1.08;

    letter-spacing: -1.5px;
}

.jobs-hero-content h1 span {
    color: #6f1aa8;
}

.jobs-hero-content p {
    max-width: 650px;

    margin: 18px auto 0;

    color: #667085;

    font-size: 1.05rem;

    line-height: 1.6;
}


/* =========================================================
   SEARCH PANEL
========================================================= */

.jobs-search-panel {
    max-width: 1180px;

    margin: 38px auto 0;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e7e8ee;

    border-radius: 20px;

    box-shadow:
        0 14px 40px rgba(16, 24, 40, 0.08);
}

.jobs-search-form {
    display: grid;

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

    gap: 14px;

    align-items: end;
}

.jobs-search-field,
.jobs-filter-field {
    min-width: 0;
}

.jobs-search-field label,
.jobs-filter-field label {
    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 0.78rem;

    font-weight: 700;
}

.jobs-input {
    display: flex;

    align-items: center;

    height: 48px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dfe2e8;

    border-radius: 11px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.jobs-input:focus-within {
    border-color: #6f1aa8;

    box-shadow:
        0 0 0 3px rgba(111, 26, 168, 0.08);
}

.jobs-input i {
    width: 44px;

    flex-shrink: 0;

    color: #6f1aa8;

    text-align: center;

    font-size: 1rem;
}

.jobs-input input {
    width: 100%;

    height: 100%;

    padding: 0 12px 0 0;

    color: #101828;

    background: transparent;

    border: 0;

    outline: 0;

    font-size: 0.9rem;
}

.jobs-input input::placeholder {
    color: #98a2b3;
}


/* Desktop filter group */

.jobs-desktop-filters {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 10px;
}

.jobs-filter-field select {
    width: 100%;

    height: 48px;

    padding: 0 12px;

    color: #344054;

    background: #ffffff;

    border: 1px solid #dfe2e8;

    border-radius: 11px;

    outline: none;

    font-size: 0.84rem;

    cursor: pointer;
}

.jobs-filter-field select:focus {
    border-color: #6f1aa8;

    box-shadow:
        0 0 0 3px rgba(111, 26, 168, 0.08);
}


/* Search button */

.jobs-search-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    height: 48px;

    padding: 0 20px;

    color: #ffffff;

    background: #6f1aa8;

    border: 1px solid #6f1aa8;

    border-radius: 11px;

    font-size: 0.85rem;

    font-weight: 750;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.jobs-search-button:hover {
    background: #5c148d;

    transform: translateY(-1px);
}


/* Mobile filter button */

.jobs-mobile-filter-button {
    display: none;
}

.jobs-clear-link {
    display: none;
}


/* =========================================================
   CONTENT
========================================================= */

.jobs-content {
    padding: 45px 0 100px;

    background: #f7f8fc;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.jobs-section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 16px;
}

.jobs-section-kicker {
    display: block;

    margin-bottom: 4px;

    color: #7c3aad;

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}

.jobs-section-heading h2,
.jobs-results-heading h2 {
    margin: 0;

    color: #101828;

    font-size: 1.55rem;

    font-weight: 800;

    letter-spacing: -0.4px;
}


/* =========================================================
   CATEGORIES
========================================================= */

.jobs-category-scroll {
    display: flex;

    gap: 10px;

    overflow-x: auto;

    padding: 3px 2px 12px;

    scrollbar-width: none;
}

.jobs-category-scroll::-webkit-scrollbar {
    display: none;
}

.jobs-category-pill {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    flex: 0 0 auto;

    min-height: 42px;

    padding: 7px 12px;

    color: #344054;

    background: #ffffff;

    border: 1px solid #e2e5eb;

    border-radius: 999px;

    text-decoration: none;

    font-size: 0.82rem;

    font-weight: 650;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.jobs-category-pill small {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 22px;

    height: 22px;

    padding: 0 6px;

    color: #6f1aa8;

    background: #f4ecfa;

    border-radius: 999px;

    font-size: 0.7rem;

    font-weight: 750;
}

.jobs-category-pill:hover {
    color: #6f1aa8;

    border-color: #c9a7dd;
}

.jobs-category-pill.active {
    color: #ffffff;

    background: #6f1aa8;

    border-color: #6f1aa8;
}

.jobs-category-pill.active small {
    color: #6f1aa8;

    background: #ffffff;
}


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

.jobs-results-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin: 38px 0 20px;
}

.jobs-results-heading p {
    margin: 5px 0 0;

    color: #667085;

    font-size: 0.85rem;
}

.jobs-user-actions {
    display: flex;

    gap: 8px;
}

.jobs-secondary-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 38px;

    padding: 0 12px;

    color: #6f1aa8;

    background: #ffffff;

    border: 1px solid #d9c6e5;

    border-radius: 9px;

    text-decoration: none;

    font-size: 0.78rem;

    font-weight: 700;
}

.jobs-secondary-button:hover {
    color: #5c148d;

    background: #faf7fd;
}


/* =========================================================
   JOB GRID
========================================================= */

.jobs-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


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

.job-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e3e5ea;

    border-radius: 18px;

    box-shadow:
        0 5px 18px rgba(16, 24, 40, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.job-card:hover {
    transform: translateY(-3px);

    border-color: #d4b9e3;

    box-shadow:
        0 12px 28px rgba(16, 24, 40, 0.08);
}


/* Featured */

.job-featured {
    position: absolute;

    top: 16px;

    right: 16px;

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 5px 9px;

    color: #8a4b00;

    background: #fff3c4;

    border-radius: 999px;

    font-size: 0.68rem;

    font-weight: 800;
}

.job-featured i {
    font-size: 0.62rem;
}


/* =========================================================
   COMPANY ROW
========================================================= */

.job-company-row {
    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 0;

    padding-right: 70px;
}

.job-company-logo-link {
    flex: 0 0 auto;

    text-decoration: none;
}

.job-company-logo,
.job-company-placeholder {
    width: 48px;

    height: 48px;

    border-radius: 11px;
}

.job-company-logo {
    display: block;

    object-fit: contain;

    padding: 4px;

    background: #f8f9fb;

    border: 1px solid #e5e7eb;
}

.job-company-placeholder {
    display: flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #6f1aa8,
            #8b3dc0
        );

    font-size: 1rem;

    font-weight: 800;
}

.job-company-info {
    min-width: 0;
}

.job-category {
    display: inline-block;

    max-width: 100%;

    margin-bottom: 3px;

    overflow: hidden;

    color: #6f1aa8;

    font-size: 0.68rem;

    font-weight: 750;

    text-overflow: ellipsis;

    text-transform: uppercase;

    white-space: nowrap;
}

.job-company-name {
    margin: 0;

    overflow: hidden;

    color: #667085;

    font-size: 0.78rem;

    font-weight: 600;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.job-verified {
    margin-left: 3px;

    color: #1473e6;
}

.job-save-button {
    position: absolute;

    top: 17px;

    right: 17px;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 32px;

    height: 32px;

    color: #667085;

    background: #f8f9fb;

    border: 1px solid #e7e8ec;

    border-radius: 9px;

    text-decoration: none;
}

.job-save-form {
    margin: 0;
    padding: 0;
}

.job-save-button:hover {
    color: #6f1aa8;

    background: #f7f1fb;

    border-color: #d8c0e5;
}


/* =========================================================
   TITLE
========================================================= */

.job-title {
    margin: 15px 0 7px;

    color: #101828;

    font-size: 1.1rem;

    font-weight: 800;

    line-height: 1.3;
}

.job-title a {
    color: inherit;

    text-decoration: none;
}

.job-title a:hover {
    color: #6f1aa8;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.job-description {
    display: -webkit-box;

    margin: 0 0 14px;

    overflow: hidden;

    color: #667085;

    font-size: 0.82rem;

    line-height: 1.5;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;
}


/* =========================================================
   JOB FACTS
========================================================= */

.job-facts {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    margin-bottom: 14px;
}

.job-facts span {
    min-width: 0;

    overflow: hidden;

    color: #475467;

    font-size: 0.74rem;

    line-height: 1.4;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.job-facts i {
    width: 16px;

    color: #6f1aa8;

    text-align: center;
}


/* =========================================================
   SALARY
========================================================= */

.job-salary {
    margin-bottom: 13px;

    color: #16834b;

    font-size: 0.98rem;

    font-weight: 800;
}

.job-salary i {
    margin-right: 2px;
}


/* =========================================================
   SKILLS
========================================================= */

.job-skills {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 15px;
}

.job-skills span {
    display: inline-flex;

    align-items: center;

    max-width: 100%;

    padding: 5px 8px;

    overflow: hidden;

    color: #475467;

    background: #f7f8fa;

    border: 1px solid #e6e8ec;

    border-radius: 7px;

    font-size: 0.68rem;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.job-skills .job-more-skills {
    color: #6f1aa8;

    background: #f6effa;

    border-color: #e5d5ed;
}


/* =========================================================
   CARD FOOTER
========================================================= */

.job-card-footer {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 12px;

    margin-top: auto;

    padding-top: 13px;

    border-top: 1px solid #eef0f3;
}

.job-date {
    display: flex;

    flex-direction: column;

    gap: 4px;

    min-width: 0;
}

.job-date span {
    overflow: hidden;

    color: #667085;

    font-size: 0.67rem;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.job-date i {
    margin-right: 3px;
}


/* =========================================================
   APPLY BUTTON
========================================================= */

.job-apply-area {
    flex: 0 0 auto;
}

.job-apply-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    min-width: 82px;

    min-height: 36px;

    padding: 0 12px;

    color: #ffffff;

    background: #6f1aa8;

    border: 1px solid #6f1aa8;

    border-radius: 9px;

    text-decoration: none;

    font-size: 0.76rem;

    font-weight: 750;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.job-apply-button:hover {
    color: #ffffff;

    background: #5c148d;

    transform: translateY(-1px);
}

.job-apply-button i {
    font-size: 0.72rem;
}

.job-closed,
.job-disabled {
    color: #667085;

    background: #f2f4f7;

    border-color: #e4e7ec;

    cursor: not-allowed;
}

.job-closed:hover,
.job-disabled:hover {
    color: #667085;

    background: #f2f4f7;

    transform: none;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.jobs-empty-state {
    grid-column: 1 / -1;

    padding: 65px 20px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e4e7ec;

    border-radius: 18px;
}

.jobs-empty-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 64px;

    height: 64px;

    margin: 0 auto 15px;

    color: #6f1aa8;

    background: #f4ebf9;

    border-radius: 18px;

    font-size: 1.5rem;
}

.jobs-empty-state h3 {
    margin-bottom: 7px;

    color: #101828;

    font-size: 1.2rem;

    font-weight: 800;
}

.jobs-empty-state p {
    margin-bottom: 20px;

    color: #667085;

    font-size: 0.85rem;
}

.jobs-empty-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 40px;

    padding: 0 16px;

    color: #ffffff;

    background: #6f1aa8;

    border-radius: 9px;

    text-decoration: none;

    font-size: 0.8rem;

    font-weight: 750;
}


/* =========================================================
   MOBILE FILTER OFFCANVAS
========================================================= */

.jobs-filter-offcanvas {
    height: auto !important;

    max-height: 82vh;

    border: 0;

    border-radius: 22px 22px 0 0;

    /*
       Keep the filter panel above the
       fixed mobile bottom navigation.
    */
    z-index: 1200 !important;
}

/* =========================================================
   FILTER OFFCANVAS - ABOVE MOBILE BOTTOM NAV
========================================================= */

.jobs-filter-offcanvas.show {
    z-index: 1200 !important;
}

/* Bootstrap backdrop must also stay above bottom navigation */

.offcanvas-backdrop {
    z-index: 1190 !important;
}

.jobs-filter-offcanvas .offcanvas-header {
    padding: 18px 20px 12px;

    border-bottom: 1px solid #eef0f3;

    flex-shrink: 0;
}

.jobs-filter-offcanvas .offcanvas-body {
    overflow-y: auto;

    padding: 18px 20px 25px;
}
.jobs-filter-offcanvas .offcanvas-title {
    color: #101828;

    font-size: 1.05rem;

    font-weight: 800;
}

.jobs-filter-offcanvas .offcanvas-header p {
    margin: 3px 0 0;

    color: #667085;

    font-size: 0.75rem;
}

.jobs-mobile-filter-form {
    padding-bottom: 20px;
}

.jobs-mobile-filter-group {
    margin-bottom: 17px;
}

.jobs-mobile-filter-group label {
    display: block;

    margin-bottom: 7px;

    color: #344054;

    font-size: 0.78rem;

    font-weight: 700;
}

.jobs-mobile-filter-group select {
    width: 100%;

    height: 48px;

    padding: 0 13px;

    color: #344054;

    background: #ffffff;

    border: 1px solid #dfe2e8;

    border-radius: 10px;

    outline: 0;
}

.jobs-mobile-filter-actions {
    display: grid;

    grid-template-columns:
        1fr 1.5fr;

    gap: 10px;

    margin-top: 22px;

    padding-bottom: 20px;
}

.jobs-filter-clear,
.jobs-filter-apply {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 44px;

    border-radius: 10px;

    font-size: 0.8rem;

    font-weight: 750;

    text-decoration: none;
}

.jobs-filter-clear {
    color: #667085;

    background: #f2f4f7;

    border: 1px solid #e4e7ec;
}

.jobs-filter-apply {
    color: #ffffff;

    background: #6f1aa8;

    border: 1px solid #6f1aa8;
}


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

@media (max-width: 1100px) {

    .jobs-search-form {
        grid-template-columns:
            1fr 1fr auto;
    }

    .jobs-desktop-filters {
        grid-column: 1 / -1;
    }

    .jobs-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


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

@media (max-width: 767.98px) {

    .jobs-page-hero {
        padding: 28px 0 22px;
    }

    .jobs-hero-content {
        padding: 0 4px;
    }

    .jobs-eyebrow {
        padding: 7px 13px;

        font-size: 0.74rem;
    }

    .jobs-hero-content h1 {
        margin-top: 14px;

        font-size: 2.15rem;

        letter-spacing: -0.8px;
    }

    .jobs-hero-content p {
        margin-top: 12px;

        font-size: 0.9rem;
    }


    /* Search */

    .jobs-search-panel {
        margin-top: 24px;

        padding: 15px;

        border-radius: 17px;
    }

    .jobs-search-form {
        display: grid;

        grid-template-columns:
            1fr auto;

        gap: 9px;
    }

    .jobs-search-main {
        grid-column: 1 / -1;
    }

    .jobs-location-field {
        grid-column: 1 / -1;
    }

    .jobs-search-field label {
        margin-bottom: 5px;

        font-size: 0.72rem;
    }

    .jobs-input {
        height: 46px;
    }

    .jobs-input input {
        font-size: 0.82rem;
    }


    /* Hide desktop filters */

    .jobs-desktop-filters {
        display: none;
    }


    /* Mobile filter */

    .jobs-mobile-filter-button {
        display: inline-flex;

        align-items: center;

        justify-content: center;

        gap: 6px;

        min-height: 44px;

        padding: 0 13px;

        color: #6f1aa8;

        background: #f6effa;

        border: 1px solid #e3d2ec;

        border-radius: 10px;

        font-size: 0.78rem;

        font-weight: 750;
    }


    /* Search */

    .jobs-search-button {
        min-height: 44px;

        padding: 0 15px;

        border-radius: 10px;

        font-size: 0.78rem;
    }

    .jobs-search-button span {
        display: none;
    }


    /* Clear */

    .jobs-clear-link {
        display: inline-flex;

        align-items: center;

        justify-content: center;

        grid-column: 1 / -1;

        min-height: 30px;

        color: #6f1aa8;

        font-size: 0.72rem;

        font-weight: 700;

        text-decoration: none;
    }


    /* Content */

    .jobs-content {
        padding: 30px 0 100px;
    }


    /* Category */

    .jobs-section-heading {
        margin-bottom: 11px;
    }

    .jobs-section-heading h2,
    .jobs-results-heading h2 {
        font-size: 1.3rem;
    }

    .jobs-section-kicker {
        font-size: 0.65rem;
    }

    .jobs-category-scroll {
        margin-right: -12px;

        padding-right: 12px;
    }

    .jobs-category-pill {
        min-height: 39px;

        padding: 6px 10px;

        font-size: 0.74rem;
    }


    /* Results */

    .jobs-results-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;

        margin: 30px 0 15px;
    }

    .jobs-results-heading p {
        font-size: 0.76rem;
    }

    .jobs-user-actions {
        width: 100%;
    }

    .jobs-secondary-button {
        flex: 1;

        min-height: 38px;
    }


    /* Job grid */

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

        gap: 12px;
    }


    /* Job card */

    .job-card {
        padding: 15px;

        border-radius: 16px;
    }

    .job-company-row {
        padding-right: 58px;
    }

    .job-company-logo,
    .job-company-placeholder {
        width: 44px;

        height: 44px;

        border-radius: 10px;
    }

    .job-category {
        font-size: 0.62rem;
    }

    .job-company-name {
        font-size: 0.72rem;
    }

    .job-save-button {
        top: 14px;

        right: 14px;

        width: 30px;

        height: 30px;
    }

    .job-featured {
        top: 13px;

        right: 51px;

        padding: 4px 7px;

        font-size: 0.6rem;
    }

    .job-title {
        margin-top: 13px;

        font-size: 1rem;
    }

    .job-description {
        margin-bottom: 11px;

        font-size: 0.76rem;
    }

    .job-facts {
        gap: 7px;

        margin-bottom: 11px;
    }

    .job-facts span {
        font-size: 0.68rem;
    }

    .job-salary {
        margin-bottom: 11px;

        font-size: 0.9rem;
    }

    .job-skills {
        margin-bottom: 12px;
    }

    .job-skills span {
        padding: 4px 7px;

        font-size: 0.63rem;
    }

    .job-card-footer {
        align-items: center;

        padding-top: 11px;
    }

    .job-date {
        max-width: 58%;
    }

    .job-date span {
        font-size: 0.61rem;
    }

    .job-apply-button {
        min-width: 76px;

        min-height: 35px;

        padding: 0 10px;

        font-size: 0.72rem;
    }


    /* Empty */

    .jobs-empty-state {
        padding: 50px 18px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .jobs-hero-content h1 {
        font-size: 1.95rem;
    }

    .jobs-search-panel {
        padding: 12px;
    }

    .job-card {
        padding: 14px;
    }

    .job-facts span {
        font-size: 0.64rem;
    }

    .job-date span {
        font-size: 0.57rem;
    }

}

/* =========================================================
   MOBILE BOTTOM NAV SAFETY
========================================================= */

@media (max-width: 767.98px) {

    .jobs-page {
        padding-bottom: 75px;
    }

}