/* ============================================
   Subpage Styles — css/subpage.css
   ============================================ */

/* ── Breadcrumb ─────────────────────────────── */
.breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; font-size: 13px;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--red); }
.bc-sep { color: var(--text-muted); font-size: 11px; }
.bc-current {
  color: var(--text); font-weight: 600;
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 280px;
}

/* ── Job Hero Banner ────────────────────────── */
.job-hero {
  background: linear-gradient(135deg, #0a1520 0%, #0f1f33 45%, #1a1535 100%);
  padding: 42px 0 48px;
  position: relative; overflow: hidden;
}
.job-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 55% 60% at 10% 50%, rgba(212,160,23,.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 90% 30%, rgba(192,57,43,.06) 0%, transparent 65%);
  pointer-events: none;
}
.job-hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px; align-items: flex-start;
  position: relative; z-index: 1;
}
.job-hero-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.jhtag {
  font-size: 11.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 99px;
  letter-spacing: .3px;
}
.jhtag.result  { background: rgba(46,204,113,.15); color: #2ecc71; border: 1px solid rgba(46,204,113,.3); }
.jhtag.police  { background: rgba(52,152,219,.15); color: #5dade2; border: 1px solid rgba(52,152,219,.3); }
.jhtag.state   { background: rgba(212,160,23,.15); color: var(--gold-light); border: 1px solid rgba(212,160,23,.3); }

.job-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 900; color: #fff;
  line-height: 1.15; margin-bottom: 8px;
}
.job-hero-sub {
  color: rgba(255,255,255,.55); font-size: 14px;
  margin-bottom: 24px;
}
.job-hero-meta-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.jhmeta-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 11px 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
  transition: all var(--transition);
}
.jhmeta-item:hover {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,215,0,.35);
  transform: translateY(-2px);
}
.jhmeta-icon { font-size: 22px; }
.jhmeta-label { display: block; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.55); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.jhmeta-val {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px; font-weight: 800; color: #fff; display: block; letter-spacing: -0.2px;
}
.jhmeta-val.red { color: #ff6b6b; text-shadow: 0 0 12px rgba(255,107,107,0.4); }

.job-hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero-action-btn {
  padding: 11px 24px; border-radius: 99px;
  font-size: 13.5px; font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.hero-action-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.hero-action-btn.primary {
  background: linear-gradient(135deg, #27ae60, #1e8449);
  color: #fff; box-shadow: 0 4px 16px rgba(39,174,96,.3);
}
.hero-action-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(39,174,96,.4); color: #fff;
}
.hero-action-btn.outline {
  border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.8);
}
.hero-action-btn.outline:hover {
  border-color: var(--gold); color: var(--gold-light);
  background: rgba(212,160,23,.1);
}

/* Quick stats card */
.job-hero-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl); overflow: hidden;
}
.jhc-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  background: rgba(212,160,23,.1);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.jhc-logo { font-size: 32px; }
.jhc-org { font-size: 15px; font-weight: 700; color: #fff; }
.jhc-dept { font-size: 12px; color: rgba(255,255,255,.5); }
.jhc-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.jhc-stat {
  padding: 18px 16px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.jhc-stat:nth-child(even) { border-right: none; }
.jhc-stat:nth-child(3),
.jhc-stat:nth-child(4) { border-bottom: none; }
.jhc-stat-num {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 26px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.6px;
  background: linear-gradient(135deg, #FFF3B0 0%, #FFD700 45%, #FBAA19 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.15;
  filter: drop-shadow(0 2px 10px rgba(255, 215, 0, 0.25));
}
.jhc-stat-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.55); margin-top: 5px; letter-spacing: 0.3px; }
.jhc-status-row {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.jhc-status {
  text-align: center; font-size: 13px;
  font-weight: 700; padding: 8px;
  border-radius: 8px;
}
.jhc-status.result-out {
  background: rgba(46,204,113,.12);
  color: #2ecc71; border: 1px solid rgba(46,204,113,.25);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
  50%      { box-shadow: 0 0 0 6px rgba(46,204,113,.12); }
}
.jhc-share {
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.4);
}
.share-btn {
  width: 30px; height: 30px; border-radius: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.share-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ── Subpage Layout ─────────────────────────── */
.subpage-layout { padding: 36px 0 60px; }
.subpage-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px; align-items: flex-start;
}
.subpage-grid > * {
  min-width: 0;
}

/* ── Content Card ───────────────────────────── */
.content-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  min-width: 0;
  width: 100%;
}
.content-card:hover { box-shadow: var(--shadow); }

.content-card-header {
  padding: 13px 20px;
  display: flex; align-items: center;
  justify-content: space-between;
}
.content-card-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 16.5px; font-weight: 700; color: #fff; margin: 0;
}

/* Header color variants */
.content-card-header.blue     { background: linear-gradient(90deg, #1565c0, #1976d2); border-left: 4px solid #0d47a1; }
.content-card-header.green    { background: linear-gradient(90deg, #1b5e20, #2e7d32); border-left: 4px solid #1b5e20; }
.content-card-header.orange   { background: linear-gradient(90deg, #e65100, #ef6c00); border-left: 4px solid #bf360c; }
.content-card-header.purple   { background: linear-gradient(90deg, #4a148c, #6a1b9a); border-left: 4px solid #38006b; }
.content-card-header.maroon   { background: linear-gradient(90deg, #7b241c, #922b21); border-left: 4px solid #641e16; }
.content-card-header.teal     { background: linear-gradient(90deg, #004d40, #00695c); border-left: 4px solid #00251a; }
.content-card-header.dark-blue{ background: linear-gradient(90deg, #0d47a1, #1565c0); border-left: 4px solid #01337d; }
.content-card-header.slate    { background: linear-gradient(90deg, #263238, #37474f); border-left: 4px solid #1c262a; }
.content-card-header.red-grad { background: linear-gradient(90deg, #c0392b, #e74c3c); border-left: 4px solid #922b21; }

.content-card-body { padding: 18px 20px; }
.content-card-body.p0 { padding: 0; }

.intro-text p {
  font-size: 14.5px; line-height: 1.75; color: var(--text);
  margin-bottom: 12px;
}
.intro-text p:last-child { margin-bottom: 0; }
.intro-text strong { color: var(--navy); }

/* ── Info Tables ────────────────────────────── */
.info-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px;
}
.info-table thead tr {
  background: var(--navy-light);
}
.info-table thead th {
  color: #fff; font-weight: 600;
  padding: 11px 16px; text-align: left;
  font-size: 13px;
}
.info-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.info-table tbody tr:last-child { border-bottom: none; }
.info-table tbody tr:hover { background: #f8f9ff; }
.info-table tbody td {
  padding: 13px 18px; color: var(--text);
  vertical-align: middle;
  font-size: 14px;
  line-height: 1.5;
}
.info-table tbody td:last-child {
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
}
.highlight-row { background: #fffbf0 !important; }
.highlight-row td { color: var(--text) !important; }
.date-red {
  color: #d9381e !important;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 800;
}

/* Modern attractive badges & pills for numbers/dates in tables */
.pill-date {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #fff5f5, #fee2e2);
  color: #dc2626; border: 1px solid #fca5a5;
  padding: 4px 12px; border-radius: 8px;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 800; font-size: 14px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.12);
}
.pill-date.hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; border-color: #b91c1c;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
}
.pill-fee {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #047857; border: 1px solid #6ee7b7;
  padding: 4px 13px; border-radius: 8px;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 800; font-size: 15px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
}
.pill-num {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8; border: 1px solid #93c5fd;
  padding: 4px 13px; border-radius: 8px;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 800; font-size: 15px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12);
}
.total-row { background: var(--surface2) !important; }
.total-row td { font-size: 14px !important; }

.vacancy-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; font-size: 12.5px; color: var(--text-muted);
  background: var(--surface2); border-top: 1px solid var(--border);
}
.vacancy-note.warning { background: #fff9e6; color: #7d5a00; }

/* ── Selection Steps ────────────────────────── */
.selection-steps {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.selection-steps::before {
  content: ''; position: absolute;
  left: 18px; top: 36px; bottom: 36px;
  width: 2px; background: var(--border);
  z-index: 0;
}
.sel-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 0; position: relative; z-index: 1;
}
.sel-step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface2); border: 2px solid var(--border);
  color: var(--text-muted); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--transition);
}
.sel-step.active .sel-step-num {
  background: var(--navy); border-color: var(--navy);
  color: #fff; box-shadow: 0 3px 10px rgba(15,25,35,.2);
}
.sel-step-info { flex: 1; padding-top: 6px; }
.sel-step-title {
  font-weight: 700; font-size: 14px; color: var(--text);
  margin-bottom: 4px;
}
.sel-step-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 8px; }
.sel-step-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 12px; border-radius: 99px;
}
.sel-step-status.done    { background: rgba(46,204,113,.1); color: #1e8449; border: 1px solid rgba(46,204,113,.25); }
.sel-step-status.pending { background: rgba(243,156,18,.1); color: #a04000; border: 1px solid rgba(243,156,18,.25); }

/* ── Important Links Table ──────────────────── */
.links-card { border-color: rgba(192,57,43,.25); }
.links-updated {
  font-size: 11.5px; color: rgba(255,255,255,.65);
  font-style: italic;
}
.links-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px;
}
.links-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.links-table tbody tr:last-child { border-bottom: none; }
.links-table tbody tr:hover { background: #f8f9ff; }
.links-tr-highlight { background: #fffbf0 !important; }
.links-tr-highlight:hover { background: #fff6df !important; }
.links-table td {
  padding: 13px 16px; vertical-align: middle;
}
.links-table td:first-child { width: 65%; }
.links-table td strong { color: var(--text); font-size: 13.5px; display: block; }
.link-note {
  font-size: 11.5px; color: var(--text-muted);
  margin-top: 3px; font-weight: 400;
}
.link-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Link Buttons */
.lbtn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.lbtn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.lbtn.green  { background: #27ae60; color: #fff; box-shadow: 0 3px 10px rgba(39,174,96,.25); }
.lbtn.green:hover { background: #1e8449; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(39,174,96,.35); color: #fff; }
.lbtn.orange { background: #e67e22; color: #fff; }
.lbtn.orange:hover { background: #d35400; color: #fff; transform: translateY(-2px); }
.lbtn.blue   { background: #2980b9; color: #fff; }
.lbtn.blue:hover { background: #1a6fa8; color: #fff; transform: translateY(-2px); }
.lbtn.navy   { background: var(--navy); color: rgba(255,255,255,.7); cursor: default; }
.lbtn.purple { background: #8e44ad; color: #fff; }
.lbtn.purple:hover { background: #7d3c98; color: #fff; transform: translateY(-2px); }
.lbtn.grey   { background: var(--surface2); color: var(--text-muted); border: 1.5px solid var(--border); }
.lbtn.grey:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.lbtn.teal   { background: #16a085; color: #fff; }
.lbtn.teal:hover { background: #0e6655; color: #fff; transform: translateY(-2px); }
.lbtn.closed { background: #f0f0f0; color: #aaa; cursor: not-allowed; border: 1.5px solid #ddd; }

/* Pulse animation for primary download button */
.lbtn.pulse {
  animation: lbtnPulse 2s ease-in-out infinite;
}
@keyframes lbtnPulse {
  0%,100% { box-shadow: 0 3px 10px rgba(39,174,96,.25); }
  50%      { box-shadow: 0 6px 20px rgba(39,174,96,.5); transform: scale(1.03); }
}

/* ── How To List ────────────────────────────── */
.howto-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
}
.howto-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 14px; color: var(--text); line-height: 1.6;
}
.howto-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

/* ── Post Tags ──────────────────────────────── */
.post-tags-bar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.tags-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.post-tag {
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 99px;
  background: var(--surface2); border: 1.5px solid var(--border);
  color: var(--text-muted); transition: all var(--transition);
}
.post-tag:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── Sidebar ────────────────────────────────── */
.subpage-sidebar {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 140px;
}
.sidebar-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sb-card-header {
  padding: 12px 16px;
  background: linear-gradient(90deg, var(--navy), var(--navy-mid));
  color: #fff; font-size: 13.5px; font-weight: 700;
  border-bottom: 2px solid var(--gold-dark);
}
.sb-card-body { padding: 14px 16px; }
.sb-card-body.p0 { padding: 0; }

/* Alert sidebar */
.sb-alert .sb-card-body p {
  font-size: 12.5px; color: var(--text-muted);
  margin-bottom: 12px; line-height: 1.5;
}
.sb-input {
  width: 100%; padding: 9px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 10px;
  font-family: 'Inter', sans-serif; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.sb-input:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,25,35,.1);
  outline: none;
}
.sb-subscribe-btn {
  width: 100%; padding: 10px;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff; font-size: 13px; font-weight: 700;
  border-radius: var(--radius-sm); cursor: pointer;
  border: none; font-family: 'Inter', sans-serif;
  transition: all var(--transition);
}
.sb-subscribe-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.sb-or {
  text-align: center; color: var(--text-muted);
  font-size: 12px; margin: 10px 0;
  position: relative;
}
.sb-or::before, .sb-or::after {
  content: ''; position: absolute; top: 50%;
  width: 40%; height: 1px; background: var(--border);
}
.sb-or::before { left: 0; }
.sb-or::after  { right: 0; }
.sb-tg-btn {
  display: block; text-align: center; width: 100%;
  padding: 9px; background: #0088cc; color: #fff;
  border-radius: var(--radius-sm); font-size: 13px;
  font-weight: 600; transition: all var(--transition);
}
.sb-tg-btn:hover { background: #006aaa; color: #fff; }

/* Quick Info List */
.quickinfo-list { display: flex; flex-direction: column; gap: 0; }
.quickinfo-list li {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 12.5px; gap: 8px;
}
.quickinfo-list li:last-child { border-bottom: none; }
.quickinfo-list li span:first-child { color: var(--text-muted); flex-shrink: 0; }
.quickinfo-list li strong { color: var(--text); text-align: right; }
.text-green { color: #27ae60 !important; }

/* Related List */
.related-list { display: flex; flex-direction: column; }
.related-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  text-decoration: none; color: var(--text);
}
.related-item:hover { background: var(--surface2); }
.related-icon { font-size: 18px; flex-shrink: 0; }
.related-title { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
.related-date  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Mini feed */
.mini-feed { display: flex; flex-direction: column; }
.mini-feed li { border-bottom: 1px solid var(--border); }
.mini-feed li:last-child { border-bottom: none; }
.mini-feed li a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 12.5px; color: var(--text);
  font-weight: 500; transition: background var(--transition);
}
.mini-feed li a:hover { background: var(--surface2); }
.mf-badge {
  flex-shrink: 0; font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 3px;
}
.mf-badge.new { background: rgba(46,204,113,.12); color: #1e8449; border: 1px solid rgba(46,204,113,.25); animation: badgePulseGreen 2s infinite; }
.mf-badge.hot { background: rgba(231,76,60,.12); color: #c0392b; border: 1px solid rgba(231,76,60,.25); }
.mf-badge:not(.new):not(.hot) { background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Responsive — Full Overhaul ─────────────── */

/* 1024px: Tablets */
@media (max-width: 1024px) {
  .subpage-grid { grid-template-columns: 1fr 270px; gap: 20px; }
  .job-hero-inner { grid-template-columns: 1fr 280px; gap: 24px; }
}

/* 900px: Tablets portrait */
@media (max-width: 900px) {
  .job-hero-inner { grid-template-columns: 1fr; }
  .job-hero-card  { display: none; }
  .subpage-grid   { grid-template-columns: 1fr; }
  .subpage-sidebar { position: static; top: auto; }

  .job-hero-meta-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Tables: enable horizontal scroll on tablet */
  .content-card-body.p0 { overflow-x: auto; }
  .info-table, .links-table { min-width: 500px; }
}

/* 768px: Large phones */
@media (max-width: 768px) {
  .job-hero         { padding: 32px 0 40px; }
  .job-hero-title   { font-size: clamp(20px, 6vw, 30px); }
  .job-hero-sub     { font-size: 13px; margin-bottom: 18px; }
  .jhtag            { font-size: 11px; padding: 3px 10px; }
  .job-hero-tags    { gap: 6px; margin-bottom: 10px; }
  .jhmeta-item      { padding: 8px 10px; gap: 8px; }
  .jhmeta-icon      { font-size: 16px; }
  .jhmeta-label     { font-size: 9.5px; }
  .jhmeta-val       { font-size: 12.5px; }
  .hero-action-btn  { padding: 9px 18px; font-size: 12.5px; }

  /* Breadcrumb */
  .breadcrumb       { font-size: 12px; gap: 4px; }
  .bc-current       { max-width: 200px; }

  /* Content cards */
  .content-card     { margin-bottom: 16px; border-radius: 12px; }
  .content-card-header h2 { font-size: 15px; }
  .content-card-header { padding: 11px 16px; }
  .content-card-body { padding: 14px 16px; }

  /* Tables scroll */
  .content-card-body.p0 { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .info-table, .links-table { min-width: 480px; }
  .info-table th, .info-table td { padding: 10px 12px; font-size: 13px; }

  /* Selection steps */
  .sel-step       { gap: 12px; }
  .sel-step-num   { width: 32px; height: 32px; font-size: 13px; }
  .sel-step-title { font-size: 13.5px; }
  .sel-step-desc  { font-size: 12.5px; }
  .sel-step-status { font-size: 11px; }
  .selection-steps::before { left: 15px; }

  /* How-to */
  .howto-list li  { font-size: 13.5px; gap: 10px; }
  .howto-num      { width: 24px; height: 24px; font-size: 11.5px; }

  /* Post tags */
  .post-tags-bar  { gap: 6px; }
  .post-tag       { font-size: 11.5px; padding: 3px 10px; }

  /* Sidebar */
  .sidebar-card   { border-radius: 12px; }
  .sb-card-header { padding: 11px 14px; font-size: 13px; }
  .sb-card-body   { padding: 12px 14px; }
  .quickinfo-list li { font-size: 12px; }
  .related-title  { font-size: 12px; }
  .mini-feed li a { font-size: 12px; padding: 9px 12px; }
  .mf-badge       { font-size: 8.5px; padding: 2px 6px; }
}

/* 600px: Phones */
@media (max-width: 600px) {
  .job-hero         { padding: 24px 0 32px; }
  .job-hero-title   { font-size: clamp(18px, 6vw, 26px); line-height: 1.2; }
  .job-hero-meta-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .jhmeta-item      { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; }
  .jhmeta-icon      { font-size: 14px; }
  .job-hero-actions { flex-direction: column; gap: 8px; }
  .hero-action-btn  { width: 100%; text-align: center; padding: 11px; border-radius: 10px; }

  /* Breadcrumb compact */
  .breadcrumb-bar   { padding: 8px 0; }
  .breadcrumb a:not(:last-of-type):not(:first-of-type) { display: none; }
  .bc-sep:not(:last-of-type) { display: none; }
  .bc-current       { max-width: 220px; font-size: 12px; }

  /* Content card header */
  .content-card-header { padding: 10px 14px; }
  .content-card-header h2 { font-size: 14px; }
  .links-updated    { font-size: 10.5px; }
  .content-card-body { padding: 12px 14px; }

  /* Tables — make scrollable with a hint */
  .content-card-body.p0 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .content-card-body.p0::after {
    content: '← scroll →';
    display: block;
    text-align: center;
    font-size: 10.5px;
    color: var(--text-muted);
    padding: 6px;
    background: var(--surface2);
    border-top: 1px solid var(--border);
  }
  .info-table { min-width: 420px; font-size: 12.5px; }
  .info-table th, .info-table td { padding: 9px 10px; }
  .links-table { min-width: 400px; font-size: 12.5px; }
  .links-table td { padding: 10px 12px; }
  .link-note { font-size: 10.5px; }
  .lbtn      { font-size: 11px; padding: 6px 12px; }

  /* Selection steps compact */
  .selection-steps::before { left: 13px; top: 30px; bottom: 30px; }
  .sel-step       { gap: 10px; padding: 10px 0; }
  .sel-step-num   { width: 28px; height: 28px; font-size: 12px; flex-shrink: 0; }
  .sel-step-title { font-size: 13px; }
  .sel-step-desc  { font-size: 12px; }

  /* Vacancy note */
  .vacancy-note   { font-size: 12px; padding: 10px 12px; }

  /* Quick info */
  .quickinfo-list li { font-size: 11.5px; padding: 8px 0; }
  .related-item   { padding: 10px 14px; }
  .related-title  { font-size: 11.5px; }
  .related-icon   { font-size: 16px; }

  /* Intro text */
  .intro-text p   { font-size: 13.5px; line-height: 1.65; }
}

/* 480px: Small phones */
@media (max-width: 480px) {
  .job-hero-title   { font-size: 18px; }
  .job-hero-sub     { font-size: 12px; }
  .jhtag            { font-size: 10px; padding: 3px 8px; }

  /* Meta row: 1-column stack */
  .job-hero-meta-row { grid-template-columns: 1fr; gap: 10px; }
  .jhmeta-val        { font-size: 12px; }

  /* Action buttons */
  .hero-action-btn   { font-size: 12px; padding: 10px; }

  /* Tables: further compress */
  .info-table { min-width: 360px; font-size: 12px; }
  .info-table th, .info-table td { padding: 8px 10px; }
  .links-table { min-width: 340px; font-size: 12px; }
  .link-btns  { flex-direction: column; gap: 5px; }
  .lbtn       { font-size: 10.5px; padding: 5px 10px; text-align: center; }

  /* Steps */
  .sel-step-num  { width: 26px; height: 26px; font-size: 11px; }
  .sel-step-desc { display: none; }
  .sel-step-title{ font-size: 12.5px; }

  /* Sidebar compress */
  .sb-subscribe-btn { font-size: 12.5px; padding: 9px; }
  .sb-tg-btn        { font-size: 12.5px; padding: 8px; }
  .sb-input         { font-size: 12.5px; padding: 8px 12px; }

  /* Post tags */
  .tags-label { display: none; }
}

/* 360px: Very small */
@media (max-width: 360px) {
  .job-hero-title { font-size: 16px; }
  .job-hero-meta-row { grid-template-columns: 1fr; gap: 8px; }
  .jhmeta-item    { padding: 6px 8px; }
  .info-table     { min-width: 320px; font-size: 11.5px; }
  .lbtn           { font-size: 10px; padding: 5px 8px; }
  .hero-action-btn{ font-size: 11.5px; }
  .breadcrumb-bar { padding: 6px 0; }
}

/* ── All Latest Jobs List Styles ─────────────── */
.all-jobs-intro-wrap {
  text-align: center;
  margin-top: 10px;
}
.all-jobs-intro {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.all-jobs-header {
  background: #8b2513;
  color: #ffffff;
  text-align: center;
  font-size: clamp(16px, 3.5vw, 22px);
  padding: 12px 16px;
  font-weight: 700;
  border-radius: 6px 6px 0 0;
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.all-jobs-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.all-jobs-list li {
  padding: 8px 12px 8px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid #8b2513;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  transition: all var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}
.all-jobs-list li::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: #8b2513;
  border-radius: 50%;
  transition: background var(--transition), transform var(--transition);
}
.all-jobs-list li:hover {
  transform: translateX(4px);
  border-left-color: var(--navy);
  background: var(--surface2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.all-jobs-list li:hover::before {
  background: var(--navy);
  transform: translateY(-50%) scale(1.3);
}
.all-jobs-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition);
}
.all-jobs-link:hover {
  color: var(--red);
  text-decoration: underline;
}
.all-jobs-date {
  color: var(--text);
  font-weight: 600;
}
.all-jobs-date-today {
  color: #ffffff;
  font-weight: 700;
  background: #e74c3c;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
}

/* Cascade Corrected Media Overrides for All Latest Jobs List */
@media (max-width: 600px) {
  .all-jobs-list { gap: 4px; }
  .all-jobs-list li { padding: 5px 10px 5px 18px; font-size: 11.5px; line-height: 1.35; }
  .all-jobs-list li::before { left: 8px; width: 4px; height: 4px; }
}
.all-jobs-date-today.start {
  background: #27ae60;
}

