/* General Filter Styling */
#ats-job-filter-form {
    background: #ddd;
    padding: 30px 30px 20px 30px;
    border-radius: 0px 0px 15px 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

/* Form Inputs & Selects */
#ats-job-filter-form input, 
#ats-job-filter-form select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    flex: 0 1 auto; /* Prevent stretching */
    /* min-width: 150px; */
    height: 50px;
}

#job-listings {
    min-height: 100px !important; /* Force height so Masonry does not collapse */
    margin-bottom: 30px;
}





#specialties-container {
    padding-right: 0;
    z-index: 10;
    flex: 2;
    position: relative;
}

#locations-container {
    padding-right: 0;
    z-index: 9;
}



.no-matches-found, .loading-jobs {
    margin-left: 17px;
}







/* Profession Dropdown */
/* Selected Professions Display */
#selected-professions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Profession Input Field */
#specialties-input,
#locations-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

/* Common Text Styles */
.specialties-text,
.locations-text {
    /* font-family: Montserrat; */
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.65;
    text-transform: none;
    color: #5c5c5c;
}

/* Common Arrow Styles */
.specialties-arrow,
.locations-arrow {
    color: #666;
    transition: transform 0.3s ease;
    font-size: 14px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
}

.specialties-arrow.active i,
.locations-arrow.active i {
    transform: rotate(180deg);
}

/* Selected Tags */
.selected-tag {
    background-color: #0d3b4c;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: default;
}

/* Ensure the dropdown container has a fixed height */
#specialties-dropdown,
#locations-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 15px;
    width: calc(100% - 15px);
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    min-width: 250px;
    overflow: hidden;
    flex-direction: column;
    margin: 0;
    border: 1px solid #ddd;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

#specialties-dropdown.show,
#locations-dropdown.show {
    display: block;
}

/* Main Category Styling */
.specialty-category {
    /* font-family: Montserrat; */
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.65;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    width: 100%; /* Ensure full width */
}

.specialty-category i {
    margin-left: auto; /* Push icon to the right */
    font-size: 14px; /* Make icon slightly smaller than text */
    transition: transform 0.3s ease; /* Add smooth transition */
    transform: translateX(-5px); /* Start 5px back */
}

.specialty-category:hover {
    background-color: #f7f7f7;
    color: var(--epic-job-board-primary, #0d3b4c);
}

.specialty-category:hover i {
    transform: translateX(0); /* Move to original position on hover */
}

/* Subcategory Styling */
#specialties-sub {
    display: none;
    width: 100%; /* Ensure full width */
}

#specialties-sub.show {
    display: block;
}


/* Reset back button state when dropdown is closed */
#specialties-dropdown:not(.show) .back-button {
    color: #000;
}

#specialties-dropdown:not(.show) .back-button:hover {
    color: var(--epic-job-board-primary, #0d3b4c);
}

/* Make Only the Checkbox List Scrollable */
#specialties-sub-list {
    flex-grow: 1;
    overflow-y: auto;
    height: 350px;
    width: 100%;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Unified Dropdown and Checkbox Styles */
.specialty-checkbox,
.location-checkbox,
.option-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: var(--epic-job-board-primary, #0d3b4c);
    transition: all 0.2s ease;
    pointer-events: none;
    border: 2px solid var(--epic-job-board-primary, #0d3b4c);
    border-radius: 3px;
    z-index: 0;
}

.specialty-checkbox i,
.location-checkbox i,
.option-checkbox i {
    font-size: 25px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When checkbox is checked, show filled square */
#specialties-sub-list label.specialty-option input[type="checkbox"]:checked + .specialty-checkbox i,
.location-option input[type="checkbox"]:checked ~ .location-checkbox i,
.multiselect-option input[type="checkbox"]:checked ~ .option-checkbox i {
    color: var(--epic-job-board-primary, #0d3b4c);
    content: "\f14a"; /* Font Awesome check-square icon */
}

/* Hover effect */
#specialties-sub-list label.specialty-option:hover .specialty-checkbox i,
.location-option:hover .location-checkbox i,
.multiselect-option:hover .option-checkbox i {
    color: var(--epic-job-board-primary, #0d3b4c);
}

/* Hide the actual checkbox input */
#specialties-sub-list label.specialty-option input[type="checkbox"],
.location-option input[type="checkbox"],
.multiselect-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

/* Unified Option Styles */
.specialty-option,
.location-option,
.multiselect-option {
    display: flex;
    align-items: center;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin: 0;
    /* justify-content: space-between; */
}

.specialty-option:hover,
.location-option:hover,
.multiselect-option:hover {
    background-color: #f7f7f7;
    color: var(--epic-job-board-primary, #0d3b4c);
}

/* Unified Text Styles */
.specialty-text,
.location-text,
.option-text {
    flex: 1;
    margin-right: 10px;
    /* font-family: Montserrat; */
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.65;
}



/* Shift Type Dropdown */
#shift-type {
    flex: 1;
    min-width: 200px;
}

/* Filter Button */
#ats-filter-button {
    padding: 18px 25px;
    margin-left: auto; /* Push to the right */
    width: auto; /* Adjust width to fit text */
    min-width: unset; /* Remove any default min width */
    margin-top: 0 !important; /* Remove negative margin */
    margin-bottom: 0;
}

/* Clear Button */
#clear-specialties {
    background: transparent;
    color: red;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

#clear-specialties:hover {
    text-decoration: underline;
}

/* Job Results */
#job-results {
    margin-top: 20px;
}

.job-result {
    background: #f7f7f7;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.job-result a {
    text-decoration: none;
    font-size: 16px;
    color: #2d594d;
    font-weight: bold;
}

.job-result a:hover {
    text-decoration: underline;
}

/* Job Card Styles */
.job-card {
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}



.disable-load-more {
    display: none !important;
}

#selected-filters-container {
    margin-top: -30px;
    width: 100%;
    display: none;
    flex-wrap: nowrap;
    gap: 20px;
    border: 1px solid #ddd;
    background: #DDDDDD;
    padding: 30px 15px 15px 15px;
    border-radius: 0px 0px 25px 25px;
    color: #000;
}


/* Unified container styles */
.selected-professions-container,
.selected-locations-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 50px;
    border-radius: 5px;
    margin: 10px -15px 0 0px;
    border: 2px solid #efefef;
    padding: 10px 10px;
}

/* Unified tag styles */
.selected-profession-tag,
.selected-location-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--epic-job-board-tag, #0d3b4c);
    color: var(--epic-job-board-text, #ffffff);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    cursor: default;
    white-space: nowrap;
    width: fit-content;
    text-wrap: auto;
}




/* Unified header styles */
.selected-professions-container-header,
.selected-locations-container-header {
    /* font-family: Montserrat; */
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 1.65;
    padding: 0px 2px;
    margin-bottom: 5px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Unified clear all link styles */
.clear-all-professions,
.clear-all-locations,
.clear-all-advanced-filters {
    color: var(--epic-job-board-primary, #0d3b4c);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
    float: right;
}

.clear-all-professions:hover,
.clear-all-locations:hover,
.clear-all-advanced-filters:hover {
    color: var(--epic-job-board-primary, #0d3b4c);
    text-decoration: underline;
}



/* Main Selected Professions  */
#selected-professions-container-duplicate {
    margin-top: -30px;
    width: 100%;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    border: 1px solid #ddd;
    background: #DDDDDD;
    padding: 30px 15px 15px 15px;
    border-radius: 0px 0px 25px 25px;
    color: #000;
}

/* Style for Selected Professions (Tags) */
.selected-profession {
    display: inline-flex;
    align-items: center;
    background: #004b64; /* Dark blue */
    color: white;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: bold;
}

/* Remove Button for Tags */
.selected-profession::after {
    content: " ✖";
    cursor: pointer;
    padding-left: 8px;
}


/* Disclaimer: not needed to show 'powered by Google' if also a Google Map is shown */
.pac-container:after {
 

    background-image: none !important;
    height: 0px;
}


.tax-job_categories .vlt-single-post__header--style-1,
.tax-job_categories .vlt-single-post__header--style-2,
.page-template-page-job-search .vlt-single-post__header--style-1,
.page-template-page-job-search .vlt-single-post__header--style-2 {
    padding-bottom: 30px;
    margin-left: 17px;
}



.single-ats_job .job-content #job-description-content {
    padding-bottom: 30px;
}
.single-ats_job .job-content #job-description-content p {
    margin: 30px 0px 0px 0px;
}
.single-ats_job .job-content #job-description-content p:first-of-type {
    margin-top: 0; /* Removes any top margin from the first paragraph */
}
.single-ats_job .job-content #job-description-content ul {
    list-style-position: outside; /* Ensures bullets stay outside */
    padding-left: 20px; /* Adjust to control how far bullets are from text */
}
.single-ats_job .job-content #job-description-content ul li {
    text-indent: 0px;
    padding-left: 5px;
    margin-bottom: 5px;
}



/* Gravity Form Styles */

.partial_entry_warning {
    display: none !important;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="password"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="search"],
.gform_wrapper select,
.gform_wrapper textarea {
    height: 50px; /* Adjust the height as needed */
    padding: 10px;
    /* font-family: Montserrat; */
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.65;
    text-transform: none;
    color: #5c5c5c;
    border-radius: 10px !important;
    padding: 30px 20px !important;
    border-color: #CBC9CE;
}


body .gform_wrapper select {
    height: 62px;
    padding: 17px 20px !important;
    font-size: 16px;
    line-height: 1.65;
    color: #5c5c5c;
    border-radius: 10px !important;
    border-color: #CBC9CE;
}


/* .gform_wrapper ul.gfield_checkbox {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
} */

/* Ensure checkboxes are displayed in a grid layout */
.gform_wrapper .gfield_checkbox {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjusts dynamically */
    gap: 10px; /* Adds spacing between checkboxes */
}

/* Ensure checkboxes align correctly */
.gform_wrapper .gfield_checkbox .gchoice {
    display: flex;
    align-items: center;
}

/* Space between the checkbox and its label */
.gform_wrapper .gfield_checkbox .gchoice label {
    margin-left: 8px;
}

.gfield.gfield_error input,
.gfield.gfield_error select,
.gfield.gfield_error textarea {
    border: 2px solid red !important;
    background-color: #ffe6e6 !important;
    transition: border 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* Remove error styles when typing and restore original border */
.gfield.gfield_error input:focus,
.gfield.gfield_error select:focus,
.gfield.gfield_error textarea:focus {
    border: 1px solid #CBC9CE !important; /* Reset to original border color */
    background-color: #fff !important; /* Reset to white */
}

/* Make error message text bold and red */
.validation_message {
    color: red !important;
    font-weight: bold !important;
}

/* Make error border also apply to email confirmation fields */
.gfield.gfield_error input[type="email"] {
    border: 2px solid red !important;
}

/* Adjust for larger screens */
@media (min-width: 1024px) {
    .gform_wrapper .gfield_checkbox {
        grid-template-columns: repeat(3, 1fr); /* Forces 3 columns */
    }
}

/* Adjust for tablets */
@media (max-width: 1023px) {
    .gform_wrapper .gfield_checkbox {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

/* Adjust for mobile */
@media (max-width: 640px) {
    .gform_wrapper .gfield_checkbox {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}

.gform_wrapper .gf_progressbar_wrapper {
    padding-bottom: 40px !important;
}

/* Apply styles to all input labels in Gravity Forms */
.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label {
    font-size: 1.1rem !important;  /* Matches .875rem */
    font-weight: 600 !important;      /* Bold text */
    line-height: 1.25rem !important;  /* Consistent spacing */
    display: block;        /* Ensures labels are properly spaced */
    margin-bottom: 10px !important;    /* Adds spacing below labels */
}

/* Style required field indicator */
.gform_wrapper .gfield_required {
    font-size: 0.75rem !important; /* Smaller font for required text */
    font-weight: 500 !important;
    color: #d9534f; /* Red color for required indicator */
}


/* Target sublabels inside Gravity Forms fieldsets */
.gform-field-label--type-sub {
    font-size: 0.75rem !important;  /* Smaller font size for sublabels */
    font-weight: 400 !important;    /* Reduce font weight */
    line-height: 1.1rem !important; /* Adjust line height */
    color: #666;         /* Optional: Make it a softer color */
    margin-top: 2px; /* Adds space between input and sublabel */
    display: block;  /* Ensures sublabel stays above input */
}


/* Hide all but the first Gravity Forms AJAX spinner */
[data-js-spinner-id="gform-ajax-spinner"]:not(:first-of-type) {
    display: none !important;
}


.gform-theme--framework .gf_progressbar .percentbar_blue {
    background-color: var(--epic-job-board-primary, #0d3b4c) !important;
}

.gform_wrapper input:focus,
.gform_wrapper input:focus-visible,
.gform_wrapper textarea:focus,
.gform_wrapper textarea:focus-visible,
.gform_wrapper select:focus,
.gform_wrapper select:focus-visible {
    border-color: #007481 !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(0, 116, 129, 0.5) !important; /* 50% opacity of P1 */
}

.gform-page-footer .vlt-btn,
.gform-footer .vlt-btn {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 19px 30px;
    cursor: pointer;
    -webkit-transition-timing-function: ease-in-out;
    transition-timing-function: ease-in-out;
    -webkit-transition-duration: .3s;
    transition-duration: .3s;
    -webkit-transition-property: all;
    transition-property: all;
    text-align: center;
    text-decoration: none;
    outline: 0;
    color: #fff;
    background-color: var(--epic-job-board-primary, #0d3b4c);
    border-radius: 100px !important;
    overflow: hidden;
}

.gform-page-footer .vlt-btn--effect:hover::after,
.gform-footer .vlt-btn--effect:hover::after {
    height: 100%;
}

.gform-page-footer .vlt-btn--effect::after,
.gform-footer .vlt-btn--effect::after {
    position: absolute;
    z-index: 0;
    left: 0;
    width: 100%;
    height: 0;
    content: '';
    -webkit-transition-timing-function: ease-in-out;
    transition-timing-function: ease-in-out;
    -webkit-transition-duration: .3s;
    transition-duration: .3s;
    -webkit-transition-property: all;
    transition-property: all;
}

.gform-page-footer .vlt-btn--eighth,
.gform-footer .vlt-btn--eighth {
    color: #fff;
    background-color: transparent !important;
    -webkit-box-shadow: inset 0 0 0 2px var(--epic-job-board-primary, #0d3b4c) !important;
    box-shadow: inset 0 0 0 2px var(--epic-job-board-primary, #0d3b4c) !important;
}

.gform_wrapper .gform_page_footer,
.gform_wrapper .gform_footer {
    display: flex;
    justify-content: flex-start; /* Aligns buttons to the right */
    gap: 10px; /* Adds space between buttons */
}

.gform_wrapper #gform_36 .gform_page_footer {
    justify-content: flex-end; /* Aligns buttons to the right */
}

.gform_ajax_spinner {
    display: none !important;
}


.gform_wrapper select {
    color: #000 !important;
    background-color: #fff !important;
}

.gform_wrapper option {
    color: #000 !important;
}




.no-more-jobs-message {
    margin-left: 30px;
    color: #989898;
}

.total-results-count {
    text-align: center;
    padding: 15px 0;
    font-weight: 500;
    color: #666;
}

/* Loading Animation */
.loading-jobs {
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
    margin-left: 30px;
    color: #989898;
}

.loading-jobs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Unified Scrollbar Styles for All Dropdowns and Lists */
#specialties-dropdown::-webkit-scrollbar,
#locations-dropdown::-webkit-scrollbar,
.multiselect-options::-webkit-scrollbar,
.locations-list::-webkit-scrollbar,
#specialties-sub-list::-webkit-scrollbar,
.states-section::-webkit-scrollbar,
.cities-section::-webkit-scrollbar {
    width: 8px;
}

#specialties-dropdown::-webkit-scrollbar-track,
#locations-dropdown::-webkit-scrollbar-track,
.multiselect-options::-webkit-scrollbar-track,
.locations-list::-webkit-scrollbar-track,
#specialties-sub-list::-webkit-scrollbar-track,
.states-section::-webkit-scrollbar-track,
.cities-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#specialties-dropdown::-webkit-scrollbar-thumb,
#locations-dropdown::-webkit-scrollbar-thumb,
.multiselect-options::-webkit-scrollbar-thumb,
.locations-list::-webkit-scrollbar-thumb,
#specialties-sub-list::-webkit-scrollbar-thumb,
.states-section::-webkit-scrollbar-thumb,
.cities-section::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#specialties-dropdown::-webkit-scrollbar-thumb:hover,
#locations-dropdown::-webkit-scrollbar-thumb:hover,
.multiselect-options::-webkit-scrollbar-thumb:hover,
.locations-list::-webkit-scrollbar-thumb:hover,
#specialties-sub-list::-webkit-scrollbar-thumb:hover,
.states-section::-webkit-scrollbar-thumb:hover,
.cities-section::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* Locations Dropdown Styles */
.locations-container {
    position: relative;
}

.locations-selector {
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.locations-selector.active {
    border-color: var(--epic-job-board-primary, #0d3b4c);
}

.locations-arrow i {
    transition: transform 0.3s ease;
}

.locations-arrow.active i {
    transform: rotate(180deg);
}

.locations-dropdown {
    position: absolute;
    top: 100%;
    left: 15px;
    width: calc(100% - 15px);
    background: white;
    border-radius: 0px 0px 10px 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    min-width: 250px;
    overflow: hidden;
    flex-direction: column;
    margin-top: 5px;
    border: 1px solid #ddd;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.locations-dropdown.show {
    display: block;
}

/* Location Search Input Styles */
.location-search-container {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.location-search-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    /* font-family: Montserrat; */
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.65;
}

.location-search-input:focus {
    border-color: var(--epic-job-board-primary, #0d3b4c);
}

/* Location Option Styles - Matching Specialties */

.location-text {
    flex: 1;
    margin-right: 10px;
    /* font-family: Montserrat; */
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.65;
}



.location-checkbox i {
    font-size: 25px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When checkbox is checked, show filled square */
.location-option input[type="checkbox"]:checked ~ .location-checkbox i.fa-check-square {
    color: var(--epic-job-board-primary, #0d3b4c);
}

/* Hover effect */
.location-option:hover .location-checkbox i {
    color: var(--epic-job-board-primary, #0d3b4c);
}

/* Hide the actual checkbox input */
.location-checkbox-input {
    display: none !important;
}

/* Sections in dropdown */
.states-section,
.cities-section {
    max-height: 350px;
    overflow-y: auto;
    width: 100%;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    display: none; /* Hide by default */
    padding: 8px 0;
    border-top: 1px solid #eee;
}

/* Show sections when they have visible children */
.states-section:not(:empty),
.cities-section:not(:empty) {
    display: block;
}

/* Ensure smooth scrolling */
.states-section::-webkit-scrollbar,
.cities-section::-webkit-scrollbar {
    width: 8px;
}

.states-section::-webkit-scrollbar-track,
.cities-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.states-section::-webkit-scrollbar-thumb,
.cities-section::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.states-section::-webkit-scrollbar-thumb:hover,
.cities-section::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.selected-location-tag .fa-times {
    margin-left: 6px;
    cursor: pointer;
    color: #666;
}

.selected-location-tag .fa-times:hover {
    color: #dc3545;
}




/* Advanced Filters Styles */
.advanced-filters-section {
    margin-top: 10px;
}

.advanced-filters-header {
    cursor: pointer;
    padding: 0px;
}

.advanced-filters-toggle {
    font-weight: 600;
    color: #000000;
    font-size: 14px;
    margin-left: 10px;
}

.advanced-filters-toggle i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.advanced-filters-toggle.active i {
    transform: rotate(180deg);
}

.advanced-filters-content {
    padding: 0px;
}

.clear-all-advanced-filters-container {
    margin-top: -10px;
    margin-right: 5px;
}


.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: flex;
    font-weight: 600;
    margin-bottom: 0px;
    color: #333;
    font-size: 16px;
    /* font-family: Montserrat; */    
}

.filter-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0px;
    font-size: 14px;
    margin-top: 30px;
    margin-left: 5px;
}

.filter-options {
    position: relative;
    z-index: 2;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding-top: 0px;
    margin-top: 4px;
}

.filter-option {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    position: relative;
    width: 100%;
}

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

.filter-option span {
    color: #666;
}

.filter-option:hover span {
    color: #333;
}

/* Selected Filters Display */
.selected-filters-container {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.selected-professions-container,
.selected-locations-container {
    min-height: 30px;
}

.selected-professions-container-header,
.selected-locations-container-header {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

/* Advanced Filter Dropdowns */
.filter-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    /* font-family: Montserrat; */
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.65;
    color: #5c5c5c;
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: var(--epic-job-board-primary, #0d3b4c);
}

.filter-select:focus {
    outline: none;
    border-color: var(--epic-job-board-primary, #0d3b4c);
    box-shadow: 0 0 0 2px rgba(49, 114, 127, 0.1);
}


.filter-select option {
    padding: 12px;
    font-size: 16px;
    color: #5c5c5c;
}



/* Combined Locations List Styles */
.locations-list {
    max-height: 350px;
    overflow-y: auto;
    width: 100%;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Ensure smooth scrolling for the locations list */
.locations-list::-webkit-scrollbar {
    width: 8px;
}

.locations-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.locations-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.locations-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Compact States Option - Keep it sticky at the top */
.compact-states-option {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-bottom: 2px solid #ddd !important;
}


/* Infinite Loading Styles */
.infinite-load-container {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.loading-spinner {
    display: none;
    margin: 20px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--epic-job-board-primary, #0d3b4c);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.load-more-available {
    display: none;
}

.load-more-available.visible {
    display: block;
}

.no-more-jobs {
    display: none;
    color: #666;
    font-style: italic;
    margin: 20px 0;
}

.no-more-jobs.visible {
    display: block;
}

/* Job Board Sidebars */
.epic-job-board-sidebar {
    padding: 0px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.epic-job-board-sidebar .widget {
    margin-bottom: 30px;
}

.epic-job-board-sidebar .widget:last-child {
    margin-bottom: 0;
}

.epic-job-board-sidebar .widget-title {
    /* font-family: Montserrat; */
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: none;
    /* margin-bottom: 15px; */
    margin: 0 0 30px 0;
    padding: 0;
    color: var(--epic-job-board-primary, #0d3b4c);
}

.epic-job-board-sidebar .job-sidebar-empty {
    padding: 15px;
    background: #fff;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
    text-align: center;
    color: #6c757d;
}



/* Widget Specific Styles */
.epic-job-board-sidebar .widget_search .search-form {
    position: relative;
}

.epic-job-board-sidebar .widget_search .search-field {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.epic-job-board-sidebar .widget_search .search-submit {
    position: absolute;
    right: 0;
    top: 0;
    padding: 10px 15px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.epic-job-board-sidebar .widget_search .search-submit:hover {
    background: #0056b3;
}

/* Job Filter Widget Styles */
.epic-job-board-sidebar .widget_job_filter {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.epic-job-board-sidebar .widget_job_filter .filter-group {
    margin-bottom: 15px;
}

.epic-job-board-sidebar .widget_job_filter label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.epic-job-board-sidebar .widget_job_filter select,
.epic-job-board-sidebar .widget_job_filter input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.epic-job-board-sidebar .widget_job_filter .filter-submit {
    width: 100%;
    padding: 10px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 10px;
}

.epic-job-board-sidebar .widget_job_filter .filter-submit:hover {
    background: #218838;
}

/* Multi-select Dropdown Styles */
.multiselect-dropdown {
    position: relative;
    width: 100%;
}

.multiselect-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background-color: #fff;
    font-size: 16px;
    /* font-family: Montserrat; */
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.65;
    color: #5c5c5c;
    transition: all 0.2s ease;
}

.multiselect-selector:hover {
    border-color: var(--epic-job-board-primary, #0d3b4c);
}

.multiselect-text {
    flex: 1;
    margin-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multiselect-arrow {
    color: #999;
    transition: transform 0.2s ease;
}

.multiselect-arrow i {
    transition: transform 0.2s ease;
}

.multiselect-arrow i.fa-chevron-up {
    transform: rotate(180deg);
}

.multiselect-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.multiselect-options.show {
    display: block;
}

.option-text {
    flex: 1;
    margin-right: 10px;
    /* font-family: Montserrat; */
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.65;
}


.option-checkbox i {
    font-size: 25px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When checkbox is checked, show filled square */
.multiselect-option input[type="checkbox"]:checked ~ .option-checkbox i {
    color: var(--epic-job-board-primary, #0d3b4c);
    content: "\f14a"; /* Font Awesome check-square icon */
}

/* Hover effect */
.multiselect-option:hover .option-checkbox i {
    color: var(--epic-job-board-primary, #0d3b4c);
}

/* Hide the actual checkbox input */
.multiselect-option input[type="checkbox"] {
    display: none !important;
}

/* Ensure smooth scrolling for the options list */
.multiselect-options::-webkit-scrollbar {
    width: 8px;
}

.multiselect-options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.multiselect-options::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.multiselect-options::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Ensure the dropdown appears above other elements */
.filter-group {
    position: relative;
    z-index: 8;
}

.filter-options {
    position: relative;
    z-index: 9;
}

.multiselect-dropdown {
    position: relative;
    z-index: 10;
}

.multiselect-options {
    position: absolute;
    z-index: 9999;
}









/* Back Button */
.back-button {
    display: block;
    padding: 14px 10px 14px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background-color: #fff;
    border: none;
    border-bottom: 1px solid #ddd;
    position: sticky;
    z-index: 2;
    width: 100%;
    text-align: left;
    margin: 0;
    color: #000;
    transition: color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.back-button:hover {
    color: var(--epic-job-board-primary, #0d3b4c);
}

.back-button i {
    margin-right: 5px;
}






/* tag remove styles */
.remove-profession,
.remove-location {
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    color: var(--epic-job-board-text, #ffffff);
    background: color-mix(in srgb, var(--epic-job-board-tag, #0d3b4c) 65%, black);
    margin-right: -10px;
    padding: 3px 10px;
    margin-top: -5px;
    margin-bottom: -5px;
    border-radius: 0px 5px 5px 0px;
    opacity: 0.8;
    height: calc(100% + 10px);
}

.remove-profession:hover,
.remove-location:hover {
    opacity: 1;
    color: #ff4d4d;
}




.filtered-jobs-title-header {
    padding-bottom: 5px !important;
    margin-top: 30px !important;
}

span.filtered-jobs-title {
    font-size: 20px;
}

.filtered-jobs-details-container {
    display: none;
}

.filtered-jobs-details {    
    color: #989898;
    margin-left: 32px;
    margin-bottom: 30px;
    margin-top: -10px;
    font-size: 16px;
}





/* Location Filter */
/* Location Input - Fixed Width Based on Content */
input#location {
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    display: inline-block; /* Ensures it behaves as a natural text field */
}










/* Responsive styles */
@media (max-width: 768px) {

    .job-card {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 15px;
    }
    
    .job-card article {
        width: 100%;
    }
    
    .job-loop-single-detail {
        flex-direction: column;
    }
    
    .job-details-label, 
    .job-details-content {
        width: 100%;
        text-align: left;
    }

    .job-card .job-details-label {
        margin-top: 0px !important;
    }
    
    .job-details-content {
        margin-top: 15px;
    }

    /* Fix for job-listings not expanding to fit contents on mobile */
    #job-listings {
        width: 100% !important;
        overflow: visible !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        margin-right: 0px;
        margin-left: 0px;
    }
    
    /* Ensure job cards take full width on mobile */
    #job-listings .job-card {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .selected-professions-container,
    .selected-locations-container {
        width: 100%;
    }
    
    #selected-filters-container {
        flex-direction: column;
        gap: 10px;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #ats-job-filter-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        border-radius: 0px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .ats-job-filter-wrapper {
        width: 100vw;
        padding-left: 0px;
        padding-right: 0px;
        margin-left: -15px;
        margin-right: 0px;
    }

    input#location {
        width: 100%; /* Allows it to fit the content */
    }
    
    #specialties-container,
    #filter-button-container,
    #locations-container {
        width: 100%;
        padding-left: 0px;
        padding-right: 0px;
        margin-bottom: 20px;
    }

    #locations-dropdown,
    #specialties-dropdown {
        left: 0px;
        width: calc(100%);
    }

    #ats-filter-button {
        padding-left: 0px;
        padding-right: 0px;
        width: 100%;
    }

    .epic-job-board-sidebar {
        margin-top: 30px;
    }
    
    /* Fix for sidebar stacking on mobile */
    .vlt-sidebar.vlt-sidebar--right.jobs_categories {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        margin-top: 30px !important;
    }
    
    /* Target the parent container that holds both job listings and sidebar */
    .vlt-main .vlt-page__content .container .row,
    .vlt-page__content .container .row,
    .container .row {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Ensure job listings take full width and appear above sidebar */
    #job-listings, 
    .vlt-main .vlt-page__content .container .row > div:first-child {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        order: 1 !important;
    }
    
    /* Make sidebar appear below job listings */
    .vlt-sidebar.vlt-sidebar--right.jobs_categories,
    .vlt-main .vlt-page__content .container .row > div:last-child,
    .container .row > div:last-child,
    .vlt-page__content .container .row > div:last-child {
        order: 2 !important;
        width: 100% !important;
    }

    .specialty-option,
    .location-option,
    .multiselect-option {
        padding: 12px 15px; /* Slightly larger touch target */
        -webkit-tap-highlight-color: transparent;
    }

    .specialty-checkbox,
    .location-checkbox,
    .option-checkbox {
        width: 24px; /* Larger touch target */
        height: 24px;
    }

    .specialty-checkbox i,
    .location-checkbox i,
    .option-checkbox i {
        font-size: 28px; /* Larger icon */
    }
}

