/* ── ESAC Job Listings – Public Styles ────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.ejl-filters,
.ejl-grid,
.ejl-card,
.ejl-btn,
.ejl-tag,
.ejl-badge {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

/* ── Filter Bar ────────────────────────────────────────────────────────────── */
.ejl-filters {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.ejl-filters__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.ejl-filter-group { flex: 1; min-width: 180px; }
.ejl-filter-search { flex: 2; min-width: 220px; }
.ejl-filter-remote { flex: 0 0 auto; }

.ejl-input,
.ejl-select {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #374151;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
    -webkit-appearance: none;
}
.ejl-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}
.ejl-input:focus, .ejl-select:focus {
    outline: none;
    border-color: #1a6fc4;
    box-shadow: 0 0 0 3px rgba(26,111,196,.12);
}

/* Toggle */
.ejl-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.ejl-toggle input { display: none; }
.ejl-toggle__track {
    width: 40px; height: 22px; background: #d1d5db; border-radius: 11px;
    position: relative; transition: background .2s; flex-shrink: 0;
}
.ejl-toggle__track::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px; background: #fff; border-radius: 50%;
    transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ejl-toggle input:checked + .ejl-toggle__track { background: #1a6fc4; }
.ejl-toggle input:checked + .ejl-toggle__track::after { transform: translateX(18px); }
.ejl-toggle__label { font-size: 14px; font-weight: 500; color: #374151; white-space: nowrap; }

/* ── Grid ──────────────────────────────────────────────────────────────────── */
.ejl-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}
.ejl-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ejl-cols-1 { grid-template-columns: 1fr; }

/* ── Card ──────────────────────────────────────────────────────────────────── */
.ejl-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}
.ejl-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

/* Card Header */
.ejl-card__head { padding: 16px 18px 10px; }
.ejl-card__title-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}
.ejl-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.35;
    flex: 1;
}
.ejl-card__company {
    font-size: 12.5px;
    color: #6b7280;
    margin: 0;
}

/* Badge */
.ejl-badge {
    flex-shrink: 0;
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

/* Location Tags */
.ejl-card__location-tags {
    padding: 0 18px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Tags */
.ejl-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
}
.ejl-tag--location {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.ejl-tag--skill {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}
.ejl-tag--remote {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.ejl-tag--type {
    background: #f3f0ff;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
}

/* Fields */
.ejl-card__fields {
    padding: 10px 18px 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ejl-card__field {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
}
.ejl-field-label {
    font-weight: 700;
    color: #111827;
    min-width: 90px;
    flex-shrink: 0;
}
.ejl-field-value { color: #374151; }

/* Skills */
.ejl-card__skills {
    padding: 8px 18px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Readiness */
.ejl-card__readiness {
    padding: 10px 18px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.ejl-readiness-label { font-size: 12.5px; color: #6b7280; }
.ejl-readiness-badge {
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    border: 1.5px solid #fcd34d;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Footer / Apply Button */
.ejl-card__footer { padding: 12px 18px 16px; }
.ejl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: background .2s, transform .1s;
    text-decoration: none;
    border: none;
}
.ejl-btn--apply {
    width: 100%;
    padding: 11px 20px;
    background: #111827;
    color: #fff;
    letter-spacing: .02em;
}
.ejl-btn--apply:hover { background: #1a6fc4; color: #fff; }
.ejl-btn--apply:active { transform: scale(.98); }
.ejl-btn--disabled { background: #9ca3af; cursor: not-allowed; }
.ejl-btn--outline {
    background: transparent;
    color: #1a6fc4;
    border: 2px solid #1a6fc4;
    padding: 9px 24px;
}
.ejl-btn--outline:hover { background: #1a6fc4; color: #fff; }

/* Load More */
.ejl-load-more-wrap { text-align: center; margin-top: 32px; }

/* No Results */
.ejl-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
    font-size: 15px;
}

/* Loading State */
.ejl-grid.ejl-loading { opacity: .5; pointer-events: none; transition: opacity .3s; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ejl-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
    .ejl-grid { grid-template-columns: 1fr; }
    .ejl-filters__inner { flex-direction: column; }
    .ejl-filter-group, .ejl-filter-search { flex: 1 0 100%; min-width: 0; }
}

/* ── Elementor drag-drop highlight ─────────────────────────────────────────── */
.ejl-elementor-drag .ejl-field-item {
    border: 1.5px dashed #bfdbfe !important;
    border-radius: 4px;
    cursor: grab;
    padding: 4px 6px;
    margin-bottom: 2px;
    background: #eff6ff;
    transition: background .15s;
}
.ejl-elementor-drag .ejl-field-item:hover { background: #dbeafe; }
.ejl-elementor-drag .ejl-field-item.ui-sortable-helper {
    background: #1a6fc4;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26,111,196,.25);
    cursor: grabbing;
}
