:root {
    --brand: #00468E;
    --brand-dark: #003366;
    --brand-light: #E8F0FE;
    --white: #ffffff;
    --text-muted: #6b7280;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.10);
}

/* ── Hero ── */
.jobs-hero {
    background: linear-gradient(135deg, var(--brand-light) 0%, #dce6f5 100%);
    padding: 4rem 0 3rem;
}

.jobs-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--brand);
    color: var(--white);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.jobs-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.jobs-hero-title span {
    color: var(--brand);
}

.jobs-hero-desc {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Search Bar ── */
.jobs-search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 50px;
    padding: 0.35rem 0.35rem 0.35rem 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 70, 142, 0.08);
}

.jobs-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 1.25rem;
    gap: 0.5rem;
}

.jobs-search-input-wrap i {
    color: var(--text-muted);
    font-size: 1rem;
}

.jobs-search-input-wrap .form-control {
    border: none;
    box-shadow: none;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    background: transparent;
}

.jobs-search-input-wrap .form-control:focus {
    box-shadow: none;
}

.jobs-search-city {
    border: none;
    border-left: 1px solid #e5e7eb;
    border-radius: 0;
    width: auto;
    min-width: 120px;
    font-size: 0.88rem;
    color: #374151;
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    box-shadow: none !important;
}

.jobs-search-btn {
    background: var(--brand);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.55rem 1.5rem;
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.jobs-search-btn:hover {
    background: var(--brand-dark);
    color: var(--white);
}

/* ── Content ── */
.jobs-content {
    padding: 2.5rem 0 4rem;
    background: #fafbfc;
}

/* ── Sidebar ── */
.jobs-sidebar {
    position: sticky;
    top: 90px;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid rgba(0, 70, 142, 0.06);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.jobs-sidebar-title {
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.jobs-filter-group {
    margin-bottom: 1rem;
}

.jobs-filter-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    display: block;
}

.jobs-filter-group .form-select {
    border-radius: 8px;
    font-size: 0.85rem;
    border-color: #e5e7eb;
}

.jobs-filter-group .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 70, 142, 0.1);
}

.jobs-reset-btn {
    border-radius: 8px;
    font-size: 0.82rem;
    margin-top: 0.25rem;
    color: var(--text-muted);
    border-color: #e5e7eb;
}

.jobs-reset-btn:hover {
    background: var(--brand-light);
    color: var(--brand);
    border-color: rgba(0, 70, 142, 0.15);
}

/* Sidebar CTA */
.jobs-sidebar-cta {
    margin-top: 1.5rem;
    background: var(--brand-light);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.jobs-cta-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand);
    margin-bottom: 0.35rem;
}

.jobs-cta-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.jobs-sidebar-cta .btn-brand {
    background: var(--brand);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.jobs-sidebar-cta .btn-brand:hover {
    background: var(--brand-dark);
}

/* ── Jobs List Header ── */
.jobs-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.jobs-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.jobs-count strong {
    color: var(--brand);
}

.jobs-sort {
    width: auto;
    min-width: 150px;
    border-radius: 8px;
    font-size: 0.85rem;
    border-color: #e5e7eb;
}

/* ── Job Card ── */
.job-card {
    background: var(--white);
    border: 1px solid rgba(0, 70, 142, 0.06);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.job-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 70, 142, 0.18);
}

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

.job-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-light);
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
}

.job-hostel-name {
    font-size: 0.88rem;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.job-hostel-name:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.job-type-badge {
    flex-shrink: 0;
    padding: 0.3rem 0.85rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--brand-light);
    color: var(--brand);
    white-space: nowrap;
}

.job-type-badge.is-part-time {
    background: #fef3c7;
    color: #d97706;
}

/* Job Meta */
.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.job-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.job-meta i {
    color: var(--brand);
    font-size: 0.85rem;
}

.job-description {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Benefits */
.job-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.job-benefit-tag {
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--brand-light);
    color: var(--brand);
    border: 1px solid rgba(0, 70, 142, 0.1);
}

/* Footer */
.job-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 70, 142, 0.06);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.job-footer-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.job-footer-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.job-footer-actions {
    display: flex;
    gap: 0.5rem;
}

.job-details-btn {
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border-color: rgba(0, 70, 142, 0.2);
    color: var(--brand);
}

.job-details-btn:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
    border-color: rgba(0, 70, 142, 0.3);
}

.job-apply-btn {
    background: var(--brand);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
}

.job-apply-btn:hover {
    background: var(--brand-dark);
    color: var(--white);
}

/* ── Empty State ── */
.jobs-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.jobs-empty i {
    font-size: 3rem;
    color: var(--brand);
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

.jobs-empty h5 {
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.jobs-empty p {
    font-size: 0.9rem;
}

/* ── Post Job Modal ── */
.pj-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.pj-header {
    background: var(--white);
    border-bottom: 1px solid rgba(0, 70, 142, 0.08);
    padding: 1.25rem 1.5rem;
}

.pj-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: #1a1a2e;
}

.pj-body {
    padding: 1.5rem;
    background: #fafbfc;
}

.pj-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.35rem;
    display: block;
}

.pj-label span {
    color: #c0392b;
}

.pj-input {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 0.88rem;
    padding: 0.6rem 0.85rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.pj-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 70, 142, 0.1);
}

.pj-input::placeholder {
    color: #b0b6c0;
}

textarea.pj-input {
    resize: vertical;
}

.pj-footer {
    background: var(--white);
    border-top: 1px solid rgba(0, 70, 142, 0.08);
    padding: 1rem 1.5rem;
}

.pj-submit-btn {
    background: var(--brand);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.2s;
}

.pj-submit-btn:hover {
    background: var(--brand-dark);
    color: var(--white);
}

/* ── View Details Modal ── */
.vj-header-wrap {
    display: block;
}
.vj-info-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vj-info-box {
    flex: 1;
    background: var(--brand-light);
    border-radius: 10px;
    padding: 1rem 1.15rem;
}

.vj-info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vj-info-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
}

.vj-section {
    margin-bottom: 1.5rem;
}

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

.vj-section-title {
    font-weight: 800;
    font-size: 0.95rem;
    color: #1a1a2e;
    margin-bottom: 0.6rem;
}

.vj-section-text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

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

.vj-req-list li {
    font-size: 0.88rem;
    color: #374151;
    padding: 0.4rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.5;
}

.vj-req-list li i {
    color: var(--brand);
    font-size: 0.9rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

/* ── Apply Modal extras ── */
.aj-subtitle {
    font-size: 0.88rem;
    line-height: 1.4;
    margin-top: 0.3rem;
}

.aj-upload-zone {
    border: 2px dashed rgba(0, 70, 142, 0.2);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--white);
}

.aj-upload-zone:hover,
.aj-upload-zone.is-dragover {
    border-color: var(--brand);
    background: var(--brand-light);
}

.aj-upload-zone i {
    font-size: 2.2rem;
    color: var(--brand);
    opacity: 0.45;
    display: block;
    margin-bottom: 0.5rem;
}

.aj-upload-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
}

.aj-upload-zone small {
    font-size: 0.78rem;
}

.aj-file-name {
    font-size: 0.82rem;
    color: var(--brand);
    font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .jobs-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

    .jobs-hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .jobs-hero {
        padding: 3rem 0 2rem;
    }

    .jobs-hero-title {
        font-size: 1.6rem;
    }

    .jobs-search-bar {
        flex-direction: column;
        border-radius: 14px;
        padding: 0.5rem;
        gap: 0;
    }

    .jobs-search-input-wrap {
        padding: 0.5rem 0.75rem;
        width: 100%;
    }

    .jobs-search-city {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        width: 100%;
        border-radius: 0;
    }

    .jobs-search-btn {
        width: 100%;
        border-radius: 10px;
        margin-top: 0.25rem;
        padding: 0.6rem;
        justify-content: center;
    }

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

    .job-type-badge {
        align-self: flex-start;
    }

    .job-meta {
        flex-direction: column;
        gap: 0.4rem;
    }

    .job-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-footer-actions {
        width: 100%;
    }

    .job-footer-actions .btn {
        flex: 1;
    }
}
