/* ==========================================================================
   GovNet Recruite Theme — front.css
   Adzuna-style job board for GovNet Jobs (jobs.govnet.co.za)
   All styles for the complete frontend UI.
   ========================================================================== */

/* ─── 1. CSS RESET & CUSTOM PROPERTIES ──────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --green: #2ea84a;
  --green-dark: #237a38;
  --green-light: #e8f5eb;
  --green-xlight: #f2fbf4;
  --blue-link: #1a76d2;
  --text-primary: #111;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  --bg: #f5f5f5;
  --bg-white: #fff;
  --nav-h: 60px;
  --sidebar-w: 260px;
  --font: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: var(--font);
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}

/* Utility */
.desktop-only { display: flex !important; }
.mobile-only  { display: none !important; }

/* ─── 2. NAVBAR (DESKTOP) ────────────────────────────────────────────────── */

.navbar {
  height: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  color: #0057ff;
  letter-spacing: -0.8px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  margin-left: 20px;
}

.nav-link {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: #f5f5f5;
  text-decoration: none;
}

.nav-link.active {
  color: var(--green);
}

.nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-primary);
  transition: all 0.15s;
  cursor: pointer;
  font-family: var(--font);
}

.nav-btn:hover {
  border-color: #aaa;
  background: #fafafa;
}

.nav-btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.nav-btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* ─── 3. MOBILE NAV ──────────────────────────────────────────────────────── */

.m-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 200;
}

.m-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  color: #0057ff;
  letter-spacing: -0.5px;
}

.m-nav-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

.m-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.m-hamburger span {
  width: 22px;
  height: 2px;
  background: #222;
  border-radius: 1px;
  display: block;
}

.m-nav-icon {
  width: 22px;
  height: 22px;
  stroke: #222;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* ─── 4. HERO ────────────────────────────────────────────────────────────── */

.hero {
  background: #fff;
  padding: 70px 40px 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--green);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-search {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s;
}

.hero-search:focus-within {
  border-color: var(--green);
}

.hs-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 14px 20px;
  border-right: 1px solid var(--border);
}

.hs-field-icon {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  flex-shrink: 0;
}

.hs-input {
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text-primary);
  flex: 1;
  background: transparent;
  min-width: 0;
}

.hs-input::placeholder {
  color: #bbb;
}

.hs-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  cursor: pointer;
  min-width: 200px;
}

.hs-select-icon {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.hs-select {
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text-secondary);
  cursor: pointer;
  background: transparent;
  flex: 1;
  min-width: 0;
}

.hs-btn {
  padding: 0 32px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  height: 56px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  font-family: var(--font);
}

.hs-btn:hover {
  background: var(--green-dark);
}

.hero-stats {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  max-width: 500px;
  margin: 28px auto 0;
  overflow: hidden;
  background: #fff;
}

.h-stat {
  flex: 1;
  padding: 14px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.h-stat:last-child {
  border-right: none;
}

.h-stat-n {
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
}

.h-stat-l {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── 5. POPULAR SEARCHES ────────────────────────────────────────────────── */

.pop-searches {
  padding: 28px 40px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ps-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ps-chip {
  padding: 6px 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-block;
}

.ps-chip:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-xlight);
  text-decoration: none;
}

/* ─── 6. CATEGORY GRID ───────────────────────────────────────────────────── */

.categories {
  padding: 50px 40px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--text-primary);
  font-weight: 400;
}

.section-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

.section-see-all:hover {
  text-decoration: underline;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.cat-card:hover {
  border-color: var(--green);
  background: var(--green-xlight);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 168, 74, 0.1);
  text-decoration: none;
}

.cat-icon {
  width: 36px;
  height: 36px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.8;
}

.cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.cat-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── 7. FEATURED JOBS STRIP ─────────────────────────────────────────────── */

.featured-strip {
  padding: 0 40px 50px;
}

.jobs-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.strip-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.strip-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(46, 168, 74, 0.1);
  text-decoration: none;
}

.strip-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.strip-logo {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  flex-shrink: 0;
  background: #f9f9f9;
  overflow: hidden;
}

.strip-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.strip-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.35;
}

.strip-co {
  font-size: 12px;
  color: var(--text-muted);
}

.strip-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.strip-pill {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
}

.sp-green {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
}

.sp-gray {
  background: #f0f0f0;
  color: #666;
}

.strip-salary {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 10px;
}

/* ─── 8. LISTING PAGE LAYOUT ─────────────────────────────────────────────── */

.listing-page {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - var(--nav-h));
  align-items: start;
}

/* ─── 9. SIDEBAR FILTERS ─────────────────────────────────────────────────── */

.sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 20px;
  position: sticky;
  top: var(--nav-h);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.sb-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  margin-top: 20px;
}

.sb-title:first-child {
  margin-top: 0;
}

.sb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.15s;
  text-decoration: none;
}

.sb-item:hover {
  background: #f5f5f5;
  color: var(--text-primary);
  text-decoration: none;
}

.sb-item.active {
  background: var(--green-light);
  color: var(--green);
  font-weight: 600;
}

.sb-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-check {
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.sb-item.active .sb-check {
  background: var(--green);
  border-color: var(--green);
}

.sb-check-tick {
  width: 9px;
  height: 9px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sb-count {
  font-size: 11px;
  color: var(--text-muted);
  background: #f0f0f0;
  padding: 1px 7px;
  border-radius: 10px;
}

.sb-item.active .sb-count {
  background: rgba(46, 168, 74, 0.15);
  color: var(--green);
}

.sb-more {
  font-size: 12px;
  color: var(--green);
  padding: 4px 8px;
  cursor: pointer;
  display: block;
  margin-top: 2px;
  text-decoration: none;
}

.sb-more:hover {
  text-decoration: underline;
}

.sb-divider {
  height: 1px;
  background: var(--border-light);
  margin: 16px 0;
}

.salary-range {
  padding: 4px 8px;
}

.salary-inputs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.sal-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-family: var(--font);
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}

.sal-input:focus {
  border-color: var(--green);
}

/* ─── 10. RESULTS BAR ────────────────────────────────────────────────────── */

.main-content {
  padding: 20px 24px;
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.results-count {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.results-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 6px;
  font-weight: 400;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.sort-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text-primary);
  background: #fff;
  outline: none;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--green);
}

/* ─── 11. ACTIVE FILTER CHIPS ────────────────────────────────────────────── */

.active-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.af-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 12px;
  background: var(--green-light);
  border: 1px solid #b8dfc0;
  border-radius: 20px;
  font-size: 12px;
  color: var(--green-dark);
  font-weight: 500;
}

.af-remove {
  width: 14px;
  height: 14px;
  background: rgba(46, 168, 74, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  color: var(--green-dark);
}

.af-clear {
  font-size: 12px;
  color: var(--green);
  cursor: pointer;
  padding: 4px 6px;
  text-decoration: none;
}

.af-clear:hover {
  text-decoration: underline;
}

/* ─── 12. EMAIL ALERT BANNER ─────────────────────────────────────────────── */

.email-banner {
  background: var(--green-xlight);
  border: 1px solid #c8e6cc;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.eb-icon {
  width: 36px;
  height: 36px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eb-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.8;
}

.eb-text {
  flex: 1;
}

.eb-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.eb-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.eb-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.eb-input {
  border: 1px solid #c8e6cc;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--font);
  background: #fff;
  outline: none;
  width: 220px;
}

.eb-input:focus {
  border-color: var(--green);
}

.eb-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
}

.eb-btn:hover {
  background: var(--green-dark);
}

/* ─── 13. AVERAGE SALARY BAR ─────────────────────────────────────────────── */

.avg-salary-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.avg-salary-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--green);
}

/* ─── 14. JOB CARDS ──────────────────────────────────────────────────────── */

.job-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.job-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-bottom: none;
  text-decoration: none;
  color: inherit;
}

.job-card:first-child {
  border-radius: 10px 10px 0 0;
}

.job-card:last-child {
  border-radius: 0 0 10px 10px;
  border-bottom: 1px solid var(--border);
}

.job-card:only-child {
  border-radius: 10px;
  border-bottom: 1px solid var(--border);
}

.job-card:hover {
  background: #fafafa;
  border-color: #d0d0d0;
  z-index: 1;
  position: relative;
  text-decoration: none;
}

.job-card.featured {
  border-left: 3px solid var(--green);
  padding-left: 17px;
}

.jc-source-logo {
  width: 60px;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  color: #666;
  text-align: center;
  line-height: 1.3;
  padding: 4px;
  overflow: hidden;
}

.jc-source-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jc-body {
  flex: 1;
  min-width: 0;
}

.jc-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue-link);
  margin-bottom: 6px;
  line-height: 1.35;
  display: block;
  text-decoration: none;
}

.jc-title:hover {
  text-decoration: underline;
  color: var(--blue-link);
}

.jc-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.jc-icon {
  width: 14px;
  height: 14px;
  stroke: #888;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.jc-meta-text {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.jc-salary {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 6px;
}

.jc-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.jc-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.jc-tag-top {
  background: var(--green);
  color: #fff;
}

.jc-tag-ext {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid #c8e6cc;
}

.jc-tag-gray {
  background: #f0f0f0;
  color: #666;
}

.jc-tag-new {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffe0b2;
}

.jc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
}

.jc-heart {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}

.jc-heart:hover {
  border-color: var(--green);
  background: var(--green-xlight);
}

.jc-heart svg {
  width: 17px;
  height: 17px;
  stroke: #bbb;
  fill: none;
  stroke-width: 1.8;
}

.jc-heart:hover svg {
  stroke: var(--green);
}

.jc-date {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── 15. PAGINATION ─────────────────────────────────────────────────────── */

.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 20px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  color: var(--text-secondary);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  text-decoration: none;
}

.page-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-xlight);
  text-decoration: none;
}

.page-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 700;
}

.page-ellipsis {
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── 16. DETAIL LAYOUT ──────────────────────────────────────────────────── */

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 40px;
  align-items: start;
}

.detail-main {}

.detail-breadcrumb {
  font-size: 12px;
  color: var(--green);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-breadcrumb span {
  color: var(--text-muted);
}

.detail-breadcrumb a {
  color: var(--green);
  text-decoration: none;
}

.detail-breadcrumb a:hover {
  text-decoration: underline;
}

.detail-breadcrumb .bc-sep {
  color: #aaa;
}

.detail-hero {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 30px;
  margin-bottom: 20px;
}

.dh-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.dh-logo {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #444;
  flex-shrink: 0;
  background: #f9f9f9;
  overflow: hidden;
}

.dh-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dh-info {
  flex: 1;
  min-width: 0;
}

.dh-title {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 8px;
  font-weight: 400;
}

.dh-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.dh-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}

.dh-meta-icon {
  width: 16px;
  height: 16px;
  stroke: #888;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.dh-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dh-tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
}

.dt-full {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
}

.dt-gray {
  background: #f0f0f0;
  color: #666;
}

.dt-new {
  background: #fff3e0;
  color: #e65100;
  font-weight: 600;
}

.dh-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.dh-heart {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s;
}

.dh-heart:hover {
  border-color: var(--green);
  background: var(--green-xlight);
}

.dh-heart svg {
  width: 20px;
  height: 20px;
  stroke: #bbb;
  fill: none;
  stroke-width: 1.8;
}

.dh-share {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
}

.dh-share:hover {
  color: var(--green);
}

.dh-salary {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 6px;
}

.apply-bar {
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.apply-bar-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
  text-decoration: none;
  display: inline-block;
}

.apply-bar-btn:hover {
  background: var(--green-dark);
  text-decoration: none;
  color: #fff;
}

.apply-bar-txt {
  display: none;
}

.apply-bar-btn-outline {
  background: #0057ff !important;
  color: #fff !important;
  border: none !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
}

.apply-bar-btn-outline:hover {
  background: #0046cc !important;
  color: #fff !important;
}

/* breadcrumb bar */
.detail-breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 40px;
}

.detail-breadcrumb .bc-current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ─── 17. DETAIL BODY ────────────────────────────────────────────────────── */

.detail-body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  overflow: hidden;
}

.db-section {
  margin-bottom: 28px;
}

.db-section:last-child {
  margin-bottom: 0;
}

.db-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.db-text {
  font-size: 14px;
  color: #444;
  line-height: 1.75;
}

.db-text p {
  margin-bottom: 10px;
}

.db-text p:last-child {
  margin-bottom: 0;
}

.db-text ul,
.db-text ol {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 10px;
}

.db-text ol {
  list-style: decimal;
}

.db-text li {
  margin-bottom: 4px;
}

.db-text h2,
.db-text h3,
.db-text h4 {
  margin-bottom: 8px;
  margin-top: 16px;
  color: var(--text-primary);
}

.db-text strong {
  font-weight: 700;
  color: var(--text-primary);
}

.skill-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.skill-chip {
  padding: 5px 14px;
  background: var(--green-light);
  border: 1px solid #c8e6cc;
  border-radius: 20px;
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 500;
}

.skill-chip-gray {
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  color: #555;
}

/* Share buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
}

.share-btn:hover {
  opacity: 0.85;
  text-decoration: none;
  transform: scale(1.1);
}

.share-fb { background: #1877f2; }
.share-x { background: #000; }
.share-linkedin { background: #0a66c2; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #0088cc; }
.share-copy { background: #6c757d; }

/* Scam warning */
.scam-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85em;
  color: #856404;
  background: #fff3cd;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 20px;
  line-height: 1.5;
}

.scam-warning svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Detail action links */
.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.detail-action-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
  background: #fff;
}

.detail-action-link:hover {
  border-color: var(--green);
  color: var(--green);
  text-decoration: none;
}

.detail-action-link.promote {
  border-color: #ffd700;
  color: #b8860b;
}

.detail-action-link.promote:hover {
  background: #fffde7;
}

.detail-action-link.report {
  color: #c5221f;
  border-color: #e0e0e0;
}

.detail-action-link.report:hover {
  border-color: #c5221f;
  background: #fef2f2;
}

/* Custom fields in detail body */
.db-custom-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.db-custom-fields .ds-row {
  width: 100%;
}

/* ─── 18. DETAIL SIDEBAR (STICKY RIGHT COLUMN) ───────────────────────────── */

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  padding-left: 24px;
}

.ds-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.ds-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.ds-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.ds-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ds-label {
  color: var(--text-muted);
}

.ds-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.ds-apply-btn {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.15s;
  font-family: var(--font);
  text-align: center;
  display: block;
  text-decoration: none;
}

.ds-apply-btn:hover {
  background: var(--green-dark);
  text-decoration: none;
  color: #fff;
}

.ds-save-btn {
  width: 100%;
  background: #fff;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  padding: 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font);
}

.ds-save-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.ds-save-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* Company card in sidebar */
.co-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.co-logo {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  background: #f9f9f9;
  flex-shrink: 0;
  overflow: hidden;
}

.co-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.co-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text-primary);
}

.co-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.co-link {
  font-size: 12px;
  color: var(--green);
  display: block;
  margin-top: 5px;
  font-weight: 600;
  text-decoration: none;
}

.co-link:hover {
  text-decoration: underline;
}

/* Alert card in sidebar */
.alert-card {
  background: var(--green-xlight);
  border: 1px solid #c8e6cc;
  border-radius: 12px;
  padding: 18px;
}

.alert-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.alert-card-title svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.8;
}

.alert-card-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.alert-card-input {
  width: 100%;
  border: 1px solid #c8e6cc;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--font);
  background: #fff;
  outline: none;
  margin-bottom: 7px;
}

.alert-card-input:focus {
  border-color: var(--green);
}

.alert-card-btn {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}

.alert-card-btn:hover {
  background: var(--green-dark);
}

/* Popular searches in detail sidebar */
.pop-sect {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.ps-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.ps-cat-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 7px;
  margin-top: 12px;
}

.ps-cat-title:first-of-type {
  margin-top: 0;
}

.ps-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ps-lnk {
  font-size: 13px;
  color: var(--green);
  padding: 3px 0;
  cursor: pointer;
  text-decoration: none;
}

.ps-lnk:hover {
  text-decoration: underline;
}

/* ─── 19. SIMILAR JOBS (DESKTOP) ─────────────────────────────────────────── */

.detail-similar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
}

.ds-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.sim-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.sim-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sim-item:first-of-type {
  padding-top: 0;
}

.sim-item:hover {
  text-decoration: none;
}

.sim-job-title {
  font-size: 13px;
  color: var(--blue-link);
  margin-bottom: 3px;
  line-height: 1.35;
}

.sim-job-title:hover {
  text-decoration: underline;
}

.sim-salary {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.sim-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── 20. MOBILE FILTER PILLS ────────────────────────────────────────────── */

.filter-row {
  display: none;
  gap: 7px;
  padding: 9px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.fpill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1.5px solid #d0d0d0;
  border-radius: 20px;
  font-size: 13px;
  color: #444;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  font-weight: 500;
  font-family: var(--font);
  flex-shrink: 0;
}

.fpill.on {
  border-color: var(--green);
  color: var(--green);
  background: #f0fbf3;
}

.fpill-caret {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* Mobile filter dropdown panel */
.filter-panel {
  background: #fff;
  border-bottom: 2px solid #eee;
  padding: 14px;
  display: none;
}

.filter-panel.open {
  display: block;
}

.filter-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.filter-panel-option {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  cursor: pointer;
  color: #333;
  align-items: center;
}

.filter-panel-option:last-of-type {
  border-bottom: none;
}

.filter-panel-count {
  color: var(--green);
  font-weight: 700;
}

.filter-panel-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.filter-panel-clear {
  flex: 1;
  background: #fff;
  border: 1.5px solid #ccc;
  color: #555;
  padding: 11px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font);
}

.filter-panel-apply {
  flex: 2;
  background: var(--green);
  border: none;
  color: #fff;
  padding: 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}

/* ─── 21. MOBILE SEARCH BAR ──────────────────────────────────────────────── */

.m-search {
  display: none;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.m-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 9px 12px;
}

.m-search-inner:focus-within {
  border-color: #0057ff;
}

.ico-search {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  flex-shrink: 0;
}

.m-search-text {
  font-size: 14px;
  color: #222;
  font-weight: 500;
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
}

.m-search-text::placeholder {
  color: #bbb;
  font-weight: 400;
}

/* Mobile search count bar (Adzuna-style "X Jobs in Location") */
/* ─── Mobile collapsible search bar (nav toggle) ──────────────────────── */
.m-search-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 14px;
}

.m-search-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 6px 8px 6px 12px;
  transition: border-color 0.2s;
}

.m-search-bar-inner:focus-within {
  border-color: var(--green);
}

.m-search-bar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.m-search-bar-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  background: transparent;
  min-width: 0;
}

.m-search-bar-input::placeholder {
  color: #bbb;
}

.m-search-bar-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  flex-shrink: 0;
}

.m-search-bar-btn:hover {
  background: var(--green-dark);
}

#m-search-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* ─── Mobile search count bar (listing pages) ─────────────────────────── */
.m-search-count {
  display: none;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.m-search-count-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 6px 8px 6px 12px;
  transition: border-color 0.2s;
}

.m-search-count-inner:focus-within {
  border-color: var(--green);
}

.m-search-count-inner .ico-search {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  flex-shrink: 0;
}

.m-search-count-text {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  min-width: 0;
}

.m-search-count-text::placeholder {
  color: #999;
  font-weight: 400;
}

.m-search-count-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  flex-shrink: 0;
}

/* ─── 22. MOBILE JOB ITEMS (legacy — kept for reference) ─────────────────── */

.job-items-list {
  background: #fff;
}

.job-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.job-item:active {
  background: #fafafa;
}

.job-item:hover {
  text-decoration: none;
}

.src-logo {
  width: 56px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  overflow: hidden;
}

.src-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.src-logo-text {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  padding: 2px 3px;
  color: #444;
}

.j-body {
  flex: 1;
  min-width: 0;
}

.j-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--blue-link);
  margin-bottom: 4px;
  line-height: 1.35;
  text-decoration: none;
  display: block;
}

.j-title:hover {
  text-decoration: underline;
  color: var(--blue-link);
}

.j-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.ico-sm {
  width: 13px;
  height: 13px;
  stroke: #888;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.j-meta {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.j-salary {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  margin-top: 3px;
}

.j-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.j-tag-top {
  background: var(--green);
  color: #fff;
}

.j-tag-ext {
  background: #e8f4eb;
  color: var(--green);
  border: 1px solid #b8dfc0;
}

.j-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
  padding-top: 2px;
}

.j-heart {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ico-heart {
  width: 19px;
  height: 19px;
  stroke: #bbb;
  fill: none;
  stroke-width: 1.8;
}

.j-date {
  font-size: 11px;
  color: #aaa;
}

/* Average salary bar (mobile) */
.avg-bar {
  padding: 8px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: #444;
  display: none;
}

.avg-val {
  color: var(--green);
  font-weight: 700;
}

/* Alert strip (mobile) */
.alert-strip {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: #f7f7f7;
  border-bottom: 1px solid #eee;
}

.ico-mail {
  width: 16px;
  height: 16px;
  stroke: #666;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.alert-txt {
  font-size: 12px;
  color: #444;
  flex: 1;
}

.alert-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
}

/* ─── 23. MOBILE DETAIL ──────────────────────────────────────────────────── */

.detail-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  padding: 16px 14px 0;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 0;
}

.ico-det {
  width: 18px;
  height: 18px;
  stroke: #555;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.det-text {
  font-size: 14px;
  color: #444;
}

.src-badge {
  float: right;
  margin: 14px 14px 0;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #444;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
}

.det-apply {
  display: block;
  margin: 14px;
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  width: calc(100% - 28px);
  font-family: var(--font);
  text-decoration: none;
}

.det-apply:hover {
  background: var(--green-dark);
  text-decoration: none;
  color: #fff;
}

.det-body {
  padding: 0 14px;
  font-size: 14px;
  color: #333;
  line-height: 1.65;
}

.det-body p {
  margin-bottom: 12px;
}

.det-body ul,
.det-body ol {
  list-style: disc;
  padding-left: 18px;
  margin-bottom: 12px;
}

.det-body ol {
  list-style: decimal;
}

.heart-det {
  float: right;
  margin-top: 16px;
  margin-right: 14px;
  width: 34px;
  height: 34px;
  border: 1.5px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

/* ─── 24. MOBILE BOTTOM SECTIONS ─────────────────────────────────────────── */

/* Breadcrumb (mobile detail) */
.breadcrumb {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--green);
  background: #fff;
  border-top: 1px solid #eee;
  line-height: 1.8;
}

.bc-sep {
  color: #aaa;
  margin: 0 4px;
}

.bc-cur {
  color: #444;
  font-weight: 600;
}

/* Popular jobs section (mobile) */
.section-head {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  padding: 14px 14px 8px;
  border-top: 6px solid #f5f5f5;
}

.pop-jobs-section {
  background: #fff;
  border-top: 6px solid #f5f5f5;
  padding: 14px;
}

.pop-head {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pop-block-title {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin-bottom: 8px;
  text-align: center;
}

.pop-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: center;
}

.pop-link {
  font-size: 14px;
  color: var(--green);
  padding: 4px 0;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  display: block;
}

.pop-link:last-child {
  border-bottom: none;
}

.pop-link:hover {
  text-decoration: underline;
}

/* Email section (mobile) */
.email-section {
  background: #f5f5f5;
  padding: 14px;
  border-top: 1px solid #eee;
}

.email-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #444;
  margin-bottom: 10px;
}

.email-input {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: #333;
  margin-bottom: 8px;
  font-family: var(--font);
  outline: none;
}

.email-input:focus {
  border-color: var(--green);
}

.email-submit {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
}

.email-submit:hover {
  background: var(--green-dark);
}

/* Similar items (mobile) */
.similar-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.similar-item:hover {
  text-decoration: none;
  background: #fafafa;
}

.sim-title {
  font-size: 14px;
  color: var(--blue-link);
  margin-bottom: 3px;
  font-weight: 400;
}

.sim-co {
  font-size: 12px;
  color: #888;
}

/* ─── 25. STICKY BOTTOM CTA (MOBILE) ─────────────────────────────────────── */

.sticky-cta {
  display: none;
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  width: 100%;
  letter-spacing: 0.01em;
  font-family: var(--font);
  position: sticky;
  bottom: 0;
  z-index: 100;
  text-decoration: none;
}

.sticky-cta:hover {
  background: var(--green-dark);
  text-decoration: none;
  color: #fff;
}

/* ─── 26. FOOTER ─────────────────────────────────────────────────────────── */

.footer {
  background: #222;
  color: #aaa;
  padding: 40px;
  margin-top: 0;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand .nav-logo {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
  color: #0057ff;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: #888;
  max-width: 260px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #ccc;
  margin-bottom: 14px;
}

.footer-link {
  display: block;
  font-size: 13px;
  color: #888;
  padding: 3px 0;
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: none;
}

.footer-link:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

/* CV Revamp button */
.cv-revamp-btn {
  background: #3374dc;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  display: inline-block;
}

.cv-revamp-btn:hover {
  background: #2a5fb5;
  text-decoration: none;
  color: #fff;
}

/* ─── 27. RESPONSIVE BREAKPOINTS ─────────────────────────────────────────── */

@media (max-width: 768px) {

  /* Show mobile, hide desktop */
  .desktop-only { display: none !important; }
  .mobile-only  { display: flex !important; }

  .navbar  { display: none !important; }
  .sidebar { display: none !important; }
  .sticky-cta { display: none !important; }

  .m-nav         { display: flex !important; }
  .m-search      { display: block !important; }
  .filter-row    { display: flex !important; }
  .avg-bar       { display: block !important; }
  .alert-strip   { display: flex !important; }

  /* Kill Classibase framework padding that causes overflow */
  .content,
  .content.has_left_sidebar,
  .content.has_right_sidebar,
  .content.has_left_right_sidebar {
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  .site-content {
    overflow-x: hidden !important;
  }

  /* Listing page — full width, no grid */
  .listing-page {
    display: block;
    grid-template-columns: none;
  }

  .main-content {
    padding: 0;
  }

  /* Results bar tweaks */
  .results-bar {
    padding: 10px 14px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-light);
  }

  .results-count {
    font-size: 14px;
  }

  /* Email banner — stack vertically */
  .email-banner {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 0;
    margin-bottom: 0;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .eb-form {
    width: 100%;
  }

  .eb-input {
    flex: 1;
    width: auto;
  }

  /* Avg salary bar */
  .avg-salary-bar {
    border-radius: 0;
    margin-bottom: 0;
    border-left: none;
    border-right: none;
  }

  /* Job cards — responsive for mobile (Adzuna-style) */
  .job-list {
    display: block !important;
  }

  .job-card {
    padding: 12px 14px;
    gap: 10px;
    border: none;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0 !important;
  }

  .job-card:first-child { border-radius: 0 !important; }
  .job-card:last-child { border-radius: 0 !important; border-bottom: 1px solid var(--border-light); }
  .job-card:only-child { border-radius: 0 !important; }

  .job-card.featured {
    border-left: 3px solid var(--green);
    padding-left: 11px;
  }

  .jc-source-logo {
    width: 56px;
    height: 44px;
    border-radius: 5px;
    padding: 3px;
  }

  .jc-title {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
  }

  .jc-meta-text {
    font-size: 12px;
  }

  .jc-salary {
    font-size: 13px;
    margin-top: 3px;
  }

  .jc-tags {
    margin-top: 5px;
    gap: 4px;
  }

  .jc-tag {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 3px;
  }

  .jc-right {
    gap: 5px;
  }

  .jc-heart {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 0;
    background: none;
  }

  .jc-heart svg {
    width: 19px;
    height: 19px;
  }

  .jc-date {
    font-size: 11px;
  }

  /* Hide desktop-only listing search bar on mobile */
  .listing-search-bar {
    display: none;
  }

  /* Hide Classibase widget sidebars on mobile */
  .narrow {
    display: none !important;
  }

  /* Mobile search count bar */
  .m-search-count {
    display: block !important;
  }

  /* Detail layout — single column */
  .detail-layout {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
    max-width: 100%;
  }

  .detail-sidebar {
    position: static;
    padding-left: 0;
    gap: 0;
  }

  .detail-sidebar .ds-card,
  .detail-sidebar .co-card,
  .detail-sidebar .alert-card,
  .detail-sidebar .pop-sect {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: -1px;
  }

  .detail-hero {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    margin-bottom: 0;
    padding: 14px 14px 0;
  }

  .dh-top {
    flex-direction: row;
    gap: 12px;
  }

  .dh-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .dh-logo img,
  .dh-logo svg {
    width: 48px;
    height: 48px;
  }

  .dh-title {
    font-size: 20px;
    font-family: var(--font);
    font-weight: 700;
    padding: 0;
    line-height: 1.25;
  }

  .dh-meta {
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
  }

  .dh-meta-item {
    padding-right: 0;
    font-size: 14px;
  }

  .dh-meta-icon {
    width: 18px;
    height: 18px;
  }

  .dh-tags {
    margin-top: 10px;
  }

  .dh-salary {
    font-size: 17px;
    margin-top: 8px;
  }

  /* Apply bar — stack vertically on mobile, clean background */
  .apply-bar {
    border-radius: 0;
    margin: 14px 0 0;
    border: none;
    border-top: 1px solid var(--border-light);
    padding: 16px 14px;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    background: #fff;
  }

  .apply-bar-btn {
    text-align: center;
    padding: 14px 20px;
    font-size: 16px;
    width: 100%;
    border-radius: 8px;
  }

  .apply-bar-txt {
    text-align: center;
    display: none;
  }

  .detail-body {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: 0;
    padding: 14px;
  }

  .detail-similar {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 14px;
  }

  /* Detail sidebar cards — add spacing between them on mobile */
  .detail-sidebar {
    gap: 0;
  }

  .detail-sidebar .ds-card,
  .detail-sidebar .co-card,
  .detail-sidebar .alert-card,
  .detail-sidebar .pop-sect {
    border-top: 6px solid #f5f5f5;
    padding: 16px 14px;
  }

  /* Share buttons — better mobile spacing */
  .share-buttons {
    gap: 8px;
  }

  .share-btn {
    width: 40px;
    height: 40px;
  }

  /* Scam warning — mobile spacing */
  .scam-warning {
    padding: 12px;
    font-size: 13px;
  }

  /* Detail breadcrumb */
  .detail-breadcrumb-bar {
    padding: 10px 14px;
  }

  .detail-breadcrumb {
    padding: 0;
    margin-bottom: 0;
  }

  /* Hero — stack search */
  .hero {
    padding: 40px 20px 30px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
  }

  .hs-field {
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .hs-select-wrap {
    border-bottom: 1px solid var(--border);
    width: 100%;
    min-width: 0;
  }

  .hs-btn {
    width: 100%;
    height: 48px;
    padding: 0;
  }

  /* Categories — 2 cols on mobile, smaller cards */
  .categories {
    padding: 20px 14px;
  }

  .section-title {
    font-size: 22px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cat-card {
    padding: 16px 14px;
    gap: 8px;
  }

  .cat-name {
    font-size: 13px;
  }

  .cat-count {
    font-size: 11px;
  }

  /* Featured strip — 1 col on mobile, cleaner cards */
  .featured-strip {
    padding: 0 14px 20px;
  }

  .jobs-strip-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .strip-card {
    padding: 14px;
  }

  /* Hero stats bar — scroll on mobile */
  .hero-stats {
    border-radius: 8px;
    max-width: 100%;
  }

  .h-stat {
    padding: 10px 14px;
  }

  .h-stat-n {
    font-size: 16px;
  }

  .h-stat-l {
    font-size: 11px;
  }

  /* Location page — page title and widgets styling */
  .page-title {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    padding: 20px 14px 10px;
    color: var(--text-primary);
  }

  /* Companies listing on location pages */
  .companies-listing {
    padding: 0 14px 20px;
  }

  .companies-listing h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .company-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .company-list li a {
    color: var(--green);
    font-size: 14px;
  }

  .company-list .item_count {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 4px;
  }

  /* Pop searches — scroll */
  .pop-searches {
    padding: 14px 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pop-searches::-webkit-scrollbar {
    display: none;
  }

  /* Footer — single column */
  .footer {
    padding: 24px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  /* Pagination */
  .pagination {
    padding: 16px 14px;
    margin-top: 0;
  }
}

@media (min-width: 769px) {

  /* Show desktop, hide mobile */
  .desktop-only { display: flex !important; }
  .mobile-only  { display: none !important; }

  .navbar     { display: flex !important; }
  .sidebar    { display: block !important; }
  .m-nav      { display: none !important; }
  .m-search   { display: none !important; }
  .filter-row { display: none !important; }
  .avg-bar    { display: none !important; }
  .alert-strip { display: none !important; }
  .sticky-cta  { display: none !important; }

  /* Desktop job list */
  .job-list       { display: block !important; }

  /* Hide mobile-only search count bar */
  .m-search-count { display: none !important; }
}

@media (min-width: 769px) and (max-width: 1100px) {

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .jobs-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .detail-layout {
    padding: 20px 24px;
  }
}

/* ─── 27b. JQ-DROPDOWN MENU (from Classibase base theme) ─────────────────── */
.jq-dropdown {
  position: absolute;
  z-index: 1039;
  display: none;
}
.jq-dropdown .jq-dropdown-menu,
.jq-dropdown .jq-dropdown-panel {
  width: 80%;
  min-width: 250px;
  max-width: 300px;
  list-style: none;
  background: #fff;
  border: solid 1px #ddd;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,.15);
  overflow: visible;
  padding: 6px 0;
  margin: 0;
  font-family: var(--font);
}
.jq-dropdown .jq-dropdown-panel { padding: 10px; }
.jq-dropdown.jq-dropdown-tip { margin-top: 8px; }
.jq-dropdown.jq-dropdown-tip:before {
  position: absolute; top: -6px; left: 9px; content: '';
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 7px solid #ddd; display: inline-block;
}
.jq-dropdown.jq-dropdown-tip:after {
  position: absolute; top: -5px; left: 10px; content: '';
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 6px solid #fff; display: inline-block;
}
.jq-dropdown.jq-dropdown-tip.jq-dropdown-anchor-right:before { left: auto; right: 9px; }
.jq-dropdown.jq-dropdown-tip.jq-dropdown-anchor-right:after  { left: auto; right: 10px; }
.jq-dropdown.jq-dropdown-scroll .jq-dropdown-menu,
.jq-dropdown.jq-dropdown-scroll .jq-dropdown-panel { max-height: 180px; overflow: auto; }
.jq-dropdown .jq-dropdown-menu li {
  list-style: none; padding: 0; margin: 0;
}
.jq-dropdown .jq-dropdown-menu ul { padding: 0; margin: 0; display: none; }
.jq-dropdown .jq-dropdown-menu ul.current { background-color: rgba(0,0,0,.02); }
.jq-dropdown .jq-dropdown-menu label,
.jq-dropdown .jq-dropdown-menu li > a {
  display: block; color: var(--text-primary); text-decoration: none;
  padding: 8px 16px; margin: 0; font-size: 14px;
}
.jq-dropdown .jq-dropdown-menu li a.active { background-color: var(--green-xlight); color: var(--green); }
.jq-dropdown .jq-dropdown-menu li li a { padding-left: 2rem; }
.jq-dropdown .jq-dropdown-menu li li li a { padding-left: 3rem; }
.jq-dropdown .jq-dropdown-menu label:hover,
.jq-dropdown .jq-dropdown-menu li > a:hover {
  background-color: #f5f5f5; color: var(--text-primary); cursor: pointer;
}
.jq-dropdown .jq-dropdown-menu .jq-dropdown-divider {
  font-size: 1px; border-top: solid 1px #e8e8e8; padding: 0; margin: 4px 0;
}
/* Font Awesome compatibility — keep for jq-dropdown menu icons */
.jq-dropdown .fa { margin-right: 8px; width: 16px; text-align: center; }

/* ─── 28. CLASSIBASE FRAMEWORK OVERRIDES ─────────────────────────────────── */
/*
   Classibase's built-in classes conflict with our theme.
   These overrides neutralize them and ensure our theme controls all layout.
*/

/* Reset Classibase body */
body.cb-theme {
  background: var(--bg);
  color: var(--text-primary);
  text-align: left;
}

/* Neutralize .wrap — Classibase uses this for the main container */
.wrap {
  margin: 0;
  padding: 0;
  text-align: left;
  max-width: none;
  width: auto;
}

/* Neutralize .content — Classibase inner content wrapper */
.content {
  min-height: auto;
  float: none;
  clear: none;
  width: auto;
  overflow: visible;
  background: transparent;
  padding: 0;
  margin: 0;
}

.content_right,
.content_left,
.content_top,
.content_bottom,
.content_center {
  float: none;
  width: auto;
  overflow: visible;
  background: transparent;
  padding: 0;
  margin: 0;
}

/* Neutralize .header — Classibase page header */
.header {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  height: auto;
  position: static;
}

/* Neutralize .footer — Classibase footer (we use our own .footer) */
/* Note: our .footer has dark #222 bg — Classibase's .footer may need reset */
/* Only reset if Classibase applies its own footer styles outside ours */

/* Neutralize .item — Classibase listing item wrapper */
.item {
  float: none;
  width: auto;
  overflow: visible;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  clear: none;
}

/* Neutralize .widget */
.widget {
  float: none;
  width: auto;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.widget_title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.widget_body {
  font-size: 14px;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  padding: 4px 0;
}

.widget ul li a {
  color: var(--green);
  text-decoration: none;
  font-size: 14px;
}

.widget ul li a:hover {
  text-decoration: underline;
}

.widget ul li a .item_count,
.widget ul li .item_count {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 4px;
}

/* Classibase .button */
.button,
.btn,
input[type="submit"],
input[type="button"],
button.submit {
  font-family: var(--font);
  cursor: pointer;
}

/* Classibase form inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
}

/* Classibase pagination */
.pages {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 24px 0;
  padding: 20px 0;
  list-style: none;
}

.pages a,
.pages span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  color: var(--text-secondary);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pages a:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-xlight);
  text-decoration: none;
}

.pages .current,
.pages span.current {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 700;
}

/* Classibase .paginator (from Paginator::render) */
.paginator {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 24px 0;
  padding: 20px 0;
  flex-wrap: wrap;
}

.paginator a,
.paginator span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  color: var(--text-secondary);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.paginator a:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-xlight);
  text-decoration: none;
}

.paginator .sel_page {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 700;
  cursor: default;
}

/* Classibase .clear helper */
.clear {
  clear: both;
  height: 0;
  overflow: hidden;
  display: block;
}

/* Classibase .hide_screen */
.hide_screen {
  display: none;
}

/* Remove any Classibase forced text-align:center on body */
body > .wrap,
body > #wrap {
  text-align: left;
}

/* Remove old theme link styles */
a:link,
a:visited {
  text-decoration: none;
}

/* Ensure Classibase search form doesn't break our hero-search */
#search_form,
.search_form {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

/* Hide Classibase framework breadcrumb — our views provide their own */
.cb-breadcrumb {
  display: none;
}

/* Classibase breadcrumb reset (if ever shown) */
#breadcrumbs,
.breadcrumbs {
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
}

/* Style Classibase widget links in inner_top / inner_bottom zones */
.wide[role="complementary"] {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Inner bottom widget zone — "Info" and "Sponsorship" pages */
.content[role="main"] > .wide[role="complementary"]:last-of-type {
  margin-top: 20px;
}

/* Style Classibase CMS page list widgets */
.wide[role="complementary"] .widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.wide[role="complementary"] .widget_title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.wide[role="complementary"] .widget_body a {
  color: var(--green);
  font-size: 13px;
}

/* Site content wrapper */
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Content area with role="main" */
.content[role="main"] {
  padding: 20px;
}

/* Classibase item_thumb images */
.item_thumb,
.item_thumb img {
  display: block;
  max-width: 100%;
}

/* Force transitions off for Classibase link hover (use our own) */
a,
a img,
a i,
a .item_thumb {
  transition: none;
}

/* ─── UTILITY CLASSES ────────────────────────────────────────────────────── */

.text-green    { color: var(--green); }
.text-muted    { color: var(--text-muted); }
.text-link     { color: var(--blue-link); }
.text-primary  { color: var(--text-primary); }
.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Letter-avatar SVG placeholder for company logos */
.letter-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border-radius: inherit;
}

/* No results state */
.no-results {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.no-results-icon {
  width: 48px;
  height: 48px;
  stroke: #ccc;
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 16px;
}

.no-results-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.no-results-sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* Loading spinner */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 40px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── CATEGORY / SEARCH PAGE ────────────────────────────────────────────── */

/* Full-width search bar above the listing grid */
.listing-search-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 40px;
}
.listing-search-bar .hero-search {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: none;
}

/* Page description text (SEO paragraph) */
.page-description-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Related searches */
.search-related {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* No-results block */
.no-results {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-secondary);
}
.no-results svg {
  margin: 0 auto 16px;
  display: block;
}
.no-results h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.no-results p {
  font-size: 14px;
  margin-bottom: 6px;
}
.no-results-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.btn-post-job {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 7px;
  text-decoration: none;
  transition: background .15s;
}
.btn-post-job:hover { background: var(--green-dark); }
.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 7px;
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: all .15s;
}
.btn-back-home:hover { border-color: #aaa; color: var(--text-primary); }

/* ─── MOBILE FILTER DROPDOWN PANELS ────────────────────────────────────── */
.mobile-filter-panel {
  display: none;   /* shown by JS when pill is clicked */
  background: #fff;
  border-bottom: 2px solid #eee;
  padding: 14px;
}
.mobile-filter-panel.open { display: block; }
.mfp-title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}
.mfp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
}
.mfp-row:last-of-type { border-bottom: none; }
.mfp-row.active { color: var(--green); font-weight: 600; }
.mfp-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.mfp-clear, .mfp-clear-btn {
  flex: 1;
  background: #fff;
  border: 1.5px solid #ccc;
  color: #555;
  padding: 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.mfp-apply-btn {
  flex: 2;
  background: var(--green);
  border: none;
  color: #fff;
  padding: 11px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.mfp-salary-form .salary-inputs { margin-top: 0; }

/* On desktop, never show mobile panels */
@media (min-width: 769px) {
  .mobile-filter-panel { display: none !important; }
}

/* ─── 31b. GLOBAL OVERFLOW CONTAINMENT ──────────────────────────────────── */
/* Prevent any child from overflowing page width on mobile */
.detail-layout,
.detail-main,
.detail-hero,
.detail-sidebar,
.db-text,
.db-section,
.db-custom-fields,
.site-content,
.content,
.main-content,
.listing-page {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Force ads/iframes to stay within parent */
.db-section iframe,
.db-section ins,
.detail-body iframe,
.detail-body ins,
.adsbygoogle,
ins.adsbygoogle {
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden;
}

.db-section img,
.db-text img,
.detail-body img {
  max-width: 100%;
  height: auto;
}

/* Prevent tables from overflowing */
.db-text table,
.db-custom-fields table {
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

/* Popular searches — contain overflow */
.pop-sect,
.ps-links {
  max-width: 100%;
  overflow: hidden;
}

.ps-lnk {
  word-break: break-word;
}

/* Detail actions — wrap on mobile */
.detail-actions {
  overflow: hidden;
}

.detail-action-link {
  word-break: break-word;
}

/* ─── 32. HIDE INJECTED AD WIDGETS & EMPTY AD BLOBS ────────────────────── */
/* Ezoic / Hostinger content recommendation widgets injected via <ins> tags */
.site-content > ins,
.content > ins,
.main-content > ins,
ins[data-ez-name],
ins.ez-native,
.ezoic-ad {
  display: none !important;
}

/* Hide Classibase widget_text widgets that contain only AdSense (appear as empty white blobs) */
.widget.widget_text {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Also hide via the widget container pattern they use */
.site-content > div > .ez-content-chamomile-cookie,
.site-content > .ez-video-wrap {
  display: none !important;
}

/* ─── 33. PAGE TITLE HEADER (mobile listing) ────────────────────────────── */
.listing-header {
  background: #fff;
  padding: 20px 14px 14px;
  border-bottom: 1px solid #eee;
}

.listing-header h1 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 6px;
}

.listing-header .listing-header-sub {
  font-size: 13px;
  color: var(--text-muted);
}

@media (min-width: 769px) {
  .listing-header {
    padding: 24px;
    border-bottom: none;
    background: transparent;
  }

  .listing-header h1 {
    font-size: 28px;
  }
}

/* ─── 34. STICKY BOTTOM APPLY BAR (mobile detail) ──────────────────────── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  width: 100%;
  letter-spacing: 0.01em;
  z-index: 500;
  box-shadow: 0 -2px 10px rgba(0,0,0,.15);
}

.sticky-cta:hover {
  background: var(--green-dark);
}

/* Pad bottom of page to account for sticky bar */
@media (max-width: 768px) {
  body.has-sticky-cta {
    padding-bottom: 56px;
  }
}

/* ─── 35. BROWSE BY PROVINCE SECTION ────────────────────────────────────── */
.browse-provinces {
  background: #fff;
  padding: 20px 14px;
  border-top: 6px solid #f5f5f5;
}

.browse-provinces h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.browse-provinces a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--green);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}

.browse-provinces a:last-child {
  border-bottom: none;
}

.browse-provinces a:hover {
  text-decoration: underline;
}

/* ─── 36. LOCATION PAGE ─────────────────────────────────────────────────── */
.loc-page-header {
  background: #fff;
  padding: 32px 40px 24px;
  border-bottom: 1px solid var(--border);
}

.loc-page-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 8px;
}

.loc-page-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.loc-page-desc {
  padding: 16px 40px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Category/location/company list items on location pages */
.loc-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.loc-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.15s;
}

.loc-cat-item:last-child {
  border-bottom: none;
}

.loc-cat-item:hover {
  background: var(--green-xlight);
  text-decoration: none;
}

.loc-cat-item.active {
  background: var(--green-light);
  color: var(--green);
  font-weight: 600;
}

.loc-cat-name {
  flex: 1;
  min-width: 0;
}

.loc-cat-count {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 8px;
}

/* ─── 37. RELATED PAGES & BROWSE BY PROVINCE (category.php) ────────────── */
.related-pages,
.browse-provinces-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 20px;
}

.rp-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}

.rp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-link {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}

.rp-link:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-xlight);
  text-decoration: none;
}

.rp-link.active {
  background: var(--green-light);
  color: var(--green-dark);
  border-color: var(--green);
  font-weight: 600;
}

/* ─── 38. WIDGET STYLING (blends into theme) ───────────────────────────── */
/* Make Classibase widgets look native to our theme */
.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.widget_title,
.widget .widget_title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.widget_body {
  font-size: 14px;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--green);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget ul li a:hover {
  text-decoration: underline;
}

.widget ul li a .item_count,
.widget ul li .item_count {
  color: var(--text-muted);
  font-size: 12px;
  background: #f0f0f0;
  padding: 1px 8px;
  border-radius: 10px;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Widget text (ad widgets) — already handled in section 32 */

@media (max-width: 768px) {
  .loc-page-header {
    padding: 20px 14px 16px;
  }

  .loc-page-title {
    font-size: 24px;
  }

  .loc-page-sub {
    font-size: 14px;
  }

  .loc-page-desc {
    padding: 12px 14px;
  }

  .loc-page-header .hero-search {
    max-width: 100% !important;
    flex-direction: column;
    border-radius: 8px;
  }

  .loc-page-header .hs-field {
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .loc-page-header .hs-btn {
    width: 100%;
    height: 44px;
    padding: 0;
  }

  .related-pages,
  .browse-provinces-section {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 16px 14px;
    margin-top: 0;
    border-top: 6px solid #f5f5f5;
  }

  .rp-links {
    gap: 6px;
  }

  .rp-link {
    font-size: 12px;
    padding: 5px 12px;
  }

  /* Widget styling on mobile */
  .widget {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: 0;
    border-top: 6px solid #f5f5f5;
  }
}

/* ─── END OF front.css ───────────────────────────────────────────────────── */
