/* Search Section Layout */
.search-section-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;  
}

.search-logo-col {
    width: 100px; /* Adjust based on logo size */
    padding-top: 10px;
}

.search-logo {
    width: 100%;
    height: auto;
}

.search-form-col {
    flex: 1;
    overflow: visible;
}

/* Auth Buttons */
.auth-buttons-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-auth {
    background-color: #007fc7; /* Blue color from image */
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.btn-auth:hover {
    background-color: #0056b3;
    color: white;
}

/* Job Search Form Styles */
.job-search-form {
    background-color: #fff;
    padding: 0;
    margin-bottom: 0;
    overflow: visible;
}

.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.input-wrapper, .filter-wrapper {
    flex: 1;
    min-width: 150px;
    position: relative;
    overflow: visible;
}

/* Input Styles */
.search-row input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    height: 42px;
    background-color: #fff; /* Changed to white to avoid looking disabled */
    color: #000;
    font-size: 15px;
    border: 1px solid #ccc; /* Added border for visibility */
}

/* Disabled State - Grey Background */
.search-row input[type="text"]:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.search-row input[type="text"]::placeholder {
    color: #000;
    opacity: 1;
}

/* Location column: inner shell carries the dropdown overlay (avoids flex layout expanding with the list) */
.location-field-shell,
.keywords-field-shell {
    position: relative;
    width: 100%;
}

.input-wrapper .location-field-shell .location-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #003366;
    z-index: 2;
    font-size: 16px;
    pointer-events: none;
}

.input-wrapper .location-field-shell input.has-icon {
    padding-left: 35px;
}

/* Select2 Customization */
.select2-container .select2-selection--single {
    height: 42px !important;
    border: 2px solid #000 !important; /* Thicker border as requested */
    border-radius: 5px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #fff !important;
}

/* Disabled Select2 */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #e9ecef !important;
    cursor: not-allowed;
    border-color: #ced4da !important; /* Grey border for disabled state */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal !important;
    color: #000 !important;
    padding-left: 10px !important;
    font-weight: 400;
    font-size: 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    top: 1px !important;
    right: 5px !important;
    width: 20px !important;
}

/* Larger, solid triangle for caret */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #000 transparent transparent transparent !important;
    border-width: 8px 6px 0 6px !important; /* Increased size */
    margin-top: -2px !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #000 transparent !important;
    border-width: 0 6px 8px 6px !important; /* Increased size */
}

/* Search Button */
.search-row > .filter-wrapper > button {
    background-color: #8bc34a;
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    height: 42px;
    font-size: 16px;
    min-width: 120px;
}

.search-row > .filter-wrapper > button:disabled {
    background-color: #a5d6a7; /* Lighter green for disabled state */
    cursor: not-allowed;
}

.search-row > .filter-wrapper > button:hover:not(:disabled) {
    background-color: #7cb342;
}

/* Job List Info Text */
.job-list > p {
    font-size: 13px; /* Reduced from 14px */
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
}

.locked-filters {
    position: relative;
    cursor: pointer;
}

/*
 * Click locking is handled in JS so auth buttons can stay clickable.
 * Keep visual styling on the container only.
 */

.locked-pagination {
    position: relative;
    cursor: pointer;
    opacity: 0.6;
}

/* Pagination */
.pagination {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 30px 0;
    justify-content: center;
    margin: 0;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 6px 12px;
    border: 2px solid #003366;
    border-radius: 5px;
    color: #003366;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    transition: background-color 0.2s, color 0.2s;
}

.pagination li a:hover {
    background-color: #003366;
    color: #fff;
}

.pagination li.active span {
    background-color: #8bc34a;
    border-color: #8bc34a;
    color: #fff;
    font-weight: bold;
}

.pagination li.disabled span {
    color: #aaa;
    border-color: #ccc;
    cursor: default;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 992px) {
    .search-row {
        flex-wrap: wrap;
    }
    .input-wrapper {
        min-width: 100%;
    }
    .filter-wrapper {
        min-width: 48%;
    }
    
    .search-section-wrapper {
        flex-direction: column;
    }
    
    .search-logo-col {
        width: 100%;
        text-align: center;
        padding-bottom: 10px;
    }
    
    .search-logo {
        width: 150px;
    }
    
    .search-form-col {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
    }
    
    .input-wrapper, .filter-wrapper, .search-row button {
        width: 100%;
    }
}

/* Job Card Styles */
.job-card {
    border: 1px solid #00204a;
    margin-bottom: 15px;
    display: flex;
    align-items: stretch;
    background: white;
}

.job-logo {
    width: 120px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #00204a;
    padding: 10px;
}

.job-logo img {
    max-width: 100%;
    max-height: 100%;
}

.job-details {
    flex: 1;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.job-details h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: bold;
    text-align: left;
}

.job-details h3 a {
    color: #0056b3;
    text-decoration: underline;
}

.job-details p {
    margin: 0 0 3px 0;
    font-size: 14px;
    color: #000;
    line-height: 1.4;
    max-width: none;
}

.job-details .company-name {
    font-weight: normal;
    margin-bottom: 5px;
}

.job-details .posted-date {
    margin-top: 10px;
    font-size: 13px;
    color: #555;
}

.job-action {
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.btn-apply {
    background-color: #8bc34a;
    color: white;
    padding: 8px 25px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
}

.banner-placeholder {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 30px;
    cursor: pointer;
    display: block;
}

/* Signature */
.intro-signature {
    text-align: center;
}

/* No Logo Placeholder */
.no-logo-icon {
    font-size: 50px;
    color: #ccc;
}

/* ── Location AJAX suggestions (aligned with .search-row inputs + brand navys) ── */

/* Tie open panel to location / keyword fields — same cue as Select2 / focus emphasis */
.job-search-form .input-wrapper:has(.location-field-shell) input.has-icon,
.job-search-form .input-wrapper:has(.keywords-field-shell) input[type="text"] {
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

/* Keep below site hamburger panel (.hamburger-list z-index: 999 in main.css) */
.job-search-form .location-field-shell:has(.curated-location-suggestions.is-visible),
.job-search-form .keywords-field-shell:has(.curated-keyword-suggestions.is-visible) {
    z-index: 850;
}

.job-search-form .input-wrapper:has(.curated-location-suggestions.is-visible) input.has-icon,
.job-search-form .input-wrapper:has(.curated-keyword-suggestions.is-visible) input[type="text"],
.job-search-form .input-wrapper:has(.location-field-shell) input.has-icon:focus,
.job-search-form .input-wrapper:has(.keywords-field-shell) input[type="text"]:focus {
    border-color: #007fc7;
    box-shadow: 0 0 0 2px rgba(0, 127, 199, 0.18);
    outline: none;
}

/* Overlay panel (not in document flow) — !important wins over Bootstrap reboot on <ul>/<li> */
.job-search-form ul.curated-location-suggestions {
    display: none;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 4px) !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 !important;
    margin-block: 0 !important;
    padding: 3px 0 !important;
    padding-inline: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow:
        0 4px 14px rgba(0, 32, 74, 0.1),
        0 0 0 1px rgba(0, 127, 199, 0.06);
    max-height: 220px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 880;
    font-family: poppins3, system-ui, -apple-system, sans-serif;
}

.job-search-form ul.curated-location-suggestions.is-visible {
    display: block !important;
}

.job-search-form ul.curated-location-suggestions li {
    display: block;
    margin: 0 3px !important;
    padding: 7px 10px 7px 32px !important;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    border-left: 3px solid transparent;
    list-style: none !important;
    list-style-type: none !important;
    transition:
        background-color 0.12s ease,
        color 0.12s ease,
        border-left-color 0.12s ease;
}

.job-search-form ul.curated-location-suggestions li::marker {
    content: none;
}

.job-search-form ul.curated-location-suggestions li + li {
    margin-top: 1px !important;
}

.job-search-form ul.curated-location-suggestions li:first-child {
    margin-top: 0 !important;
}

.job-search-form ul.curated-location-suggestions li:last-child {
    margin-bottom: 0 !important;
}

.job-search-form ul.curated-location-suggestions li:hover {
    background: #eaf4fb;
    color: #003366;
}

.job-search-form ul.curated-location-suggestions::-webkit-scrollbar {
    width: 8px;
}

.job-search-form ul.curated-location-suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.job-search-form ul.curated-location-suggestions::-webkit-scrollbar-thumb {
    background: #c8d8e8;
    border-radius: 4px;
}

.job-search-form ul.curated-location-suggestions::-webkit-scrollbar-thumb:hover {
    background: #aabccc;
}

/* ── Curated jobs: filter grid + Select2 (match keyword suggestion panel; overrides global Select2 above) ── */
/*
 * layouts load public/css/main.css in <head> with heavy global Select2 rules (e.g. 24px font, margins).
 * jobs.css loads in the page body — we still need !important and explicit resets so curated filters always win.
 */

.curated-jobs-page .search-section-wrapper {
    position: relative;
    z-index: 5;
}

.curated-jobs-page .job-list {
    position: relative;
    z-index: 1;
}

.curated-jobs-page .search-row.curated-jobs-filter-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.curated-jobs-page .search-row.curated-jobs-filter-actions-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.curated-jobs-page .search-row.curated-jobs-filter-actions-row .filter-wrapper--search-submit {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    display: flex;
    justify-content: flex-start;
}

.curated-jobs-page .search-row.curated-jobs-filter-actions-row .filter-wrapper {
    min-width: 0;
}

.curated-jobs-page .curated-filter-submit-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    min-width: 0;
}

.curated-jobs-page .search-row.curated-jobs-filter-actions-row .btn-clear-curated-filters {
    box-sizing: border-box;
    margin: 0;
    width: auto;
    min-width: 120px;
    padding: 0 20px;
    height: 42px;
    min-height: 42px;
    line-height: 1.2;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}

.curated-jobs-page .search-row.curated-jobs-filter-actions-row .btn-clear-curated-filters:hover:not(:disabled) {
    border-color: #3e89ff;
    color: #003366;
}

.curated-jobs-page .search-row.curated-jobs-filter-actions-row .btn-clear-curated-filters:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Search + Clear on dedicated row below filters */
.curated-jobs-page .search-row.curated-jobs-filter-actions-row .curated-filter-submit-row button[type='submit'] {
    box-sizing: border-box;
    margin: 0;
    width: auto;
    min-width: 120px;
    line-height: 1.2;
    font-size: 14px;
    background-color: #8bc34a;
    color: #fff;
    border: none;
    padding: 0 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    height: 42px;
    min-height: 42px;
}

.curated-jobs-page .search-row.curated-jobs-filter-actions-row .curated-filter-submit-row button[type='submit']:disabled {
    background-color: #a5d6a7;
    cursor: not-allowed;
}

.curated-jobs-page .search-row.curated-jobs-filter-actions-row .curated-filter-submit-row button[type='submit']:hover:not(:disabled) {
    background-color: #7cb342;
}

/* Prevent grid columns from refusing to shrink (avoids tiny columns + giant wrapped text) */
.curated-jobs-page .search-row.curated-jobs-filter-row .filter-wrapper {
    min-width: 0;
}

.curated-jobs-page .curated-filter-field-shell {
    position: relative;
    width: 100%;
    z-index: 1;
}

.curated-jobs-page .curated-filter-field-shell:has(.select2-container--open) {
    z-index: 900;
}

/* Full-width select inside column (override main.css .select2-container width/margins) */
.curated-jobs-page .curated-filter-field-shell .select2-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

/* main.css sets .select2-container .select2-selection { font-size: 24px; padding: 5px; } — reset here */
.curated-jobs-page .curated-filter-field-shell .select2-container .select2-selection--single {
    font-size: 15px !important;
    padding: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    line-height: normal !important;
}

/* Trigger = same weight as keyword/location text inputs (override 2px black border in global Select2 rules) */
.curated-jobs-page .select2-container--default .select2-selection--single {
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.curated-jobs-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 42px !important;
    padding-left: 12px !important;
    padding-right: 28px !important;
    color: #1f1f1f !important;
}

.curated-jobs-page .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #727272 !important;
}

/* Room for per-field clear (×) + dropdown arrow */
.curated-jobs-page .select2-container.select2-container--allow-clear .select2-selection--single .select2-selection__rendered {
    padding-right: 52px !important;
}

.curated-jobs-page .select2-container.select2-container--allow-clear .select2-selection--single .select2-selection__clear {
    margin-top: 0 !important;
    padding-right: 6px !important;
    color: #727272 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    line-height: 42px !important;
}

.curated-jobs-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
    right: 8px !important;
}

.curated-jobs-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #000 transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
}

.curated-jobs-page .select2-container--default.select2-container--disabled .select2-selection--single {
    border-color: #ced4da !important;
}

/* Match keyword / location field focus cue (inline styles on curated-jobs) */
.curated-jobs-page .select2-container--default.select2-container--focus .select2-selection--single,
.curated-jobs-page .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #3e89ff !important;
    box-shadow: 0 0 0 1px rgba(62, 137, 255, 0.18) !important;
}

.curated-jobs-page .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #000 transparent !important;
    border-width: 0 4px 5px 4px !important;
    margin-top: -2px !important;
}

/* Dropdown: same card as .curated-keyword-suggestions (anchored under column via dropdownParent) */
/* main.css sets .select2-dropdown { font-size: 24px } — force base size so options inherit correctly */
.curated-jobs-page .curated-jobs-filter-select2-dropdown.select2-dropdown,
.curated-jobs-filter-select2-dropdown.select2-dropdown {
    border: 1px solid #dddddd !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    font-family: inherit !important;
    font-size: 14px !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    /* Below hamburger (999); !important beats main.css .select2-dropdown { z-index: 9999 } */
    z-index: 950 !important;
    margin-top: 8px !important;
}

.curated-jobs-filter-select2-dropdown .select2-search--dropdown {
    display: none !important;
    padding: 0 !important;
}

.curated-jobs-filter-select2-dropdown .select2-results > .select2-results__options {
    max-height: 280px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Match .curated-keyword-suggestion-label */
.curated-jobs-filter-select2-dropdown .select2-results__option {
    padding: 12px 16px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #1f1f1f !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    border-bottom: 1px solid #ececec !important;
}

.curated-jobs-filter-select2-dropdown .select2-results__option:last-of-type {
    border-bottom: 0 !important;
}

/* Override Select2 4.1 defaults: --selected (#ddd) and --highlighted (#5897fb blue) */
.curated-jobs-filter-select2-dropdown.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.curated-jobs-filter-select2-dropdown .select2-results__option--highlighted.select2-results__option--selectable {
    background: #f3f6f2 !important;
    color: #1f1f1f !important;
}

/* Selected row styling — use --selected only; Select2 sets aria-selected on keyboard/hover highlight too */
.curated-jobs-filter-select2-dropdown.select2-container--default .select2-results__option--selected,
.curated-jobs-filter-select2-dropdown .select2-results__option--selected {
    background: #e8f5e0 !important;
    color: #1f1f1f !important;
}

.curated-jobs-filter-select2-dropdown.select2-container--default .select2-results__option--selected.select2-results__option--highlighted,
.curated-jobs-filter-select2-dropdown .select2-results__option--selected.select2-results__option--highlighted {
    background: #dcedc8 !important;
    color: #1f1f1f !important;
}

/* Multi-select filters: LinkedIn-style pill (label + count badge, no chips in trigger) */
.curated-jobs-page .curated-jobs-filter-row .select2-container .select2-selection--multiple {
    font-size: 15px !important;
    padding: 0 !important;
}

.curated-jobs-page .curated-filter-select2--pill.select2-container--default .select2-selection--multiple {
    position: relative !important;
    min-height: 42px !important;
    height: 42px !important;
    max-height: 42px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    padding: 0 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    overflow: hidden !important;
}

/* Empty: room for chevron; active: room for per-filter clear (×) */
.curated-jobs-page .curated-filter-select2--pill.select2-container--allow-clear .select2-selection--multiple {
    padding-right: 28px !important;
}

.curated-jobs-page .curated-filter-select2--pill.curated-filter-select2--has-value.select2-container--allow-clear .select2-selection--multiple {
    padding-right: 28px !important;
}

/* Multi-select has no Select2 arrow element — pseudo chevron when empty */
.curated-jobs-page .curated-filter-select2--pill .select2-selection__arrow {
    display: none !important;
}

.curated-jobs-page .curated-filter-select2--pill:not(.curated-filter-select2--has-value) .select2-selection--multiple::after {
    content: '' !important;
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-style: solid !important;
    border-width: 5px 4px 0 4px !important;
    border-color: #000 transparent transparent transparent !important;
    pointer-events: none !important;
}

.curated-jobs-page .curated-filter-select2--pill:not(.curated-filter-select2--has-value).select2-container--open .select2-selection--multiple::after {
    border-width: 0 4px 5px 4px !important;
    border-color: transparent transparent #000 transparent !important;
    margin-top: -2px !important;
}

.curated-jobs-page .curated-filter-select2--pill.curated-filter-select2--has-value .select2-selection--multiple::after {
    display: none !important;
}

.curated-jobs-page .curated-filter-select2--pill .select2-selection--multiple .select2-selection__rendered {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Hide default chips/placeholder and inline search — pill label + count badge replace them in the trigger */
.curated-jobs-page .curated-filter-select2--pill .select2-selection--multiple .select2-selection__choice,
.curated-jobs-page .curated-filter-select2--pill .select2-selection--multiple .select2-selection__placeholder {
    display: none !important;
}

.curated-jobs-page .curated-filter-select2--pill .select2-selection--multiple .select2-search--inline {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.curated-jobs-page .curated-filter-select2--pill .select2-selection--multiple .select2-search__field {
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.curated-jobs-page .curated-filter-select2--pill .curated-filter-pill-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: #1f1f1f !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.curated-jobs-page .curated-filter-select2--pill .curated-filter-pill-label--placeholder {
    color: #727272 !important;
}

.curated-jobs-page .curated-filter-select2--pill .curated-filter-count-badge {
    flex: 0 0 auto !important;
    order: -1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #8bc34a !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.curated-jobs-page .curated-filter-select2--pill.curated-filter-select2--has-value.select2-container--default .select2-selection--multiple {
    background-color: #8bc34a !important;
    border-color: #8bc34a !important;
}

.curated-jobs-page .curated-filter-select2--pill.curated-filter-select2--has-value .curated-filter-pill-label {
    color: #fff !important;
}

.curated-jobs-page .curated-filter-select2--pill.curated-filter-select2--has-value .curated-filter-pill-label--placeholder {
    color: #fff !important;
}

.curated-jobs-page .curated-filter-select2--pill.curated-filter-select2--has-value .curated-filter-count-badge {
    background: #fff !important;
    color: #8bc34a !important;
}

/* Per-filter clear (×): right edge when active; chevron shown via ::after when empty */
.curated-jobs-page .curated-filter-select2--pill:not(.curated-filter-select2--has-value).select2-container--allow-clear .select2-selection--multiple .select2-selection__clear {
    display: none !important;
}

/* Clear (×) shares the same right slot as the empty-state chevron (::after at right: 12px) */
.curated-jobs-page .curated-filter-select2--pill.select2-container--allow-clear .select2-selection--multiple .select2-selection__clear {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 16px !important;
    height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #727272 !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    z-index: 2 !important;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease !important;
}

.curated-jobs-page .curated-filter-select2--pill.select2-container--allow-clear .select2-selection--multiple .select2-selection__clear:hover {
    background-color: rgba(0, 0, 0, 0.06) !important;
    color: #333 !important;
}

.curated-jobs-page .curated-filter-select2--pill.select2-container--allow-clear .select2-selection--multiple .select2-selection__clear:focus {
    outline: none !important;
}

.curated-jobs-page .curated-filter-select2--pill.select2-container--allow-clear .select2-selection--multiple .select2-selection__clear:focus-visible {
    outline: 2px solid #3e89ff !important;
    outline-offset: 1px !important;
}

.curated-jobs-page .curated-filter-select2--pill.curated-filter-select2--has-value.select2-container--allow-clear .select2-selection--multiple .select2-selection__clear {
    background-color: transparent !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
}

.curated-jobs-page .curated-filter-select2--pill.curated-filter-select2--has-value.select2-container--allow-clear .select2-selection--multiple .select2-selection__clear:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: none !important;
}

.curated-jobs-page .curated-filter-select2--pill.curated-filter-select2--has-value.select2-container--allow-clear .select2-selection--multiple .select2-selection__clear:focus-visible {
    outline-color: #fff !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55) !important;
}

.curated-jobs-page .curated-filter-select2--pill.select2-container--default.select2-container--focus .select2-selection--multiple,
.curated-jobs-page .curated-filter-select2--pill.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #3e89ff !important;
    box-shadow: 0 0 0 1px rgba(62, 137, 255, 0.18) !important;
}

.curated-jobs-page .curated-filter-select2--pill.curated-filter-select2--has-value.select2-container--default.select2-container--focus .select2-selection--multiple,
.curated-jobs-page .curated-filter-select2--pill.curated-filter-select2--has-value.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #7cb342 !important;
    box-shadow: 0 0 0 1px rgba(124, 179, 66, 0.35) !important;
}

.curated-jobs-page .curated-filter-select2--pill.select2-container--default.select2-container--disabled .select2-selection--multiple {
    border-color: #ced4da !important;
    cursor: not-allowed !important;
}

/* Wider dropdown for long option labels (at least column width, grows with content) */
.curated-jobs-page .curated-jobs-filter-select2-dropdown.curated-jobs-filter-select2-dropdown--auto-width.select2-dropdown,
.curated-jobs-filter-select2-dropdown.curated-jobs-filter-select2-dropdown--auto-width.select2-dropdown {
    width: auto !important;
    min-width: 100% !important;
    max-width: min(480px, 92vw) !important;
}

/* Job Category (39 options, many long names): allow dropdown to grow beyond column width */
.curated-jobs-page .curated-jobs-filter-select2-dropdown.curated-jobs-filter-select2-dropdown--wide.select2-dropdown,
.curated-jobs-filter-select2-dropdown.curated-jobs-filter-select2-dropdown--wide.select2-dropdown {
    max-width: min(640px, 96vw) !important;
}

.curated-jobs-filter-select2-dropdown--wide .select2-results__option,
.curated-jobs-filter-select2-dropdown--wide .curated-filter-option-label {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
}

/* Checkbox-style options in multi-select dropdown */
.curated-jobs-filter-select2-dropdown .curated-filter-option {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
}

.curated-jobs-filter-select2-dropdown .curated-filter-option-checkbox {
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    margin-top: 2px !important;
    border: 1px solid #b0b8c1 !important;
    border-radius: 3px !important;
    background: #fff !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Checkbox checked state — --selected / JS-synced class only (not aria-selected; Select2 sets that on hover) */
.curated-jobs-filter-select2-dropdown .select2-results__option--selected .curated-filter-option-checkbox,
.curated-jobs-filter-select2-dropdown .curated-filter-option-checkbox.curated-filter-option-checkbox--checked {
    background: #8bc34a !important;
    border-color: #8bc34a !important;
}

.curated-jobs-filter-select2-dropdown .select2-results__option--selected .curated-filter-option-checkbox::after,
.curated-jobs-filter-select2-dropdown .curated-filter-option-checkbox.curated-filter-option-checkbox--checked::after {
    content: '' !important;
    position: absolute !important;
    left: 4px !important;
    top: 1px !important;
    width: 5px !important;
    height: 9px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* Hover/highlight only: checkbox stays empty with default gray border (no checkmark) */
.curated-jobs-filter-select2-dropdown .select2-results__option--highlighted:not(.select2-results__option--selected) .curated-filter-option-checkbox {
    background: #fff !important;
    border-color: #b0b8c1 !important;
}

.curated-jobs-filter-select2-dropdown .select2-results__option--highlighted:not(.select2-results__option--selected) .curated-filter-option-checkbox::after {
    content: none !important;
    display: none !important;
}

.curated-jobs-filter-select2-dropdown .select2-results__option--highlighted.select2-results__option--selected .curated-filter-option-checkbox,
.curated-jobs-filter-select2-dropdown .select2-results__option--highlighted .curated-filter-option-checkbox.curated-filter-option-checkbox--checked {
    background: #8bc34a !important;
    border-color: #8bc34a !important;
}

.curated-jobs-filter-select2-dropdown .select2-results__option--highlighted.select2-results__option--selected .curated-filter-option-checkbox::after,
.curated-jobs-filter-select2-dropdown .select2-results__option--highlighted .curated-filter-option-checkbox.curated-filter-option-checkbox--checked::after {
    content: '' !important;
    display: block !important;
    border-color: #fff !important;
}

.curated-jobs-filter-select2-dropdown .curated-filter-option-label {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 1200px) {
    .curated-jobs-page .search-row.curated-jobs-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .curated-jobs-page .search-row.curated-jobs-filter-row {
        grid-template-columns: 1fr;
    }

    .curated-jobs-page .search-row.curated-jobs-filter-actions-row {
        justify-content: stretch;
    }

    .curated-jobs-page .search-row.curated-jobs-filter-actions-row .filter-wrapper--search-submit {
        width: 100%;
        justify-content: stretch;
    }

    .curated-jobs-page .search-row.curated-jobs-filter-actions-row .curated-filter-submit-row {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .curated-jobs-page .search-row.curated-jobs-filter-actions-row .btn-clear-curated-filters,
    .curated-jobs-page .search-row.curated-jobs-filter-actions-row .curated-filter-submit-row button[type='submit'] {
        width: 100%;
        min-width: 0;
    }
}
