/* ============================================================
   Smart IT Jobs – Front-End Styles
   ============================================================ */

:root {
    --sij-primary:  #003087;
    --sij-accent:   #e8131b;
    --sij-text:     #2d2d2d;
    --sij-muted:    #666;
    --sij-border:   #dde3ec;
    --sij-bg-light: #f5f7fb;
    --sij-radius:   6px;
    --sij-shadow:   0 2px 8px rgba(0,0,0,.08);
}

/* ── Filters ─────────────────────────────────────────────── */
.smartit-jobs-wrap { font-family: inherit; color: var(--sij-text); }

.smartit-jobs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    align-items: center;
}

.smartit-jobs-filters select {
    padding: 8px 14px;
    border: 1px solid var(--sij-border);
    border-radius: var(--sij-radius);
    font-size: .95rem;
    background: #fff;
    color: var(--sij-text);
    cursor: pointer;
    min-width: 160px;
}

.smartit-jobs-filters select:focus {
    outline: 2px solid var(--sij-primary);
    outline-offset: 2px;
    border-color: var(--sij-primary);
}

/* ── Table ───────────────────────────────────────────────── */
.smartit-jobs-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--sij-radius);
    overflow: hidden;
    box-shadow: var(--sij-shadow);
}

.smartit-jobs-table thead tr { background: var(--sij-primary); color: #fff; }

.smartit-jobs-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.smartit-jobs-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--sij-border);
    font-size: .95rem;
    vertical-align: middle;
}

.smartit-jobs-table tbody tr:last-child td { border-bottom: none; }
.smartit-jobs-table tbody tr:hover         { background: var(--sij-bg-light); }

.smartit-jobs-table .job-title a {
    font-weight: 600;
    color: var(--sij-primary);
    text-decoration: none;
}
.smartit-jobs-table .job-title a:hover { text-decoration: underline; }
.smartit-jobs-table .job-action        { text-align: right; white-space: nowrap; }

/* Type badges */
.job-type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}
.job-type-badge.type-full-time { background: #e6f0ff; color: #1a56b0; }
.job-type-badge.type-part-time { background: #fff3cd; color: #856404; }
.job-type-badge.type-temporary { background: #fff0e6; color: #b05a00; }
.job-type-badge.type-contract  { background: #e8f5e9; color: #2e7d32; }

/* No jobs */
.smartit-no-jobs {
    background: var(--sij-bg-light);
    border: 1px solid var(--sij-border);
    border-radius: var(--sij-radius);
    padding: 40px 30px;
    text-align: center;
    color: var(--sij-muted);
}
.smartit-no-jobs a { color: var(--sij-primary); }

/* ── Button ──────────────────────────────────────────────── */
.smartit-btn {
    display: inline-block;
    padding: 9px 20px;
    background: var(--sij-primary);
    color: #fff !important;
    border: none;
    border-radius: var(--sij-radius);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .15s ease, transform .1s;
    white-space: nowrap;
}
.smartit-btn:hover { background: #00256b; transform: translateY(-1px); }

/* ── Single job page ─────────────────────────────────────── */
.smartit-single-job-wrap { padding: 30px 0; }

.smartit-job-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.smartit-job-breadcrumb        { margin-bottom: 24px; }
.smartit-job-breadcrumb a      { color: var(--sij-muted); text-decoration: none; font-size: .9rem; }
.smartit-job-breadcrumb a:hover { color: var(--sij-primary); text-decoration: underline; }

.smartit-job-detail {
    background: #fff;
    border: 1px solid var(--sij-border);
    border-radius: var(--sij-radius);
    padding: 36px 40px;
    box-shadow: var(--sij-shadow);
    margin-bottom: 36px;
}

.smartit-job-title {
    margin: 0 0 20px;
    font-size: 1.8rem;
    color: var(--sij-primary);
    line-height: 1.25;
}

.smartit-job-meta {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    border-bottom: 1px solid var(--sij-border);
    padding-bottom: 24px;
}

.smartit-job-meta li    { display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.smartit-job-meta .meta-icon { font-size: 1rem; }
.smartit-job-description { line-height: 1.75; }

/* Explicit prose styles — bullet points, numbered lists, headings etc.
   Themes normally scope these to .entry-content or similar. Since we
   cannot guarantee that class name we define them directly here. */

.smartit-job-description ul,
.smartit-job-description ol {
    margin: 0 0 1.2em 1.5em;
    padding: 0;
}

.smartit-job-description ul       { list-style: disc; }
.smartit-job-description ul ul    { list-style: circle; margin-bottom: 0; }
.smartit-job-description ol       { list-style: decimal; }
.smartit-job-description li       { margin-bottom: 0.4em; display: list-item; }
.smartit-job-description p        { margin: 0 0 1.2em; }

.smartit-job-description h2,
.smartit-job-description h3,
.smartit-job-description h4 {
    margin: 1.4em 0 0.6em;
    font-weight: 700;
    line-height: 1.3;
}

.smartit-job-description strong,
.smartit-job-description b  { font-weight: 700; }
.smartit-job-description em,
.smartit-job-description i  { font-style: italic; }
.smartit-job-description a  { color: var(--sij-primary); }
.smartit-job-description hr {
    border: none;
    border-top: 1px solid var(--sij-border);
    margin: 1.5em 0;
}

/* Apply section */
.smartit-apply-section {
    background: #fff;
    border: 1px solid var(--sij-border);
    border-radius: var(--sij-radius);
    padding: 36px 40px;
    box-shadow: var(--sij-shadow);
}

.smartit-apply-section h2 {
    margin: 0 0 28px;
    font-size: 1.4rem;
    color: var(--sij-primary);
    border-bottom: 2px solid var(--sij-border);
    padding-bottom: 14px;
}

.smartit-apply-closed,
.smartit-apply-notice {
    background: var(--sij-bg-light);
    border: 1px solid var(--sij-border);
    border-radius: var(--sij-radius);
    padding: 24px;
    text-align: center;
    color: var(--sij-muted);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .smartit-job-detail,
    .smartit-apply-section  { padding: 24px 18px; }
    .smartit-jobs-table th,
    .smartit-jobs-table td  { padding: 10px 12px; }
    .smartit-jobs-table .job-category { display: none; }
}

/* ── Job detail page (shortcode) ────────────────────────────── */
.smartit-job-detail-title {
    margin: 0 0 16px;
    font-size: 2rem;
    line-height: 1.2;
}

.smartit-job-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sij-border);
}

.smartit-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .95rem;
    color: var(--sij-text);
}

.smartit-job-body {
    margin-bottom: 36px;
}

.smartit-job-back {
    margin-bottom: 20px;
}

.smartit-job-back a {
    color: var(--sij-muted);
    text-decoration: none;
    font-size: .9rem;
}

.smartit-job-back a:hover {
    color: var(--sij-primary);
    text-decoration: underline;
}

.smartit-apply-section {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 2px solid var(--sij-border);
}

.smartit-apply-section h2 {
    margin: 0 0 20px;
    font-size: 1.4rem;
}

.smartit-apply-closed,
.smartit-apply-notice {
    margin-top: 24px;
    padding: 20px;
    background: var(--sij-bg-light);
    border: 1px solid var(--sij-border);
    border-radius: var(--sij-radius);
}

/* ── Application Form ───────────────────────────────────────── */
.sij-form {
    margin-top: 8px;
}

.sij-field {
    margin-bottom: 20px;
}

.sij-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: .93rem;
}

.sij-req {
    color: var(--sij-accent);
    margin-left: 2px;
}

.sij-field input[type="text"],
.sij-field input[type="email"],
.sij-field input[type="tel"],
.sij-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--sij-border);
    border-radius: var(--sij-radius);
    font-size: .95rem;
    font-family: inherit;
    color: var(--sij-text);
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
}

.sij-field input:focus,
.sij-field textarea:focus {
    outline: none;
    border-color: var(--sij-primary);
    box-shadow: 0 0 0 3px rgba(0,48,135,.1);
}

.sij-field textarea {
    resize: vertical;
    min-height: 120px;
}

.sij-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .sij-row { grid-template-columns: 1fr; }
}

.sij-hint {
    font-size: .82rem;
    color: var(--sij-muted);
    margin: 5px 0 0;
}

.sij-privacy label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.5;
}

.sij-privacy input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--sij-primary);
    cursor: pointer;
}

.sij-privacy a { color: var(--sij-primary); }

.sij-submit { margin-top: 10px; }

.sij-btn {
    display: inline-block;
    padding: 12px 36px;
    background: var(--sij-primary);
    color: #fff;
    border: none;
    border-radius: var(--sij-radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

.sij-btn:hover {
    background: #00256b;
    transform: translateY(-1px);
}

/* Errors */
.sij-errors {
    background: #fff3f3;
    border: 1px solid #f5c6c6;
    border-radius: var(--sij-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #8b0000;
    font-size: .93rem;
}

.sij-errors ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

/* Success */
.sij-success {
    text-align: center;
    padding: 40px 20px;
    background: #f0f9f0;
    border: 1px solid #b8ddb8;
    border-radius: var(--sij-radius);
}

.sij-success-icon {
    font-size: 3rem;
    color: #2e7d32;
    margin: 0 0 12px;
}

.sij-success h3 {
    color: #2e7d32;
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.sij-success p {
    color: var(--sij-muted);
    max-width: 480px;
    margin: 0 auto;
}
