﻿/* =========================================================
   TopDriversJob
   ========================================================= */

.jobContainer {
    --job-border-color: #5F6266;
    --job-border-hover-color: #5F6266;
    --job-background-color: #232426;
    --job-background-hover-color: #47494C;
    --job-muted-color: #c3c6cc;
    --job-meta-color: #d2d5da;
    position: relative;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 45px;
    align-items: start;
}


/* =========================================================
   Wait cursor
   ========================================================= */

#waitCursor {
    position: absolute;
    inset: 0;
    z-index: 99;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    background-color: rgba(1, 3, 20, 0.78);
    backdrop-filter: blur(2px);
}

    #waitCursor span {
        color: var(--LinkColor);
        font-size: 42px;
    }


/* =========================================================
   Filter
   ========================================================= */

.jobFilterContainer {
    position: sticky;
    top: 145px;
    width: 100%;
    background-color: #232426;
    border: 1px solid #5F6266;
    border-radius: 10px;
}

.jobFilterContent {
    padding: 25px;
}

.jobFilterTitle {
    display: block;
    margin-bottom: 20px;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    text-transform: uppercase;
}

.jobFilterContainer label {
    display: block;
    margin-bottom: 7px;
    color: #c5c7ce;
    font-size: 15px;
    font-weight: 400;
}

#jobFilterSearchContainer,
#jobFilterJobCategoryContainer,
#jobFilterJobTypeContainer {
    margin-bottom: 17px;
}

.jobFilterContainer .form-control {
    margin: 0;
}

#jobFilterSearchButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 180px;
    margin-top: 8px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
}


#clearFilterLink {
    display: inline-block;
    margin-top: 14px;
    color: var(--LinkColor);
    font-size: 15px;
    text-decoration: none;
}

    #clearFilterLink:hover {
        color: var(--LinkHoverColor);
        text-decoration: underline;
    }

#expandFilterButton {
    display: none;
}


/* =========================================================
   Job list
   ========================================================= */

.jobListContainer {
    min-width: 0;
}

#jobList {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* =========================================================
   Job card
   ========================================================= */

.jobObject {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: var(--job-background-color);
    border: 1px solid var(--job-border-color);
    border-radius: 10px;
    transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

    .jobObject::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 4px;
        background-color: var(--LinkColor);
        opacity: 0;
        transition: opacity 0.22s ease;
    }

    .jobObject:hover::before {
        opacity: 1;
    }

    .jobObject:hover {
        background-color: var(--job-background-hover-color);
        border-color: var(--job-border-hover-color);
        transform: translateY(-2px);
    }

.jobObjectLink > a,
.jobObjectLink > a:visited {
    display: block;
    padding: 24px 26px 23px 28px;
    color: inherit;
    text-decoration: none;
}

    .jobObjectLink > a:hover {
        color: inherit;
        text-decoration: none;
    }


/* =========================================================
   Job title
   ========================================================= */

.jobObjectTitle {
    margin: 0 0 10px 0;
}

    .jobObjectTitle h2 {
        margin: 0;
        padding: 0;
        color: #fff;
        font-size: 22px;
        font-weight: 700;
        line-height: 1.25;
        text-transform: none;
        transition: color 0.2s ease;
    }

.jobObject:hover .jobObjectTitle h2 {
    color: var(--LinkColor);
}


/* =========================================================
   Job badges
   ========================================================= */

.jobObjectTypeAndCategoryInfo {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 13px;
}

.jobObjectType,
.jobObjectCategory {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 20px;
}

.jobObjectType {
    color: #62cf4a;
    background-color: rgba(67, 176, 42, 0.13);
    border: 1px solid rgba(67, 176, 42, 0.4);
}

.jobObjectCategory {
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}


/* =========================================================
   Description
   ========================================================= */

.jobObjectDescription {
    max-width: 1050px;
    margin-top: 0;
    color: #e5e5e5;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.55;
}


/* =========================================================
   Additional information
   ========================================================= */

.jobObjectAdditionalInfoContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 18px;
    color: var(--job-meta-color);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.45;
}

.jobObjectAdditionalInfoPart1,
.jobObjectAdditionalInfoPart2 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
}

.jobObjectDate,
.jobObjectCity,
.jobObjectPensum {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: none;
}

    .jobObjectDate::before,
    .jobObjectCity::before,
    .jobObjectPensum::before {
        margin-right: 7px;
        color: var(--LinkColor);
        font-family: "Font Awesome 6 Pro";
        font-weight: 300;
    }

    .jobObjectDate::before {
        content: "\f073";
    }

    .jobObjectCity::before {
        content: "\f3c5";
    }

    .jobObjectPensum::before {
        content: "\f017";
    }


/* =========================================================
   Count
   ========================================================= */

#jobCountDisplay {
    margin: 22px 0 0 0;
    color: var(--job-muted-color);
    font-size: 15px;
}


/* =========================================================
   Paging buttons
   ========================================================= */

#loadMoreJobs,
#loadAllJobs {
    margin-top: 20px;
    margin-right: 10px;
}

    #loadMoreJobs:hover,
    #loadAllJobs:hover {
        text-decoration: none;
    }

/* Full-width job list without filters */
.jobContainerWithoutFilter {
    grid-template-columns: minmax(0, 1fr);
}


/* =========================================================
   <= 1200px
   ========================================================= */

@media screen and (max-width: 1199.9px) {

    .jobContainer {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 25px;
    }

    .jobFilterContent {
        padding: 20px;
    }

    .jobObjectLink > a,
    .jobObjectLink > a:visited {
        padding: 21px 22px 20px 24px;
    }

    .jobObjectTitle h2 {
        font-size: 20px;
    }

    .jobObjectDescription {
        font-size: 16px;
    }
}


/* =========================================================
   <= 1024px
   ========================================================= */

@media screen and (max-width: 1023.9px) {

    .jobContainer {
        display: block;
    }

    .jobFilterContainer {
        position: relative;
        top: auto;
        margin-bottom: 30px;
    }

    .jobFilterContent {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
        padding: 20px;
    }

    .jobFilterTitle {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    #jobFilterSearchContainer,
    #jobFilterJobCategoryContainer,
    #jobFilterJobTypeContainer {
        margin-bottom: 0;
    }

    #jobFilterSearchButton {
        align-self: end;
        margin: 0;
    }

    #clearFilterLink {
        align-self: center;
        margin-top: 0;
    }

    .jobObjectAdditionalInfoContainer {
        display: block;
    }

    .jobObjectAdditionalInfoPart2 {
        margin-top: 7px;
    }
}


/* =========================================================
   <= 768px
   ========================================================= */

@media screen and (max-width: 767.9px) {

    .jobFilterContainer {
        border-radius: 7px;
    }

    .jobFilterContent {
        display: block;
        padding: 20px;
    }

    .jobFilterTitle {
        margin-bottom: 18px;
    }

    #jobFilterSearchContainer,
    #jobFilterJobCategoryContainer,
    #jobFilterJobTypeContainer {
        display: block;
        margin-bottom: 15px;
    }

    #jobFilterSearchButton {
        margin-top: 5px;
    }

    #clearFilterLink {
        margin-top: 13px;
    }

    .jobObjectLink > a,
    .jobObjectLink > a:visited {
        padding: 20px;
    }

    .jobObject::before {
        width: 3px;
    }

    .jobObjectTitle h2 {
        font-size: 18px;
    }

    .jobObjectDescription {
        font-size: 15px;
        line-height: 1.45;
    }

    .jobObjectAdditionalInfoContainer {
        margin-top: 14px;
        font-size: 14px;
    }

    .jobObjectAdditionalInfoPart1,
    .jobObjectAdditionalInfoPart2 {
        display: block;
    }

    .jobObjectDate,
    .jobObjectCity,
    .jobObjectPensum {
        display: flex;
        margin-bottom: 5px;
    }

    .jobObjectTypeAndCategoryInfo {
        margin-bottom: 11px;
    }

    .jobObjectType,
    .jobObjectCategory {
        font-size: 12px;
    }

    #loadMoreJobs,
    #loadAllJobs {
        display: block;
        width: fit-content;
        margin-top: 15px;
    }
}


/* =========================================================
   <= 500px
   ========================================================= */

@media screen and (max-width: 500px) {

    .jobFilterContent {
        padding: 17px;
    }

    .jobFilterTitle {
        font-size: 19px;
    }

    .jobObjectLink > a,
    .jobObjectLink > a:visited {
        padding: 17px;
    }

    .jobObjectTitle h2 {
        font-size: 17px;
    }

    .jobObjectDescription {
        font-size: 15px;
    }
}
