/* =========================================================
   DESIGN SYSTEM & CONSTANTS
========================================================= */
:root {
    --primary: #0d357d;
    --primary-hover: #08285f;
    --bg-main: #f5f7fa;
    --bg-card: #ffffff;
    --text-dark: #172033;
    --text-muted: #64748b;
    --border-color: #d9e0e8;
    --radius: 10px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 5px 16px rgba(15, 23, 42, 0.08);

    --transition: all 0.2s ease;
}

/* STICKY FILTER BAR CONTAINER */
/* STICKY FILTER BAR CONTAINER */
.filters.dashboard-filter-section {
    position: sticky;
    top: 0;
    z-index: 90;
    margin: 0;
    padding: 20px 24px 10px;
    background: #ffffff; /* Solid white background */
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.filter-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-card); /* White background */
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}
/* TABS / DROPDOWN SELECT */
.job-tabs-wrapper {
    width: 130px;
    min-width: 130px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.tab-filter {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 32px 0 13px;
    border: 1px solid #d8e0eb;
    border-radius: 6px;
    color: var(--text-dark, #172033);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 15px) 17px,
        calc(100% - 10px) 17px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    transition: all 0.2s ease;
}

.tab-filter:focus {
    border-color: var(--primary, #0d357d);
    box-shadow: 0 0 0 3px rgba(13, 53, 125, 0.08);
}

/* SEARCH BOX */
.search-box.dashboard-search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    height: 40px;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    height: 40px;
    padding: 0 15px 0 40px;
    border: 1px solid #d8e0eb;
    border-radius: 6px;
    outline: none;
    color: var(--text-dark, #172033);
    font-size: 13px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: var(--primary, #0d357d);
    box-shadow: 0 0 0 3px rgba(13, 53, 125, 0.08);
}

/* DROPDOWNS & RESET */
.filter-dropdowns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.select-wrapper {
    position: relative;
    width: 140px;
    min-width: 140px;
    flex-shrink: 0;
}

.select-wrapper select {
    width: 100%;
    height: 40px;
    padding: 0 32px 0 13px;
    border: 1px solid #d8e0eb;
    border-radius: 6px;
    color: var(--text-body, #334155);
    font-size: 12px;
    font-weight: 600;
    outline: none;
    appearance: none;
    cursor: pointer;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.select-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 9px;
    pointer-events: none;
}

.reset-filter-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e0eb;
    border-radius: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.reset-filter-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.reset-filter-btn span {
    display: none;
}

/* RESPONSIVE LAYOUT FOR FILTER BAR */
@media (max-width: 800px) {
    .filters.dashboard-filter-section {
        position: relative;
        padding: 12px 20px;
    }
    .filter-container {
        width: 100%;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .job-tabs-wrapper,
    .search-box,
    .filter-dropdowns {
        width: 100%;
        flex: none;
    }
    .filter-dropdowns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .select-wrapper {
        width: 100%;
        min-width: 0;
    }
    .reset-filter-btn {
        width: 100%;
    }
    .reset-filter-btn span {
        display: inline;
    }
}

@media (max-width: 380px) {
    .filter-dropdowns {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MAIN LAYOUT & GRID
========================================================= */
.main-wrapper {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto 50px;
    padding: 20px 24px 0;
}

.job-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

/* =========================================================
   JOB CARD STYLING
========================================================= */
.job-card {
    width: 100%;
    min-width: 0;
    min-height: 225px;
    padding: 21px;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 13px;
}

.header-left {
    min-width: 0;
    flex: 1;
}

.job-title-text {
    margin: 0 0 5px;
    color: var(--primary);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badges */
.card-badges-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    flex-shrink: 0;
}

.job-source,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.job-source i {
    font-size: 9px;
}

.regular-source {
    background: #eaf3fb;
    color: #145b8c;
}

.job-fair-source {
    background: #fdf3d7;
    color: #806000;
}

.tag.full {
    background: #eaf1fb;
    color: #2455a0;
}

.tag.part {
    background: #eaf7ef;
    color: #237344;
}

.job-description {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-action {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    padding-top: 7px;
}

.btn-more-details {
    min-width: 120px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-more-details:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-more-details:active {
    transform: translateY(0);
}

/* Empty State */
.no-jobs-card {
    grid-column: 1 / -1;
    width: 100%;
    padding: 60px 24px;
    text-align: center;
    border-radius: var(--radius);
}

.no-jobs-icon {
    display: block;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 36px;
}

.no-jobs-card h3 {
    margin: 0 0 6px;
    color: var(--text-dark);
    font-size: 18px;
}

.no-jobs-message {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* =========================================================
   MODAL COMPONENT
========================================================= */
.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    z-index: 9999;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(850px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    color: var(--primary);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-btn:hover {
    background: #e2e8f0;
}

.company-logo {
    width: 78px;
    height: 78px;
    margin: 5px auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 50%;
    overflow: hidden;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-title-section {
    text-align: center;
    margin-bottom: 18px;
}

.modal-title-section h2 {
    margin: 0;
    color: var(--primary);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

.modal-title-section p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.modal-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 24px;
}

.job-summary {
    margin-bottom: 22px;
}

.job-summary h3 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 17px;
}

.company-description {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.65;
}

.job-info {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 24px;
}

.job-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}

.job-info i {
    width: 22px;
    color: var(--primary);
    text-align: center;
}

#modalPosted {
    color: var(--text-muted);
    font-size: 13px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 10px;
}

.details-grid h3 {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 17px;
}

.details-grid ul {
    margin: 0;
    padding-left: 20px;
}

.details-grid li {
    margin-bottom: 7px;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}

#companyMapFrame {
    width: 100%;
    height: 300px;
    margin-top: 20px;
    border: none;
    border-radius: 8px;
}

#jobActionContainer {
    margin-top: 24px;
}

.apply-btn {
    display: block;
    width: 190px;
    height: 44px;
    margin: 0 auto;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 44px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.apply-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

body.modal-open {
    overflow: hidden;
    touch-action: none;
}

/* =========================================================
   RESPONSIVE DESIGN BREAKPOINTS
========================================================= */
@media (max-width: 1150px) {
    .filter-container {
        flex-wrap: wrap;
    }
    .job-tabs-wrapper {
        width: 130px;
        min-width: 130px;
    }
    .search-box.dashboard-search-box {
        flex: 1;
        min-width: 250px;
    }
    .filter-dropdowns {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    .select-wrapper {
        width: 100%;
        min-width: 0;
    }
    .reset-filter-btn {
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .filters.dashboard-filter-section {
        padding: 16px 20px 8px;
    }
    .filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
    }
    .job-tabs-wrapper,
    .search-box.dashboard-search-box {
        width: 100%;
        min-width: 0;
    }
    .filter-dropdowns {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .main-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* =========================================================
   MOBILE RESPONSIVE LAYOUT (1 ROW PER FILTER CONTROL)
========================================================= */
@media (max-width: 700px) {
    .filters.dashboard-filter-section {
        padding: 12px 8px 0;
    }

    .filter-container {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        gap: 10px;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .job-tabs-wrapper,
    .search-box.dashboard-search-box,
    .filter-dropdowns {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .filter-dropdowns {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .select-wrapper {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .tab-filter,
    .search-box.dashboard-search-box,
    .select-wrapper select,
    .reset-filter-btn {
        height: 46px;
        font-size: 0.9rem;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .select-wrapper select {
        width: 100%;
        padding: 0 30px 0 12px;
    }

    .search-box.dashboard-search-box input {
        width: 100%;
        height: 100%;
        font-size: 0.9rem;
        padding: 0 16px 0 42px;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .search-icon {
        font-size: 15px;
        left: 14px;
    }

    .reset-filter-btn {
        width: 100%;
        min-width: 0;
        background-color: #ffffff;
        border: 1px solid #cbd5e1;
        color: #475569;
    }

    .main-wrapper {
        padding: 16px 8px 0;
        margin-bottom: 30px;
        box-sizing: border-box;
    }

    .job-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .job-card {
        padding: 16px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .card-badges-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .card-action {
        margin-top: 14px;
    }

    .btn-more-details {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
}

/* =========================================================
   EXTRA SMALL MOBILE SCREENS (max-width: 400px)
========================================================= */
@media (max-width: 400px) {
    .filters.dashboard-filter-section {
        padding: 12px 6px 0;
    }

    .filter-container {
        padding: 10px;
        gap: 8px;
    }

    .tab-filter,
    .search-box.dashboard-search-box,
    .select-wrapper select,
    .reset-filter-btn {
        height: 44px;
        font-size: 0.85rem;
    }

    .main-wrapper {
        padding: 12px 6px 0;
    }

    .job-card {
        padding: 12px;
    }

    .job-source,
    .tag {
        font-size: 10px;
        padding: 4px 7px;
    }

    .job-title-text {
        font-size: 16px;
    }

    .company-subtitle,
    .job-description {
        font-size: 12px;
    }

    .modal-content {
        padding: 20px 12px 16px;
    }
}

/* =========================================================
   FINAL SHARED JOB FILTER UI
========================================================= */
.mobile-filter-trigger,
.mobile-filter-overlay,
.mobile-filter-drawer-header {
    display: none !important;
}

.filters.dashboard-filter-section {
    position: sticky !important;
    top: 0;
    z-index: 90;
    width: 100%;
    margin: 0;
    padding: 14px 24px;
    background: #fff !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}

.filters.dashboard-filter-section .filter-container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: none;
    overflow: visible;
}

.filters.dashboard-filter-section .job-tabs-wrapper {
    width: 145px;
    min-width: 145px;
    flex: 0 0 145px;
    display: flex;
    align-items: center;
}

.filters.dashboard-filter-section .tab-filter {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 34px 0 13px;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    outline: none;
    appearance: none;
    background-color: #fff !important;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 15px) 18px,
        calc(100% - 10px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    color: #172033;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Search wrapper controls only positioning and size */
.filters.dashboard-filter-section .search-box.dashboard-search-box {
    position: relative !important;
    width: 500px !important;
    min-width: 500px !important;
    max-width: 500px !important;
    height: 42px !important;
    flex: 0 0 500px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    box-shadow: none !important;
}

.filters.dashboard-filter-section .search-box.dashboard-search-box .search-icon {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    z-index: 5 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: translateY(-50%) !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    pointer-events: none !important;
}

/* Input owns the visible search field */
.filters.dashboard-filter-section .search-box.dashboard-search-box input {
    display: block !important;
    width: 500px !important;
    min-width: 500px !important;
    max-width: 500px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 16px 0 44px !important;
    box-sizing: border-box !important;
    border: 1px solid #d8e0eb !important;
    border-radius: 8px !important;
    outline: none !important;
    background: #fff !important;
    color: #172033 !important;
    font-family: inherit !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    line-height: normal !important;
    box-shadow: none !important;
    appearance: none !important;
}

.filters.dashboard-filter-section .search-box.dashboard-search-box input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

.filters.dashboard-filter-section .search-box.dashboard-search-box input:hover {
    border-color: #b8c4d2 !important;
}

.filters.dashboard-filter-section .search-box.dashboard-search-box input:focus {
    border-color: #0d357d !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(13, 53, 125, 0.08) !important;
}

.filters.dashboard-filter-section .filter-dropdowns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.filters.dashboard-filter-section .select-wrapper {
    position: relative;
    width: 135px;
    min-width: 135px;
    flex: 0 0 135px;
}

.filters.dashboard-filter-section .select-wrapper select {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 30px 0 12px;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    outline: none;
    appearance: none;
    background: #fff !important;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filters.dashboard-filter-section .select-wrapper i {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 9px;
    pointer-events: none;
}

.filters.dashboard-filter-section .reset-filter-btn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    background: #fff !important;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.filters.dashboard-filter-section .reset-filter-btn span {
    display: none;
}

.filters.dashboard-filter-section .tab-filter:hover,
.filters.dashboard-filter-section .select-wrapper select:hover,
.filters.dashboard-filter-section .reset-filter-btn:hover {
    border-color: #b8c4d2;
}

.filters.dashboard-filter-section .tab-filter:focus,
.filters.dashboard-filter-section .select-wrapper select:focus {
    border-color: #0d357d;
    box-shadow: 0 0 0 3px rgba(13, 53, 125, 0.08);
}

.filters.dashboard-filter-section .reset-filter-btn:hover {
    color: #0d357d;
    background: #f8fafc !important;
}

/* Tablet / smaller desktop */
@media (max-width: 1150px) and (min-width: 801px) {
    .filters.dashboard-filter-section .filter-container {
        flex-wrap: wrap;
    }

    .filters.dashboard-filter-section .search-box.dashboard-search-box {
        width: calc(100% - 153px) !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: 1 1 calc(100% - 153px) !important;
    }

    .filters.dashboard-filter-section .search-box.dashboard-search-box input {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .filters.dashboard-filter-section .filter-dropdowns {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr)) 42px;
        gap: 8px;
    }

    .filters.dashboard-filter-section .select-wrapper {
        width: 100%;
        min-width: 0;
    }
}

/* =========================================================
   MOBILE BOTTOM DRAWER
========================================================= */
@media (max-width: 800px) {
    body.mobile-filter-lock {
        overflow: hidden;
    }

    .mobile-filter-trigger {
        position: fixed;
        right: 16px;
        bottom: calc(18px + env(safe-area-inset-bottom));
        z-index: 950;
        min-width: 108px;
        height: 46px;
        padding: 0 18px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 0;
        border-radius: 999px;
        background: #0d357d;
        color: #fff;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 10px 28px rgba(13, 53, 125, 0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-filter-trigger:active {
        transform: scale(0.96);
    }

    .mobile-filter-overlay {
        position: fixed;
        inset: 0;
        z-index: 998;
        display: block !important;
        background: rgba(15, 23, 42, 0.5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .mobile-filter-overlay.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .filters.dashboard-filter-section {
        position: fixed !important;
        top: auto !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 999;
        width: 100%;
        max-height: 92vh;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0;
        box-shadow: none;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(105%) !important;
        transition:
            transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0.3s ease;
    }

    .filters.dashboard-filter-section.mobile-filter-drawer-open {
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .filters.dashboard-filter-section .filter-container {
        position: relative;
        width: 100%;
        max-width: none;
        max-height: 92vh;
        margin: 0;
        padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff !important;
        border: 0;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -18px 45px rgba(15, 23, 42, 0.18);
    }

    .filters.dashboard-filter-section .filter-container::before {
        content: "";
        width: 48px;
        height: 4px;
        margin: -7px auto 2px;
        flex-shrink: 0;
        border-radius: 999px;
        background: #cbd5e1;
    }

    .mobile-filter-drawer-header {
        position: sticky;
        top: -18px;
        z-index: 5;
        margin: -8px -18px 2px;
        padding: 13px 18px 15px;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        background: #fff;
        border-bottom: 1px solid #eef2f7;
    }

    .mobile-filter-eyebrow {
        display: block;
        margin-bottom: 3px;
        color: #64748b;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .mobile-filter-drawer-header h2 {
        margin: 0;
        color: #172033;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.15;
    }

    .mobile-filter-close {
        width: 42px;
        height: 42px;
        padding: 0;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #dbe3ec;
        border-radius: 50%;
        background: #f8fafc;
        color: #475569;
        font-size: 16px;
        cursor: pointer;
    }

    .filters.dashboard-filter-section .job-tabs-wrapper {
        width: 100%;
        min-width: 0;
        height: auto;
        flex: none;
    }

    .filters.dashboard-filter-section .tab-filter {
        width: 100%;
        height: 52px;
        padding: 0 42px 0 16px;
        border-radius: 12px;
        background-position:
            calc(100% - 18px) 22px,
            calc(100% - 13px) 22px;
        color: #172033;
        font-size: 14px;
    }

    .filters.dashboard-filter-section .search-box.dashboard-search-box {
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        flex: 0 0 50px !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        overflow: visible !important;
        box-shadow: none !important;
    }

    .filters.dashboard-filter-section .search-box.dashboard-search-box .search-icon {
        left: 16px !important;
        top: 50% !important;
        width: 16px !important;
        height: 16px !important;
        font-size: 14px !important;
        transform: translateY(-50%) !important;
    }

    .filters.dashboard-filter-section .search-box.dashboard-search-box input {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        margin: 0 !important;
        padding: 0 16px 0 46px !important;
        box-sizing: border-box !important;
        border: 1px solid #d8e0eb !important;
        border-radius: 12px !important;
        outline: none !important;
        background: #fff !important;
        color: #172033 !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: normal !important;
        box-shadow: none !important;
    }

    .filters.dashboard-filter-section .filter-dropdowns {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .filters.dashboard-filter-section .select-wrapper {
        width: 100%;
        min-width: 0;
        flex: none;
    }

    .filters.dashboard-filter-section .select-wrapper select {
        width: 100%;
        height: 50px;
        padding: 0 36px 0 14px;
        border-radius: 12px;
        font-size: 12px;
    }

    .filters.dashboard-filter-section .select-wrapper i {
        right: 14px;
    }

    .filters.dashboard-filter-section .reset-filter-btn {
        width: 100%;
        min-width: 0;
        height: 50px;
        flex: none;
        border-radius: 12px;
        background: #f8fafc !important;
        font-size: 12px;
    }

    .filters.dashboard-filter-section .reset-filter-btn span {
        display: inline;
    }
}

@media (max-width: 480px) {
    .mobile-filter-trigger {
        right: 14px;
        bottom: calc(14px + env(safe-area-inset-bottom));
    }

    .filters.dashboard-filter-section .filter-container {
        padding-left: 16px;
        padding-right: 16px;
        border-radius: 22px 22px 0 0;
    }

    .mobile-filter-drawer-header {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .filters.dashboard-filter-section .filter-dropdowns {
        gap: 8px;
    }
}

@media (max-width: 340px) {
    .filters.dashboard-filter-section .filter-dropdowns {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   PUBLIC JOB MODAL - MATCH JOBSEEKER MODAL
   UI only: existing IDs and JavaScript hooks are preserved.
========================================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(820px, 100%);
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.modal-header {
    position: sticky;
    top: 0;
    height: 0;
    z-index: 10;
}

.close-btn {
    position: absolute;
    top: 17px;
    right: 18px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: var(--primary);
    background: #eaf1fb;
    border-color: #c5d3e8;
}

.modal-company {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 30px 70px 25px 34px;
    background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
    border-bottom: 1px solid #e2e8f0;
}

.company-logo {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #d7e0ee;
    border-radius: 12px;
    background: #fff;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.modal-title-section {
    min-width: 0;
    margin: 0;
    text-align: left;
}

.modal-badges-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 5px;
}

.modal-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    color: var(--primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modal-title-section h2 {
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    font-size: 23px;
    font-weight: 750;
    line-height: 1.25;
}

.modal-title-section p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.modal-inline-tags {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 16px 34px 0;
}

.modal-inline-tags .tag {
    padding: 5px 9px;
    border-radius: 6px;
    background: #eef3fb;
    color: #2455a0;
    font-size: 10.5px;
    font-weight: 700;
}

.modal-section {
    padding: 22px 34px 0;
}

.modal-section h3 {
    margin: 0 0 8px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
}

.company-description {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.65;
}

.job-info-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 22px 34px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #e2e8f0;
}

.public-job-info-card .info-item:nth-child(4),
.public-job-info-card .info-item:nth-child(5) {
    border-top: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    background: #f8fafc;
}

.info-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eaf1fb;
    color: var(--primary);
    font-size: 12px;
}

.info-label {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    margin: 0;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 0;
    padding: 0 34px;
}

.details-column {
    min-width: 0;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.section-heading-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #eaf1fb;
    color: var(--primary);
    font-size: 11px;
}

.section-heading h3,
.details-grid h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
}

.details-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.details-grid li {
    position: relative;
    margin-bottom: 9px;
    padding-left: 17px;
    color: #334155;
    font-size: 12.5px;
    line-height: 1.5;
}

.details-grid li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

.map-section {
    margin: 25px 34px 0;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.map-embed-wrapper {
    width: 100%;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.embedded-job-map {
    width: 100%;
    height: 220px;
    margin: 0 !important;
    border: 0;
}

#jobActionContainer {
    display: block;
    margin: 0 !important;
    padding: 22px 34px 30px;
}

#jobActionContainer .apply-btn {
    width: 100%;
    height: 44px;
    margin: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#jobActionContainer .apply-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

body.modal-open {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 800px) {
    .modal {
        padding: 8px;
    }

    .modal-content {
        max-height: calc(100vh - 16px);
        border-radius: 13px;
    }

    .modal-company {
        gap: 13px;
        padding: 22px 55px 18px 17px;
    }

    .company-logo {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .modal-title-section h2 {
        font-size: 19px;
    }

    .modal-inline-tags {
        padding: 14px 17px 0;
    }

    .modal-section,
    .details-grid,
    .map-section,
    #jobActionContainer {
        padding-left: 17px;
        padding-right: 17px;
    }

    .job-info-card {
        grid-template-columns: 1fr 1fr;
        margin: 18px 17px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .map-section {
        margin-left: 17px;
        margin-right: 17px;
    }
}

@media (max-width: 520px) {
    .job-info-card {
        grid-template-columns: 1fr;
    }

    .info-item {
        padding: 12px;
    }

    #jobActionContainer {
        padding-bottom: 22px;
    }
}

/* =========================================================
   FINAL PUBLIC MODAL — MATCH JOBSEEKER JOBLIST
========================================================= */
#jobModal.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#jobModal.modal.show {
    display: flex;
}

#jobModal .modal-content {
    position: relative;
    width: min(820px, 100%);
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

#jobModal .modal-header {
    position: sticky;
    top: 0;
    height: 0;
    z-index: 10;
}

#jobModal .close-btn {
    position: absolute;
    top: 17px;
    right: 18px;
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

#jobModal .close-btn:hover {
    color: #0d357d;
    background: #eaf1fb;
    border-color: #c5d3e8;
}

#jobModal .modal-company {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 30px 70px 25px 34px;
    background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
    border-bottom: 1px solid #e2e8f0;
}

#jobModal .company-logo {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #d7e0ee;
    border-radius: 12px;
    background: #fff;
}

#jobModal .company-logo img {
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
}

#jobModal .modal-title-section {
    min-width: 0;
    margin: 0;
    text-align: left;
}

#jobModal .modal-badges-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

#jobModal .modal-label {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0d357d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#jobModal .modal-title-section h2 {
    margin: 0;
    padding: 0;
    color: #172033;
    font-size: 23px;
    font-weight: 750;
    line-height: 1.25;
}

#jobModal .modal-title-section p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

#jobModal .modal-section {
    padding: 22px 34px 0;
}

#jobModal .modal-section h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 15px;
    font-weight: 700;
}

#jobModal .company-description {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.65;
}

#jobModal .job-info-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 22px 34px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #e2e8f0;
}

#jobModal .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    background: #f8fafc;
}

#jobModal .info-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eaf1fb;
    color: #0d357d;
    font-size: 12px;
}

#jobModal .info-label {
    display: block;
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#jobModal .info-item p {
    margin: 0;
    color: #334155;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

#jobModal .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 0;
    padding: 0 34px;
}

#jobModal .details-column {
    min-width: 0;
}

#jobModal .section-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

#jobModal .section-heading-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #eaf1fb;
    color: #0d357d;
    font-size: 11px;
}

#jobModal .section-heading h3 {
    margin: 0;
    color: #172033;
    font-size: 14px;
    font-weight: 700;
}

#jobModal .details-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#jobModal .details-grid li {
    position: relative;
    margin-bottom: 9px;
    padding-left: 17px;
    color: #334155;
    font-size: 12.5px;
    line-height: 1.5;
}

#jobModal .details-grid li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0d357d;
}

#jobModal .map-section {
    margin: 25px 34px 0;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

#jobModal .map-embed-wrapper {
    width: 100%;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

#jobModal .embedded-job-map {
    width: 100%;
    height: 220px;
    margin: 0 !important;
    border: 0;
}

#jobModal #jobActionContainer {
    display: block;
    margin: 0 !important;
    padding: 22px 34px 30px;
}

#jobModal #jobActionContainer .apply-btn {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: #0d357d;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#jobModal #jobActionContainer .apply-btn:hover {
    background: #08285f;
    transform: translateY(-1px);
}

#jobModal .public-modal-compat-fields {
    display: none !important;
}

body.modal-open {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 800px) {
    #jobModal.modal {
        padding: 8px;
    }

    #jobModal .modal-content {
        max-height: calc(100vh - 16px);
        border-radius: 13px;
    }

    #jobModal .modal-company {
        gap: 13px;
        padding: 22px 55px 18px 17px;
    }

    #jobModal .company-logo {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    #jobModal .modal-title-section h2 {
        font-size: 19px;
    }

    #jobModal .modal-section,
    #jobModal .details-grid,
    #jobModal #jobActionContainer {
        padding-left: 17px;
        padding-right: 17px;
    }

    #jobModal .job-info-card {
        margin: 18px 17px;
    }

    #jobModal .map-section {
        margin: 22px 17px 0;
    }
}

@media (max-width: 620px) {
    #jobModal .job-info-card {
        grid-template-columns: 1fr;
    }

    #jobModal .details-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* =========================================================
   LANDING JOB LISTING — FINAL LAYOUT REFINEMENT
   Search/filter fit + unified sticky modal header.
========================================================= */

/* ---------------------------------------------------------
   DESKTOP FILTER ROW
   Search expands; dropdowns/reset remain compact.
--------------------------------------------------------- */

@media (min-width: 1151px) {
    .filters.dashboard-filter-section .filter-container {
        display: grid !important;
        grid-template-columns:
            145px
            minmax(340px, 1fr)
            auto !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .filters.dashboard-filter-section .job-tabs-wrapper {
        width: 145px !important;
        min-width: 145px !important;
        max-width: 145px !important;
        flex: none !important;
    }

    .filters.dashboard-filter-section .search-box.dashboard-search-box {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
    }

    .filters.dashboard-filter-section .search-box.dashboard-search-box input {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .filters.dashboard-filter-section .filter-dropdowns {
        display: grid !important;
        grid-template-columns:
            135px
            125px
            135px
            42px !important;
        align-items: center !important;
        gap: 8px !important;
        width: auto !important;
        min-width: 0 !important;
    }

    .filters.dashboard-filter-section .select-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        flex: none !important;
    }

    .filters.dashboard-filter-section .reset-filter-btn {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
    }
}


/* ---------------------------------------------------------
   UNIFIED STICKY JOB MODAL HEADER
--------------------------------------------------------- */

#jobModal .modal-content {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

#jobModal .job-modal-sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

#jobModal .job-modal-sticky-header .modal-header {
    position: static !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#jobModal .job-modal-sticky-header .close-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 5 !important;

    width: 40px !important;
    height: 40px !important;

    display: grid !important;
    place-items: center !important;

    padding: 0 !important;

    color: #64748b !important;
    background: #f5f7fa !important;

    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;

    cursor: pointer !important;
}

#jobModal .job-modal-sticky-header .close-btn:hover {
    color: #0d357d !important;
    background: #edf2f7 !important;
    border-color: #cbd7e5 !important;
}

#jobModal .job-modal-sticky-header .modal-company {
    position: static !important;

    display: flex !important;
    align-items: center !important;
    gap: 18px !important;

    margin: 0 !important;
    padding: 24px 72px 22px 30px !important;

    background: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
}

#jobModal .job-modal-sticky-header .company-logo {
    width: 64px !important;
    height: 64px !important;
    flex: 0 0 64px !important;
    margin: 0 !important;

    border: 1px solid #d7e0ee !important;
    border-radius: 11px !important;
    background: #ffffff !important;
}

#jobModal .job-modal-sticky-header .company-logo img {
    width: 100% !important;
    height: 100% !important;
    padding: 5px !important;
    object-fit: contain !important;
}

#jobModal .job-modal-sticky-header .modal-title-section {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    text-align: left !important;
}

#jobModal .job-modal-sticky-header .modal-badges-header {
    margin: 0 0 5px !important;
}

#jobModal .job-modal-sticky-header .modal-title-section h2 {
    margin: 0 !important;
    color: #172033 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

#jobModal .job-modal-sticky-header .modal-title-section p {
    margin: 5px 0 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}


/* ---------------------------------------------------------
   MOBILE MODAL HEADER
--------------------------------------------------------- */

@media (max-width: 800px) {
    #jobModal .job-modal-sticky-header .modal-company {
        gap: 12px !important;
        padding: 18px 58px 17px 16px !important;
    }

    #jobModal .job-modal-sticky-header .close-btn {
        top: 12px !important;
        right: 12px !important;
        width: 38px !important;
        height: 38px !important;
    }

    #jobModal .job-modal-sticky-header .company-logo {
        width: 52px !important;
        height: 52px !important;
        flex-basis: 52px !important;
    }

    #jobModal .job-modal-sticky-header .modal-title-section h2 {
        font-size: 19px !important;
    }

    #jobModal .job-modal-sticky-header .modal-title-section p {
        font-size: 12px !important;
    }
}


/* =========================================================
   LANDING JOB LISTING — FINAL STANDARD FILTER UI
   Matches the standardized Job Seeker / Employer filter bars.
   Desktop + tablet only; existing mobile bottom drawer remains.
========================================================= */

@media (min-width: 801px) {

    /* ---------------------------------------------------------
       OUTER FILTER CARD
    --------------------------------------------------------- */

    .filters.dashboard-filter-section {
        position: sticky !important;
        top: 0 !important;
        z-index: 90 !important;

        width: calc(100% - 50px) !important;
        max-width: 1200px !important;

        margin: 20px auto 24px !important;
        padding: 18px 20px !important;

        background: #ffffff !important;

        border: 1px solid #dce3ec !important;
        border-radius: 14px !important;

        box-shadow:
            0 4px 14px
            rgba(15, 23, 42, 0.04) !important;

        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }


    /* ---------------------------------------------------------
       REMOVE INNER CARD
    --------------------------------------------------------- */

    .filters.dashboard-filter-section .filter-container {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        gap: 10px !important;

        background: transparent !important;

        border: none !important;
        border-radius: 0 !important;

        box-shadow: none !important;
        overflow: visible !important;
    }


    /* =========================================================
       ALL JOBS
    ========================================================= */

    .filters.dashboard-filter-section .job-tabs-wrapper {
        flex: 0 0 145px !important;

        width: 145px !important;
        min-width: 145px !important;
        max-width: 145px !important;

        height: 46px !important;
    }


    .filters.dashboard-filter-section .tab-filter {
        width: 100% !important;
        height: 46px !important;

        margin: 0 !important;

        padding:
            0
            36px
            0
            14px !important;

        color: #274b82 !important;

        background-color: #f4f7fb !important;

        border: 1px solid transparent !important;
        border-radius: 12px !important;

        outline: none !important;

        font-family: inherit !important;
        font-size: 12px !important;
        font-weight: 700 !important;

        cursor: pointer !important;

        appearance: none !important;
        -webkit-appearance: none !important;

        background-image:
            linear-gradient(
                45deg,
                transparent 50%,
                #64748b 50%
            ),
            linear-gradient(
                135deg,
                #64748b 50%,
                transparent 50%
            ) !important;

        background-position:
            calc(100% - 17px) 20px,
            calc(100% - 12px) 20px !important;

        background-size:
            5px 5px,
            5px 5px !important;

        background-repeat: no-repeat !important;

        box-shadow: none !important;

        transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease !important;
    }


    .filters.dashboard-filter-section .tab-filter:hover {
        background-color: #eef3f8 !important;
    }


    .filters.dashboard-filter-section .tab-filter:focus {
        background-color: #ffffff !important;

        border-color: #0d357d !important;

        box-shadow:
            0 0 0 3px
            rgba(13, 53, 125, 0.08) !important;
    }


    /* =========================================================
       SEARCH
    ========================================================= */

    .filters.dashboard-filter-section
    .search-box.dashboard-search-box {
        position: relative !important;

        display: flex !important;
        align-items: center !important;

        flex: 1 1 420px !important;

        width: auto !important;
        min-width: 280px !important;
        max-width: none !important;

        height: 46px !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;

        border: none !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        overflow: visible !important;
    }


    .filters.dashboard-filter-section
    .search-box.dashboard-search-box
    .search-icon {
        position: absolute !important;

        top: 50% !important;
        left: 16px !important;

        z-index: 3 !important;

        width: 16px !important;
        height: 16px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;
        padding: 0 !important;

        color: #8090a6 !important;

        font-size: 14px !important;
        line-height: 1 !important;

        transform: translateY(-50%) !important;

        pointer-events: none !important;
    }


    .filters.dashboard-filter-section
    .search-box.dashboard-search-box
    input {
        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;

        margin: 0 !important;

        padding:
            0
            16px
            0
            44px !important;

        color: #172033 !important;

        background: #f4f7fb !important;

        border: 1px solid transparent !important;
        border-radius: 12px !important;

        outline: none !important;

        font-family: inherit !important;
        font-size: 13px !important;
        font-weight: 400 !important;
        line-height: normal !important;

        box-shadow: none !important;

        appearance: none !important;

        box-sizing: border-box !important;

        transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease !important;
    }


    .filters.dashboard-filter-section
    .search-box.dashboard-search-box
    input::placeholder {
        color: #94a3b8 !important;
        opacity: 1 !important;
    }


    .filters.dashboard-filter-section
    .search-box.dashboard-search-box
    input:hover {
        background: #eef3f8 !important;
    }


    .filters.dashboard-filter-section
    .search-box.dashboard-search-box
    input:focus {
        background: #ffffff !important;

        border-color: #0d357d !important;

        box-shadow:
            0 0 0 3px
            rgba(13, 53, 125, 0.08) !important;
    }


    /* =========================================================
       RIGHT FILTERS
    ========================================================= */

    .filters.dashboard-filter-section .filter-dropdowns {
        display: flex !important;
        align-items: center !important;

        flex: 0 0 auto !important;

        width: auto !important;

        gap: 8px !important;
    }


    .filters.dashboard-filter-section .select-wrapper {
        position: relative !important;

        flex: 0 0 135px !important;

        width: 135px !important;
        min-width: 135px !important;
        max-width: 135px !important;
    }


    .filters.dashboard-filter-section
    .select-wrapper:has(#workTypeFilter) {
        flex-basis: 145px !important;

        width: 145px !important;
        min-width: 145px !important;
        max-width: 145px !important;
    }


    .filters.dashboard-filter-section
    .select-wrapper
    select {
        width: 100% !important;
        height: 46px !important;

        margin: 0 !important;

        padding:
            0
            34px
            0
            14px !important;

        color: #274b82 !important;

        background: #f4f7fb !important;

        border: 1px solid transparent !important;
        border-radius: 12px !important;

        outline: none !important;

        appearance: none !important;
        -webkit-appearance: none !important;

        font-family: inherit !important;
        font-size: 12px !important;
        font-weight: 700 !important;

        cursor: pointer !important;

        box-shadow: none !important;

        transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease !important;
    }


    .filters.dashboard-filter-section
    .select-wrapper
    select:hover {
        background: #eef3f8 !important;
    }


    .filters.dashboard-filter-section
    .select-wrapper
    select:focus {
        background: #ffffff !important;

        border-color: #0d357d !important;

        box-shadow:
            0 0 0 3px
            rgba(13, 53, 125, 0.08) !important;
    }


    .filters.dashboard-filter-section
    .select-wrapper
    > i {
        position: absolute !important;

        top: 50% !important;
        right: 13px !important;

        z-index: 2 !important;

        color: #64748b !important;

        font-size: 9px !important;

        transform: translateY(-50%) !important;

        pointer-events: none !important;
    }


    /* =========================================================
       RESET
    ========================================================= */

    .filters.dashboard-filter-section
    .reset-filter-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        flex: 0 0 76px !important;

        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;

        height: 46px !important;

        margin: 0 !important;

        gap: 7px !important;

        padding: 0 12px !important;

        color: #526174 !important;

        background: #ffffff !important;

        border: 1px solid #dce3ec !important;
        border-radius: 12px !important;

        font-family: inherit !important;
        font-size: 11px !important;
        font-weight: 700 !important;

        cursor: pointer !important;

        box-shadow: none !important;

        transition:
            color 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease !important;
    }


    .filters.dashboard-filter-section
    .reset-filter-btn:hover {
        color: #0d357d !important;

        background: #f8fafc !important;

        border-color: #bcc9dc !important;
    }


    .filters.dashboard-filter-section
    .reset-filter-btn
    span {
        display: inline !important;
    }


    .filters.dashboard-filter-section
    .reset-filter-btn
    i {
        font-size: 11px !important;
    }

}


/* =========================================================
   SMALLER DESKTOP / TABLET
   Preserve the same visual system while allowing wrapping.
========================================================= */

@media (max-width: 1150px) and (min-width: 801px) {

    .filters.dashboard-filter-section {
        width: calc(100% - 40px) !important;

        padding:
            16px
            18px !important;
    }


    .filters.dashboard-filter-section
    .filter-container {
        flex-wrap: wrap !important;
    }


    .filters.dashboard-filter-section
    .job-tabs-wrapper {
        flex-basis: 140px !important;

        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
    }


    .filters.dashboard-filter-section
    .search-box.dashboard-search-box {
        flex:
            1
            1
            calc(100% - 150px) !important;

        width: auto !important;

        min-width: 250px !important;
    }


    .filters.dashboard-filter-section
    .filter-dropdowns {
        display: grid !important;

        grid-template-columns:
            repeat(3, minmax(0, 1fr))
            76px !important;

        width: 100% !important;

        gap: 8px !important;
    }


    .filters.dashboard-filter-section
    .select-wrapper,
    .filters.dashboard-filter-section
    .select-wrapper:has(#workTypeFilter) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        flex: none !important;
    }


    .filters.dashboard-filter-section
    .reset-filter-btn {
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;

        flex: none !important;
    }

}


/* =========================================================
   MOBILE DRAWER VISUAL CONSISTENCY
   Keep the existing JS/open-close behavior untouched.
========================================================= */

@media (max-width: 800px) {

    .filters.dashboard-filter-section
    .tab-filter,
    .filters.dashboard-filter-section
    .search-box.dashboard-search-box
    input,
    .filters.dashboard-filter-section
    .select-wrapper
    select {
        background: #f4f7fb !important;

        border: 1px solid transparent !important;
        border-radius: 12px !important;
    }


    .filters.dashboard-filter-section
    .tab-filter:focus,
    .filters.dashboard-filter-section
    .search-box.dashboard-search-box
    input:focus,
    .filters.dashboard-filter-section
    .select-wrapper
    select:focus {
        background: #ffffff !important;

        border-color: #0d357d !important;

        box-shadow:
            0 0 0 3px
            rgba(13, 53, 125, 0.08) !important;
    }


    .filters.dashboard-filter-section
    .reset-filter-btn {
        background: #ffffff !important;

        border: 1px solid #dce3ec !important;
        border-radius: 12px !important;

        color: #526174 !important;
    }

}


/* =========================================================
   PUBLIC JOB LISTING - RESPONSIVE SAFETY BASELINE
========================================================= */
.public-job-listing-page,
.jobs-container,
.filters,
.filter-container,
.jobs-grid,
.job-card,
.modal-content {
    min-width: 0;
}

.job-card,
.modal-content,
.modal-content p,
.modal-content li,
.modal-content h2,
.modal-content h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.modal-content {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
}

@media (max-width: 1150px) {
    .filters.dashboard-filter-section .search-box.dashboard-search-box,
    .filters.dashboard-filter-section .search-box.dashboard-search-box input {
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 800px) {
    .filters.dashboard-filter-section .search-box.dashboard-search-box,
    .filters.dashboard-filter-section .search-box.dashboard-search-box input {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .filters.dashboard-filter-section input,
    .filters.dashboard-filter-section select,
    .modal-content input,
    .modal-content select,
    .modal-content textarea {
        font-size: 16px !important;
    }

    .modal-content {
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
    }
}
