/* CSS variables duplicated on :root so that portal-moved overlays
   (drawer/modal/toast on document.body) still inherit them. */
:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f9fafb;
    --surface-darker: #f3f4f6;
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-darker: #1e3a8a;
    --primary-light: #dbeafe;
    --primary-soft: #eff6ff;
    --accent: #0ea5e9;
    --accent-soft: #f0f9ff;
    --success: #10b981;
    --success-soft: #ecfdf5;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --text: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-dark: #111827;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
    --shadow-lg: 0 16px 40px rgba(37, 99, 235, 0.14);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dj-s1-container {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-alt: #f9fafb;
    --surface-darker: #f3f4f6;
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-darker: #1e3a8a;
    --primary-light: #dbeafe;
    --primary-soft: #eff6ff;
    --accent: #0ea5e9;
    --accent-soft: #f0f9ff;
    --success: #10b981;
    --success-soft: #ecfdf5;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --text: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
    --shadow-lg: 0 16px 40px rgba(37, 99, 235, 0.14);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dj-s1-container, .dj-s1-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.dj-s1-container {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.5;
    margin: 0 auto;
    padding: 32px 24px 48px;
    /* Note: do NOT add position:relative, transform, filter, or any property
       that creates a stacking context here — it would trap fixed-position
       overlays (drawer/modal) inside the container. Overlays are moved to
       document.body via JS portal pattern instead. */
}

/* Aggressive Reset for Typography & Inputs */
.dj-s1-container h1, 
.dj-s1-container h2, 
.dj-s1-container h3, 
.dj-s1-container h4, 
.dj-s1-container p, 
.dj-s1-container span, 
.dj-s1-container label, 
.dj-s1-container input, 
.dj-s1-container button, 
.dj-s1-container select {
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.5;
}

/* ===== Search Hero ===== */
.dj-s1-search-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
    position: relative;
    overflow: visible;
}

.dj-s1-search-bg {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.dj-s1-search-bg::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
    pointer-events: none;
}

.dj-s1-search-bg::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
    pointer-events: none;
}

.dj-s1-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.dj-s1-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid var(--primary-light);
}

.dj-s1-pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

.dj-s1-hero-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--hero-title-color, #1e3a8a);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.dj-s1-hero-subtitle {
    font-size: 14px;
    color: var(--hero-subtitle-color, var(--text-muted));
    margin-top: 6px;
}

.dj-s1-search-bar {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 16px;
    position: relative;
    z-index: 10;
}

.dj-s1-search-input-wrap {
    position: relative;
}

.dj-s1-search-input-wrap>i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
}

.dj-s1-search-input-wrap:focus-within>i {
    color: var(--primary);
}

.dj-s1-search-input,
.dj-s1-search-select {
    width: 100% !important;
    padding: 15px 16px 15px 46px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    color: var(--text) !important;
    background: var(--surface) !important;
    transition: all 0.2s;
    font-weight: 500 !important;
    position: relative;
    box-shadow: none !important;
    outline: none !important;
    height: auto !important;
    margin: 0 !important;
}

.dj-s1-search-select {
    padding-right: 36px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.dj-s1-w3.dj-s1-org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

.dj-s1-search-input::placeholder {
    color: var(--text-light);
}

.dj-s1-search-input:focus,
.dj-s1-search-select:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-soft) !important;
}

.dj-s1-search-btn {
    padding: 0 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px var(--primary-light);
    white-space: nowrap;
}

.dj-s1-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--primary-light);
}

.dj-s1-search-btn:active {
    transform: translateY(0);
}

/* ===== Suggestions Combobox ===== */
.dj-s1-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 50;
    max-height: 380px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
}

.dj-s1-suggestions-dropdown.dj-s1-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dj-s1-suggestion-group-label {
    padding: 12px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
}

.dj-s1-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.12s;
}

.dj-s1-suggestion-item:hover,
.dj-s1-suggestion-item.dj-s1-highlighted {
    background: var(--primary-soft);
}

.dj-s1-suggestion-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--surface-alt);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.dj-s1-suggestion-item.dj-s1-highlighted .dj-s1-suggestion-icon {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.dj-s1-suggestion-text {
    flex: 1;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.dj-s1-suggestion-text mark {
    background: transparent;
    color: var(--primary);
    font-weight: 700;
}

.dj-s1-suggestion-type {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    padding: 3px 8px;
    background: var(--surface-alt);
    border-radius: 6px;
    border: 1px solid var(--border);
}



/* ===== Main Layout ===== */
.dj-s1-main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* ===== Sidebar ===== */
.dj-s1-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    width: 280px;
    min-width: 280px;
}

.dj-s1-sidebar::-webkit-scrollbar {
    width: 6px;
}

.dj-s1-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.dj-s1-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.dj-s1-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.dj-s1-sidebar-title {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dj-s1-sidebar-title i {
    color: var(--primary);
}

.dj-s1-clear-link {
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.dj-s1-clear-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.dj-s1-filter-group {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.dj-s1-filter-group:nth-last-child(2) {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dj-s1-filter-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: var(--text) !important;
    margin-bottom: 14px !important;
}

.dj-s1-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    cursor: pointer;
    transition: color 0.15s;
    user-select: none;
}

.dj-s1-filter-option:hover .dj-s1-filter-label {
    color: var(--primary);
}

.dj-s1-filter-option input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-strong);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
    flex-shrink: 0;
    background: var(--surface);
}

.dj-s1-filter-option input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.dj-s1-filter-option input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.dj-s1-filter-label {
    font-size: 14px;
    flex: 1;
    color: var(--text);
    transition: color 0.15s;
    font-weight: 500;
}

.dj-s1-filter-count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}



/* ===== Mobile Filter Toggle & Drawer ===== */
.dj-s1-mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.dj-s1-mobile-filter-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.dj-s1-sidebar-mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 10;
    margin: -24px -24px 20px -24px;
}

.dj-s1-sidebar-mobile-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.dj-s1-mobile-close-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
}

.dj-s1-mobile-close-btn:hover {
    background: var(--surface-alt);
    color: var(--primary);
    border-color: var(--primary);
}

.dj-s1-sidebar-mobile-footer {
    display: none;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.dj-s1-filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2147482999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.dj-s1-filter-backdrop.dj-s1-open {
    opacity: 1;
    visibility: visible;
}

/* ===== Content Area ===== */
.dj-s1-content-area {
    min-width: 0;
}

.dj-s1-results-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dj-s1-results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.dj-s1-results-count {
    font-size: 14px;
    color: var(--text-muted);
}

.dj-s1-results-count strong {
    color: var(--text);
    font-weight: 700;
}

.dj-s1-results-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dj-s1-page-size-wrap,
.dj-s1-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.dj-s1-view-toggle {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}



.dj-s1-view-toggle button {
    padding: 7px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dj-s1-view-toggle button.dj-s1-active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dj-s1-view-toggle button:not(.dj-s1-active):hover {
    background: var(--surface-alt);
    color: var(--primary);
}

.dj-s1-sort-select {
    padding: 9px 32px 9px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.dj-s1-w3.dj-s1-org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    transition: all 0.2s;
}

.dj-s1-toast.dj-s1-success {
    border-left-color: #10B981;
}

.dj-s1-toast.dj-s1-success i {
    color: #10B981;
}

.dj-s1-toast.dj-s1-error {
    border-left-color: #EF4444;
}

.dj-s1-toast.dj-s1-error i {
    color: #EF4444;
}

.dj-s1-sort-select:hover {
    border-color: var(--primary);
}

.dj-s1-sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Active Filter Chips */
.dj-s1-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    min-height: 0;
}

.dj-s1-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 12px;
    background: var(--surface-alt);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    animation: chipIn 0.2s ease-out;
}

@keyframes chipIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dj-s1-filter-chip:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-color: var(--primary-light);
}

.dj-s1-chip-close {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    transition: background 0.15s;
}

.dj-s1-filter-chip:hover .dj-s1-chip-close {
    background: rgba(37, 99, 235, 0.15);
}

.dj-s1-clear-all-chips {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 4px;
}

.dj-s1-clear-all-chips:hover {
    color: var(--primary);
}

/* ===== Job Cards (Grid View) ===== */
.dj-s1-jobs-list.dj-s1-grid-view {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: stretch;
}

.dj-s1-jobs-list.dj-s1-list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dj-s1-job-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: cardIn 0.4s ease-out backwards;
    display: flex;
    flex-direction: column;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dj-s1-job-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s;
}

.dj-s1-job-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.dj-s1-job-card:hover::before {
    transform: scaleY(1);
}

.dj-s1-job-card.dj-s1-featured {
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface) 60%);
    border-color: var(--primary-light);
}

.dj-s1-featured-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    line-height: 1;
    height: fit-content;
}

.dj-s1-job-header {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
}

.dj-s1-company-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    letter-spacing: -0.5px;
    position: relative;
}

.dj-s1-company-logo img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    background: #ffffff;
    padding: 6px;
    box-sizing: border-box;
}

/* When a logo image is present, keep a white backdrop (shown while the image loads).
   No overflow:hidden here: the <img> is already constrained by width/height/border-radius,
   and clipping would cut off the .dj-s1-new-dot which sits 2px outside the container. */
.dj-s1-company-logo.dj-s1-has-img {
    background: #ffffff;
}

.dj-s1-company-logo .dj-s1-logo-text {
    position: relative;
    z-index: 0;
}

.dj-s1-new-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border: 2.5px solid var(--surface);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    z-index: 2;
}

.dj-s1-job-main {
    flex: 1;
    min-width: 0;
}

.dj-s1-job-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    transition: color 0.15s;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dj-s1-job-card:hover .dj-s1-job-title {
    color: var(--primary);
}

.dj-s1-job-company {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dj-s1-job-company i {
    font-size: 11px;
    color: var(--text-light);
}

.dj-s1-job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 14px;
}

.dj-s1-job-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.dj-s1-job-detail i {
    color: var(--primary);
    font-size: 12px;
}



.dj-s1-job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}



.dj-s1-job-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.dj-s1-job-posted {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dj-s1-apply-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dj-s1-apply-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dj-s1-apply-btn:active {
    transform: translateY(0);
}

/* ===== List View Modifiers ===== */
.dj-s1-jobs-list.dj-s1-list-view .dj-s1-job-card {
    padding: 16px 20px;
}

.dj-s1-jobs-list.dj-s1-list-view .dj-s1-job-header {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.dj-s1-jobs-list.dj-s1-list-view .dj-s1-company-logo {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 10px;
}

.dj-s1-jobs-list.dj-s1-list-view .dj-s1-company-logo img {
    padding: 4px;
}

.dj-s1-jobs-list.dj-s1-list-view .dj-s1-job-title {
    font-size: 15px;
    margin-bottom: 2px;
}

.dj-s1-jobs-list.dj-s1-list-view .dj-s1-job-company {
    font-size: 13px;
}

.dj-s1-jobs-list.dj-s1-list-view .dj-s1-job-details {
    margin-bottom: 8px;
    gap: 6px 14px;
}

.dj-s1-jobs-list.dj-s1-list-view .dj-s1-job-detail {
    font-size: 12px;
}



.dj-s1-jobs-list.dj-s1-list-view .dj-s1-job-footer {
    border-top: 1px solid var(--border);
    padding-top: 14px;
    margin-top: 14px;
}





/* ===== Skeleton ===== */
.dj-s1-skeleton-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.dj-s1-jobs-list.dj-s1-list-view .dj-s1-skeleton-card {
    padding: 16px 20px;
}

.dj-s1-shimmer {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
}

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

    100% {
        background-position: 200% 0;
    }
}

.dj-s1-skeleton-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
}

.dj-s1-skeleton-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    flex-shrink: 0;
}

.dj-s1-jobs-list.dj-s1-list-view .dj-s1-skeleton-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.dj-s1-skeleton-line {
    height: 14px;
    border-radius: 6px;
}

.dj-s1-skeleton-details {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}



.dj-s1-skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.dj-s1-jobs-list.dj-s1-list-view .dj-s1-skeleton-footer {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.dj-s1-skeleton-btn {
    width: 110px;
    height: 36px;
    border-radius: 10px;
}

/* ===== Empty State ===== */
.dj-s1-empty-state {
    background: var(--surface);
    border: 1.5px dashed var(--border-strong);
    border-radius: 16px;
    padding: 60px 24px;
    text-align: center;
    grid-column: 1 / -1;
}

.dj-s1-empty-icon {
    width: 84px;
    height: 84px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 32px;
}

.dj-s1-empty-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.dj-s1-empty-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 22px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.dj-s1-empty-btn {
    padding: 11px 22px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.dj-s1-empty-btn:hover {
    background: var(--primary-dark);
}

/* ===== Pagination ===== */
.dj-s1-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
    padding-top: 24px;
    flex-wrap: wrap;
    grid-column: 1 / -1;
}

.dj-s1-pagination:empty {
    display: none;
}

.dj-s1-page-btn {
    min-width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.dj-s1-page-btn:hover:not(:disabled):not(.dj-s1-active) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface-alt);
}

.dj-s1-page-btn.dj-s1-active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dj-s1-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dj-s1-page-ellipsis {
    padding: 0 4px;
    color: var(--text-light);
    font-weight: 600;
}

/* ===== Job Detail Drawer ===== */
.dj-s1-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 2147483000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.dj-s1-drawer-backdrop.dj-s1-open {
    opacity: 1;
    visibility: visible;
}

.dj-s1-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1100px;
    max-width: 100%;
    background: var(--surface);
    z-index: 2147483001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    border-left: 1px solid var(--border);
}

.dj-s1-drawer.dj-s1-open {
    transform: translateX(0);
}

.dj-s1-drawer-header {
    padding: 28px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    background: var(--surface);
}

.dj-s1-drawer-header .dj-s1-company-logo {
    width: 72px;
    height: 72px;
    font-size: 28px;
    border-radius: 16px;
}

.dj-s1-drawer-header .dj-s1-company-logo img {
    padding: 8px;
}

.dj-s1-drawer-header-info {
    flex: 1;
    min-width: 0;
    padding-right: 40px;
}

.dj-s1-drawer-job-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.dj-s1-drawer-job-company {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dj-s1-drawer-job-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.dj-s1-drawer-job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dj-s1-drawer-job-meta i {
    color: var(--primary);
    font-size: 11px;
}

.dj-s1-drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s;
    font-size: 14px;
}

.dj-s1-drawer-close:hover {
    background: var(--surface-alt);
    color: var(--primary);
    border-color: var(--primary);
}

.dj-s1-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.dj-s1-drawer-body::-webkit-scrollbar {
    width: 6px;
}

.dj-s1-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.dj-s1-drawer-body::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.dj-s1-drawer-quick-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.dj-s1-info-card {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s;
}

.dj-s1-info-card:hover {
    background: var(--surface);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.dj-s1-info-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dj-s1-info-label i {
    color: var(--primary);
    font-size: 10px;
}

.dj-s1-info-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.dj-s1-drawer-section {
    margin-bottom: 32px;
}

.dj-s1-drawer-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dj-s1-drawer-section-title i {
    color: var(--primary);
}

.dj-s1-drawer-description {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.dj-s1-drawer-subsection {
    margin-top: 32px;
}

.dj-s1-drawer-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.dj-s1-drawer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dj-s1-drawer-list li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 24px;
    position: relative;
}

.dj-s1-drawer-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}



.dj-s1-drawer-company-meta {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.dj-s1-drawer-company-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dj-s1-drawer-company-meta i {
    color: var(--primary);
    font-size: 12px;
}

.dj-s1-drawer-footer {
    padding: 18px 32px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--surface);
    flex-shrink: 0;
}



.dj-s1-drawer-apply {
    padding: 12px 28px;
    font-size: 14px;
}

/* ===== Toast ===== */
.dj-s1-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2147483003;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.dj-s1-toast {
    background: var(--text);
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 320px;
}

.dj-s1-toast.dj-s1-success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.dj-s1-toast.dj-s1-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.dj-s1-toast i {
    font-size: 16px;
}

.dj-s1-toast.dj-s1-removing {
    animation: toastOut 0.25s ease-in forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(120%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}

/* ===== Application Modal ===== */
.dj-s1-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2147483002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.dj-s1-modal-backdrop.dj-s1-open {
    opacity: 1;
    visibility: visible;
}

.dj-s1-modal-container {
    background: var(--surface);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dj-s1-modal-backdrop.dj-s1-open .dj-s1-modal-container {
    transform: translateY(0) scale(1);
}

.dj-s1-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--surface-darker);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.dj-s1-modal-close:hover {
    background: #FEE2E2;
    color: #EF4444;
    transform: rotate(90deg);
}

.dj-s1-modal-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--border);
}

.dj-s1-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.dj-s1-modal-subtitle {
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.dj-s1-modal-form {
    word-break: break-word;
    overflow-wrap: break-word;
    padding: 24px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dj-s1-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dj-s1-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dj-s1-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.dj-s1-required {
    color: #EF4444;
    margin-left: 2px;
}

.dj-s1-form-input,
.dj-s1-form-textarea {
    width: 100%;
    padding: 12px 16px !important;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.2s;
}

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

.dj-s1-form-input:focus,
.dj-s1-form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.dj-s1-form-input::placeholder,
.dj-s1-form-textarea::placeholder {
    color: #94A3B8;
}

.dj-s1-file-upload {
    border: 2px dashed var(--border-strong);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: var(--surface-darker);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.dj-s1-file-upload:hover,
.dj-s1-file-upload.dj-s1-dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.dj-s1-upload-icon {
    color: var(--primary);
    margin-bottom: 12px;
}

.dj-s1-upload-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.dj-s1-upload-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.dj-s1-text-primary {
    color: var(--primary);
    font-weight: 600;
}

.dj-s1-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dj-s1-selected-file {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 8px;
}

.dj-s1-modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--surface-darker);
}

.dj-s1-btn-secondary {
    padding: 12px 24px;
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.dj-s1-btn-secondary:hover {
    background: var(--surface-darker);
    border-color: var(--border-strong);
}

.dj-s1-submit-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dj-s1-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
    .dj-s1-form-row {
        grid-template-columns: 1fr;
    }

    .dj-s1-modal-container {
        border-radius: 20px;
    }

    .dj-s1-modal-header,
    .dj-s1-modal-form,
    .dj-s1-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .dj-s1-main-layout {
        grid-template-columns: 1fr;
    }

    .dj-s1-sidebar {
        width: 100%;
        min-width: 100%;
    }

    /* Mobile Filter Drawer Styles */
    .dj-s1-mobile-filter-toggle {
        display: inline-flex;
    }

    .dj-s1-sidebar {
        position: fixed;
        top: auto;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        z-index: 2147483000;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
        border-radius: 24px 24px 0 0;
        height: 90vh;
        height: 90dvh;
        max-height: none;
        overflow-y: auto;
        padding: 0;
        display: block;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    }

    .dj-s1-sidebar.dj-s1-open {
        transform: translateY(0);
    }

    .dj-s1-sidebar-header {
        display: none;
    }

    .dj-s1-sidebar-mobile-handle {
        width: 40px;
        height: 5px;
        background: var(--border-strong);
        border-radius: 3px;
        margin: 12px auto 0;
    }

    .dj-s1-sidebar-mobile-header {
        display: flex;
        margin: 0;
        padding: 16px 24px;
        position: sticky;
        top: 0;
        background: var(--surface);
        z-index: 20;
    }

    .dj-s1-filter-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
    }

    .dj-s1-filter-group:first-of-type {
        padding-top: 24px;
    }

    .dj-s1-filter-group:nth-last-child(2) {
        border-bottom: none;
    }

    .dj-s1-filter-title {
        width: 100%;
        margin-bottom: 8px;
    }

    .dj-s1-filter-option {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 24px;
        cursor: pointer;
        transition: all 0.2s;
        margin: 0;
    }

    .dj-s1-filter-checkbox {
        display: none;
    }

    .dj-s1-filter-label {
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
        margin: 0;
    }

    .dj-s1-filter-count {
        font-size: 11px;
        color: var(--text-muted);
        background: var(--surface-darker);
        padding: 2px 8px;
        border-radius: 12px;
    }

    .dj-s1-filter-option:has(input:checked) {
        background: var(--primary);
        border-color: var(--primary);
    }

    .dj-s1-filter-option:has(input:checked) .dj-s1-filter-label {
        color: white;
    }

    .dj-s1-filter-option:has(input:checked) .dj-s1-filter-count {
        color: white;
        background: rgba(255, 255, 255, 0.2);
    }

    .dj-s1-sidebar-mobile-footer {
        display: block;
        margin: 0;
        padding: 20px 24px 32px;
        position: sticky;
        bottom: 0;
        background: var(--surface);
        z-index: 10;
    }

    .dj-s1-mobile-footer-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 14px;
        font-size: 14px;
    }

    .dj-s1-mobile-footer-btn:hover {
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    }

    .dj-s1-search-bar {
        grid-template-columns: 1fr 1fr;
    }

    .dj-s1-search-btn {
        grid-column: 1 / -1;
        justify-content: center;
        padding: 14px;
    }

    .dj-s1-drawer {
        width: 100%;
    }

    .dj-s1-drawer-quick-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dj-s1-container {
        padding: 20px 16px 36px;
    }

    .dj-s1-search-section {
        padding: 22px;
        border-radius: 16px;
    }

    .dj-s1-hero-title {
        font-size: 24px;
    }

    .dj-s1-search-bar {
        grid-template-columns: 1fr;
    }

    .dj-s1-jobs-list.dj-s1-grid-view {
        grid-template-columns: 1fr;
    }


    .dj-s1-job-card {
        padding: 18px;
    }

    .dj-s1-company-logo {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    .dj-s1-results-bar {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .dj-s1-results-info {
        display: contents;
    }

    .dj-s1-results-actions {
        display: flex;
        justify-content: center;
        gap: 16px;
        order: 2;
        width: 100%;
    }

    .dj-s1-mobile-filter-toggle {
        display: flex;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        order: 1;
    }

    .dj-s1-view-toggle {
        display: none !important;
    }

    .dj-s1-results-count {
        order: 3;
        text-align: center;
    }

    .dj-s1-drawer-header,
    .dj-s1-drawer-body,
    .dj-s1-drawer-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .dj-s1-drawer-quick-info {
        grid-template-columns: 1fr;
    }

    .dj-s1-drawer-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .dj-s1-drawer-apply {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* ============== Drawer: Documents section ============== */
.dj-s1-doc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dj-s1-doc-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.dj-s1-doc-list li a:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.dj-s1-doc-list li a > i {
    color: var(--primary);
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.dj-s1-doc-title {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.dj-s1-doc-meta {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    background: var(--surface-darker, rgba(0, 0, 0, 0.04));
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
