/* ================================================================
   Government Job Board — v13
   5-col table: Last Date | Board | Post Name | Qualification | More Info
   ================================================================ */

/* ── Page Hero Title ────────────────────────────────────────── */
.gjb-page-hero {
    background: linear-gradient(135deg, #0d2b6e 0%, #1a4a8a 45%, #1e6f7a 100%);
    border-radius: 8px;
    padding: 5px 5px;
    margin: 0 0 14px 0;
    box-shadow: 0 3px 12px rgba(13, 43, 110, 0.22);
}
.gjb-hero-inner {
    display: flex;
    align-items: center;
}
.gjb-hero-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}
@media screen and (max-width: 600px) {
    .gjb-page-hero  { padding: 4px 14px; }
    .gjb-hero-title { font-size: 1.0rem; }
}

.gjb-all-categories,
.gjb-table-wrapper {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17.1px;
    color: #222;
}

/* ── Category section ───────────────────────────────────────── */
.gjb-cat-section {
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
}

/* Kill any theme-injected spacing on the h3 inside our wrapper */
.gjb-all-categories h3,
.gjb-board-wrap h3 {
    margin: 0 !important;
    padding: 0 !important;
}

.gjb-cat-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a237e;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    border: none;
    background: none;
    line-height: 1.2;
    display: block;
}

/* ── Table ──────────────────────────────────────────────────── */
.gjb-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 !important;
    padding: 0 !important;
}

.gjb-table-wrapper > * {
    margin-top: 0 !important;
}

.gjb-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #b0bec5;
    min-width: 795px;
    margin: 0 !important;
    padding: 0 !important;
}

.gjb-table thead tr   { background-color: #2e6b77; }
.gjb-table th {
    color: #fff;
    font-size: 12.7px !important;
    font-weight: 700;
    padding: 0.2px 5px !important;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #4a8d9a;
    line-height: 1.2;
    white-space: normal;
}

.gjb-table td {
    padding: 0.2px 5px !important;
    vertical-align: middle;
    border: 1px solid #dce3e6;
    font-size: 13.2px !important;
    line-height: 1.25;
}

.gjb-row-even { background-color: #ffffff; }
.gjb-row-odd  { background-color: #fdfae9; }
.gjb-table tbody tr.gjb-job-row:hover { background-color: #e8f4f8 !important; }

.gjb-col-post-date { text-align: center; white-space: nowrap; width: 62px; }
.gjb-col-date  { text-align: center; white-space: nowrap; width: 62px; }
.gjb-col-board { text-align: left;   font-weight: 500; }
.gjb-col-post  { text-align: left; }
.gjb-col-qual  { text-align: left; }
.gjb-col-info  { text-align: center; width: 90px; }

/* ── Last date styles ───────────────────────────────────────── */
.gjb-post-date         { font-weight: 600; color: #37474f; }
.gjb-last-date         { font-weight: 600; color: #1b5e20; }
.gjb-date-urgent       { color: #bf5900; }
.gjb-date-today        { color: #6a1aab; font-weight: 700; }
.gjb-today-note        { font-size: 9.4px; font-weight: 600; color: #6a1aab; display: block; line-height: 1.3; }
.gjb-date-expired      { color: #b71c1c; text-decoration: line-through; }

/* ── Get Details link ───────────────────────────────────────── */
.gjb-get-details {
    display: inline-block;
    background: linear-gradient(135deg, #1565c0, #1a237e);
    color: #fff !important;
    font-weight: 700;
    font-size: 13.2px;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 4px;
    letter-spacing: .03em;
    box-shadow: 0 2px 6px rgba(21,101,192,.35);
    transition: background .15s, box-shadow .15s, transform .1s;
}
.gjb-get-details:hover {
    background: linear-gradient(135deg, #0d47a1, #283593);
    box-shadow: 0 4px 10px rgba(21,101,192,.5);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff !important;
}

.gjb-get-details--block {
    display: block;
    text-align: center;
    background: #1a237e;
    color: #fff !important;
    padding: 7px 10px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 10.5px;
}
.gjb-get-details--block:hover { background: #283593; text-decoration: none !important; }

/* ── Accordion ──────────────────────────────────────────────── */
.gjb-details-row  { display: none; }
.gjb-details-cell {
    padding: 8px 10px !important;
    background: #f5f7fa !important;
    border-top: 2px solid #2e6b77 !important;
}
.gjb-detail-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.gjb-detail-item  { display: flex; flex-direction: column; gap: 2px; }
.gjb-dlabel { font-size: 7.7px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #546e7a; }
.gjb-dval   { font-size: 10.5px; color: #1a1a1a; font-weight: 500; line-height: 1.3; }

/* ── Toggle ─────────────────────────────────────────────────── */
.gjb-col-toggle { width: 26px; text-align: center; padding: 0 !important; }
.gjb-col-toggle::after {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #e3f2fd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") no-repeat center;
    transition: transform .2s, background-color .15s;
    margin: auto;
}
.gjb-job-row.is-active .gjb-col-toggle::after {
    transform: rotate(45deg);
    background-color: #ffebee;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23c62828' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.gjb-no-jobs { padding: 16px; color: #777; font-style: italic; text-align: center; }

/* ── Desktop ────────────────────────────────────────────────── */
@media screen and (min-width: 769px) {
    .gjb-details-row                { display: none !important; }
    .gjb-table th.gjb-col-toggle,
    .gjb-table td.gjb-col-toggle    { display: none; }
    .gjb-job-row                    { cursor: default; }
}

/* ── Mobile ≤ 768px ─────────────────────────────────────────── */
@media screen and (max-width: 768px) {
    .gjb-table-wrapper  { overflow-x: visible; }
    .gjb-table          { min-width: unset; border: none; }
    .gjb-table thead    { display: none; }

    .gjb-cat-title {
        font-size: 1.1rem;
        padding: 0 0 6px 0 !important;
        border-bottom: 3px solid #2e6b77;
        margin: 0 0 6px 0 !important;
    }

    .gjb-table .gjb-job-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        cursor: pointer;
        border: none;
        border-bottom: 1px solid #dce3e6;
        transition: background .1s;
    }
    .gjb-table .gjb-job-row:first-child { border-top: 2px solid #2e6b77; }
    .gjb-table .gjb-job-row:active      { background: #e8f4f8 !important; }
    .gjb-table .gjb-job-row.is-active   { background: #e3f2fd !important; border-bottom-color: transparent; }

    .gjb-table .gjb-col-post-date,
    .gjb-table .gjb-col-date,
    .gjb-table .gjb-col-board,
    .gjb-table .gjb-col-qual,
    .gjb-table .gjb-col-info  { display: none; }

    .gjb-table .gjb-col-post {
        flex: 1; padding: 0; border: none;
        font-size: 9.9px; font-weight: 600; color: #1a237e; line-height: 1.35;
    }
    .gjb-table .gjb-col-toggle {
        flex: 0 0 28px; padding: 0; border: none;
        display: flex; align-items: center; justify-content: center;
    }

    .gjb-details-cell {
        padding: 12px !important;
        border-top: none !important;
        border-bottom: 2px solid #2e6b77 !important;
    }
    .gjb-cat-section { margin: 0 0 16px 0 !important; padding: 0 !important; }
}

@media screen and (max-width: 380px) {
    .gjb-detail-grid { grid-template-columns: 1fr; }
}


/* ================================================================
   SINGLE JOB POST — Boxed layout with AdSense right sidebar
   ================================================================ */

.gjb-single-wrap {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Two-column grid: main | sidebar */
.gjb-single-layout {
    display: grid;
    grid-template-columns: 1fr 276px;
    gap: 10px;
    align-items: start;
}

/* ── Main content box ───────────────────────────────────────── */
.gjb-single-main {
    background: #fff;
    border: 1px solid #dce3e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.gjb-single-header {
    background: #2e6b77;
    padding: 18px 22px;
}

.gjb-single-header h1 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.gjb-single-body { padding: 22px; }

/* Meta chips */
.gjb-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.gjb-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}
.gjb-chip--board { background: #e8f0fa; color: #1a237e; border: 1px solid #c5cae9; }
.gjb-chip--qual  { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.gjb-chip--date  { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.gjb-chip--date.expired { background: #fce4ec; color: #880e4f; border-color: #f48fb1; }

/* ── Social Share Buttons ───────────────────────────────────── */
.gjb-share-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.gjb-share-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #78909c;
    margin-right: 2px;
}

.gjb-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    text-decoration: none !important;
    flex-shrink: 0;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
}

.gjb-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.22);
    text-decoration: none !important;
}

.gjb-share-btn svg {
    width: 15px;
    height: 15px;
    fill: #ffffff;
    display: block;
}

.gjb-share-btn--wa { background: #25D366; }
.gjb-share-btn--tg { background: #2CA5E0; }
.gjb-share-btn--tw { background: #000000; }
.gjb-share-btn--fb { background: #1877F2; }

@media screen and (max-width: 600px) {
    .gjb-share-group  { margin-left: 0; width: 100%; }
    .gjb-share-btn    { width: 34px; height: 34px; border-radius: 8px; }
    .gjb-share-btn svg { width: 17px; height: 17px; }
}

/* Quick details box inside main */
.gjb-quick-details-box {
    background: #f8fafb;
    border: 1px solid #dce3e6;
    border-radius: 7px;
    padding: 16px;
    margin-bottom: 22px;
}

.gjb-qd-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a237e;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2e6b77;
}

/* Quick facts list */
.gjb-quick-facts {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.gjb-quick-facts li {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid #eef1f4;
    font-size: 13px;
    padding-right: 12px;
}
.gjb-quick-facts li:nth-last-child(-n+2) { border-bottom: none; }

.gjb-qf-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #546e7a;
    margin-bottom: 2px;
}

.gjb-qf-value { font-size: 13px; font-weight: 600; color: #1a1a1a; line-height: 1.35; }
.gjb-qf-value.urgent  { color: #bf5900; }
.gjb-qf-value.expired { color: #b71c1c; }
.gjb-qf-value.safe    { color: #1b5e20; }

/* Buttons */
.gjb-sidebar-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #2e6b77;
    color: #fff !important;
    text-align: center;
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s;
}
.gjb-sidebar-btn:hover { background: #245660; color: #fff !important; text-decoration: none; }
.gjb-sidebar-btn--outline {
    background: #fff;
    color: #2e6b77 !important;
    border: 2px solid #2e6b77;
    display: block;
}
.gjb-sidebar-btn--outline:hover { background: #e8f4f8; }

/* Post content */
.gjb-single-content { font-size: 14px; line-height: 1.7; color: #333; }
.gjb-single-content h2,
.gjb-single-content h3 { color: #1a237e; margin-top: 20px; }
.gjb-single-content table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.gjb-single-content table th,
.gjb-single-content table td { border: 1px solid #dce3e6; padding: 8px 10px; font-size: 13px; text-align: left; }
.gjb-single-content table th { background: #2e6b77; color: #fff; }
.gjb-single-content table tr:nth-child(even) td { background: #fdfae9; }

/* ── Right sidebar — AdSense ────────────────────────────────── */
.gjb-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Sticky sidebar — stays in view while scrolling */
    position: sticky;
    top: 20px;
}

/* Each ad slot */
.gjb-ad-slot {
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    min-height: 260px;
    display: flex;
    align-items: stretch;
}

.gjb-ad-slot--sticky {
    position: sticky;
    top: 24px;
}

/* Placeholder shown until real AdSense code is pasted in */
.gjb-ad-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    background: #f9f9f9;
    color: #aaa;
    gap: 6px;
}
.gjb-ad-placeholder span { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.gjb-ad-placeholder small { font-size: 11px; color: #bbb; }

/* Make sure AdSense ins tags fill the slot */
.gjb-ad-slot ins.adsbygoogle { display: block !important; width: 100%; }

/* ── Single post responsive ─────────────────────────────────── */
@media screen and (max-width: 900px) {
    .gjb-single-layout { grid-template-columns: 1fr; }
    .gjb-single-sidebar { position: static; order: 2; }
    .gjb-single-main    { order: 1; }

    /* On mobile, show ads in a horizontal row */
    .gjb-single-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    .gjb-ad-slot {
        flex: 1 1 280px;
        min-height: 120px;
    }
    .gjb-ad-slot--sticky { position: static; }
    .gjb-quick-facts     { grid-template-columns: 1fr; }
}

@media screen and (max-width: 480px) {
    .gjb-single-wrap    { padding: 0 10px; margin: 16px auto; }
    .gjb-single-header h1 { font-size: 1rem; }
    .gjb-single-body    { padding: 14px; }
    .gjb-quick-details-box { padding: 12px; }
    .gjb-single-sidebar { flex-direction: column; }
    .gjb-ad-slot        { min-height: 100px; }
}


/* ================================================================
   FILTER BAR — v13
   Sits above the job tables; adapts to mobile cleanly
   ================================================================ */

/* ── Outer board wrapper ────────────────────────────────────────── */
.gjb-board-wrap {
    font-family: Arial, Helvetica, sans-serif;
}

/* ── Filter bar container ──────────────────────────────────────── */
.gjb-filter-bar {
    background: #f0f6f8;
    border: 1px solid #b5d4db;
    border-radius: 8px;
    padding: 7px 8px;
    margin-bottom: 9px;
}

/* ── Header row ────────────────────────────────────────────────── */
.gjb-filter-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.gjb-filter-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 700;
    color: #1a5f6b;
    letter-spacing: .05em;
}

.gjb-filter-count {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #546e7a;
    background: #e1eef2;
    padding: 2px 9px;
    border-radius: 20px;
    min-width: 60px;
    text-align: center;
    border: 1px solid #b5d4db;
    transition: background .2s, color .2s;
}
.gjb-filter-count.is-active {
    background: #2e6b77;
    color: #fff;
    border-color: #2e6b77;
}

.gjb-filter-reset {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    background: none;
    border: 1px solid #e57373;
    color: #c62828;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.gjb-filter-reset:hover {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}

/* ── Filter controls row ───────────────────────────────────────── */
.gjb-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: flex-end;
}

/* ── Each filter field ─────────────────────────────────────────── */
.gjb-filter-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 112px;
    min-width: 95px;
    max-width: 168px;
}

.gjb-filter-field--search {
    flex: 2 1 140px;
    max-width: 210px;
}

.gjb-filter-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #546e7a;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Selects ───────────────────────────────────────────────────── */
.gjb-filter-select {
    background: #fff;
    border: 1px solid #b5d4db;
    border-radius: 5px;
    color: #1a1a1a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    padding: 5px 22px 5px 8px;
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23546e7a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: border-color .15s, box-shadow .15s;
    height: 30px;
}
.gjb-filter-select:focus {
    outline: none;
    border-color: #2e6b77;
    box-shadow: 0 0 0 3px rgba(46,107,119,.15);
}
.gjb-filter-select:hover { border-color: #2e6b77; }

/* Has active value */
.gjb-filter-select.has-value {
    border-color: #2e6b77;
    background-color: #e8f4f7;
    font-weight: 600;
    color: #1a5f6b;
}

/* ── Search input ──────────────────────────────────────────────── */
.gjb-input-wrap {
    position: relative;
}

.gjb-filter-input {
    background: #fff;
    border: 1px solid #b5d4db;
    border-radius: 5px;
    color: #1a1a1a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    padding: 5px 26px 5px 8px;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
    height: 30px;
    box-sizing: border-box;
}
.gjb-filter-input:focus {
    outline: none;
    border-color: #2e6b77;
    box-shadow: 0 0 0 3px rgba(46,107,119,.15);
}
.gjb-filter-input::placeholder { color: #9eaab0; }

.gjb-search-clear {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    background: #e0e0e0;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    color: #546e7a;
    cursor: pointer;
    padding: 0;
    transition: background .15s;
}
.gjb-search-clear:hover { background: #bdbdbd; color: #1a1a1a; }

/* ── Active filter tags ────────────────────────────────────────── */
.gjb-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #d0e4e8;
}

.gjb-ftag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #2e6b77;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px 3px 10px;
    border-radius: 20px;
    animation: gjbTagIn .15s ease;
}

@keyframes gjbTagIn {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: scale(1); }
}

.gjb-ftag-remove {
    background: rgba(255,255,255,.25);
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    padding: 0;
    transition: background .12s;
}
.gjb-ftag-remove:hover { background: rgba(255,255,255,.45); }

/* ── No-filter-results message ─────────────────────────────────── */
.gjb-no-filter-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 20px;
    text-align: center;
    color: #78909c;
    font-size: 14px;
    background: #f8fafb;
    border: 1px dashed #b0bec5;
    border-radius: 8px;
    margin-bottom: 16px;
}
.gjb-no-filter-results p { margin: 0; }

.gjb-filter-reset-link {
    background: none;
    border: 1px solid #b0bec5;
    color: #546e7a;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all .15s;
}
.gjb-filter-reset-link:hover {
    background: #2e6b77;
    color: #fff;
    border-color: #2e6b77;
}

/* ── Highlight matching text (optional search highlight) ────────── */
.gjb-highlight {
    background: #fff59d;
    border-radius: 2px;
    padding: 0 1px;
}

/* ── Mobile responsive adjustments ────────────────────────────── */
@media screen and (max-width: 768px) {
    .gjb-filter-bar { padding: 10px 12px; }
    .gjb-filter-controls { gap: 8px; }

    .gjb-filter-field {
        flex: 1 1 calc(50% - 4px);
        max-width: none;
        min-width: 0;
    }

    .gjb-filter-field--search {
        flex: 1 1 100%;
        max-width: none;
    }
}

@media screen and (max-width: 480px) {
    .gjb-filter-field { flex: 1 1 100%; }
    .gjb-filter-header { gap: 6px; }
    .gjb-filter-reset { font-size: 10px; padding: 3px 8px; }
}


/* ================================================================
   LISTING PAGE LAYOUT — mirrors single-post: main | right sidebar
   ================================================================ */

.gjb-listing-wrap {
    font-family: Arial, Helvetica, sans-serif;
}

.gjb-listing-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
}

/* ── Left: filter bar + tables ────────────────────────────────── */
.gjb-listing-main {
    min-width: 0; /* prevent grid blowout */
}

/* ── Right: sidebar — states panel + optional ad slots ─────────── */
.gjb-listing-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 20px;
}

/* ================================================================
   JOBS BY STATES — sidebar panel
   ================================================================ */

.gjb-states-panel {
    background: #fff;
    border: 1px solid #b5d4db;
    border-radius: 8px;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 2px 8px rgba(46,107,119,.10);
}

.gjb-states-header {
    background: #2e6b77;
    color: #fff;
    padding: 0.2rem 0.5rem;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .03em;
}

.gjb-states-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 288px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b5d4db #f0f6f8;
}

.gjb-states-list::-webkit-scrollbar { width: 5px; }
.gjb-states-list::-webkit-scrollbar-track { background: #f0f6f8; }
.gjb-states-list::-webkit-scrollbar-thumb { background: #b5d4db; border-radius: 3px; }

.gjb-state-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    border-bottom: 1px solid #e8f0f2;
    transition: background .12s;
    gap: 4px;
}

.gjb-state-item:last-child { border-bottom: none; }
.gjb-state-item:hover      { background: #e8f4f8; }

.gjb-state-item.is-active {
    background: #2e6b77;
    color: #fff;
}

.gjb-state-name {
    font-size: 11px;
    flex: 1;
    line-height: 1.3;
}

.gjb-state-count {
    background: #e1eef2;
    color: #1a5f6b;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.gjb-state-item.is-active .gjb-state-count {
    background: rgba(255,255,255,.22);
    color: #fff;
}

.gjb-state-item--all .gjb-state-name {
    font-weight: 700;
    color: #1a5f6b;
}
.gjb-state-item--all.is-active .gjb-state-name { color: #fff; }

/* ── Listing-sidebar ad slots (reuse single-post ad styles) ────── */
.gjb-listing-sidebar .gjb-ad-slot {
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    min-height: 260px;
    display: flex;
    align-items: stretch;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media screen and (max-width: 1024px) {
    .gjb-listing-layout {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   THEME OVERRIDES — injected by Government Job Board plugin
   ================================================================ */

/* Reduce top padding on the main article content area */
.tc-article-content {
    padding-top: 5px !important;
}

/* Reduce top padding on the Jobs by States widget in tc-sidebar */
#gjb_states_widget-1,
.widget#gjb_states_widget-1,
.tc-sidebar #gjb_states_widget-1 {
    padding-top: 5px !important;
    margin-top: 0 !important;
}

/* Hide block-3 and block-4 widgets from tc-sidebar */
.tc-sidebar #block-3,
.tc-sidebar #block-4,
#tc-sidebar #block-3,
#tc-sidebar #block-4 {
    display: none !important;
}

/* ── Other Similar Jobs Section ─────────────────────────────── */
.gjb-related-wrap {
    max-width: 1100px;
    margin: 0 auto 30px;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.gjb-related-box {
    background: #fff;
    border: 1px solid #dce3e6;
    border-radius: 8px;
    padding: 22px 26px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.gjb-related-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px !important;
    padding: 0 0 12px !important;
    border-bottom: 2px solid #2e6b77;
    line-height: 1.3;
}

.gjb-related-list {
    margin: 0;
    padding: 0 0 0 22px;
    list-style: decimal;
}

.gjb-related-list li {
    padding: 7px 0;
    border-bottom: 1px solid #f0f3f5;
    font-size: 14.5px;
    line-height: 1.45;
}

.gjb-related-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.gjb-related-list li a {
    color: #1558d6;
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}

.gjb-related-list li a:hover {
    color: #0b3ea6;
    text-decoration: underline;
}

@media screen and (max-width: 480px) {
    .gjb-related-wrap  { padding: 0 10px; margin-bottom: 20px; }
    .gjb-related-box   { padding: 16px; }
    .gjb-related-title { font-size: 0.95rem; }
    .gjb-related-list li { font-size: 13.5px; }
}

/* ── Jobs by Qualification panel (mirrors states panel) ─────────── */
.gjb-qual-panel {
    background: #fff;
    border: 1px solid #b5d4db;
    border-radius: 8px;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 2px 8px rgba(46,107,119,.10);
    margin-top: 16px;
}

.gjb-qual-header {
    background: #2e6b77;
    color: #fff;
    padding: 0.2rem 0.5rem;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .03em;
}

.gjb-qual-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 288px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #b5d4db #f0f6f8;
}

.gjb-qual-list::-webkit-scrollbar { width: 5px; }
.gjb-qual-list::-webkit-scrollbar-track { background: #f0f6f8; }
.gjb-qual-list::-webkit-scrollbar-thumb { background: #b5d4db; border-radius: 3px; }

.gjb-qual-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    border-bottom: 1px solid #e8f0f2;
    transition: background .12s;
    gap: 4px;
}

.gjb-qual-item:last-child { border-bottom: none; }
.gjb-qual-item:hover      { background: #e8f4f8; }

.gjb-qual-item.is-active {
    background: #2e6b77;
    color: #fff;
}

.gjb-qual-name {
    font-size: 11px;
    flex: 1;
    line-height: 1.3;
}

.gjb-qual-count {
    background: #e1eef2;
    color: #1a5f6b;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.gjb-qual-item.is-active .gjb-qual-count {
    background: rgba(255,255,255,.22);
    color: #fff;
}

.gjb-qual-item--all .gjb-qual-name {
    font-weight: 700;
    color: #1a5f6b;
}
.gjb-qual-item--all.is-active .gjb-qual-name { color: #fff; }

.tc-widget { padding: 0.2rem !important; }
