/* ============================================
   JobFlash Public Styles v1.0.0
   By Digiplanet - www.digiplanetsc.com
   Modern, responsive tech job board UI
   ============================================ */

/* CSS Variables - Using Brand Color #174997 */
:root {
    --jf-primary: #174997;
    --jf-primary-dark: #123b75;
    --jf-primary-light: #1e5cb8;
    --jf-secondary: #2d6bc4;
    --jf-accent: #3498db;
    --jf-success: #27ae60;
    --jf-warning: #f39c12;
    --jf-danger: #e74c3c;
    --jf-dark: #1a1a2e;
    --jf-gray-900: #111827;
    --jf-gray-700: #374151;
    --jf-gray-600: #4b5563;
    --jf-gray-500: #6b7280;
    --jf-gray-400: #9ca3af;
    --jf-gray-300: #d1d5db;
    --jf-gray-200: #e5e7eb;
    --jf-gray-100: #f3f4f6;
    --jf-gray-50: #f9fafb;
    --jf-white: #ffffff;
    --jf-radius: 8px;
    --jf-radius-sm: 6px;
    --jf-radius-xs: 4px;
    --jf-shadow: 0 1px 3px rgba(23, 73, 151, 0.1), 0 1px 2px rgba(23, 73, 151, 0.06);
    --jf-shadow-md: 0 4px 6px rgba(23, 73, 151, 0.1), 0 2px 4px rgba(23, 73, 151, 0.06);
    --jf-shadow-lg: 0 10px 25px rgba(23, 73, 151, 0.1), 0 4px 10px rgba(23, 73, 151, 0.05);
    --jf-shadow-xl: 0 20px 50px rgba(23, 73, 151, 0.15);
    --jf-transition: all 0.2s ease-in-out;
}

/* Use theme font family */
.jobflash-container {
    font-family: inherit;
    max-width: 1280px;
    margin: 0 auto;
    color: var(--jf-gray-700);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Elementor compatibility */
.elementor .jobflash-container,
.elementor-element .jobflash-container,
.elementor-section .jobflash-container {
    max-width: 100% !important;
    width: 100% !important;
}

.elementor .jobflash-jobs-grid,
.elementor .jobflash-jobs-list,
.elementor-element .jobflash-jobs-grid,
.elementor-element .jobflash-jobs-list {
    max-width: 100% !important;
    width: 100% !important;
}

.elementor .jobflash-job-card,
.elementor-element .jobflash-job-card {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.jobflash-container * {
    box-sizing: border-box;
    font-family: inherit;
}

/* ========== HEADER ========== */
.jobflash-header {
    margin-bottom: 32px;
}

.jobflash-hero {
    background: linear-gradient(135deg, var(--jf-primary), var(--jf-primary-dark), var(--jf-secondary));
    border-radius: var(--jf-radius);
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.jobflash-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.jobflash-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.jobflash-hero-content {
    position: relative;
    z-index: 1;
}

.jobflash-hero h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    color: white !important;
}

.jobflash-hero p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 24px;
}

.jobflash-hero .jobflash-job-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.jobflash-hero .jobflash-job-count .count-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: jf-pulse 2s ease-in-out infinite;
}

@keyframes jf-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ========== SEARCH & FILTERS ========== */
.jobflash-search-bar {
    display: flex;
    gap: 12px;
    margin-top: -28px;
    position: relative;
    z-index: 2;
    padding: 0px;
}

.jobflash-search-input-wrap {
    flex: 1;
    position: relative;
}

.jobflash-search-input-wrap .jf-search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--jf-gray-400);
    font-size: 20px;
    pointer-events: none;
}

.jobflash-search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid transparent;
    border-radius: var(--jf-radius);
    font-size: 16px;
    background: var(--jf-white);
    box-shadow: var(--jf-shadow-lg);
    transition: var(--jf-transition);
    outline: none;
    font-family: inherit;
}

.jobflash-search-input:focus {
    border-color: var(--jf-primary);
    box-shadow: var(--jf-shadow-lg), 0 0 0 4px rgba(23, 73, 151, 0.1);
}

.jobflash-search-input::placeholder {
    color: var(--jf-gray-400);
}

.jobflash-search-btn {
    padding: 16px 32px;
    background: var(--jf-primary);
    color: white;
    border: none;
    border-radius: var(--jf-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jf-transition);
    box-shadow: var(--jf-shadow-lg);
    font-family: inherit;
    white-space: nowrap;
}

.jobflash-search-btn:hover {
    background: var(--jf-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--jf-shadow-xl);
}

/* Filter Bar */
.jobflash-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--jf-white);
    border-radius: var(--jf-radius);
    border: 1px solid var(--jf-gray-200);
}

.jobflash-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jobflash-filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--jf-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jobflash-filter-select {
    padding: 8px 36px 8px 14px;
    border: 2px solid var(--jf-gray-200);
    border-radius: var(--jf-radius-sm);
    font-size: 14px;
    color: var(--jf-gray-700);
    background: var(--jf-gray-50);
    cursor: pointer;
    transition: var(--jf-transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    font-family: inherit;
    min-width: 140px;
}

.jobflash-filter-select:focus {
    border-color: var(--jf-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 73, 151, 0.1);
}

.jobflash-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid var(--jf-gray-200);
    border-radius: var(--jf-radius-sm);
    background: var(--jf-gray-50);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--jf-gray-600);
    transition: var(--jf-transition);
    user-select: none;
}

.jobflash-toggle:hover {
    border-color: var(--jf-primary);
    color: var(--jf-primary);
}

.jobflash-toggle.active {
    background: var(--jf-primary);
    border-color: var(--jf-primary);
    color: white;
}

.jobflash-toggle input {
    display: none;
}

.jobflash-filter-spacer {
    flex: 1;
}

.jobflash-results-info {
    font-size: 14px;
    color: var(--jf-gray-500);
    font-weight: 500;
}

/* Tag filters */
.jobflash-tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.jobflash-tag-btn {
    padding: 6px 14px;
    border: 1px solid var(--jf-gray-200);
    border-radius: 50px;
    background: var(--jf-white);
    font-size: 13px;
    color: var(--jf-gray-600);
    cursor: pointer;
    transition: var(--jf-transition);
    font-family: inherit;
}

.jobflash-tag-btn:hover,
.jobflash-tag-btn.active {
    background: var(--jf-primary);
    color: white;
    border-color: var(--jf-primary);
}

/* ========== JOB GRID ========== */
/* Desktop: 2 columns */
.jobflash-jobs-grid,
#jf-jobs-grid,
.jobflash-container .jobflash-jobs-grid,
.jobflash-container #jf-jobs-grid,
div.jobflash-jobs-grid,
div#jf-jobs-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    grid-auto-flow: row dense !important;
}

/* Ensure jf-grid-container also uses 2 columns on desktop */
.jf-grid-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

/* Job cards - full width in grid */
.jobflash-jobs-grid .jobflash-job-card,
#jf-jobs-grid .jobflash-job-card,
.jf-grid-container .jobflash-job-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    grid-column: auto !important;
}

/* Mobile: Modern Card Design */
@media (max-width: 768px) {
    .jobflash-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    #jf-jobs-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: visible !important;
    }
    
    .jobflash-jobs-grid,
    .jobflash-jobs-list,
    .jf-grid-container,
    #jf-jobs-grid,
    #jf-jobs-list {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: unset !important;
    }
    
    /* Modern card styling */
    .jobflash-jobs-grid .jobflash-job-card,
    .jobflash-jobs-list .jobflash-job-card {
        display: flex !important;
        flex-direction: column !important;
        background: var(--jf-white) !important;
        border: 1px solid var(--jf-gray-200) !important;
        border-radius: 16px !important;
        padding: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
        transition: all 0.2s ease !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card:hover,
    .jobflash-jobs-list .jobflash-job-card:hover {
        border-color: var(--jf-primary) !important;
        box-shadow: 0 4px 16px rgba(23, 73, 151, 0.12) !important;
        transform: translateY(-2px) !important;
    }
    
    /* Card Header */
    .jobflash-jobs-grid .jobflash-job-card .jf-card-header,
    .jobflash-jobs-list .jobflash-job-card .jf-card-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-company-logo,
    .jobflash-jobs-grid .jobflash-job-card .jf-company-logo-placeholder,
    .jobflash-jobs-list .jobflash-job-card .jf-company-logo,
    .jobflash-jobs-list .jobflash-job-card .jf-company-logo-placeholder {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
        font-size: 18px !important;
        font-weight: 700 !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-card-title-wrap,
    .jobflash-jobs-list .jobflash-job-card .jf-card-title-wrap {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-card-title,
    .jobflash-jobs-list .jobflash-job-card .jf-card-title {
        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        color: var(--jf-dark) !important;
        margin-bottom: 4px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-card-company,
    .jobflash-jobs-list .jobflash-job-card .jf-card-company {
        font-size: 13px !important;
        color: var(--jf-gray-500) !important;
        font-weight: 500 !important;
    }
    
    /* Meta badges */
    .jobflash-jobs-grid .jobflash-job-card .jf-card-meta,
    .jobflash-jobs-list .jobflash-job-card .jf-card-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-meta-item,
    .jobflash-jobs-list .jobflash-job-card .jf-meta-item {
        font-size: 12px !important;
        padding: 6px 12px !important;
        border-radius: 8px !important;
        font-weight: 500 !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-meta-remote,
    .jobflash-jobs-list .jobflash-job-card .jf-meta-remote {
        background: rgba(16, 185, 129, 0.1) !important;
        color: #059669 !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-meta-salary,
    .jobflash-jobs-list .jobflash-job-card .jf-meta-salary {
        background: rgba(23, 73, 151, 0.08) !important;
        color: var(--jf-primary) !important;
    }
    
    /* Excerpt */
    .jobflash-jobs-grid .jobflash-job-card .jf-card-excerpt,
    .jobflash-jobs-list .jobflash-job-card .jf-card-excerpt {
        font-size: 14px !important;
        line-height: 1.55 !important;
        color: var(--jf-gray-500) !important;
        margin-bottom: 14px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    /* Footer with source/time */
    .jobflash-jobs-grid .jobflash-job-card .jf-card-footer,
    .jobflash-jobs-list .jobflash-job-card .jf-card-footer {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding-top: 12px !important;
        border-top: 1px solid var(--jf-gray-100) !important;
        margin-bottom: 12px !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-card-info,
    .jobflash-jobs-list .jobflash-job-card .jf-card-info {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-card-source,
    .jobflash-jobs-list .jobflash-job-card .jf-card-source {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: var(--jf-gray-600) !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-card-source .jf-source-dot,
    .jobflash-jobs-list .jobflash-job-card .jf-card-source .jf-source-dot {
        width: 8px !important;
        height: 8px !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-card-time,
    .jobflash-jobs-list .jobflash-job-card .jf-card-time {
        font-size: 11px !important;
        color: var(--jf-gray-400) !important;
    }
    
    /* Buttons row - horizontal on mobile */
    .jobflash-jobs-grid .jobflash-job-card .jf-card-actions,
    .jobflash-jobs-list .jobflash-job-card .jf-card-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-card-actions a,
    .jobflash-jobs-grid .jobflash-job-card .jf-card-actions .jf-btn,
    .jobflash-jobs-list .jobflash-job-card .jf-card-actions a,
    .jobflash-jobs-list .jobflash-job-card .jf-card-actions .jf-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-btn-success,
    .jobflash-jobs-list .jobflash-job-card .jf-btn-success {
        background: var(--jf-success) !important;
        color: white !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-btn-outline,
    .jobflash-jobs-list .jobflash-job-card .jf-btn-outline {
        border: 2px solid var(--jf-primary) !important;
        color: var(--jf-primary) !important;
        background: transparent !important;
    }
    
    .jobflash-jobs-grid .jobflash-job-card .jf-btn-outline:hover,
    .jobflash-jobs-list .jobflash-job-card .jf-btn-outline:hover {
        background: var(--jf-primary) !important;
        color: white !important;
    }
    
    .jobflash-search-bar {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .jobflash-search-btn {
        width: 100% !important;
    }
    
    .jobflash-filters {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    
    .jobflash-filter-group {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
}

/* ========== JOB CARD ========== */
.jobflash-job-card {
    background: var(--jf-white);
    border: 1px solid var(--jf-gray-200);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.jobflash-job-card:hover {
    border-color: var(--jf-primary);
    box-shadow: 0 8px 24px rgba(23, 73, 151, 0.12);
    transform: translateY(-3px);
}

.jobflash-job-card.featured {
    border-color: var(--jf-warning);
    background: linear-gradient(135deg, #fffbeb 0%, var(--jf-white) 30%);
}

.jobflash-job-card.featured::before {
    content: 'Featured';
    position: absolute;
    top: 12px;
    right: -28px;
    background: var(--jf-warning);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 36px;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Header */
.jf-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.jf-company-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--jf-radius-sm);
    object-fit: contain;
    background: var(--jf-gray-100);
    border: 1px solid var(--jf-gray-200);
    flex-shrink: 0;
    padding: 4px;
}

.jf-company-logo-placeholder {
    width: 44px;
    height: 44px;
    border-radius: var(--jf-radius-sm);
    background: linear-gradient(135deg, var(--jf-primary), var(--jf-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.jf-card-title-wrap {
    flex: 1;
    min-width: 0;
}

.jf-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--jf-dark);
    margin: 0 0 3px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jf-card-company {
    font-size: 13px;
    color: var(--jf-gray-500);
    font-weight: 500;
}

/* Card Meta */
.jf-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.jf-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--jf-gray-600);
    padding: 5px 12px;
    background: var(--jf-gray-100);
    border-radius: 8px;
    font-weight: 500;
}

.jf-meta-item svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.jf-meta-remote {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-weight: 600;
}

.jf-meta-salary {
    background: rgba(23, 73, 151, 0.08);
    color: var(--jf-primary);
    font-weight: 600;
}

/* Card Excerpt */
.jf-card-excerpt {
    font-size: 14px;
    color: var(--jf-gray-500);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Tags */
.jf-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.jf-tag {
    padding: 2px 8px;
    background: var(--jf-gray-100);
    color: var(--jf-gray-600);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

/* Card Footer */
.jf-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 14px;
    border-top: 1px solid var(--jf-gray-100);
    margin-top: auto;
    gap: 16px;
}

.jf-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jf-card-source {
    font-size: 13px;
    color: var(--jf-gray-600);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.jf-card-source .jf-source-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--jf-primary);
}

.jf-card-time {
    font-size: 12px;
    color: var(--jf-gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

.jf-card-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.jf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-decoration: none !important;
    line-height: 1.4;
    text-shadow: none !important;
    box-shadow: none !important;
    white-space: nowrap;
}

.jf-btn * {
    text-decoration: none !important;
}

.jf-btn-primary {
    background: var(--jf-primary);
    color: white;
}

.jf-btn-primary:hover {
    background: var(--jf-primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.jf-btn-outline {
    background: transparent;
    color: var(--jf-primary);
    border: 2px solid var(--jf-primary);
}

.jf-btn-outline:hover {
    background: var(--jf-primary);
    color: white;
    text-decoration: none;
}

.jf-btn-success {
    background: var(--jf-success);
    color: white;
}

.jf-btn-success:hover {
    background: #059669;
    border-color: #059669;
    color: white;
    text-decoration: none;
}

.jf-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.jf-btn-lg {
    padding: 12px 28px;
    font-size: 16px;
}

.jf-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* List Layout Card - Modern Compact Design */
.jobflash-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jobflash-jobs-list .jobflash-job-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--jf-white);
    border: 1px solid var(--jf-gray-200);
    transition: all 0.2s ease;
}

.jobflash-jobs-list .jobflash-job-card:hover {
    border-color: var(--jf-primary);
    box-shadow: 0 4px 12px rgba(23, 73, 151, 0.1);
}

/* Header section - logo + title + company */
.jobflash-jobs-list .jf-card-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 0 0 auto;
    min-width: 0;
    margin-bottom: 0 !important;
}

.jobflash-jobs-list .jf-company-logo,
.jobflash-jobs-list .jf-company-logo-placeholder {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    flex-shrink: 0;
}

.jobflash-jobs-list .jf-card-title-wrap {
    min-width: 180px;
}

.jobflash-jobs-list .jf-card-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    -webkit-line-clamp: 1 !important;
    margin-bottom: 2px !important;
}

.jobflash-jobs-list .jf-card-company {
    font-size: 12px !important;
    color: var(--jf-gray-500) !important;
}

/* Meta badges - compact */
.jobflash-jobs-list .jf-card-meta {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    flex: 0 0 auto;
    min-width: auto;
}

.jobflash-jobs-list .jf-card-meta .jf-meta-item {
    padding: 3px 8px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
}

/* Footer with source/time and buttons */
.jobflash-jobs-list .jf-card-footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex: 1 1 auto;
    border-top: none !important;
    padding-top: 0 !important;
    margin-left: auto !important;
}

.jobflash-jobs-list .jf-card-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 12px;
    color: var(--jf-gray-500);
}

.jobflash-jobs-list .jf-card-source {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--jf-gray-600) !important;
}

.jobflash-jobs-list .jf-card-time {
    font-size: 11px !important;
    color: var(--jf-gray-400) !important;
}

.jobflash-jobs-list .jf-card-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    flex-shrink: 0;
}

.jobflash-jobs-list .jf-card-actions a,
.jobflash-jobs-list .jf-card-actions .jf-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    white-space: nowrap;
}

/* Hide excerpt and tags in list view */
.jobflash-jobs-list .jf-card-excerpt {
    display: none !important;
}

.jobflash-jobs-list .jf-card-tags {
    display: none !important;
}

/* Tag Filter Buttons - better styling */
.jobflash-tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.jobflash-tag-btn {
    padding: 6px 14px;
    border: 1px solid var(--jf-gray-300);
    border-radius: 20px;
    background: var(--jf-white);
    font-size: 13px;
    color: var(--jf-gray-600);
    cursor: pointer;
    transition: var(--jf-transition);
    font-family: inherit;
}

.jobflash-tag-btn:hover {
    border-color: var(--jf-primary);
    color: white !important;
}

.jobflash-tag-btn.active {
    background: var(--jf-primary);
    color: white;
    border-color: var(--jf-primary);
}

@media (max-width: 768px) {
    .jobflash-tag-filters {
        justify-content: center;
    }
    
    .jobflash-tag-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
}

/* ========== LAYOUT TOGGLE ========== */
.jobflash-layout-toggle {
    display: flex;
    background: var(--jf-gray-100);
    border-radius: var(--jf-radius-sm);
    padding: 3px;
    gap: 2px;
}

.jobflash-layout-btn {
    padding: 6px 10px;
    border: none;
    background: transparent;
    border-radius: var(--jf-radius-xs);
    cursor: pointer;
    color: var(--jf-gray-400);
    transition: var(--jf-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jobflash-layout-btn.active {
    background: var(--jf-white);
    color: var(--jf-primary);
    box-shadow: var(--jf-shadow);
}

.jobflash-layout-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ========== PAGINATION ========== */
.jobflash-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--jf-gray-200);
}

.jobflash-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid var(--jf-gray-200);
    border-radius: var(--jf-radius-sm);
    background: var(--jf-white);
    color: var(--jf-gray-600);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--jf-transition);
    font-family: inherit;
}

.jobflash-page-btn:hover {
    border-color: var(--jf-primary);
    color: var(--jf-primary);
    background: rgba(23, 73, 151, 0.05);
}

.jobflash-page-btn.active {
    background: var(--jf-primary);
    border-color: var(--jf-primary);
    color: white;
}

.jobflash-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.jobflash-page-info {
    font-size: 14px;
    color: var(--jf-gray-500);
    padding: 0 8px;
}

/* ========== MODAL ========== */
.jobflash-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.jobflash-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.jobflash-modal {
    background: var(--jf-white);
    border-radius: var(--jf-radius);
    width: 100%;
    max-width: 720px;
    box-shadow: var(--jf-shadow-xl);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.jobflash-modal-overlay.active .jobflash-modal {
    transform: translateY(0) scale(1);
}

.jobflash-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 28px 28px 20px;
    border-bottom: 1px solid var(--jf-gray-200);
    flex-shrink: 0;
}

.jobflash-modal-header-content {
    flex: 1;
    min-width: 0;
}

.jobflash-modal-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--jf-dark);
    margin: 0 0 8px;
    line-height: 1.3;
}

.jobflash-modal-company-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.jobflash-modal-company-info span {
    font-size: 14px;
    color: var(--jf-gray-500);
}

.jobflash-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--jf-gray-100);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jf-gray-500);
    transition: var(--jf-transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.jobflash-modal-close:hover {
    background: var(--jf-danger);
    color: white;
}

.jobflash-modal-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.jobflash-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.jobflash-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.jf-modal-section {
    margin-bottom: 24px;
}

.jf-modal-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--jf-dark);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.jf-modal-section h3 svg {
    width: 18px;
    height: 18px;
    color: var(--jf-primary);
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.jf-modal-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--jf-gray-600);
}

.jf-modal-description p {
    margin: 0 0 12px;
}

.jf-modal-description ul,
.jf-modal-description ol {
    padding-left: 20px;
    margin: 0 0 12px;
}

.jf-modal-description li {
    margin-bottom: 6px;
}

.jobflash-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-top: 1px solid var(--jf-gray-200);
    background: var(--jf-gray-50);
    border-radius: 0 0 var(--jf-radius) var(--jf-radius);
    flex-shrink: 0;
    gap: 12px;
    flex-wrap: wrap;
}

.jf-modal-source-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--jf-gray-400);
}

/* ========== APPLICATION FORM ========== */
.jobflash-application-form {
    background: var(--jf-gray-50);
    border-radius: var(--jf-radius);
    padding: 28px;
    margin-top: 8px;
}

.jobflash-application-form h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--jf-dark);
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jf-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.jf-form-group {
    display: flex;
    flex-direction: column;
}

.jf-form-group.full-width {
    grid-column: 1 / -1;
}

.jf-form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--jf-gray-700);
    margin-bottom: 6px;
}

.jf-form-label .required {
    color: var(--jf-danger);
}

.jf-form-input,
.jf-form-select,
.jf-form-textarea {
    padding: 12px 16px;
    border: 2px solid var(--jf-gray-200);
    border-radius: var(--jf-radius-sm);
    font-size: 15px;
    color: var(--jf-gray-700);
    background: var(--jf-white);
    transition: var(--jf-transition);
    font-family: inherit;
    width: 100%;
}

.jf-form-input:focus,
.jf-form-select:focus,
.jf-form-textarea:focus {
    border-color: var(--jf-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(23, 73, 151, 0.1);
}

.jf-form-input::placeholder,
.jf-form-textarea::placeholder {
    color: var(--jf-gray-400);
}

.jf-form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* File Upload */
.jf-file-upload {
    border: 2px dashed var(--jf-gray-300);
    border-radius: var(--jf-radius-sm);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--jf-transition);
    background: var(--jf-white);
    position: relative;
}

.jf-file-upload:hover,
.jf-file-upload.dragover {
    border-color: var(--jf-primary);
    background: rgba(23, 73, 151, 0.03);
}

.jf-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.jf-file-upload-icon {
    font-size: 36px;
    margin-bottom: 8px;
    color: var(--jf-gray-300);
}

.jf-file-upload-text {
    font-size: 14px;
    color: var(--jf-gray-500);
    margin: 0;
}

.jf-file-upload-text strong {
    color: var(--jf-primary);
}

.jf-file-upload-hint {
    font-size: 12px;
    color: var(--jf-gray-400);
    margin: 4px 0 0;
}

.jf-file-name {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #d1fae5;
    border-radius: var(--jf-radius-xs);
    color: #065f46;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
}

.jf-file-name .remove-file {
    margin-left: auto;
    cursor: pointer;
    color: var(--jf-danger);
    font-weight: 700;
    border: none;
    background: none;
    font-size: 16px;
}

/* Honeypot */
.jf-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Form submit area */
.jf-form-submit {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.jf-form-message {
    padding: 14px 20px;
    border-radius: var(--jf-radius-sm);
    font-size: 14px;
    font-weight: 500;
    grid-column: 1 / -1;
    display: none;
}

.jf-form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: block;
}

.jf-form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}

/* ========== LOADING ========== */
.jobflash-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--jf-gray-400);
}

.jf-loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--jf-gray-200);
    border-top-color: var(--jf-primary);
    border-radius: 50%;
    animation: jf-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes jf-spin {
    to { transform: rotate(360deg); }
}

.jobflash-loading p {
    font-size: 14px;
}

/* ========== EMPTY STATE ========== */
.jobflash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.jobflash-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.jobflash-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--jf-gray-700);
    margin: 0 0 8px;
}

.jobflash-empty p {
    font-size: 14px;
    color: var(--jf-gray-500);
    margin: 0;
}

/* ========== STATS (Hidden) ========== */
.jobflash-stats,
.jobflash-stat {
    display: none !important;
}

.jobflash-stat {
    text-align: center;
}

.jobflash-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--jf-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.jobflash-stat-label {
    font-size: 13px;
    color: var(--jf-gray-500);
    font-weight: 500;
}

/* ========== BUTTONS - Remove underlines ========== */
.jf-btn,
.jf-btn:hover,
.jf-btn:focus,
.jf-btn:active,
a.jf-btn,
a.jf-btn:hover,
a.jf-btn:focus,
a.jf-btn:active {
    text-decoration: none !important;
    outline: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.jf-btn-view,
.jf-btn-apply-inline,
.jf-btn-apply-external {
    text-decoration: none !important;
    border: none !important;
}

/* Remove any default link underlines that might affect buttons */
.jf-btn:link,
.jf-btn:visited {
    text-decoration: none !important;
}

/* ========== SPINNER ANIMATION ========== */
.jf-spin {
    animation: jf-spin 1s linear infinite;
}

@keyframes jf-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========== SVG ICON SIZING ========== */
.jf-btn svg,
.jf-meta-item svg,
.jf-card-time svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.jf-card-time svg {
    width: 12px;
    height: 12px;
}

.jf-file-upload-icon svg {
    width: 36px;
    height: 36px;
    color: var(--jf-gray-300);
}

/* Ensure icons in buttons are properly sized */
.jf-btn-view::before,
.jf-btn-apply-inline::before {
    content: '';
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .jobflash-hero {
        padding: 28px 20px;
    }
    
    .jobflash-hero h2 {
        font-size: 24px;
    }
    
    .jobflash-search-bar {
        flex-direction: column;
        padding: 0;
    }
    
    .jobflash-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jobflash-filter-select {
        width: 100%;
    }
    
    .jobflash-jobs-grid,
    .jobflash-jobs-list,
    .jf-grid-container,
    #jf-jobs-grid,
    #jf-jobs-list {
        grid-template-columns: 1fr !important;
    }
    
    .jobflash-jobs-list .jobflash-job-card {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .jobflash-jobs-list .jf-card-header {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .jobflash-jobs-list .jf-card-title-wrap {
        min-width: 0 !important;
        width: 100% !important;
    }
    
    .jobflash-jobs-list .jf-card-meta {
        width: 100% !important;
    }
    
    .jobflash-stats {
        grid-template-columns: 1fr;
    }
    
    .jf-form-grid {
        grid-template-columns: 1fr;
    }
    
    .jf-card-footer {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px;
        padding-top: 12px !important;
        border-top: 1px solid var(--jf-gray-100) !important;
        margin-bottom: 12px !important;
        margin-top: auto !important;
    }
    
    .jf-card-info {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .jf-card-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }
    
    .jf-card-actions a,
    .jf-card-actions .jf-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    
    .jobflash-modal {
        max-height: calc(100vh - 40px);
    }
}

/* Theme Compatibility - Force visibility */
body .jobflash-pagination,
.jobflash-pagination,
#jf-pagination-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Jobs container - ensure proper width and no flex interference */
#jf-jobs-container,
#jf-jobs-container * {
    box-sizing: border-box !important;
}

#jf-jobs-container {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    flex: none !important;
    align-self: auto !important;
}

body .jobflash-pagination.jf-pagination-hidden,
.jobflash-pagination.jf-pagination-hidden,
#jf-pagination-container.jf-pagination-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

body .jobflash-page-btn,
.jobflash-page-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 8px !important;
    margin: 3px !important;
    background: #174997 !important;
    color: #ffffff !important;
    border: 2px solid #174997 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    white-space: nowrap !important;
}

@media (max-width: 480px) {
    body .jobflash-pagination,
    .jobflash-pagination,
    #jf-pagination-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        overflow-x: hidden !important;
    }
    
    body .jobflash-page-btn,
    .jobflash-page-btn {
        min-width: 32px !important;
        height: 32px !important;
        padding: 0 6px !important;
        margin: 2px !important;
        font-size: 12px !important;
    }
}

body .jobflash-page-btn:hover,
.jobflash-page-btn:hover {
    background: #123b75 !important;
    border-color: #123b75 !important;
}

body .jobflash-page-btn.active,
.jobflash-page-btn.active {
    background: #2d6bc4 !important;
    border-color: #2d6bc4 !important;
}

body .jobflash-page-btn:disabled,
.jobflash-page-btn:disabled {
    background: #cccccc !important;
    border-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
}

/* Force brand color on all buttons */
body .jf-btn-primary,
body .jobflash-search-btn,
.jf-btn-primary,
.jobflash-search-btn {
    background-color: #174997 !important;
    color: #ffffff !important;
}

body .jf-btn-primary:hover,
body .jobflash-search-btn:hover,
.jf-btn-primary:hover,
.jobflash-search-btn:hover {
    background-color: #123b75 !important;
}

body .jf-btn-outline,
.jf-btn-outline {
    border-color: #174997 !important;
    color: #174997 !important;
}

body .jf-btn-outline:hover,
.jf-btn-outline:hover {
    background-color: #174997 !important;
    color: #ffffff !important;
}

body .jf-btn-success,
.jf-btn-success {
    background-color: #27ae60 !important;
}

body .jf-btn-success:hover,
.jf-btn-success:hover {
    background-color: #1e8449 !important;
}

/* Mobile overflow fix for job cards */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    
    .jobflash-job-card,
    .jobflash-job-card * {
        max-width: 100% !important;
        overflow-x: visible !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }
    
    .jf-card-source .jf-source-dot {
        flex-shrink: 0 !important;
    }
}

/* ULTIMATE MOBILE LAYOUT FIX */
@media (max-width: 768px) {
    /* Force single column grid */
    body .jobflash-jobs-grid,
    body .jobflash-jobs-list,
    body .jf-grid-container,
    body #jf-jobs-grid,
    body #jf-jobs-list,
    .jobflash-jobs-grid,
    .jobflash-jobs-list,
    .jf-grid-container,
    #jf-jobs-grid,
    #jf-jobs-list {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        grid-template-columns: unset !important;
        grid-template-rows: unset !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Job cards in single column */
    body .jobflash-jobs-grid .jobflash-job-card,
    body .jobflash-jobs-list .jobflash-job-card,
    .jobflash-jobs-grid .jobflash-job-card,
    .jobflash-jobs-list .jobflash-job-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        flex-basis: 100% !important;
    }
    
    /* Footer - source/time left, buttons right (horizontal row) */
    .jobflash-job-card .jf-card-footer,
    body .jobflash-job-card .jf-card-footer {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding-top: 12px !important;
        border-top: 1px solid #e5e7eb !important;
        margin-bottom: 0 !important;
    }
    
    .jobflash-job-card .jf-card-info,
    body .jobflash-job-card .jf-card-info {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }
    
    /* Actions - buttons horizontal row on right */
    .jobflash-job-card .jf-card-actions,
    body .jobflash-job-card .jf-card-actions {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }
    
    .jobflash-job-card .jf-card-actions a,
    .jobflash-job-card .jf-card-actions .jf-btn,
    body .jobflash-job-card .jf-card-actions a,
    body .jobflash-job-card .jf-card-actions .jf-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
}

/* DESKTOP ONLY - Force 2 columns for grid view */
@media (min-width: 769px) {
    .jobflash-jobs-grid,
    .jobflash-jobs-grid.jf-grid-container,
    #jf-jobs-grid,
    #jf-jobs-grid.jf-grid-container,
    div.jobflash-jobs-grid,
    div#jf-jobs-grid,
    div.jf-grid-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-flow: row dense !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .jobflash-jobs-grid > *,
    .jobflash-jobs-grid.jf-grid-container > *,
    #jf-jobs-grid > *,
    #jf-jobs-grid.jf-grid-container > * {
        grid-column: unset !important;
    }
}

/* FINAL DESKTOP GRID FIX */
@media (min-width: 769px) {
    html body .jobflash-container #jf-jobs-container .jobflash-jobs-grid,
    html body .jobflash-container #jf-jobs-container #jf-jobs-grid,
    html body .jobflash-container #jf-jobs-container .jf-grid-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    html body .jobflash-container #jf-jobs-container .jobflash-jobs-grid .jobflash-job-card,
    html body .jobflash-container #jf-jobs-container #jf-jobs-grid .jobflash-job-card,
    html body .jobflash-container #jf-jobs-container .jf-grid-container .jobflash-job-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* CONSOLIDATE ALL JOB CARD STYLES */
.jobflash-job-card,
.jobflash-jobs-grid .jobflash-job-card,
.jobflash-jobs-list .jobflash-job-card,
#jf-jobs-grid .jobflash-job-card,
#jf-jobs-list .jobflash-job-card,
.jf-grid-container .jobflash-job-card {
    background: var(--jf-white) !important;
    border: 1px solid var(--jf-gray-200) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}

/* Desktop list view card override - must come AFTER base card styles */
html body .jobflash-container .jobflash-jobs-list .jobflash-job-card,
html body .jobflash-container #jf-jobs-list .jobflash-job-card {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) minmax(200px, 1.2fr) auto !important;
    grid-template-areas: "header meta footer" !important;
    align-items: center !important;
    gap: 14px 24px !important;
    padding: 16px 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.jobflash-job-card:hover,
.jobflash-jobs-grid .jobflash-job-card:hover,
.jobflash-jobs-list .jobflash-job-card:hover,
#jf-jobs-grid .jobflash-job-card:hover,
#jf-jobs-list .jobflash-job-card:hover,
.jf-grid-container .jobflash-job-card:hover {
    border-color: var(--jf-primary) !important;
    box-shadow: 0 8px 24px rgba(23, 73, 151, 0.12) !important;
    transform: translateY(-3px) !important;
}

/* ============================================
   FINAL GRID/LIST LAYOUT SYSTEM (Desktop + Mobile)
   ============================================ */
.jobflash-jobs-container {
    width: 100%;
    max-width: 100%;
    margin-top: 28px;
}

.jobflash-search-bar {
    margin-top: 22px;
}

.jobflash-filters {
    margin-top: 14px;
}

.jobflash-jobs-grid,
#jf-jobs-grid,
.jobflash-jobs-grid.jf-grid-container,
#jf-jobs-grid.jf-grid-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}

.jobflash-jobs-list,
#jf-jobs-list,
.jobflash-jobs-list.jf-grid-container,
#jf-jobs-list.jf-grid-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
}

.jobflash-jobs-list .jobflash-job-card {
    display: grid !important;
    grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) auto !important;
    grid-template-areas:
        "header meta footer";
    align-items: center;
    gap: 14px 18px;
    padding: 16px 18px !important;
}

.jobflash-jobs-list .jf-card-header {
    grid-area: header;
    margin-bottom: 0 !important;
}

.jobflash-jobs-list .jf-card-meta {
    grid-area: meta;
    margin-bottom: 0 !important;
}

.jobflash-jobs-list .jf-card-excerpt,
.jobflash-jobs-list .jf-card-tags {
    display: none !important;
}

.jobflash-jobs-list .jf-card-footer {
    grid-area: footer;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    justify-content: flex-end !important;
    gap: 14px !important;
}

.jobflash-jobs-list .jf-card-info {
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
}

.jobflash-jobs-list .jf-card-actions .jf-btn {
    min-height: 34px;
}

@media (max-width: 1024px) {
    .jobflash-jobs-grid,
    #jf-jobs-grid,
    .jobflash-jobs-grid.jf-grid-container,
    #jf-jobs-grid.jf-grid-container {
        grid-template-columns: 1fr !important;
    }

    .jobflash-jobs-list .jobflash-job-card {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "header"
            "meta"
            "footer";
        align-items: start;
        gap: 12px;
    }

    .jobflash-jobs-list .jf-card-footer {
        justify-content: space-between !important;
        width: 100%;
    }
}

/* Base styles */
html, body {
    max-width: 100vw !important;
}

.jobflash-container,
.jobflash-container * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .jobflash-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .jobflash-search-bar {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .jobflash-search-btn {
        width: 100%;
    }

    .jobflash-filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .jobflash-filter-select {
        min-width: 0;
        width: 100%;
    }

    /* Stack grid/list items in single column */
    .jobflash-jobs-grid,
    #jf-jobs-grid,
    .jobflash-jobs-list,
    #jf-jobs-list,
    .jobflash-jobs-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Mobile list/grid cards - stack vertically */
    .jobflash-jobs-list .jobflash-job-card,
    #jf-jobs-list .jobflash-job-card,
    .jobflash-jobs-grid .jobflash-job-card,
    #jf-jobs-grid .jobflash-job-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .jobflash-jobs-list .jobflash-job-card .jf-card-header,
    .jobflash-jobs-list .jobflash-job-card .jf-card-meta,
    .jobflash-jobs-list .jobflash-job-card .jf-card-footer {
        width: 100% !important;
        max-width: 100% !important;
    }

    .jobflash-job-card {
        border-radius: 14px !important;
        padding: 15px !important;
    }

    .jobflash-jobs-list .jf-card-footer,
    .jf-card-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        border-top: 1px solid var(--jf-gray-100) !important;
        padding-top: 10px !important;
    }

    .jobflash-jobs-list .jf-card-actions,
    .jf-card-actions {
        width: 100%;
        flex-direction: column;
    }

    .jobflash-jobs-list .jf-card-actions .jf-btn,
    .jf-card-actions .jf-btn {
        flex: 1 1 0;
        text-align: center;
        width: 100%;
    }
    
    /* Force single column on mobile regardless of inline styles */
    .jobflash-jobs-grid,
    #jf-jobs-grid,
    .jobflash-jobs-grid.jf-grid-container,
    #jf-jobs-grid.jf-grid-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }
    
    .jobflash-jobs-grid > .jobflash-job-card,
    #jf-jobs-grid > .jobflash-job-card {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.jobflash-container,
.jobflash-container * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
    }
    
    .jobflash-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .jobflash-search-bar {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .jobflash-search-btn {
        width: 100%;
    }

    .jobflash-filter-group {
        width: 100%;
        justify-content: space-between;
    }

    .jobflash-filter-select {
        min-width: 0;
        width: 100%;
    }

    .jobflash-jobs-grid,
    #jf-jobs-grid,
    .jobflash-jobs-list,
    #jf-jobs-list,
    .jobflash-jobs-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Mobile list view - single column with overflow on content */
    @media (max-width: 768px) {
        .jobflash-jobs-list,
        #jf-jobs-list {
            display: flex !important;
            flex-direction: column !important;
        }
        
        .jobflash-jobs-list .jobflash-job-card,
        #jf-jobs-list .jobflash-job-card {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            overflow-x: auto !important;
            -webkit-overflow-scrolling: touch !important;
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
        }
        
        .jobflash-jobs-list .jobflash-job-card .jf-card-header,
        .jobflash-jobs-list .jobflash-job-card .jf-card-meta,
        .jobflash-jobs-list .jobflash-job-card .jf-card-footer {
            flex: 0 0 auto !important;
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
        }
        
        .jobflash-jobs-list .jf-card-footer {
            display: flex !important;
            flex-direction: row !important;
            gap: 8px !important;
            margin-left: auto !important;
        }
        
        .jobflash-jobs-list .jf-card-actions {
            display: flex !important;
            flex-direction: row !important;
        }
        
        .jobflash-jobs-list .jf-card-actions .jf-btn {
            white-space: nowrap !important;
        }
    }
    
    /* Mobile grid view - stacked */
    @media (max-width: 768px) {
        .jobflash-jobs-grid,
        #jf-jobs-grid,
        .jobflash-jobs-container {
            display: flex !important;
            flex-direction: column !important;
        }
        
        .jobflash-jobs-grid .jobflash-job-card,
        #jf-jobs-grid .jobflash-job-card {
            display: flex !important;
            flex-direction: column !important;
            width: 100% !important;
        }
    }
    
    /* Mobile list/grid cards - stack vertically */
    .jobflash-jobs-list .jobflash-job-card,
    #jf-jobs-list .jobflash-job-card,
    .jobflash-jobs-grid .jobflash-job-card,
    #jf-jobs-grid .jobflash-job-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .jobflash-jobs-list .jobflash-job-card .jf-card-header,
    .jobflash-jobs-list .jobflash-job-card .jf-card-meta,
    .jobflash-jobs-list .jobflash-job-card .jf-card-footer {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Mobile list view footer - info and actions in row */
    .jobflash-jobs-list .jf-card-footer,
    .jf-card-footer {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
    }
    
    /* Grid view cards on mobile - stack vertically */
    .jobflash-jobs-grid .jobflash-job-card,
    #jf-jobs-grid .jobflash-job-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-right: 0 !important;
    }

    .jobflash-jobs-list .jobflash-job-card .jf-card-header,
    .jobflash-jobs-list .jobflash-job-card .jf-card-meta,
    .jobflash-jobs-list .jobflash-job-card .jf-card-footer {
        width: auto !important;
        max-width: none !important;
    }

    .jobflash-job-card {
        border-radius: 14px !important;
        padding: 15px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .jobflash-jobs-list .jf-card-footer,
    .jf-card-footer {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        border-top: 1px solid var(--jf-gray-100) !important;
        padding-top: 10px !important;
        width: 100% !important;
    }

    .jobflash-jobs-list .jf-card-footer .jf-card-info,
    .jf-card-footer .jf-card-info {
        order: 1 !important;
        width: 100% !important;
    }

    .jobflash-jobs-list .jf-card-footer .jf-card-actions,
    .jf-card-footer .jf-card-actions {
        order: 2 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .jobflash-jobs-list .jf-card-actions,
    .jf-card-actions {
        width: 100%;
    }

    .jobflash-jobs-list .jf-card-actions .jf-btn,
    .jf-card-actions .jf-btn {
        flex: 1 1 0;
        text-align: center;
        width: 100%;
    }
    
    /* Ensure no horizontal overflow */
    #jf-jobs-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}
