/* CCH Job Board - front end. Uses logical properties so RTL (Urdu) works automatically. */
:root { --cchjb-accent: #0a66c2; }

.cchjb-wrap, .cchjb-single { --cchjb-border: #dcdcde; --cchjb-muted: #646970; --cchjb-bg: #fff; box-sizing: border-box; }
.cchjb-wrap *, .cchjb-single * { box-sizing: border-box; }
.cchjb-rtl, body.cchjb-ur .cchjb-single { direction: rtl; text-align: right; }

/* Buttons */
.cchjb-btn { display: inline-block; background: var(--cchjb-accent); color: #fff !important; border: 0; border-radius: 6px; padding: 11px 20px; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: opacity .15s; }
.cchjb-btn:hover, .cchjb-btn:focus { opacity: .88; }
.cchjb-btn-sm { padding: 9px 16px; font-size: 14px; white-space: nowrap; }
.cchjb-btn-alt { background: transparent; color: var(--cchjb-accent) !important; box-shadow: inset 0 0 0 2px var(--cchjb-accent); }
.cchjb-btn-wa { background: #25d366; }

/* Search form */
.cchjb-search { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; align-items: center; }
.cchjb-search input[type="search"] { flex: 2 1 220px; min-width: 0; }
.cchjb-search select { flex: 1 1 150px; min-width: 0; }
.cchjb-search input, .cchjb-search select, .cchjb-alert-form input[type="email"], .cchjb-alert-form select {
  padding: 10px 12px; border: 1px solid var(--cchjb-border); border-radius: 6px; font-size: 15px; background: #fff; color: #1d2327; height: auto; line-height: 1.3; }
.cchjb-reset { color: var(--cchjb-muted); font-size: 14px; }
.cchjb-count { color: var(--cchjb-muted); margin: 0 0 12px; font-size: 14px; }

/* Cards */
.cchjb-list { display: grid; gap: 14px; grid-template-columns: 1fr; }
.cchjb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cchjb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cchjb-cols-4 { grid-template-columns: repeat(4, 1fr); }
.cchjb-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: var(--cchjb-bg); border: 1px solid var(--cchjb-border); border-radius: 10px; padding: 16px 18px; transition: box-shadow .15s, transform .15s; }
.cchjb-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.cchjb-cols-2 .cchjb-card, .cchjb-cols-3 .cchjb-card, .cchjb-cols-4 .cchjb-card { flex-direction: column; align-items: flex-start; }
.cchjb-rtl.cchjb-wrap .cchjb-cols-2 .cchjb-card, .cchjb-rtl.cchjb-wrap .cchjb-cols-3 .cchjb-card, .cchjb-rtl.cchjb-wrap .cchjb-cols-4 .cchjb-card { align-items: flex-start; }
.cchjb-card-main { min-width: 0; flex: 1 1 auto; }
.cchjb-title { margin: 0 0 4px; font-size: 18px; line-height: 1.35; }
.cchjb-title a { color: inherit; text-decoration: none; }
.cchjb-title a:hover { color: var(--cchjb-accent); }
.cchjb-company { color: var(--cchjb-muted); font-size: 14px; margin-bottom: 8px; }
.cchjb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cchjb-chip { background: #f0f2f5; color: #3c434a; border-radius: 999px; padding: 3px 11px; font-size: 13px; line-height: 1.5; }
.cchjb-chip-date { background: #fff4e5; color: #8a4b00; }
.cchjb-empty { padding: 24px; text-align: center; border: 1px dashed var(--cchjb-border); border-radius: 8px; color: var(--cchjb-muted); }
.cchjb-more { margin-top: 18px; text-align: center; }

/* Pagination */
.cchjb-pagination { margin-top: 22px; }
.cchjb-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.cchjb-pagination li { margin: 0; }
.cchjb-pagination .page-numbers { display: inline-block; min-width: 38px; text-align: center; padding: 8px 12px; border: 1px solid var(--cchjb-border); border-radius: 6px; color: inherit; text-decoration: none; }
.cchjb-pagination .page-numbers.current { background: var(--cchjb-accent); border-color: var(--cchjb-accent); color: #fff; }

/* Single job */
.cchjb-notice { background: #fcf0f1; border-inline-start: 4px solid #d63638; padding: 12px 16px; margin: 0 0 18px; border-radius: 4px; }
.cchjb-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 0 0 24px; padding: 16px; background: #f6f7f7; border: 1px solid var(--cchjb-border); border-radius: 10px; }
.cchjb-details dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--cchjb-muted); margin: 0 0 2px; }
.cchjb-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cchjb-body { margin-bottom: 24px; }
.cchjb-apply { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.cchjb-share { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 18px 0; }
.cchjb-share a { text-decoration: underline; }

/* Alert form */
.cchjb-alert { margin: 30px 0 10px; padding: 22px; border: 1px solid var(--cchjb-border); border-top: 4px solid var(--cchjb-accent); border-radius: 10px; background: #fff; }
.cchjb-alert h3 { margin: 0 0 6px; font-size: 20px; }
.cchjb-alert p { margin: 0 0 14px; color: var(--cchjb-muted); }
.cchjb-alert-form { display: flex; flex-wrap: wrap; gap: 10px; }
.cchjb-alert-form input[type="email"] { flex: 2 1 220px; min-width: 0; }
.cchjb-alert-form select { flex: 1 1 150px; min-width: 0; }
.cchjb-alert-msg { flex: 1 1 100%; font-size: 14px; }
.cchjb-alert-msg.is-ok { color: #00700a; }
.cchjb-alert-msg.is-err { color: #b32d2e; }
.cchjb-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 782px) {
  .cchjb-cols-3, .cchjb-cols-4, .cchjb-cols-2 { grid-template-columns: 1fr; }
  .cchjb-card { flex-direction: column; align-items: flex-start; }
  .cchjb-search input, .cchjb-search select, .cchjb-search .cchjb-btn { flex: 1 1 100%; }
  .cchjb-alert-form .cchjb-btn { flex: 1 1 100%; }
}
@media (min-width: 783px) and (max-width: 1024px) {
  .cchjb-cols-3, .cchjb-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
