/* Latest Jobs Page Specific Styles */
.latest-jobs-page {
    width: min(1180px, calc(100% - 2rem));
    margin: 1.5rem auto 0;
}

.jobs-hero {
    padding: 1rem 0 1.25rem;
}

.eyebrow {
    margin: 0 0 0.4rem;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.jobs-hero h1 {
    margin: 0;
    color: #111827;
    font-size: 2rem;
    line-height: 1.2;
}

.jobs-intro {
    max-width: 760px;
    margin: 0.7rem 0 0;
    color: #4b5563;
    line-height: 1.7;
}

.filter-section {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
    padding: 1rem;
    margin-bottom: 1.25rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.filter-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.filter-group-wide {
    grid-column: span 2;
}

.filter-group label {
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 700;
}

.filter-group input,
.filter-group select {
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    font-size: 0.95rem;
}

.filter-group input:focus,
.filter-group select:focus,
.btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 2px;
    border-color: #2563eb;
}

.filter-actions {
    display: flex;
    align-items: end;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: #1d4ed8;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1e40af;
    color: #ffffff;
}

.btn-outline {
    background: #ffffff;
    border-color: #1d4ed8;
    color: #1d4ed8;
}

.btn-outline:hover {
    background: #eff6ff;
}

.btn-disabled,
.btn:disabled {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.jobs-results {
    margin-top: 1rem;
}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.results-bar h2 {
    margin: 0;
    color: #111827;
    font-size: 1.25rem;
}

.results-bar p {
    margin: 0;
    color: #4b5563;
    font-weight: 700;
}

.job-listings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.job-card {
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.job-card-header > div:first-child {
    min-width: 0;
}

.job-organization {
    margin: 0 0 0.3rem;
    color: #4b5563;
    font-size: 0.92rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.job-card h3 {
    margin: 0;
    color: #1d4ed8;
    font-size: 1.2rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.job-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
    min-width: 180px;
}

.job-badge {
    align-self: flex-start;
    padding: 0.28rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.badge-active {
    background: #dcfce7;
    color: #166534;
}

.badge-closed {
    background: #fee2e2;
    color: #991b1b;
}

.badge-upcoming {
    background: #e0f2fe;
    color: #075985;
}

.badge-new {
    background: #fef3c7;
    color: #92400e;
}

.badge-soon {
    background: #ffedd5;
    color: #9a3412;
}

.badge-category {
    background: #eef2ff;
    color: #3730a3;
}

.job-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.job-meta div {
    min-width: 0;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.job-meta dt {
    margin-bottom: 0.25rem;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.job-meta dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.job-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.job-actions .btn {
    min-width: 150px;
}

.load-more-wrap {
    margin-top: 1rem;
}

.load-more-btn {
    width: 100%;
}

.empty-state {
    margin-top: 1rem;
}

.empty-state-card {
    padding: 2rem 1rem;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.empty-state-card i {
    margin-bottom: 0.8rem;
    color: #64748b;
    font-size: 2rem;
}

.empty-state-card h3 {
    margin: 0;
    color: #111827;
    font-size: 1.25rem;
}

.empty-state-card p {
    margin: 0.5rem 0 1rem;
    color: #4b5563;
}

@media (max-width: 1024px) {
    .filter-section {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .job-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .latest-jobs-page {
        width: min(100% - 1rem, 720px);
        margin-top: 1rem;
    }

    .jobs-hero h1 {
        font-size: 1.65rem;
    }

    .filter-section {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 0.85rem;
    }

    .filter-group-wide {
        grid-column: auto;
    }

    .filter-actions,
    .filter-actions .btn,
    .job-actions .btn {
        width: 100%;
    }

    .results-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .job-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .job-badges {
        justify-content: flex-start;
        min-width: 0;
    }

    .job-meta {
        grid-template-columns: 1fr 1fr;
    }

    .job-actions {
        flex-direction: column;
    }
}

@media (max-width: 425px) {
    .latest-jobs-page {
        width: min(100% - 0.75rem, 425px);
    }

    .jobs-hero {
        padding-top: 0.5rem;
    }

    .jobs-hero h1 {
        font-size: 1.45rem;
    }

    .jobs-intro {
        font-size: 0.95rem;
    }

    .job-card {
        padding: 0.85rem;
    }

    .job-meta {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .job-badge {
        white-space: normal;
    }
}
