/* ============================================================================
   JOB BOARD CSS - Complete Styling System with Counter
   ============================================================================ 
   
   SEO UPDATES (v2):
   - Updated selectors from H1/H2/H3 tags to DIV/P for better SEO structure
   - Preserved all class names for compatibility
   - Changes: .empty-state, .job-details-title-section, .apply-card, 
     .modal-header, .success-screen
   ============================================================================ */

/* Reset and Base Styles */
#job-board-app * {
    box-sizing: border-box;
}

#job-board-app {
    /* Color System */
    --color-primary: #235383;
    --color-primary-dark: #1a3f62;
    --color-primary-light: #336ba8;
    --color-primary-lighter: #4a749d;
    
    --color-accent-blue: #2563eb;
    --color-accent-green: #16a34a;
    --color-accent-purple: #7c3aed;
    --color-accent-orange: #ea580c;
    --color-accent-gold: #C69A07;
    
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    
    --color-background: #ffffff;
    --color-surface: #f9fafb;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --color-text-primary: #111827;
    --color-text-secondary: #6b7280;
    --color-text-tertiary: #9ca3af;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --text-xs: 0.6875rem;
    --text-sm: 0.8125rem;
    --text-base: 0.9375rem;
    --text-lg: 1rem;
    --text-xl: 1.125rem;
    --text-2xl: 1.25rem;
    --text-3xl: 1.5rem;
    --text-4xl: 1.875rem;
    
    --leading-tight: 1.3;
    --leading-normal: 1.5;
    --leading-relaxed: 1.7;
    
    /* Spacing & Layout */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Apply base styles */
    font-family: var(--font-sans);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
}

/* Main Container */
.job-board-container {
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Main Content */
.job-board-main {
    width: calc(1800px + 48px);
    max-width: 100%;
    margin: 0 auto;
    padding: 32px 0px;
}

/* Job Board Heading */
.job-board-heading {
    font-size: 2.5em;
    font-weight: 600;
    margin: 0 0 22px 0;
    color: #235383;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.job-board-heading .heading-user-input {
    color: #000000;
}

@media (max-width: 767px) {
    .job-board-heading {
        font-size: 2em;
        margin: 0 0 24px 0;
    }
}

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

.job-filters {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--color-gray-200);
}

/* ============================================================================
   LOCKED STATE - When user arrives via URL with parameters
   ============================================================================ */

.locked-banner {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    margin-bottom: 20px;
}

.locked-banner-text {
    color: var(--color-gray-600);
    font-size: 0.95em;
    line-height: 1.4;
}

/* Locked input states */
.filter-input.locked {
    background: var(--color-gray-100);
    color: var(--color-gray-500);
    cursor: not-allowed;
}

.search-btn.locked {
    background: var(--color-gray-300);
    color: var(--color-gray-500);
    cursor: not-allowed;
}

.filter-pill.locked {
    background: var(--color-gray-100);
    color: var(--color-gray-500);
    border-color: var(--color-gray-200);
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.filter-pill.locked:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--color-gray-200);
    background: var(--color-gray-100);
}

/* Make Clear button prominent when in locked state */
.clear-filters-btn.locked-clear-active {
    animation: pulse-locked 2s ease-in-out infinite;
}

@keyframes pulse-locked {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(35, 83, 131, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(35, 83, 131, 0.5);
    }
}

/* ============================================================================
   END LOCKED STATE
   ============================================================================ */

/* Main Search Row */
.search-row {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-background);
}

.search-wrapper {
    flex: 1;
    position: relative;
    border-right: 1px solid var(--color-border);
    margin-bottom: 0;
}

.location-wrapper {
    flex: 1;
    position: relative;
    margin-bottom: 0;
}

.filter-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    transition: all 0.2s;
    background: var(--color-background);
    -webkit-appearance: none;
    appearance: none;
}

.filter-input::placeholder {
    color: var(--color-text-tertiary);
}

.filter-input:focus {
    outline: none;
    background: var(--color-surface);
}

.search-icon, 
.location-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.search-btn {
    padding: 16px 32px;
    background: var(--color-primary);
    color: white;
    border: none;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--color-primary-dark);
}

/* Filter Pills Row */
.filter-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

.filter-pill {
    padding: 10px 18px;
    border: 1.5px solid var(--color-border);
    border-radius: 24px;
    font-size: var(--text-sm);
    background: var(--color-background);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--color-text-primary);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

/* MOBILE: Full-width filter buttons in 3-column grid (2 rows) */
@media (max-width: 767px) {
    .filter-pills {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }
    
    .filter-pill {
        width: 100% !important;
        justify-content: center !important;
        flex-shrink: 1 !important;
        white-space: normal !important;
        text-align: center;
        padding: 12px 8px !important;
    }
    
    /* Ensure pill content stays centered */
    .filter-pills > div {
        width: 100% !important;
    }
    
    /* Mobile text labels for filters */
    .filter-pill-text {
        display: none !important;
    }
    
    .filter-pill-text-mobile {
        display: inline !important;
        font-size: 0.75rem;
        font-weight: 500;
    }
}

.filter-pill:hover {
    border-color: var(--color-primary);
    background: var(--color-surface);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(35, 83, 131, 0.15);
}

.filter-pill.active {
    background: linear-gradient(135deg, #235383 0%, #336ba8 100%);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(35, 83, 131, 0.3);
}

.filter-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Mobile text abbreviations for filter pills */
.filter-pill-text {
    display: inline;
}

.filter-pill-text-mobile {
    display: none;
}

/* Dropdown Menu */
.filter-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

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

/* Scrollable dropdown for long lists (Industry) */
.filter-dropdown-scrollable {
    max-height: 320px; /* Shows about 8 items (40px each) */
}

/* Custom scrollbar styling for dropdowns */
.filter-dropdown-scrollable::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-dropdown-scrollable::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.filter-dropdown-scrollable::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Firefox scrollbar */
.filter-dropdown-scrollable {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

@media (max-width: 768px) {
    .filter-dropdown {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        min-width: 280px;
        max-width: 90vw;
        max-height: 60vh;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    }
}

.filter-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border-light);
}

.filter-dropdown-item:last-child {
    border-bottom: none;
}

.filter-dropdown-item:hover {
    background: var(--color-surface);
}

.filter-dropdown-item.selected {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}

.active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.clear-filters-btn {
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    cursor: pointer;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    border-radius: 20px;
    font-weight: 500;
}

.clear-filters-btn:hover {
    background: var(--color-surface);
}

@media (max-width: 768px) {
    .clear-filters-btn {
        margin-left: 0;
        order: 999;
    }
}

/* Mobile Responsive Filters */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
        box-shadow: none;
        background: transparent;
        gap: 16px;
    }
    
    .search-wrapper,
    .location-wrapper {
        border-right: none;
        border-bottom: none;
        border: 1px solid var(--color-gray-300);
        border-radius: var(--radius-lg);
        background: var(--color-background);
    }
    
    .filter-input {
        border-radius: var(--radius-lg);
    }
    
    .search-btn {
        padding: 16px 24px;
        border-radius: var(--radius-lg);
        width: 100%;
        font-size: var(--text-lg);
    }
    
    .job-badge {
        filter: brightness(0.92);
    }
    
    .filter-pill svg {
        width: 13px;
        height: 13px;
    }
    
    .filter-pill-text {
        display: none !important;
    }
    
    .filter-pill-text-mobile {
        display: inline !important;
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    .clear-filters-btn {
        flex-shrink: 0;
    }
    
    .job-list-panel > div:first-child:not(.empty-state) {
        background: #e5e7eb !important;
    }
}

/* ============================================================
   EDIT "Application Submitted!" HEADING HERE (JOB BOARD HUB)
   ============================================================ */
.success-screen > div {
    color: #235383 !important;           /* ← Change color */
    font-size: 18px !important;          /* ← Change size */
    padding-bottom: 0.5px !important;     /* ← Change spacing */
    font-weight: 500 !important;         /* ← Change weight */
}
/* ============================================================ */

/* ============================================================================
   SPLIT LAYOUT
   ============================================================================ */

.job-board-split {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 24px;
    align-items: start;
    position: relative;
}

/* List-only view mode - Desktop only */
@media (min-width: 1025px) {
    .job-board-split.list-only {
        grid-template-columns: 1fr;
    }
    
    .job-board-split.list-only .job-list-panel {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .job-board-split.list-only .pagination {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        gap: 24px;
    }
    
    .job-board-split.list-only .job-details-panel {
        display: none;
    }
    
    .job-board-split.list-only .job-list-panel {
        max-width: 100%;
    }
}

/* ============================================================================
   JOB LIST PANEL
   ============================================================================ */

.job-list-panel {
    background: var(--color-background);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 40px rgba(0, 0, 0, 0.02);
}

/* Job Cards */
.job-card {
    padding: 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease-out;
    background: var(--color-background);
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* Alternating backgrounds */
.job-card:nth-child(odd)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(243, 246, 246, 0.35);
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 0;
}

.job-card:nth-child(even)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(249, 250, 251, 0.5);
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 0;
}

.job-card > * {
    position: relative;
    z-index: 1;
}

.job-card:hover {
    border-color: #9ca3af;
    transform: translateY(-2px);
}

.job-card.selected::before {
    background: rgba(226, 232, 240, 0.4) !important;
}

.job-card.selected {
    border-color: #545963;
    border-width: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Dismiss Button */
.job-card-dismiss {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.2s;
    color: var(--color-text-secondary);
}

.job-card-dismiss:hover {
    background: rgba(239, 68, 68, 0.95);
    color: white;
    transform: scale(1.05);
}

.job-card-dismiss svg {
    width: 14px;
    height: 14px;
}

/* Featured Badge */
.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fef9e7 0%, #fff4d5 100%);
    color: #C69A07;
    border: 1px solid #f4e6b8;
    border-radius: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Applied Badge */
.applied-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(220, 252, 231, 0.8);
    color: #047857;
    border: 1px solid #86efac;
    border-radius: 6px;
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: 8px;
}

.applied-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ============================================================================
   APPLICATION COUNT BADGE - INTEGRATED
   ============================================================================ */

.application-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(248, 250, 252, 0.95);
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    z-index: 2;
    transition: all 0.2s;
    opacity: 1;
}

.application-count svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

.application-count-number {
    display: inline-block;
}

/* Green flash + pulse animation for count updates */
@keyframes successFlash {
    0% {
        background: rgba(248, 250, 252, 0.95);
        border-color: #e5e7eb;
        color: #6b7280;
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        background: rgba(220, 252, 231, 0.95);
        border-color: #86efac;
        color: #047857;
        transform: scale(1.08);
    }
    75% {
        transform: scale(1.05);
    }
    100% {
        background: rgba(248, 250, 252, 0.95);
        border-color: #e5e7eb;
        color: #6b7280;
        transform: scale(1);
    }
}

/* Number counter animation */
@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.application-count.updating {
    animation: successFlash 0.8s ease-in-out;
}

.application-count.updating .application-count-number {
    animation: countUp 0.6s ease-out;
}

/* List view adjustments */
.job-board-split.list-only .job-card:hover .job-title {
    text-decoration: underline;
}

.job-board-split.list-only .job-card.selected::before {
    background: rgba(243, 246, 246, 0.35);
}

.job-board-split.list-only .job-card.selected {
    border-color: var(--color-border) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.job-board-split.list-only .job-card.selected:hover {
    border-color: var(--color-primary-dark) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.job-card-header {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    align-items: flex-start;
    position: relative;
}

.job-card-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-background);
    border: 1px solid #235383;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    align-self: center;
    position: relative;
}

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

.job-card-info {
    flex: 1;
    min-width: 0;
}

.job-company {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 2px;
}

.job-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: var(--leading-tight);
}

/* Job Badges */
.job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.job-badge {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    border: 1px solid;
}

/* Default Gray - For Work Type & Industry */
.badge-mode,
.badge-industry {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #4b5563;
    border-color: #d1d5db;
}

/* Job Type Badges */
.badge-type[data-value="Full-Time"],
.badge-type[data-value="Full Time"] {
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
    color: #1e3a8a;
    border-color: #235383;
}

.badge-type[data-value="Part-Time"],
.badge-type[data-value="Part Time"] {
    background: linear-gradient(135deg, #fef3c7 0%, #fde047 100%);
    color: #854d0e;
    border-color: #C69A07;
}

.badge-type[data-value="Contract"] {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    color: #0f172a;
    border-color: #1e293b;
}

.badge-type[data-value="Temporary"] {
    background: linear-gradient(135deg, #fed7aa 0%, #fb923c 100%);
    color: #7c2d12;
    border-color: #ea580c;
}

.badge-type[data-value="Internship"] {
    background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 100%);
    color: #075985;
    border-color: #0284c7;
}

.badge-type[data-value="Freelance"] {
    background: linear-gradient(135deg, #fae8ff 0%, #e879f9 100%);
    color: #701a75;
    border-color: #a21caf;
}

.badge-type[data-value="Advisory"] {
    background: linear-gradient(135deg, #fef08a 0%, #eab308 100%);
    color: #713f12;
    border-color: #a16207;
}

.badge-type {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #4b5563;
    border-color: #d1d5db;
}

.job-details-list {
    font-size: var(--text-sm);
    color: var(--color-gray-700);
}

.job-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.job-detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ============================================================================
   JOB DETAILS PANEL
   ============================================================================ */

.job-details-panel {
    background: var(--color-background);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: opacity 0.25s ease-in-out, filter 0.25s ease-in-out, transform 0.25s ease-in-out;
    /* Removed position:sticky - JS will handle this */
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-300) var(--color-gray-50);
    box-sizing: border-box;
}

/* Placeholder to maintain grid layout when panel is fixed */
.job-details-panel-placeholder {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

/* Remove sticky positioning when no jobs are available or no job is selected */
.job-details-panel.no-jobs-available,
.job-details-panel.no-job-selected.no-jobs-available {
    position: static !important;
    max-height: none !important;
    top: auto !important;
}

.job-details-panel::-webkit-scrollbar {
    width: 8px;
}

.job-details-panel::-webkit-scrollbar-track {
    background: var(--color-gray-50);
}

.job-details-panel::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 4px;
}

.job-details-panel.fade-out {
    opacity: 0;
    filter: blur(6px);
    transform: scale(0.98);
    pointer-events: none;
}

.job-details-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-primary-lighter) 100%);
    color: white;
    padding: 32px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
    overflow: hidden;
}

.job-details-header::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.job-details-header::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(90, 135, 182, 0.3);
    border-radius: 50%;
    filter: blur(50px);
    bottom: -50px;
    left: -50px;
    pointer-events: none;
}

.share-job-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.share-job-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.share-job-btn svg {
    flex-shrink: 0;
}

.share-job-btn:active {
    transform: translateY(0);
}

.job-details-header-content {
    display: flex;
    gap: 24px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.job-details-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

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

.job-details-title-section {
    flex: 1;
    padding-right: 130px; /* Prevent overlap with share button on desktop */
    min-width: 0; /* Allow text to wrap properly */
}

@media (max-width: 767px) {
    .job-details-title-section {
        padding-right: 0; /* Remove padding on mobile since share button is hidden */
    }
}

.job-details-title-section > div:first-child {
    font-size: var(--text-4xl);
    font-weight: 500;
    margin: 0 0 8px 0;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    word-wrap: break-word; /* Ensure long titles wrap */
    overflow-wrap: break-word;
}

.job-details-company {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    margin-top: -4px;
}

.job-details-title-section .job-badges .job-badge svg {
    vertical-align: middle;
    margin-top: -2px;
    margin-left: -1px;
}

/* Info Grid */
.job-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding: 0;
    background: var(--color-background);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    margin: 20px 32px 0 32px;
    overflow: hidden;
}

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

.info-card {
    background: transparent;
    padding: 16px 20px;
    border: none;
    border-right: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    gap: 12px;
    align-items: center;
}

.info-card:nth-child(2n) {
    border-right: none;
}

.info-card:nth-last-child(-n+2) {
    border-bottom: none;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon.salary { 
    background: #dcfce7; 
    color: #16a34a; 
}

.info-icon.location { 
    background: #dbeafe; 
    color: #2563eb; 
}

.info-icon.experience { 
    background: #f3e8ff; 
    color: #7c3aed; 
}

.info-icon.date { 
    background: #fed7aa; 
    color: #ea580c; 
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    margin-top: -8px;
    color: var(--color-text-primary);
    line-height: 1.3;
}

/* Job Actions */
.job-actions {
    padding: 24px 32px;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-apply-primary {
    flex: 1;
    padding: 12px 24px;
    background: linear-gradient(135deg, #235383 0%, #336ba8 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 4px 14px rgba(35, 83, 131, 0.25);
}

.btn-apply-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(35, 83, 131, 0.4);
}

.btn-apply-primary:disabled {
    background: var(--color-gray-400);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-details-link {
    padding: 10px 24px;
    border: 2px solid var(--color-primary);
    background: var(--color-background);
    color: var(--color-primary);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: var(--radius-md);
    text-align: center;
    display: inline-block;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.btn-details-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(35, 83, 131, 0.05) 0%, rgba(51, 107, 168, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-details-link:hover::before {
    opacity: 1;
}

.btn-details-link:hover {
    border-color: var(--color-primary-dark);
    color: var(--color-primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(35, 83, 131, 0.2);
}

/* Job Content */
.job-content {
    padding: 32px;
}

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

.job-section:last-child {
    margin-bottom: 0;
}

.job-section h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 16px 0;
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.job-description {
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    word-wrap: break-word;
}

.job-description p {
    margin-bottom: 1em;
}

.job-description p:last-child {
    margin-bottom: 0;
}

.job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

.job-list li:last-child {
    margin-bottom: 0;
}

.job-list li svg {
    flex-shrink: 0;
    margin-top: 4px;
    min-width: 20px;
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.apply-card {
    background: linear-gradient(135deg, #e8f1f8 0%, #f5f8fb 50%, #fef9e7 100%);
    border: 1.5px solid #e0eef8;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    box-shadow: 0 2px 8px rgba(35, 83, 131, 0.06);
}

@media (max-width: 640px) {
    .apply-card {
        flex-direction: column;
        align-items: stretch;
    }
}

.apply-card > div > p:first-child {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    font-family: var(--font-display);
    margin: 0 0 4px 0;
}

.apply-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

.apply-btn {
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: background 0.2s;
}

.apply-btn:hover {
    background: var(--color-primary-dark);
}

.apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.job-list-panel .empty-state {
    border: none;
    background: white;
    border-radius: var(--radius-xl);
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--color-gray-300);
    margin: 0 auto 16px;
}

.empty-state p:first-of-type {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin: 0 0 8px 0;
    font-weight: 400;
}

.empty-state p {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    margin: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

@media (max-width: 1024px) {
    .pagination {
        background: #e5e7eb;
        padding: 16px;
        border-radius: var(--radius-md);
        margin-top: 16px;
        border-top: none;
    }
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
    min-width: 110px;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--color-surface);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--color-gray-100) 25%, var(--color-border) 50%, var(--color-gray-100) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-lg);
    height: 150px;
    margin-bottom: 12px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

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

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn .2s ease-out;
    font-family: inherit;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: slideUp .3s ease-out;
    display: flex;
    flex-direction: column;
    font-family: inherit;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: white;
    transition: background .2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #235383 0%, #336ba8 100%);
    color: #fff;
    padding: 32px 24px 32px 24px;
    padding-right: 60px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-header::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    filter: blur(80px);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.modal-header::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(198, 154, 7, 0.15);
    border-radius: 50%;
    filter: blur(70px);
    bottom: -100px;
    left: -80px;
    pointer-events: none;
}

.modal-header > div:first-child {
    color: #ffffff; /* Default - can be overridden by Elementor */
    margin: 0 0 24px 0; /* Increased spacing */
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.8); /* Default - can be overridden by Elementor */
    margin: 0;
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.modal-body {
    padding: 24px;
    max-height: calc(90vh - 280px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-300) var(--color-gray-50);
    flex: 1;
    min-height: 0;
    background: white;
    font-family: inherit;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: var(--color-gray-50);
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--color-gray-300);
    border-radius: 4px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    color: #374151;
    margin-bottom: 6px;
    font-family: inherit;
}

.form-input, 
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color .2s;
    background: white;
    color: #111827;
    font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

.form-input:focus, 
.form-textarea:focus {
    outline: none;
    border-color: #235383;
    box-shadow: 0 0 0 3px rgba(35, 83, 131, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-family: inherit;
}

.file-upload:hover {
    border-color: var(--color-primary);
    background: #e8f1f8;
    color: #111827;
}

.file-upload input {
    display: none;
}

.file-upload p {
    color: #4b5563;
    margin: 4px 0;
}

.file-upload p strong {
    color: #111827;
}

.upload-icon {
    width: 32px;
    height: 32px;
    color: #235383;
    margin: 0 auto 4px;
}

.file-name {
    color: var(--color-primary);
}

.error-message {
    color: #dc2626;
    margin-top: 4px;
    display: none;
}

.form-group.error .form-input,
.form-group.error .form-textarea,
.form-group.error .file-upload {
    border-color: #dc2626;
}

.form-group.error .error-message {
    display: block;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
    background: white;
    position: relative;
    z-index: 10;
    font-family: inherit;
}

.modal-footer .btn-secondary,
.modal-footer .btn-primary {
    flex: 1;
    min-width: 0;
}

/* Base Button Styles - Inspired by Hire Talent Modal */
.btn-secondary,
.btn-primary {
    padding: 0.875rem 1.5rem; /* 14px 24px */
    border-radius: 0.5rem; /* 8px */
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    /* Typography controlled by Elementor */
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #d1d5db;
}

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

.btn-primary {
    background: #235383;
    color: white;
    box-shadow: 0 4px 12px rgba(35, 83, 131, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: #1a3f63;
    box-shadow: 0 6px 16px rgba(35, 83, 131, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-screen {
    text-align: center;
    padding: 60px 40px;
    background: white;
    font-family: inherit;
}

.success-icon {
    width: 80px;
    height: 80px;
    color: #235383;
    margin: 0 auto 16px;
    opacity: 0;
}

.success-screen > div {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 8px 0;
    opacity: 0;
}

.success-screen p {
    color: #6b7280;
    margin: 0;
    opacity: 0;
}

.success-screen.show-animation .success-icon {
    animation: successIconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-screen.show-animation > div {
    animation: successFadeIn 0.5s ease-out 0.3s forwards;
}

.success-screen.show-animation p {
    animation: successFadeIn 0.5s ease-out 0.4s forwards;
}

@keyframes successIconBounce {
    0% {
        transform: scale(0) translateY(20px);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) translateY(-5px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes successFadeIn {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================================================
   RESPONSIVE TABLET & MOBILE
   ============================================================================ */

@media (max-width: 1024px) and (min-width: 768px) {
    .job-board-split {
        grid-template-columns: 1fr;
    }
    
    .job-list-panel {
        position: static !important;
        max-height: none !important;
        min-height: auto !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 2px 0 0 0 !important;
    }
    
    .job-list-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        border-radius: 12px;
        margin-top: 5px;
        background: var(--color-background);
        padding: 16px;
        border: 1px solid var(--color-border-light);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .job-list-content > .pagination,
    .job-list-content > div:first-child,
    .job-list-content > .empty-state {
        grid-column: 1 / -1;
    }
    
    .job-list-panel > div:first-child {
        grid-column: 1 / -1;
        margin-bottom: 6px;
    }
    
    .pagination {
        grid-column: 1 / -1;
        margin-top: 6px;
        gap: 20px;
        justify-content: center;
        padding: 12px 8px;
    }
    
    .pagination-btn {
        min-width: 70px;
        padding: 8px 10px;
        font-size: 13px;
        flex: 0 0 auto;
    }
    
    .pagination-info {
        font-size: 13px;
        padding: 0 12px;
        flex: 0 1 auto;
        text-align: center;
        white-space: nowrap;
        min-width: 100px;
    }
    
    .pagination-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .job-details-panel {
        display: none;
    }
    
    .job-card {
        padding: 16px;
        background: #ffffff !important;
    }
    
    .job-card:hover .job-title {
        text-decoration: underline;
    }
    
    .job-badge {
        filter: brightness(0.92);
    }
    
    .job-list-panel > div:first-child:not(.empty-state) {
        background: #e5e7eb !important;
    }
    
    /* White background for selected cards on tablet */
    .job-card.selected {
        background: #ffffff !important;
    }
    
    .job-card.selected::before {
        background: #ffffff !important;
    }
    
    /* Tablet modal button styling - MATCHES JOB DETAIL WIDGET */
    .modal-footer .btn-secondary,
    .modal-footer .btn-primary {
        width: 100% !important;
        padding: 16px !important;
        min-height: 52px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }
    
    .modal-footer {
        padding: 18px 20px;
        flex-direction: column-reverse;
        gap: 10px;
    }
}

/* ============================================================================
   MOBILE & TABLET TAP ENHANCEMENTS
   ============================================================================ */

@media (max-width: 1024px) {
    /* Chevron arrow on job cards - vertically centered */
    .job-card::after {
        content: '›';
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 36px;
        color: #235383;
        opacity: 0.3;
        transition: opacity 0.2s, transform 0.2s;
        pointer-events: none;
        z-index: 2;
    }
    
    /* Chevron animation on tap */
    .job-card:active::after {
        opacity: 0.6;
        transform: translateY(-50%) translateX(4px);
    }
    
    /* Press animation for job cards */
    .job-card {
        transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
    }
    
    .job-card:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-color: #235383;
    }
}

/* Tablet-specific adjustments for 2-column grid */
@media (max-width: 1024px) and (min-width: 768px) {
    /* Slightly smaller chevron for 2-column layout */
    .job-card::after {
        font-size: 32px;
        right: 14px;
    }
}

@media (max-width: 767px) {
    .job-board-main {
        padding: 32px 0px !important;
    }
    
    .job-board-split {
        grid-template-columns: 1fr;
    }
    
    .job-list-panel {
        position: static !important;
        max-height: none !important;
        min-height: auto !important;
    }
    
    .job-list-panel:not(:has(.empty-state)) {
        padding: 2px 0 0 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .job-list-content {
        border-radius: 12px;
        margin-top: 5px;
        background: var(--color-background);
        padding: 16px;
        border: 1px solid var(--color-border-light);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .job-details-panel {
        display: none;
    }
    
    .job-card {
        padding: 16px;
        background: #ffffff !important;
    }
    
    .job-card:hover .job-title {
        text-decoration: underline;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    
    /* Modal footer mobile styling */
    .modal-footer {
        padding: 18px 20px;
        flex-direction: column-reverse;
        gap: 10px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    
    /* Mobile button padding for full-width buttons - MATCHES JOB DETAIL WIDGET */
    .modal-footer .btn-secondary,
    .modal-footer .btn-primary {
        width: 100% !important;
        padding: 16px !important;
        min-height: 52px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }
    
    /* White background for selected cards on mobile */
    .job-card.selected {
        background: #ffffff !important;
    }
    
    .job-card.selected::before {
        background: #ffffff !important;
    }
}

/* Hide arrow on narrow mobile screens where badges might overlap */
@media (max-width: 400px) {
    .job-card::after {
        display: none !important;
    }
}

/* Extra small mobile screens - Better pagination spacing */
@media (max-width: 480px) {
    .pagination {
        gap: 4px;
        padding: 10px 4px;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .pagination-btn {
        width: 70px;
        padding: 6px 8px;
        font-size: 12px;
        flex: 0 0 70px;
    }
    
    .pagination-info {
        font-size: 12px;
        padding: 0;
        min-width: auto;
        flex: 1;
        text-align: center;
    }
    
    .pagination-btn svg {
        width: 12px;
        height: 12px;
    }
}

/* ============================================================================
   JOB CARD VISUAL ENHANCEMENTS
   ============================================================================
   Adds subtle visual variety to job cards based on:
   1. Industry (colored left border)
   2. Featured status (gradient background + glow)
   3. Work type (emoji indicators)
   4. Recency (NEW badge for 24hr posts)
   ============================================================================ */

/* ---------------------------------------------------------------------------
   FEATURED JOBS - Enhanced Visual Pop
   --------------------------------------------------------------------------- */

.job-card.featured {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(245, 245, 255, 1) 100%);
    border: 1px solid #e0e7ff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.06);
}

.job-card.featured:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.job-card.featured .featured-badge {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

/* Subtle pulse animation for featured jobs */
@keyframes featuredPulse {
    0%, 100% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.06);
    }
    50% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(79, 70, 229, 0.15);
    }
}

.job-card.featured {
    animation: featuredPulse 3s ease-in-out infinite;
}

/* ---------------------------------------------------------------------------
   NEW JOB BADGE - Posted in Last 24 Hours
   --------------------------------------------------------------------------- */

.job-card.new-job .new-badge {
    background: linear-gradient(135deg, #235383 0%, #336ba8 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: absolute;
    top: 18px;
    left: 16px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(35, 83, 131, 0.3);
    animation: newBadgePulse 2s ease-in-out infinite;
}

@keyframes newBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(35, 83, 131, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(35, 83, 131, 0.4);
    }
}

/* Adjust featured badge position when NEW badge is present */
.job-card.new-job.featured .featured-badge {
    top: 12px;
    right: 12px;
}

/* ---------------------------------------------------------------------------
   WORK TYPE VISUAL INDICATORS
   --------------------------------------------------------------------------- */

/* Remote - Light blue tint on badge */
.job-card[data-work-type="remote"] .badge-mode {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

/* Hybrid - Neutral/purple tint */
.job-card[data-work-type="hybrid"] .badge-mode {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #7c3aed;
}

/* On-site - Warm tint */
.job-card[data-work-type="on-site"] .badge-mode {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    color: #ea580c;
}

/* ---------------------------------------------------------------------------
   HOVER ENHANCEMENTS
   --------------------------------------------------------------------------- */

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Industry border colors - always visible */
.job-card[data-industry*="marketing"] {
    box-shadow: -3px 0 0 0 #ff6b35, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.job-card[data-industry*="information-technology"],
.job-card[data-industry*="product"],
.job-card[data-industry*="engineering"] {
    box-shadow: -3px 0 0 0 #2563eb, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.job-card[data-industry*="healthcare"],
.job-card[data-industry*="pharmaceutical"] {
    box-shadow: -3px 0 0 0 #10b981, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.job-card[data-industry*="finance"],
.job-card[data-industry*="accounting"] {
    box-shadow: -3px 0 0 0 #1e40af, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.job-card[data-industry*="operations"],
.job-card[data-industry*="manufacturing"] {
    box-shadow: -3px 0 0 0 #7c3aed, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.job-card[data-industry*="sales"],
.job-card[data-industry*="customer-service"] {
    box-shadow: -3px 0 0 0 #0d9488, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.job-card[data-industry*="human-resources"],
.job-card[data-industry*="administrative"] {
    box-shadow: -3px 0 0 0 #ec4899, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.job-card[data-industry*="legal"],
.job-card[data-industry*="compliance"] {
    box-shadow: -3px 0 0 0 #475569, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.job-card[data-industry*="education"],
.job-card[data-industry*="training"] {
    box-shadow: -3px 0 0 0 #f59e0b, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.job-card[data-industry*="hospitality"],
.job-card[data-industry*="tourism"] {
    box-shadow: -3px 0 0 0 #f43f5e, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.job-card[data-industry*="insurance"] {
    box-shadow: -3px 0 0 0 #6366f1, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Agriculture & Food - Lime Green */
.job-card[data-industry*="agriculture"],
.job-card[data-industry*="food"] {
    box-shadow: -3px 0 0 0 #84cc16, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Automotive - Red */
.job-card[data-industry*="automotive"] {
    box-shadow: -3px 0 0 0 #dc2626, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Biotechnology - Cyan */
.job-card[data-industry*="biotechnology"] {
    box-shadow: -3px 0 0 0 #06b6d4, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Consulting - Indigo */
.job-card[data-industry*="consulting"] {
    box-shadow: -3px 0 0 0 #6366f1, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Construction & Real Estate - Brown */
.job-card[data-industry*="construction"],
.job-card[data-industry*="real-estate"] {
    box-shadow: -3px 0 0 0 #a16207, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Design - Fuchsia */
.job-card[data-industry*="design"] {
    box-shadow: -3px 0 0 0 #d946ef, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Energy & Utilities - Yellow */
.job-card[data-industry*="energy"],
.job-card[data-industry*="utilities"] {
    box-shadow: -3px 0 0 0 #eab308, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Entertainment & Media - Purple */
.job-card[data-industry*="entertainment"],
.job-card[data-industry*="media"] {
    box-shadow: -3px 0 0 0 #9333ea, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Environmental - Emerald Green */
.job-card[data-industry*="environmental"] {
    box-shadow: -3px 0 0 0 #059669, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Fashion & Beauty - Rose */
.job-card[data-industry*="fashion"],
.job-card[data-industry*="beauty"] {
    box-shadow: -3px 0 0 0 #f43f5e, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}


/* ---------------------------------------------------------------------------
   MOBILE RESPONSIVENESS
   --------------------------------------------------------------------------- */

@media (max-width: 768px) {
    /* Reduce border thickness on mobile */
    .job-card[data-industry] {
        border-left-width: 2px;
    }
    
    /* Make badges slightly smaller */
    .job-card.featured .featured-badge,
    .job-card.new-job .new-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    /* Reduce hover transform on mobile */
    .job-card:hover {
        transform: translateY(-1px);
    }
}

/* ---------------------------------------------------------------------------
   ACCESSIBILITY
   --------------------------------------------------------------------------- */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .job-card[data-industry] {
        border-left-width: 4px;
    }
    
    .job-card.featured {
        border: 2px solid #4f46e5;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .job-card,
    .job-card.featured,
    .job-card.new-job .new-badge {
        animation: none;
        transition: none;
    }
    
    .job-card:hover {
        transform: none;
    }
}
/* ============================================================================
   INDUSTRY BADGE BACKGROUND COLORS
   ============================================================================
   Adds colored backgrounds to industry badges matching left border colors
   All 27 industries covered with light backgrounds + darker text
   ============================================================================ */

/* Accounting & Finance - Navy */
.job-card[data-industry*="accounting"] .badge-industry,
.job-card[data-industry*="finance"] .badge-industry {
    background: rgba(30, 64, 175, 0.12);
    border-color: rgba(30, 64, 175, 0.3);
    color: #1e40af;
    font-weight: 500;
}

/* Administrative & Clerical - Pink */
.job-card[data-industry*="administrative"] .badge-industry,
.job-card[data-industry*="clerical"] .badge-industry {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.3);
    color: #db2777;
    font-weight: 500;
}

/* Agriculture & Food - Lime Green */
.job-card[data-industry*="agriculture"] .badge-industry,
.job-card[data-industry*="food"] .badge-industry {
    background: rgba(132, 204, 22, 0.12);
    border-color: rgba(132, 204, 22, 0.3);
    color: #65a30d;
    font-weight: 500;
}

/* Automotive - Red */
.job-card[data-industry*="automotive"] .badge-industry {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.3);
    color: #dc2626;
    font-weight: 500;
}

/* Biotechnology - Cyan */
.job-card[data-industry*="biotechnology"] .badge-industry {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.3);
    color: #0891b2;
    font-weight: 500;
}

/* Consulting - Indigo */
.job-card[data-industry*="consulting"] .badge-industry {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
    font-weight: 500;
}

/* Construction & Real Estate - Brown */
.job-card[data-industry*="construction"] .badge-industry,
.job-card[data-industry*="real-estate"] .badge-industry {
    background: rgba(161, 98, 7, 0.12);
    border-color: rgba(161, 98, 7, 0.3);
    color: #a16207;
    font-weight: 500;
}

/* Customer Service - Teal */
.job-card[data-industry*="customer-service"] .badge-industry {
    background: rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.3);
    color: #0d9488;
    font-weight: 500;
}

/* Design - Fuchsia */
.job-card[data-industry*="design"] .badge-industry {
    background: rgba(217, 70, 239, 0.12);
    border-color: rgba(217, 70, 239, 0.3);
    color: #c026d3;
    font-weight: 500;
}

/* Education - Amber */
.job-card[data-industry*="education"] .badge-industry {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #d97706;
    font-weight: 500;
}

/* Energy & Utilities - Yellow */
.job-card[data-industry*="energy"] .badge-industry,
.job-card[data-industry*="utilities"] .badge-industry {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.3);
    color: #a16207;
    font-weight: 500;
}

/* Engineering - Blue */
.job-card[data-industry*="engineering"] .badge-industry {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
    color: #2563eb;
    font-weight: 500;
}

/* Entertainment & Media - Purple */
.job-card[data-industry*="entertainment"] .badge-industry,
.job-card[data-industry*="media"] .badge-industry {
    background: rgba(147, 51, 234, 0.12);
    border-color: rgba(147, 51, 234, 0.3);
    color: #9333ea;
    font-weight: 500;
}

/* Environmental - Emerald Green */
.job-card[data-industry*="environmental"] .badge-industry {
    background: rgba(5, 150, 105, 0.12);
    border-color: rgba(5, 150, 105, 0.3);
    color: #059669;
    font-weight: 500;
}

/* Fashion & Beauty - Rose */
.job-card[data-industry*="fashion"] .badge-industry,
.job-card[data-industry*="beauty"] .badge-industry {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.3);
    color: #e11d48;
    font-weight: 500;
}

/* Healthcare - Green */
.job-card[data-industry*="healthcare"] .badge-industry {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #059669;
    font-weight: 500;
}

/* Hospitality & Tourism - Rose */
.job-card[data-industry*="hospitality"] .badge-industry,
.job-card[data-industry*="tourism"] .badge-industry {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.3);
    color: #f43f5e;
    font-weight: 500;
}

/* Human Resources - Pink */
.job-card[data-industry*="human-resources"] .badge-industry {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.3);
    color: #ec4899;
    font-weight: 500;
}

/* Information Technology - Blue */
.job-card[data-industry*="information-technology"] .badge-industry {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.3);
    color: #2563eb;
    font-weight: 500;
}

/* Insurance - Indigo */
.job-card[data-industry*="insurance"] .badge-industry {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
    font-weight: 500;
}

/* Legal & Compliance - Slate */
.job-card[data-industry*="legal"] .badge-industry,
.job-card[data-industry*="compliance"] .badge-industry {
    background: rgba(71, 85, 105, 0.12);
    border-color: rgba(71, 85, 105, 0.3);
    color: #475569;
    font-weight: 500;
}

/* Manufacturing - Purple */
.job-card[data-industry*="manufacturing"] .badge-industry {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.3);
    color: #7c3aed;
    font-weight: 500;
}

/* Marketing & Advertising - Coral/Orange */
.job-card[data-industry*="marketing"] .badge-industry,
.job-card[data-industry*="advertising"] .badge-industry {
    background: rgba(255, 107, 53, 0.12);
    border-color: rgba(255, 107, 53, 0.3);
    color: #ea580c;
    font-weight: 500;
}

/* Operations - Purple */
.job-card[data-industry*="operations"] .badge-industry {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.3);
    color: #7c3aed;
    font-weight: 500;
}

/* Pharmaceutical - Teal Green */
.job-card[data-industry*="pharmaceutical"] .badge-industry {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.3);
    color: #0d9488;
    font-weight: 500;
}

/* Product - Sky Blue */
.job-card[data-industry*="product"] .badge-industry {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.3);
    color: #0284c7;
    font-weight: 500;
}

/* Sales - Teal */
.job-card[data-industry*="sales"] .badge-industry {
    background: rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.3);
    color: #0d9488;
    font-weight: 500;
}

/* ============================================================================
   UPDATE LEFT BORDER COLORS TO MATCH ALL INDUSTRIES
   ============================================================================ */

/* Default for all job cards */
.job-card {
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

/* Accounting & Finance - Navy */
.job-card[data-industry*="accounting"],
.job-card[data-industry*="finance"]:not([data-industry*="marketing"]) {
    border-left: 3px solid #1e40af;
}

/* Administrative & Clerical - Pink */
.job-card[data-industry*="administrative"],
.job-card[data-industry*="clerical"] {
    border-left: 3px solid #ec4899;
}

/* Agriculture & Food - Lime Green */
.job-card[data-industry*="agriculture"],
.job-card[data-industry*="food"] {
    border-left: 3px solid #84cc16;
}

/* Automotive - Red */
.job-card[data-industry*="automotive"] {
    border-left: 3px solid #dc2626;
}

/* Biotechnology - Cyan */
.job-card[data-industry*="biotechnology"] {
    border-left: 3px solid #06b6d4;
}

/* Consulting - Indigo */
.job-card[data-industry*="consulting"] {
    border-left: 3px solid #6366f1;
}

/* Construction & Real Estate - Brown */
.job-card[data-industry*="construction"],
.job-card[data-industry*="real-estate"] {
    border-left: 3px solid #a16207;
}

/* Customer Service - Teal */
.job-card[data-industry*="customer-service"] {
    border-left: 3px solid #0d9488;
}

/* Design - Fuchsia */
.job-card[data-industry*="design"] {
    border-left: 3px solid #d946ef;
}

/* Education - Amber */
.job-card[data-industry*="education"] {
    border-left: 3px solid #f59e0b;
}

/* Energy & Utilities - Yellow */
.job-card[data-industry*="energy"],
.job-card[data-industry*="utilities"] {
    border-left: 3px solid #eab308;
}

/* Engineering - Blue */
.job-card[data-industry*="engineering"] {
    border-left: 3px solid #2563eb;
}

/* Entertainment & Media - Purple */
.job-card[data-industry*="entertainment"],
.job-card[data-industry*="media"] {
    border-left: 3px solid #9333ea;
}

/* Environmental - Emerald Green */
.job-card[data-industry*="environmental"] {
    border-left: 3px solid #059669;
}

/* Fashion & Beauty - Rose */
.job-card[data-industry*="fashion"],
.job-card[data-industry*="beauty"] {
    border-left: 3px solid #f43f5e;
}

/* Healthcare - Green */
.job-card[data-industry*="healthcare"] {
    border-left: 3px solid #10b981;
}

/* Hospitality & Tourism - Rose */
.job-card[data-industry*="hospitality"],
.job-card[data-industry*="tourism"] {
    border-left: 3px solid #f43f5e;
}

/* Human Resources - Pink */
.job-card[data-industry*="human-resources"] {
    border-left: 3px solid #ec4899;
}

/* Information Technology - Blue */
.job-card[data-industry*="information-technology"] {
    border-left: 3px solid #2563eb;
}

/* Insurance - Indigo */
.job-card[data-industry*="insurance"] {
    border-left: 3px solid #6366f1;
}

/* Legal & Compliance - Slate */
.job-card[data-industry*="legal"],
.job-card[data-industry*="compliance"] {
    border-left: 3px solid #475569;
}

/* Manufacturing - Purple */
.job-card[data-industry*="manufacturing"] {
    border-left: 3px solid #7c3aed;
}

/* Marketing & Advertising - Coral/Orange */
.job-card[data-industry*="marketing"],
.job-card[data-industry*="advertising"] {
    border-left: 3px solid #ff6b35;
}

/* Operations - Purple */
.job-card[data-industry*="operations"] {
    border-left: 3px solid #7c3aed;
}

/* Pharmaceutical - Teal Green */
.job-card[data-industry*="pharmaceutical"] {
    border-left: 3px solid #14b8a6;
}

/* Product - Sky Blue */
.job-card[data-industry*="product"] {
    border-left: 3px solid #0ea5e9;
}

/* Sales - Teal */
.job-card[data-industry*="sales"] {
    border-left: 3px solid #0d9488;
}

/* ============================================================================
   AMBIENT SPACE ANIMATIONS - DESKTOP ONLY
   ============================================================================ */

/* FOG/MIST EFFECT - Job List Panel (Desktop Only - Above 1024px) */
/* IMPORTANT: Fog color is #235383 (primary brand color) */
@media (min-width: 1025px) {
    .job-list-panel {
        position: relative;
        overflow: hidden; /* Prevents fog from bleeding outside */
    }
    
    .job-list-panel::before,
    .job-list-panel::after {
        content: '' !important;
        position: absolute !important;
        width: 200% !important;
        height: 100% !important;
        pointer-events: none !important;
        z-index: 1 !important;
        top: 0 !important;
    }
    
    .job-list-panel::before {
        left: -100% !important;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(35, 83, 131, 0.10) 25%,
            rgba(35, 83, 131, 0.12) 50%,
            rgba(35, 83, 131, 0.10) 75%,
            transparent 100%
        ) !important;
        animation: fog-move-1 20s ease-in-out infinite !important;
    }
    
    .job-list-panel::after {
        left: -100% !important;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(35, 83, 131, 0.08) 30%,
            rgba(35, 83, 131, 0.10) 60%,
            transparent 100%
        ) !important;
        animation: fog-move-2 25s ease-in-out infinite !important;
    }
    
    @keyframes fog-move-1 {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(50%); }
    }
    
    @keyframes fog-move-2 {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(-30%); }
    }
    
    /* Ensure job cards stay above fog */
    .job-card,
    .job-list-panel > *,
    .job-list-content,
    .job-list-content > * {
        position: relative;
        z-index: 2;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .job-list-panel::before,
    .job-list-panel::after {
        animation: none;
        display: none;
    }
}
        