
/* Search bar CSS */
#job-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 75%;
    margin: 0 auto;
}

#job-search-input {
    width: 55%;
    display: block;
    margin: 0;
    padding: 0.9em;
}

#job-location-input {
    width: 55%;
    display: block;
    margin: 0;
    padding: 0.9em;
}
#career-heading {
    width: 100%;
    margin: 1em;
    font-size: 2em;
    text-align: center;
}
/* Job search filter styling */
.filter-container {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1em;
    margin-bottom: 0.5em;
    user-select: none;
}

.filter-title {
    cursor: pointer;
}

.filter-options {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    padding: 8px;
    z-index: 1000;
    width: 150px;
    border-radius: 4px;
}

.filter-options label {
    display: block;
    margin-bottom: 5px;
    cursor: pointer;
}

.filter-options input[type="checkbox"] {
    margin-right: 8px;
}

.toggle-container {
    display: flex;
    align-items: center;
    width: fit-content;
    color: gray;
    border: 1px solid gray;
    padding: 0.3em;
}


/* Job search results */
.header-container {
    display: flex;
    width: 100%;
    padding: .5em;
}

#job-results {
    display: block;
    background-color: #f7f7f7;
    margin-top: 3em;
    margin-bottom: 10em;
}

.job-table {
    margin: 0;
    margin-top: 1em;
}

/* Individual job */
.bh-job {
    display: flex;
    height: 5em;
    width: 100%;
}

.job-name {
    width: 25%;
    padding: .5em;
}

.job-location {
    width: 30%;
    padding: .5em;
}

.job-type {
    width: 25%;
    padding: .5em;
}

.job-date {
    width: 25%;
    padding: .5em;
}
/*
.et_pb_row:has(#job-results) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}*/

.hidden {
    display: none;
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    #career-heading {
        margin: 0;
    }

    #job-search-form {
        flex-direction: column;
    }

    #job-search-input {
        width: 100%;
    }

    #job-location-input {
        width: 100%;
    }

    .filter-container {
    }

    
    .filter-options {
        width: auto; /* Adjust to fit content */
        max-width: 90%; /* Ensure it doesn't exceed the viewport */
    }

    .toggle-container {
        width: auto;
        max-width: 120px;
    }
    
    

    .job-name {
        width: 50%;
    }
    .bh-table-name {
        width: 50%;
    }
    .bh-table-button {
        width: 50%;
    }
    .bh-table-location {
        display: none;
    }
    .bh-table-date {
        display: none;
    }
    .bh-table-hire {
        display: none;
    }

    .job-location {
        display: none;
    }

    .job-type {
        display: none;
    }

    .job-date {
        display: none;
    }
    
}