:root {
    --primary: #0B63E6;
    --primary-hover: #084ebb;
    --primary-light: #eaf2ff;
    --secondary: #10b981;
    --dark: #0f172a;
    --gray-600: #475569;
    --gray-400: #94a3b8;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
}

html, body.public-search-page {
    background-color: #f8fafc;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body.drawer-open {
    overflow: hidden !important;
}

/* NAVBAR */
.ps-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.ps-nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ps-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.4px;
    background: transparent;
    border: none;
    transition: color 0.2s ease;
}
.ps-logo:hover {
    color: var(--primary-hover);
}
.ps-logo i {
    font-size: 24px;
    color: var(--primary);
}
.ps-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.ps-nav-links a {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.ps-nav-links a:hover, .ps-nav-links a.active {
    color: var(--primary);
}
.ps-auth-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-login-outline {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-login-outline:hover {
    background: #eaf2ff;
    color: var(--primary);
}
.btn-signup-solid {
    padding: 9px 20px;
    border-radius: 8px;
    border: 1.5px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-signup-solid:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

/* HERO SEARCH STRIP */
.ps-search-strip {
    background: linear-gradient(135deg, #0b63e6 0%, #084ebb 100%);
    padding: 40px 20px 48px;
    color: var(--white);
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
.ps-search-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}
.ps-search-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 28px;
}
.ps-search-box-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 8px;
    display: flex;
    box-shadow: var(--shadow-lg);
    gap: 8px;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.ps-input-field {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
}
.ps-input-field i {
    color: var(--gray-400);
    margin-right: 12px;
    font-size: 18px;
}
.ps-input-field input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-size: 15px;
    color: var(--dark);
    font-family: inherit;
}
.ps-btn-search {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.ps-btn-search:hover {
    background: #063c96;
}

/* POPULAR PILLS BELOW SEARCH */
.ps-popular-tags {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ps-pop-chip {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-radius: 20px;
    padding: 3px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 12px;
}
.ps-pop-chip:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* MAIN LAYOUT (LARGE SCREEN: FULL WIDTH CONTAINER) */
.ps-main-container {
    max-width: 1350px;
    margin: 28px auto;
    padding: 0 24px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.ps-listings-wrap {
    width: 100%;
    max-width: 100%;
}

/* DESKTOP FILTER BACKDROP */
.ps-filter-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1055;
    display: none;
}

/* DESKTOP FILTER CARD AS SLIDE-OVER POPUP DRAWER */
.ps-filters-card {
    position: fixed;
    top: 0;
    left: 0;
    width: 390px;
    max-width: 90vw;
    height: 100%;
    background: var(--white);
    z-index: 1060;
    box-shadow: 10px 0 35px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    padding: 0;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.ps-filters-card.popup-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.ps-filter-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    flex-shrink: 0;
    margin-bottom: 0;
}

.ps-filter-header h5 {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

.ps-filter-close-btn {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.ps-filter-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.ps-filter-body {
    padding: 22px 24px;
    overflow-y: auto;
    flex: 1;
}

.ps-filter-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    background: #f8fafc;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ps-btn-filter-reset {
    background: #f1f5f9;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ps-btn-filter-reset:hover {
    background: #e2e8f0;
    color: var(--dark);
}

.ps-btn-filter-apply {
    background: var(--primary);
    border: none;
    color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
    text-align: center;
    box-shadow: 0 4px 12px rgba(11, 99, 230, 0.25);
}

.ps-btn-filter-apply:hover {
    background: var(--primary-hover);
}
.ps-clear-all {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.ps-clear-all:hover {
    text-decoration: underline;
}

.ps-filter-group {
    margin-bottom: 22px;
}
.ps-filter-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ps-filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ps-checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
    user-select: none;
}
.ps-checkbox-label input[type="checkbox"], .ps-checkbox-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}
.ps-checkbox-label:hover {
    color: var(--primary);
}

/* CHIPS FOR FILTERS */
.ps-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ps-filter-chip {
    padding: 6px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.ps-filter-chip:hover {
    background: #e2e8f0;
}
.ps-filter-chip.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #bfdbfe;
}

/* RESULTS HEADER */
.ps-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.ps-count-badge {
    font-size: 16px;
    color: var(--gray-600);
}
.ps-count-badge strong {
    color: var(--dark);
    font-size: 18px;
}

/* JOB CARDS (2 CARDS PER ROW ON LARGE SCREEN) */
.ps-job-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.ps-empty-state,
.ps-job-list > .text-center {
    grid-column: 1 / -1;
}

/* DESKTOP FILTER TOGGLE BUTTON */
.ps-btn-filter-desktop {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #ffffff;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.ps-btn-filter-desktop i {
    color: var(--primary);
    font-size: 16px;
}

.ps-btn-filter-desktop:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.ps-btn-filter-desktop.has-active-filters {
    border-color: var(--primary);
    background: #eff6ff;
    color: var(--primary);
}

.ps-filter-badge {
    display: none;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 12px;
    padding: 2px 7px;
    min-width: 19px;
    text-align: center;
    line-height: 1.2;
}

.ps-filter-badge.active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ps-job-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 22px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease-in-out;
    position: relative;
    cursor: pointer;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ps-job-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}
.ps-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.ps-company-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid var(--gray-200);
    padding: 4px;
}
.ps-company-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}
.ps-job-main {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.ps-job-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
    line-height: 1.3;
}
.ps-job-title:hover {
    color: var(--primary);
}
.ps-company-name {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ps-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.ps-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.ps-tag-type { background: #e0f2fe; color: #0369a1; }
.ps-tag-salary { background: #dcfce7; color: #15803d; }
.ps-tag-exp { background: #f3e8ff; color: #7e22ce; }
.ps-tag-loc { background: #f1f5f9; color: #475569; }

.ps-job-desc-preview {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ps-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-100);
    padding-top: 14px;
    margin-top: 10px;
}
.ps-posted-time {
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}
.ps-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ps-btn-bookmark {
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}
.ps-btn-bookmark:hover {
    background: #f1f5f9;
    color: var(--primary);
    border-color: #cbd5e1;
}
.ps-btn-view {
    background: #f1f5f9;
    color: var(--dark);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.ps-btn-view:hover {
    background: #e2e8f0;
}
.ps-btn-apply {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.ps-btn-apply:hover {
    background: var(--primary-hover);
}

/* EMPTY STATE */
.ps-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px dashed var(--gray-400);
}
.ps-empty-icon {
    font-size: 48px;
    color: var(--gray-400);
    margin-bottom: 16px;
}
.ps-empty-state h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.ps-empty-state p {
    color: var(--gray-600);
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto 20px;
}

/* OFF-CANVAS / JOB DETAILS DRAWER */
.ps-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1040;
    display: none;
}
.ps-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 580px;
    max-width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 1045;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}
.ps-drawer.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}
.ps-drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.ps-drawer-close {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}
.ps-drawer-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}
.ps-drawer-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}
.ps-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--gray-200);
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* COMPACT MODERN GUEST MODAL */
.guest-modal {
    z-index: 1080 !important;
}
.modal-backdrop {
    z-index: 1070 !important;
}
body.modal-open .ps-drawer {
    filter: brightness(0.85);
}
.guest-modal .modal-dialog {
    z-index: 1085 !important;
    max-width: 410px;
    margin: 1.75rem auto;
}
.guest-modal .modal-content {
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
    background: #ffffff;
    position: relative;
}
.guest-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}
.guest-modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}
.guest-modal .modal-body {
    padding: 28px 24px 22px;
    text-align: center;
}
.guest-icon-badge {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    color: var(--primary);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(11, 99, 230, 0.12);
}
.guest-modal-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
.guest-job-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12.5px;
    color: #334155;
    font-weight: 600;
    margin-bottom: 12px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.guest-job-pill i {
    color: var(--primary);
}
.guest-modal-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 20px;
}
.guest-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.btn-candidate-login {
    background: var(--primary);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(11, 99, 230, 0.25);
}
.btn-candidate-login:hover {
    background: var(--primary-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(11, 99, 230, 0.35);
}
.btn-candidate-signup {
    background: #f8fafc;
    color: #1e293b;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s;
}
.btn-candidate-signup:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--primary);
}
.guest-modal-footer-hint {
    margin-top: 14px;
    font-size: 11.5px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}


.ps-drawer-desc {
    white-space: pre-line;
    line-height: 1.6;
}
.ps-drawer-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid var(--gray-200);
    padding: 4px;
}
.ps-drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

/* ==========================================================================
   Mobile Responsive Enhancements for Public Search
   ========================================================================== */
.ps-mobile-filter-bar {
    display: none;
}
.ps-btn-mobile-filter {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}
.ps-btn-mobile-filter:hover, .ps-btn-mobile-filter.active {
    background: var(--primary);
    color: var(--white);
}

@media (max-width: 991px) {
    .ps-main-container {
        margin: 16px auto;
        padding: 0 16px;
    }

    .ps-job-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ps-btn-filter-desktop {
        display: none !important;
    }

    .ps-filter-backdrop {
        display: none !important;
    }

    .ps-mobile-filter-bar {
        display: block;
    }

    .ps-filters-card {
        position: static;
        transform: none !important;
        visibility: visible !important;
        pointer-events: auto !important;
        width: 100%;
        max-width: 100%;
        height: auto;
        box-shadow: var(--shadow-md);
        border: 1.5px solid #cbd5e1;
        border-radius: var(--radius-md);
        padding: 0;
        display: none;
        overflow: visible;
        margin-bottom: 20px;
    }

    .ps-filters-card.show-mobile {
        display: block;
        animation: fadeInFilter 0.25s ease-in-out;
    }

    .ps-filter-header {
        padding: 16px;
    }

    .ps-filter-body {
        padding: 16px;
        overflow-y: visible;
    }

    .ps-filter-footer {
        display: none;
    }

    .ps-filter-close-btn {
        display: none;
    }

    @keyframes fadeInFilter {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 768px) {
    .ps-navbar {
        padding: 12px 18px 8px;
    }
    .ps-logo {
        font-size: 20px;
    }
    .ps-logo i {
        font-size: 20px;
    }
    .ps-auth-btns {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .btn-login-outline {
        padding: 7px 15px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 8px;
        border: 1.5px solid var(--primary);
        background: transparent;
        color: var(--primary);
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .btn-signup-solid {
        padding: 7px 16px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 8px;
        border: 1.5px solid var(--primary);
        background: var(--primary);
        color: #fff;
        min-height: 34px;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .ps-search-strip {
        padding: 24px 14px 28px;
    }
    .ps-search-strip .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .ps-search-title {
        font-size: 24px;
        line-height: 1.3;
    }
    .ps-search-subtitle {
        font-size: 13.5px;
        margin-bottom: 18px;
    }
    .ps-search-box-wrap {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        flex-direction: column;
        padding: 10px;
        gap: 8px;
        border-radius: 12px;
    }
    .ps-input-field {
        width: 100% !important;
        flex: none !important;
        padding: 10px 14px;
        box-sizing: border-box !important;
        border-radius: 8px;
    }
    .ps-input-field input {
        font-size: 16px; /* Prevents iOS auto-zoom */
        width: 100%;
    }
    .ps-btn-search {
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center;
        padding: 12px;
        font-size: 15px;
        font-weight: 700;
        min-height: 44px;
        border-radius: 8px;
    }
    .ps-popular-tags {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding: 6px 0;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .ps-popular-tags::-webkit-scrollbar {
        display: none;
    }
    .ps-main-container {
        margin: 16px auto;
        padding: 0 12px;
    }
    .ps-drawer {
        width: 100%;
        max-width: 100%;
        right: 0;
        border-radius: 0;
    }
    .ps-drawer-header {
        padding: 16px;
    }
    .ps-drawer-body {
        padding: 16px;
    }
    .ps-drawer-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 10px;
    }
    .ps-drawer-footer .ps-btn-apply {
        width: 100%;
        justify-content: center;
    }
    .ps-drawer-footer .ps-btn-bookmark {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .ps-navbar {
        padding: 10px 14px 8px;
    }
    .ps-logo {
        font-size: 19px;
    }
    .ps-logo i {
        font-size: 19px;
    }
    .ps-auth-btns {
        gap: 6px;
    }
    .btn-login-outline {
        padding: 6px 13px;
        font-size: 12.5px;
        border-radius: 8px;
        border: 1.5px solid var(--primary);
        background: transparent;
        color: var(--primary);
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .btn-signup-solid {
        padding: 6px 14px;
        font-size: 12.5px;
        border-radius: 8px;
        border: 1.5px solid var(--primary);
        background: var(--primary);
        color: #fff;
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .ps-search-strip {
        padding: 20px 12px 24px;
    }
    .ps-search-strip .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .ps-search-box-wrap {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px;
        border-radius: 12px;
    }
    .ps-input-field {
        width: 100% !important;
        padding: 9px 12px;
        box-sizing: border-box !important;
    }
    .ps-btn-search {
        width: 100% !important;
        box-sizing: border-box !important;
        min-height: 44px;
    }
    .ps-job-card {
        padding: 14px;
    }
    .ps-card-top {
        gap: 12px;
    }
    .ps-company-logo, .ps-company-avatar {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    .ps-job-title {
        font-size: 16px;
    }
    .ps-company-name {
        font-size: 13px;
        margin-bottom: 8px;
    }
    .ps-tags-row {
        gap: 6px;
        margin-bottom: 10px;
    }
    .ps-tag {
        font-size: 11px;
        padding: 3px 7px;
    }
    .ps-job-desc-preview {
        font-size: 13px;
        margin-bottom: 12px;
    }
    .ps-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-top: 10px;
    }
    .ps-card-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    .ps-btn-view {
        flex: 1;
        padding: 9px 8px;
        font-size: 12.5px;
        text-align: center;
    }
    .ps-btn-apply {
        flex: 1.3;
        padding: 9px 8px;
        font-size: 12.5px;
        text-align: center;
    }
    .ps-btn-bookmark {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }
    .guest-modal .modal-dialog {
        margin: 16px auto;
        width: calc(100% - 24px);
        max-width: 380px;
    }
    .guest-modal .modal-body {
        padding: 24px 18px 18px;
    }
    .guest-icon-badge {
        width: 46px;
        height: 46px;
        font-size: 20px;
        margin-bottom: 10px;
    }
    .guest-modal-title {
        font-size: 17px;
    }
}
