/* Govt Jobs page — sits inside site sidebar layout */
.jobs-page.page-shell {
  max-width: none;
  padding: 1rem 0.85rem 2rem;
}
@media (min-width: 768px) {
  .jobs-page.page-shell {
    padding: 1.25rem 1.5rem 2.5rem;
  }
}

.jobs-page .jobs-page-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0A2518;
  margin: 0 0 2px;
  line-height: 1.2;
}
.jobs-page .jobs-page-sub {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 12px;
  line-height: 1.45;
}

.jobs-page .jobs-controls-panel {
  background: transparent;
  margin: 0 0 10px;
  padding: 0;
}
.jobs-page .nav-quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-bottom: 8px;
}
.jobs-page .nav-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  border: 1.5px solid #0A2518;
  background: #fff;
  color: #0A2518;
  line-height: 1.2;
  min-height: 38px;
  transition: background .15s, color .15s;
}
.jobs-page .nav-box.active,
.jobs-page .nav-box:hover {
  background: #0A2518;
  color: #fff;
}
.jobs-page .nav-box .nav-box-full { display: inline; }
.jobs-page .nav-box .nav-box-short { display: none; }

.jobs-page .board-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 5.2em;
  overflow: hidden;
  margin-bottom: 8px;
  align-content: flex-start;
}
.jobs-page .board-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
}
.jobs-page .board-tag.active {
  outline: 2px solid #0A2518;
  outline-offset: 1px;
}
.jobs-page .board-tag-all {
  background: #0A2518;
  color: #fff;
}
.jobs-page .board-upsc { background: #fef3c7; color: #92400e; }
.jobs-page .board-ssc { background: #dbeafe; color: #1e40af; }
.jobs-page .board-ibps { background: #ede9fe; color: #5b21b6; }
.jobs-page .board-railway { background: #ffedd5; color: #9a3412; }
.jobs-page .board-bank { background: #d1fae5; color: #065f46; }
.jobs-page .board-other { background: #e5e7eb; color: #374151; }

.jobs-page .board-chip {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.jobs-page .col-state-india { color: #1a4a6e; font-weight: 700; }

.jobs-page tr.board-section-row td {
  background: transparent !important;
  border: none !important;
  border-left: none !important;
  padding: 14px 4px 6px !important;
  text-decoration: none !important;
  color: #0A2518 !important;
}
.jobs-page tr.board-section-row:first-child td { padding-top: 6px !important; }
.jobs-page .board-section-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a4a6e;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.jobs-page .filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
}
.jobs-page .filter-form input[type="text"],
.jobs-page .filter-form select {
  font-family: inherit;
  font-size: 12px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  min-height: 38px;
  background: #fff;
}
.jobs-page .filter-form input[type="text"] { flex: 1 1 200px; min-width: 0; }
.jobs-page .filter-form select { flex: 0 1 160px; }
.jobs-page .filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.jobs-page .filter-actions select { flex: 0 1 160px; min-width: 0; }
.jobs-page .filter-form button {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: #C9A84C;
  color: #0A2518;
  cursor: pointer;
  min-height: 38px;
}
.jobs-page .filter-form button:hover { filter: brightness(1.05); }
.jobs-page .btn-all-jobs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: 8px;
  border: 1.5px solid #0A2518;
  background: #fff;
  color: #0A2518;
  text-decoration: none;
  white-space: nowrap;
}
.jobs-page .btn-all-jobs:hover {
  background: #0A2518;
  color: #fff;
}

.jobs-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
  width: 100%;
}
.jobs-page .stat-card {
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid transparent;
  box-shadow: 0 1px 3px rgba(10, 37, 24, 0.05);
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.jobs-page .stat-card__num {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.jobs-page .stat-card__label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}
.jobs-page .stat-notifications {
  background: #e8f1f8;
  border-color: #b8cfe0;
  border-left: 3px solid #1a4a6e;
}
.jobs-page .stat-notifications .stat-card__num { color: #1a4a6e; }
.jobs-page .stat-notifications .stat-card__label { color: #153a57; }
.jobs-page .stat-vacancies {
  background: #e9f2eb;
  border-color: #b8d4be;
  border-left: 3px solid #0A2518;
}
.jobs-page .stat-vacancies .stat-card__num { color: #0A2518; }
.jobs-page .stat-vacancies .stat-card__label { color: #0d331f; }
.jobs-page .stat-fresh {
  background: #edf8f1;
  border-color: #b8dfc8;
  border-left: 3px solid #1a7a4a;
}
.jobs-page .stat-fresh .stat-card__num { color: #1a7a4a; }
.jobs-page .stat-fresh .stat-card__label { color: #145c38; }
.jobs-page .stat-closing {
  background: #fff6ed;
  border-color: #f0cdb0;
  border-left: 3px solid #e65c00;
}
.jobs-page .stat-closing .stat-card__num { color: #c2410c; }
.jobs-page .stat-closing .stat-card__label { color: #9a3412; }

.jobs-page .jobs-table-scroll {
  overflow: visible;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}
.jobs-page .table-wrap { border: none; border-radius: 0; }
.jobs-page table.jobs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  table-layout: fixed;
}
.jobs-page .jobs-table thead th {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #1a4a6e;
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 8px 6px;
  vertical-align: middle;
  line-height: 1.3;
  font-size: 10.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
  border-right: 1px solid rgba(255,255,255,.22);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.jobs-page .jobs-table thead th:last-child { border-right: none; }
.jobs-page .jobs-table tbody td {
  padding: 8px 6px;
  vertical-align: middle;
  line-height: 1.3;
  border-right: 1px solid #d4dfd4;
  border-bottom: 1px solid #d4dfd4;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.jobs-page .jobs-table tbody td:last-child { border-right: none; }
.jobs-page .jobs-table tbody tr:last-child td { border-bottom: none; }
.jobs-page .cell-clip {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jobs-page .col-state { width: 8%; font-weight: 500; color: #0A2518; font-size: 11px; }
.jobs-page .col-post { width: 22%; font-weight: 500; }
.jobs-page .col-qual { width: 14%; font-size: 11px; color: #555; }
.jobs-page .col-board { width: 12%; font-size: 11px; }
.jobs-page .col-advt { width: 8%; font-size: 10.5px; color: #666; }
.jobs-page .col-pdate { width: 9%; font-size: 10.5px; }
.jobs-page .col-ldate { width: 9%; font-size: 10.5px; }
.jobs-page .col-details { width: 10%; text-align: center; }

.jobs-page .date-fresh-val { font-weight: 700; color: #1a7a4a; }
.jobs-page .date-fresh-label { display: block; font-size: 9px; color: #1a7a4a; font-weight: 600; text-decoration: none; }
.jobs-page .date-normal-grey { color: #666; }
.jobs-page .date-closing-val { font-weight: 700; color: #dc2626; }
.jobs-page .date-closing-label { display: block; font-size: 9px; color: #dc2626; font-weight: 600; text-decoration: none; }
.jobs-page .date-normal { color: #1a1a1a; }
.jobs-page .expired-label {
  display: block;
  font-style: italic;
  color: #dc2626;
  font-size: 9px;
  font-weight: 600;
  text-decoration: none;
}

.jobs-page tr.row-fresh td { background: #edf8f1 !important; }
.jobs-page tr.row-closing td { background: #fff6ed !important; }
.jobs-page tr.row-active-odd td { background: #ffffff !important; }
.jobs-page tr.row-active-even td { background: #eef3ee !important; }
.jobs-page tr.row-fresh td:first-child { border-left: 3px solid #1a7a4a; }
.jobs-page tr.row-closing td:first-child { border-left: 3px solid #e65c00; }
.jobs-page tr.row-active-odd td:first-child { border-left: 3px solid #0A2518; }
.jobs-page tr.row-active-even td:first-child { border-left: 3px solid #2563eb; }
.jobs-page tr.row-fresh:hover td,
.jobs-page tr.row-closing:hover td,
.jobs-page tr.row-active-odd:hover td,
.jobs-page tr.row-active-even:hover td { background: #e4efe4 !important; }

.jobs-page tr.row-expired td {
  color: #aaa;
  text-decoration: line-through;
  background: #f5f5f5 !important;
}
.jobs-page tr.row-expired td:first-child { border-left: 3px solid #991b1b; }
.jobs-page tr.row-expired td.col-ldate,
.jobs-page tr.row-expired td.col-details,
.jobs-page tr.row-expired td.col-pdate { text-decoration: none; }
.jobs-page tr.row-expired-first td { border-top: 2px dashed #f87171; }

.jobs-page .btn-details {
  display: inline-block;
  padding: 4px 7px;
  background: #0A2518;
  color: #fff !important;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  font-size: 10px;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}
.jobs-page .btn-details.btn-fresh { background: #1a7a4a; }
.jobs-page .btn-details.btn-closing { background: #e65c00; }
.jobs-page .btn-details.btn-expired-btn { background: #9ca3af; }
.jobs-page .btn-details:hover { opacity: 0.88; }
.jobs-page .na { color: #9ca3af; font-size: 12px; }
.jobs-page .err {
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}

@media (max-width: 767px) {
  .jobs-page.page-shell { padding: 0.85rem 0.65rem 2rem; padding-top: 3rem; }
  .jobs-page .jobs-page-title { font-size: 1.2rem; }
  .jobs-page .jobs-page-sub { font-size: 11px; margin-bottom: 10px; }
  .jobs-page .nav-quad { gap: 4px; margin-bottom: 6px; }
  .jobs-page .nav-box {
    padding: 7px 2px;
    font-size: 9.5px;
    min-height: 36px;
    border-radius: 6px;
  }
  .jobs-page .nav-box .nav-box-full { display: none; }
  .jobs-page .nav-box .nav-box-short { display: inline; }
  .jobs-page .board-tags { gap: 4px; max-height: 5em; margin-bottom: 6px; }
  .jobs-page .board-tag { padding: 3px 6px; font-size: 9.5px; }
  .jobs-page .board-section-title { font-size: 0.95rem; }
  .jobs-page .filter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .jobs-page .filter-form input[type="text"] {
    width: 100%;
    flex: none;
    font-size: 12px;
    min-height: 36px;
  }
  .jobs-page .filter-actions {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 6px;
  }
  .jobs-page .filter-actions select {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    min-height: 36px;
  }
  .jobs-page .filter-form button,
  .jobs-page .btn-all-jobs {
    flex: 0 0 auto;
    padding: 8px 12px;
    min-height: 36px;
    font-size: 11px;
  }
  .jobs-page .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 8px;
  }
  .jobs-page .stat-card {
    min-height: auto;
    padding: 5px 2px;
    border-left-width: 2px;
    gap: 1px;
  }
  .jobs-page .stat-card__num { font-size: 0.72rem; }
  .jobs-page .stat-card__label { font-size: 7px; }
  .jobs-page .col-qual,
  .jobs-page .col-advt,
  .jobs-page .col-pdate,
  .jobs-page .col-board,
  .jobs-page .col-ldate,
  .jobs-page .jobs-table thead th.col-qual,
  .jobs-page .jobs-table thead th.col-advt,
  .jobs-page .jobs-table thead th.col-pdate,
  .jobs-page .jobs-table thead th.col-board,
  .jobs-page .jobs-table thead th.col-ldate { display: none; }
  .jobs-page .jobs-table tbody td.col-qual,
  .jobs-page .jobs-table tbody td.col-advt,
  .jobs-page .jobs-table tbody td.col-pdate,
  .jobs-page .jobs-table tbody td.col-board,
  .jobs-page .jobs-table tbody td.col-ldate { display: none; }
  .jobs-page .col-state { width: 24%; font-size: 10px; }
  .jobs-page .col-post { width: 56%; font-size: 11px; }
  .jobs-page .col-details { width: 20%; }
  .jobs-page .jobs-table thead th,
  .jobs-page .jobs-table tbody td { padding: 6px 4px; }
  .jobs-page .cell-clip { -webkit-line-clamp: 3; }
  .jobs-page .btn-details {
    font-size: 9px;
    padding: 6px 4px;
    display: block;
    width: 100%;
  }
}
