/*
Theme Name:  RojgarSoochna Pro
Theme URI:   https://rojgarsoochna.online
Author:      RojgarSoochna
Author URI:  https://rojgarsoochna.online
Description: Professional government job alerts theme for India. 100% WordPress compatible, fully customizable via Customizer, SEO-ready, monetizable, mobile-first responsive design.
Version:     2.0.0
Requires at least: 5.9
Tested up to:      6.5
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       rojgarsoochna
Tags:              blog, news, custom-colors, custom-menu, featured-images, threaded-comments, two-columns, right-sidebar, translation-ready, responsive-layout
*/

/* =============================================
   CSS CUSTOM PROPERTIES (Customizer-controlled)
   ============================================= */
:root {
  --color-primary:    #C0392B;
  --color-primary-2:  #E74C3C;
  --color-primary-bg: #FEF2F2;
  --color-accent:     #E67E22;
  --color-navy:       #1A1A2E;
  --color-navy-2:     #2C2C54;
  --color-blue:       #2471A3;
  --color-green:      #1E8449;
  --color-text:       #2D3436;
  --color-text-2:     #636E72;
  --color-text-3:     #95A5A6;
  --color-border:     #E0E0E0;
  --color-bg:         #F5F5F5;
  --color-white:      #FFFFFF;
  --font-body:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-heading:     -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --border-radius:    6px;
  --shadow-sm:        0 1px 3px rgba(0,0,0,.08);
  --shadow-md:        0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:        0 8px 24px rgba(0,0,0,.12);
  --transition:       all .2s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 15px;
}

a { color: var(--color-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
  margin-bottom: .5em;
}
h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h2 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h3 { font-size: clamp(1rem, 2vw, 1.2rem); }

p { margin-bottom: 1em; }
ul, ol { padding-left: 1.5em; margin-bottom: 1em; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
th, td { padding: 10px 12px; text-align: left; border: 1px solid var(--color-border); font-size: 14px; }
th { background: var(--color-bg); font-weight: 600; color: var(--color-navy); }

blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  background: var(--color-primary-bg);
  margin: 1em 0;
  font-style: italic;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* =============================================
   ACCESSIBILITY
   ============================================= */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--color-primary); color: #fff;
  padding: 8px 16px; z-index: 9999; font-size: 13px;
  border-radius: 0 0 4px 0;
  transition: top .3s;
}
.skip-link:focus { top: 0; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); height: 1px;
  margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 20px);
}

#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1; }

.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 20px 0 40px;
  align-items: start;
}

.no-sidebar .content-area { grid-template-columns: 1fr; }

/* =============================================
   TOP BAR
   ============================================= */
#topbar {
  background: var(--color-navy);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 2px solid var(--color-primary);
}
#topbar .tb-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tb-left { font-weight: 500; }
.tb-right { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tb-right a { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 500; }
.tb-right a:hover { color: #fff; }
#rs-live-date { color: rgba(255,255,255,.5); font-size: 11px; }

/* =============================================
   HEADER
   ============================================= */
#masthead {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: nowrap;
}

/* Branding */
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-branding a { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.site-branding:hover { text-decoration: none; }
.branding-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.custom-logo { width: 140px; height: auto; border-radius: 4px; }
.site-name {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 800; color: #fff;
  line-height: 1; letter-spacing: -.5px;
  display: block;
}
.site-tagline {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  letter-spacing: .3px;
  display: block;
  margin-top: 2px;
}

/* Header search */
.header-search { flex: 1; max-width: 460px; margin-left: auto; }
.header-search .search-form {
  display: flex;
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.2);
  box-shadow: var(--shadow-sm);
}
.header-search .search-field {
  flex: 1; padding: 9px 14px;
  border: none; outline: none;
  font-size: 13px; color: var(--color-text);
  background: transparent;
  min-width: 0;
}
.header-search .search-submit {
  background: var(--color-accent); color: #fff;
  border: none; padding: 0 18px;
  cursor: pointer; font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: var(--transition);
}
.header-search .search-submit:hover { background: #ca6f1e; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 8px 12px;
  border-radius: 5px; cursor: pointer;
  font-size: 20px; line-height: 1;
  flex-shrink: 0;
  transition: var(--transition);
}
.menu-toggle:hover { background: rgba(255,255,255,.25); }
.menu-toggle[aria-expanded="true"] { background: rgba(255,255,255,.25); }

/* =============================================
   NAVIGATION
   ============================================= */
#site-navigation { background: var(--color-navy-2); }
.nav-wrap { position: relative; }

#primary-menu {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
#primary-menu::-webkit-scrollbar { display: none; }

#primary-menu > li { position: relative; flex-shrink: 0; }
#primary-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,.8);
  font-size: 13px; font-weight: 600;
  padding: 11px 15px;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a,
#primary-menu > li:focus-within > a {
  color: #fff;
  border-bottom-color: var(--color-accent);
  background: rgba(255,255,255,.06);
}

/* Dropdown */
#primary-menu .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  background: var(--color-navy);
  list-style: none;
  min-width: 200px;
  padding: 6px 0;
  box-shadow: var(--shadow-lg);
  z-index: 600;
  border-top: 2px solid var(--color-primary);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
}
#primary-menu > li:hover > .sub-menu,
#primary-menu > li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
#primary-menu .sub-menu li a {
  display: block; color: rgba(255,255,255,.8);
  padding: 9px 16px; font-size: 13px;
  text-decoration: none; border-left: 3px solid transparent;
  transition: var(--transition);
}
#primary-menu .sub-menu li a:hover {
  color: #fff; background: rgba(255,255,255,.06);
  border-left-color: var(--color-accent);
}

/* =============================================
   TICKER BAR
   ============================================= */
#ticker-bar {
  background: var(--color-primary-bg);
  border-bottom: 1px solid rgba(192,57,43,.2);
  padding: 7px 0;
  overflow: hidden;
}
.ticker-inner { display: flex; align-items: center; }
.ticker-label {
  background: var(--color-primary); color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 4px 12px; white-space: nowrap;
  letter-spacing: 1.5px; flex-shrink: 0;
  border-radius: 3px; margin-right: 14px;
  text-transform: uppercase;
}
.ticker-viewport { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex; white-space: nowrap;
  animation: rs-ticker 60s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-size: 13px; color: var(--color-text); padding-right: 48px; }
.ticker-item::before { content: '● '; color: var(--color-primary); font-size: 8px; margin-right: 5px; }
.ticker-item a { color: var(--color-primary); font-weight: 600; }
.ticker-item a:hover { text-decoration: underline; }
@keyframes rs-ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =============================================
   BREADCRUMBS
   ============================================= */
.rs-breadcrumbs {
  font-size: 12px; color: var(--color-text-3);
  padding: 10px 0 6px;
  display: flex; flex-wrap: wrap;
  gap: 4px; align-items: center;
}
.rs-breadcrumbs a { color: var(--color-text-3); }
.rs-breadcrumbs a:hover { color: var(--color-primary); }
.rs-breadcrumbs .sep { color: var(--color-border); }
.rs-breadcrumbs .current { color: var(--color-text-2); }

/* =============================================
   SECTION HEADING
   ============================================= */
.rs-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.rs-section-title {
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 800;
  color: var(--color-navy);
  border-left: 4px solid var(--color-primary);
  padding-left: 10px;
  line-height: 1.2;
}
.rs-section-count { font-size: 12px; color: var(--color-text-3); }

/* Category tabs */
.rs-cat-tabs {
  display: flex; flex-wrap: wrap;
  gap: 6px; margin-bottom: 14px;
}
.rs-cat-tab {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px; font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-2);
  transition: var(--transition);
  display: inline-block;
  white-space: nowrap;
}
.rs-cat-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.rs-cat-tab.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* =============================================
   AD ZONE (Monetization)
   ============================================= */
.rs-ad-zone {
  background: var(--color-white);
  border: 1px dashed var(--color-border);
  border-radius: var(--border-radius);
  padding: 10px;
  text-align: center;
  margin-bottom: 16px;
  font-size: 11px;
  color: var(--color-text-3);
  overflow: hidden;
}
.rs-ad-zone-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-3);
  margin-bottom: 6px;
}
/* Standard IAB ad sizes are responsive */
.rs-ad-728 { max-width: 728px; width: 100%; min-height: 90px; margin: 0 auto; }
.rs-ad-300 { max-width: 300px; width: 100%; min-height: 250px; }
.rs-ad-responsive { width: 100%; min-height: 90px; }

/* =============================================
   JOBS TABLE — Main listing
   ============================================= */
.jobs-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  width: 100%;
}

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: hidden;
}

/* Table header */
.jobs-table thead tr { background: var(--color-navy); }
.jobs-table thead th {
  color: #fff;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
  padding: 12px 12px;
  border: none;
  border-right: 1px solid rgba(255,255,255,.07);
  text-align: left; white-space: nowrap;
}
.jobs-table thead th:last-child { border-right: none; text-align: center; }

/* Column widths — desktop */
.col-title  { width: 42%; }
.col-cat    { width: 90px; }
.col-posts  { width: 60px; text-align: center; }
.col-date   { width: 105px; }
.col-posted { width: 90px; }
.col-action { width: 95px; }

/* Body rows */
.jobs-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background .1s;
}
.jobs-table tbody tr:last-child { border-bottom: none; }
.jobs-table tbody tr:hover { background: #fdf7f7 !important; }
.jobs-table tbody tr.row-alt { background: #fafafa; }
.jobs-table tbody tr.row-alt:hover { background: #faf4f4 !important; }

.jobs-table tbody td {
  padding: 12px 12px;
  border: none;
  border-right: 1px solid var(--color-border);
  vertical-align: middle;
  font-size: 13px;
  color: var(--color-text);
}
.jobs-table tbody td:last-child { border-right: none; }
.jobs-table tbody .td-title { vertical-align: top; padding-top: 13px; }

/* Title cell */
.job-title-row {
  display: flex; align-items: flex-start;
  gap: 6px; margin-bottom: 5px; flex-wrap: wrap;
}
.job-link {
  font-size: 14px; font-weight: 700;
  color: var(--color-navy);
  line-height: 1.35;
  text-decoration: none;
  transition: var(--transition);
}
.job-link:hover { color: var(--color-primary); }
.job-org { font-size: 12px; color: var(--color-blue); font-weight: 600; margin-bottom: 3px; }
.job-sub { font-size: 11.5px; color: var(--color-text-2); margin-bottom: 2px; }
.job-qual { font-size: 11px; color: var(--color-text-3); }

/* Fresh badges */
.fresh-badge {
  display: inline-block;
  font-size: 9px; font-weight: 800;
  padding: 2px 6px; border-radius: 3px;
  letter-spacing: .5px; white-space: nowrap;
  flex-shrink: 0; text-transform: uppercase;
  margin-top: 2px;
}
.badge-today { background: #16A34A; color: #fff; animation: rs-blink 1.5s infinite; }
.badge-new   { background: var(--color-primary); color: #fff; animation: rs-blink 2s infinite; }
@keyframes rs-blink { 0%,100%{opacity:1} 50%{opacity:.5} }

/* Category badges */
.cat-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  line-height: 1.3; text-align: center;
  white-space: nowrap;
}
.cat-ssc      { background:#EBF5FB; color:#1A5276; border:1px solid #AED6F1; }
.cat-upsc     { background:#F5EEF8; color:#6C3483; border:1px solid #D2B4DE; }
.cat-railway  { background:#EAF7FB; color:#117A65; border:1px solid #A2D9CE; }
.cat-bank     { background:#EAFAF1; color:#1E8449; border:1px solid #A9DFBF; }
.cat-defence  { background:#FDF2F2; color:#922B21; border:1px solid #F5B7B1; }
.cat-teaching { background:#FEF5E7; color:#D35400; border:1px solid #F9E79F; }
.cat-state    { background:#F4F6F7; color:#566573; border:1px solid #CCD1D1; }
.cat-default  { background:#F4F6F7; color:#566573; border:1px solid #CCD1D1; }

/* Other cells */
.td-cat, .td-posts, .td-date, .td-posted, .td-action { text-align: center; }

.job-vacancies {
  font-size: 18px; font-weight: 800;
  color: var(--color-green);
  display: block; line-height: 1;
}
.no-data { color: var(--color-text-3); font-size: 13px; }

/* Deadline */
.job-deadline {
  font-size: 12px; font-weight: 700;
  color: var(--color-primary);
  display: inline-block; line-height: 1.4;
}
.job-deadline.urgent {
  background: var(--color-primary); color: #fff;
  padding: 3px 8px; border-radius: 4px;
  animation: rs-blink 1.5s infinite;
}
.job-deadline.soon   { color: var(--color-accent); }
.job-deadline.closed { color: var(--color-text-3); text-decoration: line-through; font-size: 11px; }

.job-posted { font-size: 11px; color: var(--color-text-3); display: block; }

/* Action button */
.btn-details {
  display: inline-block;
  background: var(--color-primary); color: #fff !important;
  font-size: 12px; font-weight: 700;
  padding: 7px 13px; border-radius: 4px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: var(--transition);
  letter-spacing: .2px;
  border: none; cursor: pointer;
}
.btn-details:hover { background: var(--color-primary-2) !important; transform: translateY(-1px); }

/* Empty state */
.jobs-empty {
  text-align: center; padding: 50px 20px;
  color: var(--color-text-3);
}
.jobs-empty .empty-icon { font-size: 40px; margin-bottom: 12px; }

/* =============================================
   SINGLE POST
   ============================================= */
.single-job {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.job-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-2) 100%);
  padding: clamp(16px, 3vw, 28px);
  color: #fff;
}
.job-hero-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.hero-cat-tag {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
}
.hero-cat-tag:hover { background: rgba(255,255,255,.25); color: #fff; }
.job-hero h1 {
  font-size: clamp(17px, 3vw, 22px);
  color: #fff; margin-bottom: 10px; line-height: 1.3;
}
.job-hero-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.7);
  align-items: center;
}
.job-hero-meta span { display: flex; align-items: center; gap: 4px; }
.hero-deadline {
  background: rgba(255,255,255,.15);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.3);
}
.hero-deadline.urgent { background: rgba(192,57,43,.9); animation: rs-blink 1.5s infinite; }

/* Quick details */
.quick-details {
  background: #FAFAFA;
  border-bottom: 1px solid var(--color-border);
  padding: clamp(14px, 2.5vw, 20px);
}
.quick-details-title {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--color-text-2); margin-bottom: 14px;
}
.qd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.qd-item .qd-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: .6px; color: var(--color-text-3);
  font-weight: 600; margin-bottom: 3px;
}
.qd-item .qd-value { font-size: 14px; font-weight: 700; color: var(--color-navy); }
.qd-value.v-red   { color: var(--color-primary); }
.qd-value.v-green { color: var(--color-green); }
.qd-value.v-blue  { color: var(--color-blue); }

/* Entry content */
.entry-wrap { padding: clamp(16px, 3vw, 28px); }
.entry-content { line-height: 1.8; color: var(--color-text); }
.entry-content h2 {
  font-size: clamp(15px, 2vw, 17px); font-weight: 800;
  color: var(--color-navy); margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: flex; align-items: center; gap: 8px;
}
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { margin: 18px 0 10px; font-size: 16px; }
.entry-content table th { background: var(--color-navy); color: #fff; border-color: rgba(255,255,255,.1); }
.entry-content table tr:nth-child(even) td { background: #fafafa; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

/* Info boxes */
.info-box {
  border-radius: var(--border-radius);
  padding: clamp(14px, 2vw, 18px);
  margin: 18px 0;
}
.info-box-head {
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 12px;
}
.ib-dates { background: #FEF2F2; border: 1px solid #FECACA; }
.ib-dates .info-box-head { color: var(--color-primary); }
.ib-links { background: #F0FDF4; border: 1px solid #BBF7D0; }
.ib-links .info-box-head { color: var(--color-green); }

.date-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(192,57,43,.1);
  font-size: 13px;
}
.date-row:last-child { border-bottom: none; }
.date-key { color: var(--color-text-2); }
.date-val { font-weight: 700; color: var(--color-primary); }

.apply-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--color-green); color: #fff !important;
  padding: 9px 20px; border-radius: 5px;
  font-size: 13px; font-weight: 700;
  text-decoration: none !important;
  margin: 0 8px 8px 0;
  transition: var(--transition);
}
.apply-btn:hover { background: #196F3D !important; transform: translateY(-1px); }
.apply-btn.blue { background: var(--color-blue); }
.apply-btn.blue:hover { background: #1A5276 !important; }
.apply-btn.gray { background: var(--color-text-3); }

.disclaimer {
  background: #F8F9FA; border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 12px 16px; font-size: 12px;
  color: var(--color-text-3); margin-top: 20px; line-height: 1.6;
}

/* =============================================
   COMMENTS
   ============================================= */
.comments-area {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: clamp(16px, 3vw, 28px);
  margin-top: 20px; box-shadow: var(--shadow-sm);
}
.comments-title, .comment-reply-title {
  font-size: 17px; font-weight: 700;
  color: var(--color-navy);
  border-left: 4px solid var(--color-primary);
  padding-left: 10px; margin-bottom: 20px;
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.comment-list .comment:last-child { border-bottom: none; }
.comment-author .avatar { border-radius: 50%; margin-right: 10px; }
.comment-meta { font-size: 12px; color: var(--color-text-3); margin-bottom: 8px; }
.comment-body p { font-size: 14px; }
.reply a { font-size: 12px; color: var(--color-blue); font-weight: 500; }

/* Comment form */
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 5px; font-size: 14px;
  font-family: inherit; margin-bottom: 14px;
  transition: var(--transition); outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
  background: var(--color-primary); color: #fff;
  border: none; padding: 10px 28px;
  border-radius: 5px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: var(--transition);
}
.comment-form .submit:hover { background: var(--color-primary-2); transform: translateY(-1px); }

/* =============================================
   SIDEBAR & WIDGETS
   ============================================= */
#secondary { position: sticky; top: 80px; }

.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.widget-title {
  background: var(--color-navy);
  color: #fff; font-size: 13px; font-weight: 700;
  padding: 10px 14px; margin: 0;
  text-transform: uppercase; letter-spacing: .5px;
  display: flex; align-items: center; gap: 6px;
}
.widget-body { padding: 12px 14px; }
/* close open widget-body from functions */
.widget > .widget-body { }

/* Recent jobs list */
.sj-list { list-style: none; padding: 0; margin: 0; }
.sj-list li {
  display: flex; gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}
.sj-list li:last-child { border-bottom: none; }
.sj-dot { width: 7px; height: 7px; background: var(--color-primary); border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.sj-text { min-width: 0; }
.sj-title { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 2px; }
.sj-title a { color: var(--color-navy); }
.sj-title a:hover { color: var(--color-primary); }
.sj-meta { font-size: 11px; color: var(--color-text-3); }
.sj-ld { color: var(--color-primary); font-weight: 600; }

/* Category widget */
.rs-cat-list { list-style: none; padding: 0; margin: 0; }
.rs-cat-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}
.rs-cat-list li:last-child { border-bottom: none; }
.rs-cat-list li a { color: var(--color-text); font-weight: 500; }
.rs-cat-list li a:hover { color: var(--color-primary); }
.rs-cat-count {
  background: var(--color-bg);
  color: var(--color-text-3);
  font-size: 11px; font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

/* Alert widget */
.rs-alert-form input[type="email"] {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 5px; font-size: 13px;
  font-family: inherit; margin-bottom: 8px; outline: none;
}
.rs-alert-form input:focus { border-color: var(--color-primary); }
.rs-alert-btn {
  width: 100%; background: var(--color-primary); color: #fff;
  border: none; padding: 10px;
  border-radius: 5px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: var(--transition);
}
.rs-alert-btn:hover { background: var(--color-primary-2); }

/* WordPress default widgets */
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 7px 0; border-bottom: 1px solid var(--color-border); font-size: 13px; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--color-text); }
.widget ul li a:hover { color: var(--color-primary); }
.widget p { font-size: 13px; color: var(--color-text-2); line-height: 1.6; margin: 0; }
.widget select { width: 100%; padding: 8px; border: 1px solid var(--color-border); border-radius: 4px; }
.widget input[type="text"],
.widget input[type="search"] {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px; font-size: 13px; font-family: inherit; outline: none;
}
.widget input:focus { border-color: var(--color-primary); }
.widget .tagcloud a {
  display: inline-block;
  padding: 3px 10px; margin: 3px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 3px; font-size: 12px !important;
  color: var(--color-text-2);
}
.widget .tagcloud a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* =============================================
   PAGE TEMPLATE
   ============================================= */
.page-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
}
.page-wrap .entry-title {
  font-size: clamp(20px, 3vw, 26px);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 20px;
}

/* =============================================
   PAGINATION
   ============================================= */
.rs-pagination {
  display: flex; align-items: center;
  justify-content: center;
  gap: 4px; padding: 20px 0; flex-wrap: wrap;
}
.rs-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 5px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--color-border);
  color: var(--color-text-2); background: var(--color-white);
  text-decoration: none; transition: var(--transition);
}
.rs-pagination .page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary); }
.rs-pagination .page-numbers.current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.rs-pagination .page-numbers.dots { border: none; background: transparent; }

/* =============================================
   POST NAVIGATION
   ============================================= */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 16px 20px;
  border-top: 1px solid var(--color-border);
  background: #FAFAFA;
}
.post-nav a {
  font-size: 13px; color: var(--color-text-2);
  text-decoration: none; line-height: 1.4;
}
.post-nav a:hover { color: var(--color-primary); }
.post-nav .nav-label { font-size: 10px; color: var(--color-text-3); display: block; margin-bottom: 3px; text-transform: uppercase; letter-spacing: .5px; }
.post-nav .nav-title { font-weight: 600; color: var(--color-navy); font-size: 13px; }
.post-nav .nav-next { text-align: right; }

/* =============================================
   FOOTER
   ============================================= */
#colophon {
  background: var(--color-navy);
  color: #aaa; margin-top: 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px; padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-about p { font-size: 13px; line-height: 1.7; color: #999; }
.footer-col h3 {
  color: #fff; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 14px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #999; font-size: 13px; transition: var(--transition); text-decoration: none; }
.footer-col ul li a:hover { color: #fff; }
.site-info {
  padding: 16px 0;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: #666;
}
.site-info a { color: #888; text-decoration: none; }
.site-info a:hover { color: #fff; }

/* =============================================
   WORDPRESS ALIGNMENT & BLOCKS
   ============================================= */
.alignleft  { float: left; margin: 5px 20px 20px 0; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.aligncenter{ display: block; margin: 0 auto 20px; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); max-width: 100vw; }
.alignwide  { width: calc(100% + 40px); margin-left: -20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--color-text-3); text-align: center; padding: 5px 0; }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-item { flex: 1; min-width: 150px; }

/* Gutenberg blocks */
.wp-block-image { margin: 1em 0; }
.wp-block-quote { margin: 1em 0; }
.wp-block-code { background: #1e1e1e; color: #abb2bf; border-radius: 6px; padding: 16px; overflow-x: auto; font-size: 13px; }
.wp-block-separator { border: none; border-top: 2px solid var(--color-border); margin: 24px 0; }

/* =============================================
   RESPONSIVE — MOBILE FIRST
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .content-area { grid-template-columns: 1fr 260px; gap: 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .col-posted { display: none; }
}

/* Phablet / large phone */
@media (max-width: 768px) {
  .content-area { grid-template-columns: 1fr; }
  #secondary { position: static; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .header-search { display: none; }
  .header-search.mobile-open { display: block; width: 100%; order: 3; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  #primary-menu { display: none; flex-direction: column; }
  #primary-menu.is-open { display: flex; }
  #primary-menu > li > a { border-bottom: 1px solid rgba(255,255,255,.06); border-left: 3px solid transparent; padding: 12px 16px; }
  #primary-menu > li.current-menu-item > a { border-left-color: var(--color-accent); border-bottom-color: transparent; }
  #primary-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: none; background: rgba(0,0,0,.2); }
  .footer-top { grid-template-columns: 1fr; }
  .rs-cat-tabs { gap: 4px; }
  .rs-cat-tab { font-size: 11px; padding: 4px 10px; }
  /* Jobs table → card layout */
  .jobs-table thead { display: none; }
  .jobs-table, .jobs-table tbody, .jobs-table tr, .jobs-table td { display: block; width: 100% !important; }
  .jobs-table tbody tr { padding: 12px 14px 14px; border-bottom: 3px solid var(--color-bg); }
  .jobs-table tbody td { border: none; padding: 2px 0; text-align: left !important; }
  .jobs-table tbody .td-title { padding-top: 0; }
  .td-cat, .td-posts, .td-date { display: inline-block !important; width: auto !important; margin-right: 10px; vertical-align: middle; }
  .td-posted { display: none !important; }
  .td-action { margin-top: 10px; display: block !important; }
  .btn-details { display: inline-block; }
  .qd-grid { grid-template-columns: 1fr 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .nav-next { text-align: left; }
  .tb-right { display: none; }
  #rs-live-date { display: none; }
}

/* Small phone */
@media (max-width: 480px) {
  .site-name { font-size: 18px; }
  .site-tagline { display: none; }
  .footer-top { padding: 24px 0; }
  .rs-section-heading { flex-direction: column; align-items: flex-start; }
  .col-cat { display: none; }
  .qd-grid { grid-template-columns: 1fr; }
}

/* Print */
@media print {
  #masthead, #site-navigation, #ticker-bar, #topbar, #secondary,
  #colophon, .menu-toggle, .rs-cat-tabs, .rs-pagination,
  .apply-btn, .btn-details, .rs-ad-zone { display: none !important; }
  .content-area { grid-template-columns: 1fr; }
  .entry-content { font-size: 13px; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 11px; }
}

/* =============================================
   OVERFLOW FIXES — prevent "Not Mentioned" overflow
   ============================================= */

/* All td cells: clip overflow, never break layout */
.jobs-table tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Category cell — truncate long text */
.td-cat { max-width: 90px; }
.cat-badge {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 84px;
}

/* Posts cell — "Not Mentioned" → show as — */
.td-posts { max-width: 60px; }
.job-vacancies { font-size: 16px; }

/* Last date cell — prevent two badges overlapping */
.td-date { max-width: 105px; }
.job-deadline {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  max-width: 100px;
}
/* urgent badge sizing */
.job-deadline.urgent {
  font-size: 11px;
  padding: 2px 6px;
}

/* Posted cell */
.td-posted { max-width: 90px; }
.job-posted { white-space: nowrap; font-size: 11px; }

/* Action button — always fits */
.td-action { max-width: 95px; }
.btn-details {
  font-size: 11px;
  padding: 6px 10px;
  white-space: nowrap;
  display: block;
  text-align: center;
}

/* Title cell — prevent very long titles from exploding layout */
.td-title { max-width: 0; } /* forces table-layout:fixed to respect col-title width */
.job-link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
}
.job-org { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-qual { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Header fix — Logo not cut off */
#masthead { overflow: visible; }
.header-inner { min-height: 64px; padding: 10px 0; }
.site-name { font-size: clamp(15px, 2vw, 21px); white-space: nowrap; }

/* Fix: header search full-width on medium screens */
@media (max-width: 900px) and (min-width: 769px) {
  .header-search { max-width: 300px; }
  .col-posted { display: none; }
}

/* Fix: posted column hidden on anything under 900px */
@media (max-width: 900px) {
  .col-posted, .td-posted { display: none; }
}

/* Fix: category column hidden on small laptops if needed */
@media (max-width: 700px) {
  .col-cat, .td-cat { display: none; }
}
