/* Tracker Header */
.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* Back to Landing Page Button */
.back-to-landing {
    margin-left: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #60a5fa; /* Light blue instead of green */
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.back-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

.back-btn i {
    font-size: 12px;
}

/* Page Title */
.page-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.page-title h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title h1 i {
    color: #60a5fa; /* Light blue instead of green */
    font-size: 24px;
}

.page-title p {
    margin: 0;
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* Responsive Design for Tracker Header */
@media (max-width: 768px) {
    .tracker-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .page-title {
        text-align: center;
    }
    
    .page-title h1 {
        font-size: 24px;
        justify-content: center;
    }
    
    .page-title p {
        font-size: 14px;
    }
    
    .back-to-landing {
        margin-left: 0;
        order: -1;
    }
    
    .back-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Body padding for fixed navbar */
body {
    padding-top: 70px !important; /* Account for fixed navbar */
    min-height: 100vh;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Job search page specific body styles */
body.job-search-page {
    padding-top: 70px !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
}

/* Band color for job search page - MUST override main.css */
body.job-search-page {
    background: #2764EB !important; /* RGB 39, 100, 235 */
    background-color: #2764EB !important;
}

body.job-search-page,
body:has(.job-search-container),
html:has(.job-search-container) body {
    background: #2764EB !important; /* RGB 39, 100, 235 */
    background-color: #2764EB !important;
}

/* Filters tab heading above sidebar (icon + "Filters" text) */
.job-search-sidebar-title {
    color: #1E293B;
    font-weight: 700;
}
.job-search-filters-heading-icon {
    color: #2764EB !important;
}

/* Teal-style Job Search - Fullscreen Layout */
body:has(.job-search-container) .job-search-container,
.job-search-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    box-sizing: border-box;
    min-height: calc(100vh - 70px);
}

/* Main content wrapper - fullscreen white card */
body:has(.job-search-container) .job-search-content-wrapper,
body.job-search-page .job-search-content-wrapper,
.job-search-content-wrapper {
    background: white !important;
    border-radius: 0 !important;
    padding: 24px 32px !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: calc(100vh - 70px);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    /* Border at bottom of the horizontal bar (RGB 39, 100, 235 / #2764EB) */
    border-top: 3px solid #2764EB !important;
}

body:has(.job-search-container) .search-section,
.job-search-container .search-section {
    margin-bottom: 24px;
}

body:has(.job-search-container) .search-bar,
.job-search-container .search-bar {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    padding: 12px;
    border: 1px solid #e5e7eb;
}

.job-search-container .search-input-wrapper {
    display: flex;
    flex: 1;
    gap: 12px;
}

.job-search-container .search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.job-search-container .search-input-group:focus-within {
    background: #fff;
    border-color: #60a5fa; /* Light blue instead of green */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.job-search-container .input-icon {
    color: #818cf8; /* Light purple for search icon */
    margin-right: 12px;
    font-size: 16px;
}

.job-search-container .input-icon.fa-search {
    color: #818cf8; /* Light purple for search icon specifically */
}

.job-search-container .search-input-group input {
    border: none;
    background: none;
    width: 100%;
    padding: 0;
    font-size: 15px;
    outline: none;
    color: #111827;
    font-weight: 400;
}

.job-search-container .search-input-group input::placeholder {
    color: #9ca3af;
}

.job-search-container .search-button {
    background: #10b981 !important; /* Emerald/teal green - Find Opportunities button */
    color: white !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 24px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    box-shadow: none !important;
    min-width: 50px !important;
    height: 44px !important;
}

.job-search-container .search-button i {
    color: white !important; /* White icon */
}

.job-search-container .search-button .search-button-label {
    display: inline;
    margin-left: 0;
}

.job-search-container .search-button:hover {
    background: #059669 !important; /* Darker green on hover */
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2) !important;
}

.job-search-container .search-button:hover i {
    color: white !important; /* White icon on hover */
}

.job-search-container .search-button:active {
    transform: translateY(1px);
}

.job-search-container .search-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Location input container - position relative so dropdown overlays below */
.job-search-container .location-input-container {
    position: relative;
}

/* Location autocomplete dropdown - overlay below input, do not stretch container */
.job-search-container .location-input-container #dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-top: 4px !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    z-index: 1100 !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.job-search-container .location-input-container .dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.job-search-container .location-input-container .dropdown-item:last-child {
    border-bottom: none;
}

.job-search-container .location-input-container .dropdown-item:hover,
.job-search-container .location-input-container .dropdown-item.selected {
    background-color: #f5f5f5;
}

.job-search-container .location-input-container .dropdown-item .main-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.job-search-container .location-input-container .dropdown-item .secondary-text {
    font-size: 12px;
    color: #666;
}

.job-search-container .search-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.job-search-container .search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 16px 0;
    padding: 0 4px;
}

.job-search-container .top-matches-heading {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 15px;
    color: #1e293b;
}
.job-search-container .top-matches-label {
    font-weight: 700;
}
.job-search-container #jobMatchCount {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    letter-spacing: -0.01em;
}

/* Active filter tags: first = blue pill, rest = gray pill */
.job-search-container .mobile-active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background: #e2e8f0;
    color: #475569;
    transition: background 0.2s, color 0.2s;
}
.job-search-container .mobile-active-filter-tag.mobile-active-filter-tag-primary {
    background: #2764EB;
    color: #fff;
}
.job-search-container .mobile-active-filter-tag .mobile-active-filter-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.9;
}
.job-search-container .clear-all-filters-link {
    background: none;
    border: none;
    color: #2764EB;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0;
    text-decoration: none;
}
.job-search-container .clear-all-filters-link:hover {
    text-decoration: underline;
}

/* Teal-style Three Column Layout */
.job-search-container .teal-job-search-layout {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 0;
    height: calc(100vh - 350px);
    min-height: 600px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-top: 8px;
}

.job-list-column {
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    background: #f9fafb;
    display: flex !important;
    flex-direction: column !important;
}

.job-list-compact {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 0 !important;
    flex: 1 !important;
}

.job-card-compact {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.job-card-compact:hover {
    background: #f9fafb;
}

.job-card-compact.selected {
    background: #f3f4f6;
    border-left: 3px solid #60a5fa; /* Light blue instead of green */
}

.job-card-compact .job-title-compact {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.job-card-compact .company-name-compact {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 8px 0;
    font-weight: 400;
}

.job-card-compact .job-meta-compact {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #9ca3af;
    flex-wrap: wrap;
}

.job-card-compact .job-meta-compact span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-details-column {
    overflow-y: auto;
    background: #fff;
    padding: 0;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
}

.job-details-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
    color: #6b7280;
}

.job-details-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.job-details-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.job-details-empty p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.job-details-content {
    padding: 32px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.job-details-actions-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    width: 100% !important;
    box-sizing: border-box;
    flex-shrink: 0;
}

.job-details-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    width: 100% !important;
    box-sizing: border-box;
}

.job-details-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.job-details-company {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px 0;
}

.job-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
}

.job-details-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-details-meta-item i {
    color: #9ca3af;
    font-size: 14px;
}

.job-details-section {
    margin-bottom: 32px;
}

.job-details-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.job-details-section p,
.job-details-section ul,
.job-details-section ol,
.job-details-section div {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 16px 0;
}

.job-details-section p:last-child,
.job-details-section ul:last-child,
.job-details-section ol:last-child,
.job-details-section div:last-child {
    margin-bottom: 0;
}

.job-details-section ul,
.job-details-section ol {
    padding-left: 24px;
}

.job-details-section li {
    margin-bottom: 8px;
}

.job-details-section div p {
    margin-bottom: 12px;
}

.job-details-section div ul,
.job-details-section div ol {
    margin-bottom: 12px;
}

/* Jump to top button at bottom of job description */
.job-details-jump-to-top {
    margin-top: 24px;
    margin-bottom: 16px;
    width: 100%;
}
.job-details-jump-to-top .jump-to-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 400px;
    padding: 12px 24px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.job-details-jump-to-top .jump-to-top-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* More Options dropdown styles (mobile-friendly) */
.more-options-dropdown { position: relative; display: inline-block; }
.more-options-btn { padding: 8px; width: 44px; height: 44px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: white; border: 1px solid #e5e7eb; color: #374151; }
.more-options-menu { position: absolute; top: 48px; right: 0; background: white; border: 1px solid #e5e7eb; box-shadow: 0 6px 18px rgba(0,0,0,0.08); min-width: 180px; z-index: 1200; border-radius: 8px; overflow: hidden; }
.more-options-menu .apply-option-btn { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: white; border: none; width: 100%; text-align: left; }
.more-options-menu .apply-option-btn i { width: 22px; text-align: center; }

@media (max-width: 768px) {
    /* Show an icon to the left of the label and keep chevron visible on mobile */
    .more-options-btn .more-options-icon { display: inline-block !important; margin-right: 8px !important; font-size: 16px !important; }
    .more-options-btn .more-options-chevron { display: inline-block !important; margin-left: auto !important; }
    .more-options-menu { right: 0; left: auto; top: 50px; min-width: 160px; }
}

/* Mobile: show label for More Options button and make it full-width */
@media (max-width: 768px) {
    .more-options-btn { width: 100% !important; justify-content: flex-start !important; gap: 10px !important; padding: 10px 12px !important; }
    .more-options-btn .more-options-label { display: inline-block !important; font-size: 15px !important; font-weight: 600 !important; color: #0f172a !important; margin-left: 6px !important; }
    /* Ensure icon stays at left */
    .more-options-btn i { margin-right: 6px !important; }
}

.job-actions-sidebar {
    border-left: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 24px;
    overflow-y: auto;
}

.sidebar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    min-height: 44px;
}

.bookmark-btn {
    background: #fff;
    color: #60a5fa; /* Light blue instead of green */
    border: 1.5px solid #60a5fa; /* Light blue instead of green */
}

.bookmark-btn:hover {
    background: #eff6ff; /* Light blue background instead of green */
    border-color: #3b82f6; /* Darker light blue instead of green */
}

.bookmark-btn.bookmarked {
    background: #60a5fa; /* Light blue instead of green */
    color: white;
    border-color: #60a5fa; /* Light blue instead of green */
}

.apply-btn-sidebar {
    background: #60a5fa; /* Light blue instead of green */
    color: white;
    position: relative;
}

.apply-btn-sidebar:hover {
    background: #3b82f6; /* Darker light blue instead of green */
    box-shadow: 0 4px 6px rgba(96, 165, 250, 0.2); /* Light blue shadow instead of green */
}

.apply-options-dropdown {
    position: relative;
    width: 100%;
}

.apply-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.apply-option-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.apply-option-btn:last-child {
    border-bottom: none;
}

.apply-option-btn:hover {
    background: #f9fafb;
}

.apply-option-btn:disabled,
.apply-option-btn.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.apply-option-btn:not(:disabled):not(.disabled) {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.apply-option-btn i {
    font-size: 16px;
    color: #6b7280;
}

.apply-option-btn:hover i {
    color: #60a5fa; /* Light blue instead of green */
}

/* Teal-style Three Column Layout */
.job-search-container .teal-job-search-layout {
    display: grid;
    grid-template-columns: 400px minmax(0, 1fr);
    gap: 0;
    height: calc(100vh - 350px);
    min-height: 600px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    margin-top: 8px;
}

.job-list-column {
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    background: #f9fafb;
    display: flex !important;
    flex-direction: column !important;
}

.job-list-compact {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 0 !important;
    flex: 1 !important;
}

.job-card-compact {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.job-card-compact:hover {
    background: #f9fafb;
}

.job-card-compact.selected {
    background: #f3f4f6;
    border-left: 3px solid #60a5fa; /* Light blue instead of green */
}

.job-card-compact .job-title-compact {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.job-card-compact .company-name-compact {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 8px 0;
    font-weight: 400;
}

.job-card-compact .job-meta-compact {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #9ca3af;
    flex-wrap: wrap;
}

.job-card-compact .job-meta-compact span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-card-compact.saved {
    position: relative;
}

.job-card-compact.saved::after {
    content: '';
    position: absolute;
    top: 16px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: #60a5fa; /* Light blue instead of green */
    border-radius: 50%;
}

.job-details-column {
    overflow-y: auto;
    background: #fff;
    padding: 0;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
}

.job-details-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
    color: #6b7280;
}

.job-details-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.job-details-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.job-details-empty p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.job-details-content {
    padding: 32px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.job-details-actions-top {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    width: 100% !important;
    box-sizing: border-box;
    flex-shrink: 0;
}

.job-details-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    width: 100% !important;
    box-sizing: border-box;
}

.job-details-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.job-details-company {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 16px 0;
}

.job-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
}

.job-details-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-details-meta-item i {
    color: #9ca3af;
    font-size: 14px;
}

.job-details-section {
    margin-bottom: 32px;
}

.job-details-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.job-details-section p,
.job-details-section ul,
.job-details-section ol,
.job-details-section div {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0 0 16px 0;
}

.job-details-section p:last-child,
.job-details-section ul:last-child,
.job-details-section ol:last-child,
.job-details-section div:last-child {
    margin-bottom: 0;
}

.job-details-section ul,
.job-details-section ol {
    padding-left: 24px;
}

.job-details-section li {
    margin-bottom: 8px;
}

.job-details-section div p {
    margin-bottom: 12px;
}

.job-details-section div ul,
.job-details-section div ol {
    margin-bottom: 12px;
}

.job-actions-sidebar {
    border-left: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 24px;
    overflow-y: auto;
}

.sidebar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    min-height: 44px;
}

.bookmark-btn {
    background: #fff;
    color: #60a5fa; /* Light blue instead of green */
    border: 1.5px solid #60a5fa; /* Light blue instead of green */
}

.bookmark-btn:hover {
    background: #eff6ff; /* Light blue background instead of green */
    border-color: #3b82f6; /* Darker light blue instead of green */
}

.bookmark-btn.bookmarked {
    background: #60a5fa; /* Light blue instead of green */
    color: white;
    border-color: #60a5fa; /* Light blue instead of green */
}

.apply-btn-sidebar {
    background: #60a5fa; /* Light blue instead of green */
    color: white;
    position: relative;
}

.apply-btn-sidebar:hover {
    background: #3b82f6; /* Darker light blue instead of green */
    box-shadow: 0 4px 6px rgba(96, 165, 250, 0.2); /* Light blue shadow instead of green */
}

.apply-options-dropdown {
    position: relative;
    width: 100%;
}

.apply-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.apply-option-btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.apply-option-btn:last-child {
    border-bottom: none;
}

.apply-option-btn:hover {
    background: #f9fafb;
}

.apply-option-btn:disabled,
.apply-option-btn.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.apply-option-btn:not(:disabled):not(.disabled) {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.apply-option-btn i {
    font-size: 16px;
    color: #6b7280;
}

.apply-option-btn:hover i {
    color: #60a5fa; /* Light blue instead of green */
}

/* Hide old job results container - using three-column layout */
.job-results-container {
    display: none !important;
}

/* Old single-column layout hidden */

/* Responsive adjustments */
@media (max-width: 1400px) {
    .teal-job-search-layout {
        grid-template-columns: 350px 1fr 280px;
    }
}

@media (max-width: 1200px) {
    .teal-job-search-layout {
        grid-template-columns: 300px 1fr;
    }
    
    .job-actions-sidebar {
        display: none;
    }
}

/* Mobile styles moved to main responsive section above */

/* Hide old job cards - use compact cards instead */
.job-card:not(.job-card-compact) {
    display: none !important;
}

/* Hide old job card container */
.job-list:not(.job-list-compact) {
    display: none !important;
}

/* Old job card styles hidden - using compact cards in three-column layout */

.job-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.job-title:hover {
    color: #60a5fa; /* Light blue instead of green */
    cursor: pointer;
}

.company-name {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-name i {
    color: #6b7280;
    font-size: 14px;
}

.job-location {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-location i {
    color: #9ca3af;
}

.remote-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.job-details {
    display: flex;
    gap: 12px; /* reduced gap for tighter spacing */
    margin-bottom: 12px; /* reduce vertical whitespace */
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.job-details span {
    color: #6b7280;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.job-details span i {
    color: #9ca3af;
    font-size: 13px;
}

/* Position the saved-date below the location on the left side and optimize whitespace */
.job-details .saved-date,
.job-details .job-saved-date {
    order: 2;                /* ensure it appears after location */
    flex-basis: 100%;        /* take full row so it sits below other meta items */
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
    align-self: flex-start;  /* stick to left */
}

.job-details .job-location {
    order: 1; /* keep location above the saved date */
}

.job-description {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.job-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, transparent, white);
}

.job-actions {
    display: flex;
    gap: 12px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.apply-btn,
.save-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    position: relative;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

/* Apply button styles - Teal style */
.apply-btn {
    background-color: #60a5fa; /* Light blue instead of green */
    color: white !important;
    flex: 1;
    justify-content: center;
    min-height: 44px;
    outline: none;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.apply-btn:hover {
    background-color: #3b82f6; /* Darker light blue instead of green */
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(96, 165, 250, 0.2); /* Light blue shadow instead of green */
    text-decoration: none;
    color: white;
}

.apply-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #60a5fa; /* Light blue instead of green */
    text-decoration: none;
}

.apply-btn:active,
.apply-btn.clicked {
    transform: translateY(1px);
    background-color: #047857;
    box-shadow: none;
    text-decoration: none;
}

/* Save button styles - Teal style */
.save-btn {
    background-color: #fff;
    color: #60a5fa; /* Light blue instead of green */
    border: 1.5px solid #60a5fa; /* Light blue instead of green */
    padding: 10px 20px;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.save-btn:hover:not(:disabled) {
    background-color: #ecfdf5;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
    border-color: #3b82f6; /* Darker light blue instead of green */
}

.save-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #60a5fa; /* Light blue instead of green */
}

.save-btn:active:not(:disabled) {
    background-color: #d1fae5;
    transform: translateY(1px);
    box-shadow: none;
}

.save-btn:disabled {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.save-btn.saved {
    background-color: #60a5fa; /* Light blue instead of green */
    border-color: #60a5fa; /* Light blue instead of green */
    color: white;
    cursor: not-allowed;
}

.save-btn.saved:hover {
    background-color: #60a5fa; /* Light blue instead of green */
    border-color: #60a5fa; /* Light blue instead of green */
    transform: none;
    box-shadow: none;
}

.save-btn i {
    font-size: 16px;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.location-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.location-suggestion-item:hover {
    background: #f5f5f5;
}

.suggestion-type {
    font-size: 12px;
    color: #666;
    margin-left: auto;
}

.loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.loading i {
    font-size: 24px;
    color: #60a5fa; /* Light blue instead of green */
    margin-bottom: 15px;
}

.loading p {
    color: #333;
    margin: 10px 0;
}

.loading-subtext {
    color: #666;
    font-size: 14px;
}

.no-jobs-found, .error-state {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-jobs-emoji, .error-emoji {
    font-size: 48px;
    margin-bottom: 20px;
}

.no-jobs-found h2, .error-state h2 {
    color: #333;
    margin-bottom: 10px;
}

.no-jobs-found p, .error-state p {
    color: #666;
    margin-bottom: 20px;
}

.error-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.retry-btn, .clear-filters-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.retry-btn {
    background: #60a5fa; /* Light blue instead of green */
    color: white;
    border: none;
}

.retry-btn:hover {
    background: #3b82f6; /* Darker light blue instead of green */
}

.clear-filters-btn {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.clear-filters-btn:hover {
    background: #f5f5f5;
}

/* Responsive styles - Mobile Optimization - Teal Style */
@media (max-width: 768px) {
    /* Body and container optimization - account for fixed navbar */
    body {
        padding-top: 48px !important; /* Match navbar height (48px) */
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
        overflow-x: hidden;
    }
    
    /* Navbar optimization */
    .navbar {
        padding: 10px 15px;
        position: fixed;
        top: 0;
        z-index: 1000;
    }
    
    .nav-logo img {
        height: 2.5rem !important;
    }
    
    /* Job search container - ensure it's below navbar */
    .job-search-container {
        padding: 16px;
        padding-top: 16px;
        margin-top: 0;
        position: relative;
        z-index: 1;
    }
    
    .job-search-content-wrapper {
        padding: 16px;
        border-radius: 8px;
    }
    
    /* Search section optimization - Teal Style */
    .search-section {
        margin-bottom: 16px;
        margin-top: 0;
        width: 100%;
        position: relative;
        z-index: 1;
    }
    
    /* Clean Teal-style search bar - no background/border on wrapper */
    .search-bar {
        flex-direction: column;
        gap: 8px;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: transparent;
        width: 100%;
        display: flex;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        display: flex !important;
        flex: 1;
    }
    
    /* Maximum specificity for all input groups - ensure they're always visible */
    .search-input-wrapper .search-input-group {
        width: 100% !important;
        padding: 14px 16px;
        min-height: 52px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #fff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        flex-shrink: 0;
        order: 0;
    }
    
    /* Maximum specificity for first child (title input group) */
    .search-input-wrapper > .search-input-group:first-child {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 1;
        width: 100% !important;
    }
    
    /* Maximum specificity for last child (location input group) */
    .search-input-wrapper > .search-input-group:last-child {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 2;
        width: 100% !important;
    }
    
    /* All inputs in mobile view */
    .search-input-wrapper .search-input-group input {
        font-size: 16px !important; /* Prevents zoom on iOS */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        flex: 1;
        min-width: 0;
    }
    /* Combined search: hide separate inputs and show combined search field on mobile */
    .combined-search-mobile { display: none; }
    @media (max-width: 768px) {
        .combined-search-mobile { display: block !important; }
        .search-input-wrapper { display: none !important; }
        .location-search-container { display: none !important; }

        /* Place combined input and search button on same row */
        .search-bar { flex-direction: row; align-items: center; gap: 8px; }
        .combined-search-mobile { flex: 1 1 auto; display: flex !important; }
        /* Compact combined search: smaller font-size as requested */
        #combinedSearchWrapper { display:flex; align-items:center; gap:8px; flex:1; padding:8px 10px; border-radius:8px; background:#f9fafb; border:1px solid #e5e7eb; min-height:36px; }
        #combinedSearchWrapper .input-icon { color:#818cf8; margin-right:8px; font-size:14px; }
        #combinedSearchWrapper input { font-size:10px; width:100%; border:none; background:none; outline:none; padding:0; }
        .search-button { width: auto !important; min-width:56px !important; padding:12px 14px !important; height:44px !important; flex:0 0 auto; }
        /* Advanced Filters button next to search button styling (compact) */
        .search-bar .mobile-advanced-btn,
        .search-bar .filter-action-btn.teal-filter-btn {
            margin-left: 6px;
            height: 40px;
            padding: 8px 10px;
            min-width: 44px;
            white-space: nowrap;
            align-self: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 20px;
            font-size: 13px;
            gap: 6px;
        }
        .search-bar .mobile-advanced-btn i { margin-right: 4px; font-size: 14px; }
        /* Make the label inside advanced button very small on mobile */
        .search-bar .mobile-advanced-btn span {
            font-size: 10px !important;
            line-height: 1 !important;
            display: inline-block;
        }
        .search-bar .mobile-advanced-btn.active {
            background: #10B981 !important;
            border-color: #10B981 !important;
            color: white !important;
        }
        .search-bar .mobile-advanced-btn.active i {
            color: white !important;
        }
    }
    /* Combined search: hide separate inputs and show combined input on mobile */
    .combined-search-mobile { display: none; }
    @media (max-width: 768px) {
        .combined-search-mobile { display: block !important; }
        .search-input-wrapper { display: none !important; }
        .location-search-container { display: none !important; }
    }
    
    /* Direct ID selector for title input - maximum specificity */
    .search-input-wrapper .search-input-group:first-child #jobTitleInput,
    #jobTitleInput {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        flex: 1 !important;
    }
    
    /* Direct ID selector for location input - maximum specificity */
    .search-input-wrapper .search-input-group:last-child #locationInput,
    #locationInput {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        flex: 1 !important;
    }
    
    /* Input icons - always visible */
    .search-input-wrapper .search-input-group .input-icon {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0;
        margin-right: 12px;
    }
    
    /* Search button - Teal style full width */
    .search-button {
        width: 100%;
        padding: 14px 20px;
        min-height: 52px;
        justify-content: center;
        align-items: center;
        order: 3;
        margin-top: 4px;
        font-size: 16px;
        font-weight: 600;
        background: #60a5fa !important;
        color: white !important;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .search-button:hover {
        background: #3b82f6 !important;
    }
    
    .search-button i {
        color: white !important;
    }
    
    /* Search results header */
    .search-results-header {
        margin: 16px 0 12px 0;
        padding: 0;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    #jobMatchCount {
        font-size: 14px;
    }
    
    .ellipsis-button {
        min-height: 44px;
        min-width: 44px;
        padding: 10px;
    }
    
    /* Layout optimization for mobile */
    .teal-job-search-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }
    
    .job-list-column {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        max-height: 40vh; /* Reduced height so details appear in viewport */
        min-height: 200px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-shrink: 0;
    }
    
    .job-list-compact {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .job-card-compact {
        padding: 14px 16px;
        min-height: auto;
    }
    
    .job-card-compact .job-title-compact {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .job-card-compact .company-name-compact {
        font-size: 13px;
    }
    
    .job-card-compact .job-meta-compact {
        font-size: 12px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    /* Job details column - appears below list, scrollable */
    .job-details-column {
        min-height: auto;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex: 1;
        scroll-margin-top: 0;
    }
    
    /* Smooth scroll behavior for job details */
    .job-details-column {
        scroll-behavior: smooth;
    }
    
    .job-details-empty {
        padding: 30px 20px;
    }
    
    .job-details-empty .empty-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .job-details-empty h3 {
        font-size: 16px;
    }
    
    .job-details-empty p {
        font-size: 13px;
    }
    
    .job-details-content {
        padding: 20px 16px;
    }
    
    .job-details-actions-top {
        padding-bottom: 16px;
        margin-bottom: 16px;
        gap: 10px;
    }
    
    .job-details-header {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    /* Ensure header -> actions -> sections ordering on mobile */
    .job-details-content {
        display: flex !important;
        flex-direction: column !important;
    }
    .job-details-content > .job-details-header { order: 1 !important; }
    .job-details-content > .job-details-actions-top { order: 2 !important; }
    .job-details-content > .job-details-section { order: 3 !important; }
    .job-details-content > .job-details-jump-to-top { order: 4 !important; }
    
    .job-details-title {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .job-details-company {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .job-details-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
    }
    
    .job-details-section {
        margin-bottom: 24px;
    }
    
    .job-details-section h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .job-details-section p,
    .job-details-section ul,
    .job-details-section ol,
    .job-details-section div {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .job-details-section ul,
    .job-details-section ol {
        padding-left: 20px;
    }
    
    /* Action buttons mobile optimization */
    .action-btn {
        width: 100%;
        min-height: 48px;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .bookmark-btn,
    .apply-btn-sidebar {
        min-height: 48px;
    }
    
    /* Job details and actions */
    .job-details {
        flex-direction: column;
        gap: 8px;
    }

    .job-actions {
        flex-direction: column;
        gap: 10px;
    }

    .apply-btn,
    .save-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    /* Loading spinner */
    .loading-spinner {
        padding: 30px 20px;
    }
    
    .loading-spinner .spinner {
        width: 40px;
        height: 40px;
    }
    
    .loading-spinner p {
        font-size: 14px;
        margin-top: 12px;
    }
    
    /* No jobs found */
    .no-jobs-found {
        padding: 30px 20px;
    }
    
    .no-jobs-emoji {
        font-size: 40px;
        margin-bottom: 16px;
    }
    
    .no-jobs-found h2 {
        font-size: 18px;
    }
    
    .no-jobs-found p {
        font-size: 14px;
    }
    
    .clear-filters-btn {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        max-width: 200px;
    }
    
    /* Better touch targets */
    button, a, input, select, textarea, [role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent horizontal scroll */
    * {
        max-width: 100%;
    }
    
    /* Viewport handling */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Toast container mobile */
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
    
    .toast {
        padding: 14px 16px;
    }
    
    /* Loading state */
    .loading {
        padding: 30px 20px;
    }
    
    .loading i {
        font-size: 32px;
    }
    
    .loading p {
        font-size: 14px;
    }
    
    /* Error state */
    .error-state {
        padding: 30px 20px;
    }
    
    .error-emoji {
        font-size: 40px;
    }
    
    .error-state h2 {
        font-size: 18px;
    }
    
    .error-state p {
        font-size: 14px;
    }
    
    .retry-btn {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Load more button */
    .load-more-btn {
        width: 100%;
        max-width: none;
        min-height: 48px;
        padding: 14px 20px;
        font-size: 15px;
    }
}

.enhanced-data {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.enhanced-data h4 {
    color: #1a73e8;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.enhanced-data h4::before {
    content: '🤖';
    font-size: 16px;
}

.enhanced-content {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.enhanced-content p {
    margin: 5px 0;
}

.enhanced-content p:empty {
    display: none;
}

.load-more-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 24px auto;
    padding: 12px 24px;
    background: #fff;
    border: 1.5px solid #10b981;
    border-radius: 8px;
    color: #60a5fa; /* Light blue instead of green */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: #eff6ff; /* Light blue background instead of green */
    border-color: #3b82f6; /* Darker light blue instead of green */
    color: #3b82f6; /* Darker light blue instead of green */
}

.load-more-btn:disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
}

.load-more-btn i {
    font-size: 16px;
}

/* Error toast styles */
.application-error-toast {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #d93025;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100;
    animation: slideIn 0.3s ease;
    pointer-events: none;
}

/* Success toast styles */
.application-success-toast {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #188038;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100;
    animation: slideIn 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

/* Save success toast styles */
.save-success-toast {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #188038;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100;
    animation: slideIn 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

/* Save error toast styles */
.save-error-toast {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #d93025;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100;
    animation: slideIn 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.application-error-toast i,
.application-success-toast i {
    font-size: 16px;
}

/* Keyboard focus styles */
.job-card .apply-btn:focus-visible,
.job-card .save-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #60a5fa; /* Light blue instead of green */
}

/* Animation for error toast */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Ellipsis button styles */
.ellipsis-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    transition: color 0.2s;
    font-size: 16px;
}

.ellipsis-button:hover {
    color: #333;
}

/* Toast Message Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
}

.toast.success {
    border-left-color: #60a5fa; /* Light blue instead of green */
    color: #065f46;
}

.toast.error {
    border-left-color: #ef4444;
    color: #991b1b;
}

.toast.info {
    border-left-color: #3b82f6;
    color: #1e40af;
}

.toast.warning {
    border-left-color: #f59e0b;
    color: #92400e;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
    opacity: 0.9;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    padding: 4px;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Mobile: ensure Apply button appears above More Options in the actions column */
@media (max-width: 768px) {
    .job-details-actions-top {
        display: flex;
        flex-direction: column;
    }
    .job-details-actions-top .apply-options-dropdown { order: 1 !important; }
    .job-details-actions-top .more-options-dropdown { order: 2 !important; }
}

/* ============================================
   FILTERS SECTION STYLES
   ============================================ */

body:has(.job-search-container) .filters-section,
.job-search-container .filters-section {
    background: transparent;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
    width: 100%;
}

.filters-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.filter-dropdown-wrapper {
    flex: 0 0 auto;
    min-width: 140px;
}

.filter-dropdown {
    width: 100%;
    padding: 10px 36px 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    font-weight: 400;
    min-width: 140px;
    height: 42px;
    display: flex;
    align-items: center;
}

.filter-dropdown:hover {
    border-color: #d1d5db;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.filter-dropdown option {
    color: #374151;
    background: white;
    padding: 8px;
}

/* Selected filter dropdowns - blue styling */
.filter-dropdown.selected {
    background-color: #eff6ff;
    border-color: #2563eb;
    color: #1e40af;
}

.filter-dropdown.selected:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ellipsis-filter-button {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 21px;
    padding: 10px 14px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    font-size: 16px;
    min-width: 44px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ellipsis-filter-button:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.ellipsis-filter-button.active {
    background: #10B981;
    border-color: #10B981;
    color: white;
}

.ellipsis-filter-button.active i {
    color: white;
}

.filters-actions {
    display: flex;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.filter-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    height: 42px;
    white-space: nowrap;
    font-weight: 400;
}

.filter-action-btn:hover {
    color: #374151;
    background: #f9fafb;
    border-color: #d1d5db;
}

.filter-action-btn.teal-filter-btn {
    background: white;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.filter-action-btn.teal-filter-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.filter-action-btn i {
    font-size: 13px;
}

.filter-action-btn#advancedFiltersBtn .dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.7;
    font-weight: normal;
}

/* ============================================
   SAVE SEARCH SECTION STYLES
   ============================================ */

body:has(.job-search-container) .save-search-section,
.job-search-container .save-search-section {
    background: transparent;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
    width: 100%;
}

.save-search-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.save-search-content {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.saved-searches-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
}

.saved-search-icon {
    color: #6b7280;
    font-size: 14px;
}

.saved-searches-dropdown {
    flex: 1;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 14px;
    background: transparent;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 24px;
}

.saved-searches-dropdown:hover {
    color: #111827;
}

.saved-searches-dropdown:focus {
    outline: none;
    color: #111827;
}

.save-search-btn,
.edit-searches-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.save-search-btn:hover,
.edit-searches-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.save-search-btn i,
.edit-searches-btn i {
    font-size: 13px;
    color: #6b7280;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
}

.btn-primary {
    padding: 10px 20px;
    background: #60a5fa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #3b82f6;
}

.btn-secondary {
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

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

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-input:hover {
    border-color: #60a5fa;
}

.filter-input:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"],
.checkbox-group label input[type="checkbox"],
.modal-body .checkbox-group input[type="checkbox"],
#advancedFiltersModal .checkbox-group input[type="checkbox"] {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px !important;
    min-height: 8px !important;
    max-width: 8px !important;
    max-height: 8px !important;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    accent-color: #60a5fa;
    border: 1px solid #d1d5db !important;
    border-radius: 2px;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    position: relative;
    transition: all 0.2s ease;
    box-sizing: border-box !important;
    line-height: 0;
    vertical-align: middle;
}

.checkbox-group input[type="checkbox"]:hover {
    border-color: #60a5fa;
    background-color: #f9fafb;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #60a5fa;
    border-color: #60a5fa;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 4px;
    border: solid white;
    border-width: 0 1px 1px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.saved-searches-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.saved-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.saved-search-item-info {
    flex: 1;
}

.saved-search-item-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.saved-search-item-details {
    font-size: 12px;
    color: #666;
}

.saved-search-item-actions {
    display: flex;
    gap: 8px;
}

.saved-search-item-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.saved-search-item-actions button:hover {
    color: #60a5fa;
}

.saved-search-item-actions .delete-btn:hover {
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-row {
        flex-wrap: wrap;
    }
    
    .filter-dropdown-wrapper {
        max-width: 100%;
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }
    
    .ellipsis-filter-button {
        flex: 0 0 auto;
    }
    
    .filters-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-action-btn {
        width: 100%;
        justify-content: flex-start;
    }

    /* Remove filter dropdowns on mobile to simplify UI */
    .filter-dropdown-wrapper {
        display: none !important;
    }
    
    .save-search-content {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .saved-searches-wrapper {
        width: 100%;
    }
    
    .save-search-btn,
    .edit-searches-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .job-search-content-wrapper {
        padding: 16px;
    }
}

/* Mobile-only: remove wrapper from layout and place grid directly below navbar */
@media (max-width: 768px) {
    /* Remove the purple background that appears below the navbar */
    body.job-search-page,
    body:has(.job-search-container),
    html:has(.job-search-container) body {
        background: transparent !important;
        background-color: transparent !important;
    }

    /* Remove extra top padding/margins that create the purple banner gap */
    .job-search-container {
        margin: 0 !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: transparent !important;
        min-height: auto !important;
    }

    /* Remove wrapper from layout: display:contents makes it "invisible" so grid becomes direct child */
    .job-search-content-wrapper,
    body.job-search-page .job-search-content-wrapper,
    html:has(.job-search-container) .job-search-content-wrapper {
        display: contents !important;
    }

    /* Grid sits exactly below navbar - no extra top padding */
    .job-search-desktop-grid {
        padding-top: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 24px !important;
        gap: 0 !important; /* Remove gap so content sits at top */
        align-content: start !important; /* Pack grid rows at top */
        row-gap: 0 !important;
        column-gap: 0 !important;
    }

    /* Main col: remove gap, move to top below navbar */
    .job-search-main-col {
        margin-top: -48px !important; /* Pull up to sit directly below navbar */
        padding-top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 24px !important; /* Match space-y-6 between search-section and content below */
    }

    /* Search section: at top, centered horizontally */
    .job-search-container .search-section,
    .search-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Body padding matches navbar height so content sits right below it */
    body.job-search-page,
    body:has(.job-search-container),
    html:has(.job-search-container) body {
        padding-top: 48px !important; /* Match navbar height (48px) */
    }

    /* Remove any redundant margin above the three-column layout */
    .teal-job-search-layout {
        margin-top: 0 !important;
    }
}

/* ============================================
   FULLSCREEN LAYOUT FIXES FOR JOB SEARCH
   ============================================ */

/* ============================================
   FULLSCREEN LAYOUT FIXES - HIGHEST PRIORITY
   ============================================ */

/* Ensure job search page uses full width - override all container constraints */
html.job-search-page,
body.job-search-page,
html:has(.job-search-container),
body:has(.job-search-container) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 70px !important; /* Desktop navbar height */
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    html.job-search-page,
    body.job-search-page,
    html:has(.job-search-container),
    body:has(.job-search-container) {
        padding-top: 48px !important; /* Mobile navbar height */
    }
}

/* Remove any container constraints */
body.job-search-page .container,
body.job-search-page .container-wide,
body.job-search-page .container-narrow,
html:has(.job-search-container) .container,
html:has(.job-search-container) .container-wide,
html:has(.job-search-container) .container-narrow {
    max-width: 100% !important;
    width: 100% !important;
}

/* Fullscreen container - override everything */
.job-search-container,
body.job-search-page .job-search-container,
html:has(.job-search-container) .job-search-container {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

/* Fullscreen content wrapper - override everything */
.job-search-content-wrapper,
body.job-search-page .job-search-content-wrapper,
html:has(.job-search-container) .job-search-content-wrapper,
.job-search-container .job-search-content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 24px 16px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Desktop: more generous padding */
@media (min-width: 1024px) {
    .job-search-content-wrapper,
    body.job-search-page .job-search-content-wrapper,
    html:has(.job-search-container) .job-search-content-wrapper,
    .job-search-container .job-search-content-wrapper {
        padding: 24px 48px !important;
    }
}

/* Search bar full width */
.job-search-container .search-bar,
body.job-search-page .search-bar {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Filters section full width */
.job-search-container .filters-section,
body.job-search-page .filters-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Save search section full width */
.job-search-container .save-search-section,
body.job-search-page .save-search-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Results layout full width */
.job-search-container .teal-job-search-layout,
body.job-search-page .teal-job-search-layout {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile-first overrides to fix cramped/hidden UI */
@media (max-width: 768px) {
    /* Force single column layout with natural height */
    .job-search-container .teal-job-search-layout,
    body.job-search-page .teal-job-search-layout,
    .teal-job-search-layout {
        grid-template-columns: 1fr !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* Let the list breathe and avoid clipping */
    .job-search-container .job-list-column,
    body.job-search-page .job-list-column,
    .job-list-column {
        max-height: 45vh !important;
        min-height: 220px !important;
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
    }

    /* Keep details fully visible below the list */
    .job-search-container .job-details-column,
    body.job-search-page .job-details-column,
    .job-details-column {
        max-height: none !important;
        min-height: auto !important;
        padding: 20px 16px !important;
    }

    /* Prevent horizontal scroll from inner spacing */
    .job-search-container .job-search-content-wrapper,
    body.job-search-page .job-search-content-wrapper,
    .job-search-content-wrapper {
        padding: 16px !important;
    }
}

/* Fix infinite scroll: Enable scrolling for job list column */
.job-search-container .job-list-column,
body.job-search-page .job-list-column {
    overflow-y: auto !important;
    max-height: 100% !important;
    height: 100% !important;
}

/* Ensure the layout allows scrolling */
.job-search-container .teal-job-search-layout,
body.job-search-page .teal-job-search-layout {
    overflow: visible !important;
}

/* Mobile: grid layout for save-search area (select + edit icon + save button) */
@media (max-width: 768px) {
  .save-search-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .save-search-section .save-search-content {
    display: grid !important;
    grid-template-columns: 1fr 44px; /* Dropdown / icon button */
    grid-template-rows: auto auto; /* row1: save | row2: select+edit */
    grid-template-areas: \"save save\" \"select edit\";
    gap: 8px;
    align-items: center;
    width: 100%;
    justify-items: start;
    justify-content: start;
  }

  .save-search-section .saved-searches-wrapper { grid-area: select; width: 100%; }

  .save-search-section #editSearchesBtn {
    grid-area: edit;
    width: 44px !important;
    height: 44px !important;
    padding: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  /* show icon-only for Edit button */
  .save-search-section #editSearchesBtn span { display: none !important; }

  .save-search-section #saveThisSearchBtn {
    grid-area: save;
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
  }
 
  /* Reduce internal padding and ensure the dropdown shrinks correctly in tight space */
  .save-search-section .saved-searches-wrapper {
    padding: 6px 8px !important;
    box-sizing: border-box !important;
    min-width: 0 !important; /* allow shrinking in grid */
    max-width: 260px !important; /* increased width on mobile */
  }

  .save-search-section .saved-searches-wrapper .saved-searches-dropdown,
  .save-search-section .saved-searches-wrapper select {
    width: 100% !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    height: 44px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  /* Align the saved-searches wrapper to the left edge */
  .save-search-section .saved-searches-wrapper {
    margin-left: 0 !important;
    align-self: start !important;
    justify-self: start !important;
  }

  /* Slightly reduce gap to fit in narrow screens */
  .save-search-section .save-search-content { gap: 6px !important; }
}

/* Mobile: make Advanced Filters icon-only (hide label) */
@media (max-width: 768px) {
    .search-bar .mobile-advanced-btn span {
        display: none !important;
    }
    .search-bar .mobile-advanced-btn {
        padding: 8px !important;
        min-width: 40px !important;
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Hide extra country filter on mobile */
@media (max-width: 768px) {
    #extraFilterBtn {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Mobile: replace "Save Search" heading with the button (visual change only) */
@media (max-width: 768px) {
    /* Hide H3 title */
    .save-search-title,
    #saveSearchTitle {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    /* Ensure save-search content uses the mobile grid layout (defined above) */
    .save-search-section .save-search-content {
        display: grid !important;
        grid-template-columns: 1fr 44px !important;
        grid-template-rows: auto auto !important;
        grid-template-areas: "save save" "select edit" !important;
        gap: 6px !important;
        align-items: center !important;
        width: 100% !important;
    }

    .save-search-section #saveThisSearchBtn {
        grid-area: save;
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
}

/* ============================================
   MOBILE REFERENCE DESIGN - Apply only on max-width: 768px
   ============================================ */
@media (max-width: 768px) {
    /* Body padding matches navbar height (48px) */
    body.job-search-page,
    body {
        padding-top: 48px !important;
    }
    /* 1. Mobile Header - White background, black icons (match resume scanner) */
    body.job-search-page .navbar.teal-navbar,
    body.job-search-page .navbar {
        background: #ffffff !important;
        background-color: #ffffff !important;
        color: #0f172a !important;
    }
    body.job-search-page .navbar .nav-logo a,
    body.job-search-page .navbar .nav-logo img {
        filter: none !important;
    }
    body.job-search-page .navbar .hamburger span {
        background-color: #0f172a !important;
    }
    body.job-search-page .navbar .user-dropdown .user-dropdown-btn,
    body.job-search-page .navbar .btn-login-teal,
    body.job-search-page .navbar .btn-signup-teal {
        color: #0f172a !important;
    }
    body.job-search-page .navbar .user-dropdown .user-dropdown-btn i {
        color: #0f172a !important;
    }
    body.job-search-page .navbar .mobile-actions button img,
    body.job-search-page .navbar .mobile-actions button svg,
    body.job-search-page .navbar .mobile-actions i {
        filter: brightness(0) !important;
        color: #0f172a !important;
    }

    /* 2. Search Section - Blue background, stacked inputs, Find Opportunities (compact mobile) */
    body.job-search-page .search-section {
        background: #2563EB !important;
        padding: 0.625rem 0.75rem 0.875rem !important;
        margin-left: -12px !important;
        margin-right: -12px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        border-radius: 0 0 1.25rem 1.25rem !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    body.job-search-page .search-bar {
        flex-direction: column !important;
        gap: 0.5rem !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    /* Hide combined search, show two stacked inputs */
    body.job-search-page .combined-search-mobile {
        display: none !important;
    }
    body.job-search-page .search-input-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
    body.job-search-page .location-search-container {
        display: block !important;
    }
    body.job-search-page .search-input-wrapper .search-input-group {
        width: 100% !important;
        background: #fff !important;
        border-radius: 0.5rem !important;
        padding: 0.5rem 0.75rem !important;
        min-height: 2.5rem !important;
        border: none !important;
        box-shadow: inset 0 1px 2px rgba(0,0,0,0.06) !important;
    }
    body.job-search-page .search-input-wrapper .search-input-group input {
        font-size: 0.9375rem !important;
    }
    body.job-search-page .search-input-wrapper .search-input-group .input-icon {
        font-size: 0.875rem !important;
    }
    body.job-search-page .location-input-container {
        position: relative !important;
        background: #fff !important;
        border-radius: 0.5rem !important;
        padding: 0.5rem 0.75rem !important;
        min-height: 2.5rem !important;
        border: none !important;
        box-shadow: inset 0 1px 2px rgba(0,0,0,0.06) !important;
        display: flex !important;
        align-items: center !important;
    }
    body.job-search-page .location-input-container #dropdown {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin-top: 4px !important;
        max-height: 280px !important;
        overflow-y: auto !important;
        z-index: 1100 !important;
        background: #fff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    }
    body.job-search-page .location-input-container input {
        border: none !important;
        background: none !important;
        flex: 1 !important;
        font-size: 0.9375rem !important;
    }
    body.job-search-page .location-input-container .location-icon {
        font-size: 0.875rem !important;
    }
    body.job-search-page .search-button {
        width: 100% !important;
        background: #10B981 !important;
        background-color: #10B981 !important;
        color: #fff !important;
        font-weight: 700 !important;
        padding: 0.5rem 0.75rem !important;
        min-height: 2.5rem !important;
        border-radius: 0.5rem !important;
        font-size: 0.9375rem !important;
        box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
    }
    body.job-search-page .search-button:hover {
        background: #059669 !important;
    }
    body.job-search-page .search-button i {
        color: #fff !important;
        font-size: 0.875rem !important;
    }
    body.job-search-page .search-button .search-button-label {
        display: inline !important;
    }
    body.job-search-page .search-bar .mobile-advanced-btn {
        display: none !important;
    }

    /* 2b. Mobile Filters Card - below search, above job list */
    body.job-search-page .mobile-filters-card {
        display: block !important;
        padding: 1rem 0 1.25rem !important;
        margin: 0 !important;
        background: #fff !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    body.job-search-page .mobile-filters-card-header {
        margin-bottom: 1rem !important;
    }
    body.job-search-page .mobile-filters-card-title-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
        margin-bottom: 0.25rem !important;
    }
    body.job-search-page .mobile-filters-card-title {
        margin: 0 !important;
        font-size: 1.375rem !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        line-height: 1.3 !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    body.job-search-page .mobile-filters-card-results {
        margin: 0 !important;
        font-size: 0.875rem !important;
        color: #64748b !important;
        font-weight: 400 !important;
    }
    body.job-search-page .mobile-filters-sort-btn {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 0.75rem !important;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 1rem !important;
        font-size: 0.875rem !important;
        color: #475569 !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    body.job-search-page .mobile-filters-sort-btn i:first-child {
        color: #64748b !important;
    }
    body.job-search-page .mobile-filters-sort-btn.active {
        background: #10B981 !important;
        border-color: #10B981 !important;
        color: white !important;
    }
    body.job-search-page .mobile-filters-sort-btn.active i {
        color: white !important;
    }
    body.job-search-page .mobile-filters-card-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    body.job-search-page .mobile-filter-card-item {
        position: relative !important;
    }
    body.job-search-page .mobile-filter-card-select {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 0 !important;
        cursor: pointer !important;
        z-index: 0 !important;
        pointer-events: none !important;
        font-size: 16px !important; /* prevents zoom on iOS */
    }
    /* Custom compact dropdown (replaces native select popup on mobile) */
    body.job-search-page .mobile-filter-card-custom-dropdown {
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100vw - 2rem) !important;
        max-width: 280px !important;
        max-height: 200px !important;
        overflow-y: auto !important;
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
        z-index: 9999 !important;
        padding: 0.375rem !important;
        -webkit-overflow-scrolling: touch !important;
    }
    body.job-search-page .mobile-filter-card-custom-dropdown-item {
        display: block !important;
        width: 100% !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
        line-height: 1.35 !important;
        color: #334155 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0.5rem !important;
        text-align: left !important;
        cursor: pointer !important;
        font-weight: 400 !important;
    }
    body.job-search-page .mobile-filter-card-custom-dropdown-item:hover,
    body.job-search-page .mobile-filter-card-custom-dropdown-item:focus {
        background: #f1f5f9 !important;
    }
    body.job-search-page .mobile-filter-card-custom-dropdown-item.is-header {
        font-weight: 600 !important;
        color: #64748b !important;
        background: #f8fafc !important;
        pointer-events: none !important;
    }
    body.job-search-page .mobile-filter-card-btn {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
        padding: 0.625rem 0.75rem !important;
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 1rem !important;
        font-size: 0.8125rem !important;
        color: #334155 !important;
        cursor: pointer !important;
        text-align: left !important;
        font-weight: 500 !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 1 !important;
    }
    body.job-search-page .mobile-filter-card-btn i:first-child {
        color: #64748b !important;
        font-size: 0.875rem !important;
    }
    body.job-search-page .mobile-filter-card-btn .fa-chevron-down {
        margin-left: auto !important;
        font-size: 0.625rem !important;
        color: #94a3b8 !important;
    }
    body.job-search-page .mobile-filter-card-btn.active {
        background: #10B981 !important;
        border-color: #10B981 !important;
        color: #fff !important;
    }
    body.job-search-page .mobile-filter-card-btn.active i {
        color: #fff !important;
    }
    body.job-search-page .mobile-active-filter-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    body.job-search-page .mobile-active-filter-tag {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.375rem !important;
        padding: 0.4rem 0.75rem !important;
        background: #e2e8f0 !important;
        color: #475569 !important;
        border-radius: 9999px !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        border: none !important;
        cursor: pointer !important;
    }
    body.job-search-page .mobile-active-filter-tag.mobile-active-filter-tag-primary {
        background: #2764EB !important;
        color: #fff !important;
    }
    body.job-search-page .mobile-active-filter-tag .mobile-active-filter-tag-remove {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
        color: inherit !important;
        cursor: pointer !important;
        font-size: 1rem !important;
    }
    body.job-search-page .clear-all-filters-link {
        background: none !important;
        border: none !important;
        color: #2764EB !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        padding: 0.25rem 0 !important;
        text-decoration: none !important;
    }
    body.job-search-page .clear-all-filters-link:hover {
        text-decoration: underline !important;
    }
    body.job-search-page .top-matches-heading .top-matches-label {
        font-weight: 700 !important;
    }
    body.job-search-page #jobMatchCount {
        font-weight: 500 !important;
    }

    /* 3. Mobile filter chips - show, hide filters row (hide old chips when card is used) */
    body.job-search-page .filters-section .filters-row {
        display: none !important;
    }
    body.job-search-page .filters-section {
        margin-left: -12px !important;
        margin-right: -12px !important;
    }
    body.job-search-page .mobile-filter-chips {
        display: none !important;
        gap: 0.5rem !important;
        padding: 1rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
    }
    body.job-search-page .mobile-filter-chips[aria-hidden="true"] {
        aria-hidden: false;
    }
    body.job-search-page .mobile-filter-chip {
        flex-shrink: 0 !important;
        padding: 0.5rem 1rem !important;
        border-radius: 9999px !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        border: 1px solid #e2e8f0 !important;
        background: #fff !important;
        color: #475569 !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        white-space: nowrap !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    }
    body.job-search-page .mobile-filter-chip:hover {
        background: #f8fafc !important;
    }
    body.job-search-page .mobile-filter-chip.mobile-filter-chip-filters {
        color: #2563EB !important;
    }
    body.job-search-page .mobile-filter-chip.mobile-filter-chip-filters i {
        color: #2563EB !important;
    }
    body.job-search-page .mobile-filter-chip.active,
    body.job-search-page .mobile-filter-chip[data-workplace="remote"]:first-of-type {
        background: #10B981 !important;
        color: #fff !important;
        border-color: #10B981 !important;
    }

    /* 4. Results header - Top Matches + Save Search */
    body.job-search-page .search-results-header {
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    body.job-search-page .search-results-header-left {
        display: flex !important;
        align-items: baseline !important;
        gap: 0.25rem !important;
    }
    body.job-search-page .mobile-top-matches-label {
        display: none !important;
    }
    body.job-search-page .top-matches-heading {
        font-size: 1rem !important;
        color: #1e293b !important;
    }
    body.job-search-page #jobMatchCount {
        font-weight: 500 !important;
        font-size: 1rem !important;
        color: #1e293b !important;
    }
    body.job-search-page .mobile-save-search-link {
        background: none !important;
        border: none !important;
        color: #2563EB !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        padding: 0.25rem 0 !important;
        text-decoration: none !important;
    }
    body.job-search-page .mobile-save-search-link:hover {
        text-decoration: underline !important;
    }

    /* 5. Save Search section - hide on mobile (we use Save Search link in header) */
    body.job-search-page .save-search-section {
        display: none !important;
    }

    /* 6. See More Jobs - blue link style */
    body.job-search-page .see-more-btn,
    body.job-search-page #seeMoreBtn {
        background: transparent !important;
        color: #2563EB !important;
        font-weight: 700 !important;
        font-size: 0.875rem !important;
        padding: 1rem !important;
        border: none !important;
        box-shadow: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        width: auto !important;
        max-width: none !important;
    }
    body.job-search-page .see-more-btn:hover,
    body.job-search-page #seeMoreBtn:hover {
        background: transparent !important;
        text-decoration: underline !important;
    }

    /* 7. Job cards - reference design (when .job-card-mobile present) */
    body.job-search-page .job-card-compact.job-card-mobile {
        padding: 1rem !important;
        border-radius: 1rem !important;
        border: 1px solid #f1f5f9 !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
        margin-bottom: 1rem !important;
        border-bottom: none !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-mobile-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        margin-bottom: 0.75rem !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-logo-wrap {
        display: flex !important;
        gap: 0.75rem !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-logo {
        width: 3rem !important;
        height: 3rem !important;
        border-radius: 0.75rem !important;
        background: #f8fafc !important;
        border: 1px solid #f1f5f9 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: #64748b !important;
        flex-shrink: 0 !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-info {
        min-width: 0 !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-title-compact {
        font-size: 1rem !important;
        font-weight: 700 !important;
        margin: 0 0 0.25rem 0 !important;
        line-height: 1.3 !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-company-location {
        font-size: 0.75rem !important;
        color: #64748b !important;
        margin: 0 !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-bookmark-btn {
        background: none !important;
        border: none !important;
        color: #000000 !important;
        cursor: pointer !important;
        padding: 0.25rem !important;
        flex-shrink: 0 !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-bookmark-btn:hover,
    body.job-search-page .job-card-compact.job-card-mobile .job-card-bookmark-btn.bookmarked {
        color: #2563EB !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-tag {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.625rem !important;
        font-weight: 500 !important;
        background: #f8fafc !important;
        color: #64748b !important;
        border-radius: 0.25rem !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-actions {
        display: flex !important;
        gap: 0.5rem !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-action-btn {
        flex: 1 !important;
        padding: 0.625rem 0.75rem !important;
        border-radius: 0.5rem !important;
        font-size: 0.875rem !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        border: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        min-height: 2.75rem !important;
        touch-action: manipulation !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-action-details {
        background: rgba(37, 99, 235, 0.1) !important;
        color: #2563EB !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-action-details:hover {
        background: rgba(37, 99, 235, 0.2) !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-action-apply {
        background: #10B981 !important;
        color: #fff !important;
    }
    body.job-search-page .job-card-compact.job-card-mobile .job-card-action-apply:hover {
        background: #059669 !important;
    }
    /* Hide desktop-only compact content on mobile when card has mobile markup */
    body.job-search-page .job-card-compact.job-card-mobile > .job-title-compact:first-child,
    body.job-search-page .job-card-compact.job-card-mobile > .company-name-compact,
    body.job-search-page .job-card-compact.job-card-mobile > .job-meta-compact {
        display: none !important;
    }
}

/* Mobile Filters Card - hidden on desktop */
.mobile-filters-card {
    display: none !important;
}

/* Desktop: hide mobile-only elements and mobile filter chips */
@media (min-width: 769px) {
    .mobile-filters-card {
        display: none !important;
    }
    .mobile-filter-chips {
        display: none !important;
    }
    .search-button-text-mobile {
        display: none !important;
    }
    .mobile-top-matches-label {
        display: none !important;
    }
    .mobile-save-search-link {
        display: none !important;
    }
}

/* Desktop: hide mobile-only job card elements */
@media (min-width: 769px) {
    body.job-search-page .job-card-mobile-inner,
    body.job-search-page .job-card-compact .job-card-tags,
    body.job-search-page .job-card-compact .job-card-actions {
        display: none !important;
    }
}

/* 8. Bottom nav active state for job-search page - green highlight */
@media (max-width: 768px) {
    body.job-search-page #mobileBottomNav .mobile-nav-item a[href*="job-search"],
    body.job-search-page #mobileBottomNav .mobile-nav-item a.active {
        color: #10B981 !important;
    }
    body.job-search-page #mobileBottomNav .mobile-nav-item a[href*="job-search"] i,
    body.job-search-page #mobileBottomNav .mobile-nav-item a.active i {
        color: #10B981 !important;
    }
}

/* ========== Mobile: hide Filters sidebar (stops it appearing at bottom of page) ========== */
@media (max-width: 1023px) {
    body.job-search-page #filterSidebar {
        display: none !important;
    }
}

/* ========== Desktop (lg) reference layout – min-width 1024px only ========== */
@media (min-width: 1024px) {
    body.job-search-page .job-search-content-wrapper {
        background: #F8FAFC !important;
    }

    /* Sidebar: vertical filters, full-width selects */
    #filterSidebar .filters-section .filters-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    #filterSidebar .filter-dropdown-wrapper {
        width: 100%;
    }
    #filterSidebar .filter-dropdown,
    #filterSidebar .filter-action-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 0.5rem !important;
        border: 1px solid #cbd5e1 !important;
        font-size: 0.875rem !important;
    }
    #filterSidebar .filter-dropdown:focus {
        outline: none !important;
        ring: 2px !important;
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3) !important;
    }
    #filterSidebar .filter-dropdown.selected {
        background-color: #eff6ff !important;
        border-color: #2563eb !important;
        color: #1e40af !important;
    }
    #filterSidebar .mobile-filter-chips {
        display: none !important;
    }

    /* Main column: search as white card */
    .job-search-main-col .search-section {
        background: #fff !important;
        border-radius: 1rem !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
        border: 1px solid #f1f5f9 !important;
        padding: 1.5rem !important;
    }
    .job-search-main-col .search-bar {
        display: grid !important;
        grid-template-columns: 1fr 1fr auto !important;
        gap: 1rem !important;
        align-items: center !important;
    }
    .job-search-main-col .search-bar .search-input-wrapper,
    .job-search-main-col .search-bar .location-search-container {
        margin: 0 !important;
    }
    .job-search-main-col .search-button {
        background: #10B981 !important;
        color: #fff !important;
        padding: 0.75rem 1.5rem !important;
        border-radius: 0.75rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }
    .job-search-main-col .search-button:hover {
        background: #059669 !important;
    }

    /* Results header: pills + Top Matches + Save Search */
    .job-search-main-col .search-results-header {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 1rem !important;
    }
    .job-search-main-col .search-results-header-left {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 0.5rem 1rem !important;
    }
    .job-search-main-col .search-results-header-left .mobile-active-filter-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    .job-search-main-col .search-results-header-left .clear-all-filters-link {
        display: inline-block !important;
    }
    .job-search-main-col .search-results-header-left .top-matches-heading .top-matches-label {
        font-weight: 700 !important;
    }
    .job-search-main-col .search-results-header-right {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
    .job-search-main-col .search-results-header-right .mobile-save-search-link {
        display: inline-flex !important;
    }

    /* Job cards: reference style at lg */
    .teal-job-search-layout .job-card-compact {
        background: #fff !important;
        padding: 1.5rem !important;
        border-radius: 1rem !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
        border: 1px solid #f1f5f9 !important;
        margin-bottom: 1rem !important;
    }
    .teal-job-search-layout .job-card-compact:hover {
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1) !important;
    }
    .teal-job-search-layout .job-card-compact .job-card-mobile-inner {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        margin-bottom: 1rem !important;
    }
    .teal-job-search-layout .job-card-compact .job-card-logo-wrap {
        display: flex !important;
        gap: 1rem !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    .teal-job-search-layout .job-card-compact .job-card-logo {
        width: 4rem !important;
        height: 4rem !important;
        min-width: 4rem !important;
        border-radius: 1rem !important;
        background: #f8fafc !important;
        border: 1px solid #f1f5f9 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: #64748b !important;
    }
    .teal-job-search-layout .job-card-compact .job-card-info .job-title-compact {
        font-size: 1.125rem !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        margin: 0 0 0.25rem 0 !important;
    }
    .teal-job-search-layout .job-card-compact .job-card-company-location {
        font-size: 0.875rem !important;
        color: #475569 !important;
        margin: 0 0 0.5rem 0 !important;
    }
    .teal-job-search-layout .job-card-compact .job-card-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    .teal-job-search-layout .job-card-compact .job-card-tag {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.875rem !important;
        font-weight: 500 !important;
        background: #f8fafc !important;
        color: #475569 !important;
        border-radius: 0.5rem !important;
    }
    .teal-job-search-layout .job-card-compact .job-card-actions {
        display: flex !important;
        gap: 0.75rem !important;
    }
    .teal-job-search-layout .job-card-compact .job-card-action-details {
        flex: 1 !important;
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem !important;
        font-weight: 500 !important;
        background: rgba(37, 99, 235, 0.1) !important;
        color: #2563EB !important;
        border: none !important;
        cursor: pointer !important;
    }
    .teal-job-search-layout .job-card-compact .job-card-action-details:hover {
        background: rgba(37, 99, 235, 0.2) !important;
    }
    .teal-job-search-layout .job-card-compact .job-card-action-apply {
        flex: 1 !important;
        padding: 0.75rem 1rem !important;
        border-radius: 0.5rem !important;
        font-weight: 500 !important;
        background: #10B981 !important;
        color: #fff !important;
        border: none !important;
        cursor: pointer !important;
    }
    .teal-job-search-layout .job-card-compact .job-card-action-apply:hover {
        background: #059669 !important;
    }
    .teal-job-search-layout .job-card-compact > .job-title-compact:first-child,
    .teal-job-search-layout .job-card-compact > .company-name-compact,
    .teal-job-search-layout .job-card-compact > .job-meta-compact {
        display: none !important;
    }

    /* Job list column spacing */
    .teal-job-search-layout .job-list-column {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    /* Job details column */
    .teal-job-search-layout .job-details-column {
        padding: 1.5rem !important;
        background: #fff !important;
        border-radius: 1rem !important;
        border: 1px solid #f1f5f9 !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
    }

    /* See more / Load more button */
    .job-search-main-col .see-more-btn,
    .job-search-main-col #seeMoreBtn {
        background: #2563EB !important;
        color: #fff !important;
        padding: 0.75rem 1.5rem !important;
        border-radius: 0.5rem !important;
        font-weight: 500 !important;
    }
    .job-search-main-col .see-more-btn:hover,
    .job-search-main-col #seeMoreBtn:hover {
        background: #1d4ed8 !important;
    }
}