/* Work Sans Font  */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body {
    box-sizing: border-box;
}

body.no-scroll {
    overflow: hidden;
}

.job-search-seaction {
    position: relative;
}

@media screen and (max-width:1100px) {
    .job-search-seaction {
        position: inherit;
    }
}

/* vacancies */
.vacancies-row {
    display: flex;
}

/* Main content */
.search-positions-col {
    width: 100%;
    padding: 32px;
}

.title-and-search-box {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 32px;
}

.search-col-title {
    padding-top: 64px;
    color: #212a45;
    margin: 0;
    font-family: 'Work Sans';
    font-weight: 400;
    font-size: 36px;
    line-height: 40px;
    letter-spacing: 0;
    text-transform: none;
}

/* Job card */
.job-list {
    margin-top: 32px;
}

.job-card {
    background: #F2F2F2;
    border: 1px solid #212A45;
    border-radius: 8px;
    padding: 24px 32px;
    margin-bottom: 24px;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.job-card.expanded {
    background: #fff;
}

.job-title {
    font-family: 'Work Sans';
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0%;

}

.job-subtitle {
    color: #212A45;
    font-family: 'Work Sans';
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
}

.view-job {
    color: #E94A3F;
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
    font-family: 'Work Sans';
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;

}

.description {
    display: none;
    margin-top: 10px;

}

.description p {
    color: #212A45;
    font-family: 'Work Sans';
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0;
}

.description h3 {
    color: #212A45;
    font-family: 'Work Sans';
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0;
    margin: 20px 0 0 0;
}

.job-card.expanded .description {
    display: block;
}

.apply-job-btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-end;
}

.vacancy-ref {
    margin-left: auto;
    font-size: 14px;
    line-height: normal;
    font-weight: 400;
    color: #1e1e1e;
}

.job-btn.disabled {
    opacity: 0.5;
}

.job-btn {
    background-color: #E94A3F;
    border: 1px solid #E94A3F;
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Work Sans';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
}

.job-quick-details {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    width: 33.33%;
}

.job-quick-details svg {
    min-width: 18px;
    min-height: 18px;
}

.job-quick-details span {
    font-family: 'Work Sans';
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    color: #212A45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
}
/* 
.job-details-container {
    display: flex;
    gap: 32px;
} */

@media screen and (min-width:1600px) {
    .job-quick-details-box{
        width: 50%;
        max-width: 46rem !important;
    }
    .job-title-box{
        flex-grow: 1;
    }
    .job-card-header{
        gap: 32px;
    }
}

.job-quick-details-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    max-width: 364px;
}

.open-job-description-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.open-job-description-box svg {
    transition: transform 0.3s ease;
}

.job-card.expanded .open-job-description-box svg {
    transform: rotate(180deg);
}

.job-title-box {
    width: 24%;
}

@media screen and (max-width:768px) {
    .open-job-description-box {
        display: none;
    }

    .job-quick-details-box {
        width: 100%;
        max-width: 100%;
    }

    .job-card-header {
        flex-direction: column;
        gap: 32px;
    }

    .job-quick-details {
        width: 50%;
    }

    .job-quick-details-box {
        row-gap: 32px;
    }

    .job-title-box {
        width: 100%;
    }
}

/* sidebar */
.main-job-search {
    flex: 1;
}

.sidebar {
    position: relative;
    width: 396px;
    background: #ffffff;
    transition: transform 0.3s ease;
    left: 0;
    top: 0;
    z-index: 999;
    transform: translateX(0);
    border-right: 1px solid #212A45;
}

#close-sidebar:hover {
    background: transparent !important;
}

.sidebar.open {
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.open::-webkit-scrollbar {
    width: 5px;
}

.sidebar.open::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar.open::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
    border: 1px solid transparent;
    background-clip: content-box;
}


.sidebar-header {
    padding: 12px;
    border-bottom: 1px solid #c9c9c9;
}

.sidebar-header .profile {
    display: flex;
    flex-direction: row;
    gap: 16px;
    -webkit-box-align: center;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    display: none;
}

.sidebar.open .close-btn {
    top: 0px;
    right: 0px;
    display: block;
}

.sidebar-filter-apply-btn {
    background-color: #E94A3F;
    border: 1px solid #E94A3F;
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Work Sans';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    width: 100%;
    display: none;
}

#aside-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    height: 24px;
    padding: 0 0 0 10px;
}

.mobile-search {
    display: none;
}

.sidebar-image-container {
    position: relative;
    padding-right: 4px;
    line-height: 0;
}

@media screen and (min-width:1100px) {
    .job-search-seaction {
        display: flex;
    }
}

@media (max-width: 1100px) {

    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        height: 100vh;
    }


    .sidebar.closed {
        transform: translateX(-100%);
    }

    .sidebar-filter-apply-btn {
        display: block !important;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-job-search {
        margin-left: 0;
    }

    #aside-menu-toggle {
        display: block;
    }

    .close-btn {
        display: block;
    }

    .mobile-search,
    .list-header {
        display: block !important;
    }

    .sidebar-content {
        padding: 15px 24px 100px 24px !important;
    }

    .title-and-search-box {
        display: none !important;
    }

    .search-positions-col {
        padding-top: 0 !important;
    }

    /* sidebar responsive */
    .filter-results-col {
        gap: 16px !important;
    }

    .filter-title {
        font-size: 20px !important;
        line-height: 24px !important;
    }

    .filter-heading {
        font-size: 16px !important;
        line-height: 20px !important;
    }

    .date-input,
    .select-box {
        padding: 8px 16px !important;
    }

    .search-input {
        padding: 8px 16px !important;
    }

    .search-btn {
        padding: 8px 14px !important;
    }
}

@media screen and (max-width: 768px) {
    .sidebar {
        width: 90%;
    }

}

@media screen and (max-width:480px) {
    .vacancy-ref {
        padding-top: 10px;
        margin-left: 0 !important;
    }
}

/* filters */
.filter-results-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.divider {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #c9c9c9;
}

.filter-title {
    margin: 0px;
    font-family: "Work Sans";
    font-weight: 400;
    font-size: 34px;
    letter-spacing: 2.4px;
    line-height: 1.2;
    color: #212a45;
    text-transform: none;
}

.sidebar-content {
    padding: 96px 64px 64px 64px;
}

.filter-heading {
    color: #e94a3f;
    font-family: "Work Sans";
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0;
}

.label-input-group {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
}

.start-date-box {
    margin-bottom: 10px;
}

.date-input,
.select-box {
    padding: 12px 16px;
    color: #212A45;
    border: 1px solid #212A45;
    border-radius: 4px;
    font-family: 'Work Sans';
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0;
    width: 100%;
    box-sizing: border-box;
}

.select-wrapper {
    position: relative;
}

.select-box {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.43934 4.46863C1.02513 3.84379 1.97487 3.84379 2.56066 4.46863L6 8.13726L9.43934 4.46863C10.0251 3.84379 10.9749 3.84379 11.5607 4.46863C12.1464 5.09347 12.1464 6.10653 11.5607 6.73137L7.06066 11.5314C6.47487 12.1562 5.52513 12.1562 4.93934 11.5314L0.43934 6.73137C-0.146447 6.10653 -0.146447 5.09347 0.43934 4.46863Z' fill='%23212A45'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    cursor: pointer;
    width: 100%;
}

/* filter - checkbox */
#roles-checkboxes-container {
    padding-top: 15px;
}

#roles-checkboxes-container h3 {
    margin-bottom: 10px;
}

#roles-checkboxes {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

#roles-checkboxes div {
    flex: 0 0 auto;
    min-width: 50%;
    margin-bottom: 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

#roles-checkboxes div input[type="checkbox"] {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 1px solid #212a45;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 70%;
}

#roles-checkboxes div input[type="checkbox"]:checked {
    background-color: #e94a3f;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23212a45' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 16.2l-3.5-3.5L4 14.2l5 5 12-12-1.4-1.4z' fill='white' /></svg>");
}

/* search-input  */
.job-search-box {
    display: flex;
    gap: 0;
    width: 100%;
    /* max-width: 576px; */
    /* new - 120825 */
    max-width: 305px;
}

/* new - 120825 */
@media screen and (max-width:1100px) {
    .job-search-box {
        max-width: 556px !important;
    }
}

.search-input {
    padding: 16px 14px !important;
    font-size: 16px;
    font-weight: 400;
    color: #212A45 !important;
    border: 1px solid #0000003b !important;
    border-top-left-radius: 4px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 4px !important;
    width: 100%;
    /* new - 120825 */
    background-color: transparent !important;
}
.search-input:focus{
    border: 1px solid #e94a3f !important;
}
.search-btn.sidebar-search-btn {
    max-width: 50px;
}

.search-btn {
    padding: 16px 14px;
    color: #fff;
    background-color: #e94a3f;
    border: none;
    border-top-left-radius: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 0;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: 'Work Sans';
    font-weight: 400;
    /* font-size: 16px; */
    line-height: 24px;
    letter-spacing: 0;
    width: 100%;
    /* max-width: 118px; */
    margin-left: -2px;
    /* new - 120825 */
    font-size: 14px;
    max-width: 88px;
    text-transform: uppercase;
}

/* mobile header bar */
.list-header {
    display: none;
}

.top-menu-bar {
    background-color: #E94A3F;
    padding: 10px 24px;
    display: flex;
    gap: 24px;
}

.top-menu-bar h2 {
    font-family: 'Work Sans';
    font-weight: 400;
    font-size: 18px;
    line-height: 32px;
    letter-spacing: 0;
    margin: 0;
    color: #ffffff;
}


/* pagination */
.pagination {
    display: flex;
    gap: 10px;
}

.pagination button {
    font-family: 'Work Sans';
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 0;
    color: #212A45;
    background-color: transparent;
    border: none;
    padding: 3px 7px 2px 6px;
}

.pagination button.active {
    background-color: #E3E3E3;
    border: none;
    border-radius: 100px;
    width: 20px;
    height: 20px;
    text-align: center;
}

/* Response alert  */
#toast {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* applyed success  */
.applyed {
    background-color: #edf7ed;
    color: #1e4620;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
}

.applyed svg {
    width: 18px;
    height: 18px;
}

/* Spinner Style */
#job-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#job-loader .spinner {
    margin-top: 400px;
    width: 40px;
    height: 40px;
    border: 5px solid #ccc;
    border-top-color: #e94a3f;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media screen and (max-width:375px) {
    .top-menu-bar h2 {
        font-size: 16px;
    }

}