/* ============================================================
   Job Junction — Main Stylesheet
   Pakistan green theme | Plus Jakarta Sans + Playfair Display
   ============================================================ */

/* ---- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #01411C;
  --green-mid:   #1a6b3a;
  --green-light: #e8f5ee;
  --gold:        #C8962A;
  --gold-light:  #fdf6e3;
  --white:       #ffffff;
  --offwhite:    #f8f9fa;
  --gray-light:  #f1f3f5;
  --gray-mid:    #dee2e6;
  --text-dark:   #1a1a2e;
  --text-mid:    #495057;
  --text-muted:  #868e96;
  --red:         #c62828;
  --red-light:   #fce4ec;
  --blue:        #1565c0;
  --blue-light:  #e3f2fd;
  --radius:      10px;
  --font-main:   'Plus Jakarta Sans', sans-serif;
  --font-serif:  'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--offwhite);
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Top Bar --------------------------------------------- */
.topbar {
  background: var(--green);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  padding: 5px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,0.72); text-decoration: none; margin-left: 14px; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; align-items: center; gap: 7px; }
.pk-flag {
  display: inline-block;
  width: 20px; height: 13px;
  background: linear-gradient(to right, #fff 30%, #01411C 30%);
  border-radius: 2px;
  border: 0.5px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* ---- Navbar ---------------------------------------------- */
.navbar {
  background: var(--white);
  border-bottom: 2.5px solid var(--green);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(1,65,28,0.07);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 38px; height: 38px;
  background: var(--green);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
}
.logo-text { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--green); }
.logo-text span { color: var(--gold); }
.logo-sub { font-size: 10px; color: var(--text-muted); letter-spacing: 0.4px; }

.nav-links { display: flex; align-items: center; gap: 3px; }
.nav-links > a, .nav-dropdown > a {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.13s, color 0.13s;
  position: relative;
}
.nav-links > a:hover, .nav-dropdown > a:hover { background: var(--green-light); color: var(--green); }
.nav-links > a.active { color: var(--green); font-weight: 600; }
.nav-links > a.active::after {
  content: '';
  position: absolute;
  bottom: -20px; left: 0; right: 0;
  height: 2.5px;
  background: var(--green);
  border-radius: 2px;
}
.nav-badge {
  background: var(--gold);
  color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 3px;
  vertical-align: top;
}
.nav-cta {
  background: var(--green) !important;
  color: white !important;
  padding: 7px 16px !important;
  border-radius: 7px !important;
  display: flex; align-items: center; gap: 5px;
}
.nav-cta:hover { background: var(--green-mid) !important; text-decoration: none; }
.nav-mobile-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--green); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  min-width: 210px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 300;
  padding: 6px 0;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-mid);
  text-decoration: none;
  transition: background 0.12s;
}
.nav-dropdown-menu a:hover { background: var(--green-light); color: var(--green); }
.nav-dropdown-menu .dropdown-all { border-top: 1px solid var(--gray-light); margin-top: 4px; color: var(--green); font-weight: 600; }

/* ---- Breadcrumb ------------------------------------------ */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: 9px 24px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Badges ---------------------------------------------- */
.badge {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.badge-green  { background: var(--green-light); color: #0a3d1f; border: 1px solid rgba(1,65,28,0.18); }
.badge-gold   { background: var(--gold-light);  color: #6b4c0a; border: 1px solid rgba(200,150,42,0.28); }
.badge-blue   { background: var(--blue-light);  color: #0d3c78; border: 1px solid rgba(21,101,192,0.22); }
.badge-red    { background: var(--red-light);   color: #7a1212; border: 1px solid rgba(198,40,40,0.22); }
.badge-urgent { background: var(--red); color: white; border: none; animation: pulse-badge 1.8s infinite; }
@keyframes pulse-badge { 0%,100%{opacity:1} 50%{opacity:.75} }

/* ---- VIEW COUNTER (the circled number) ------------------- */
.view-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.view-counter__circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-serif);
  border: 3px solid rgba(1,65,28,0.2);
  box-shadow: 0 0 0 4px var(--green-light);
  padding: 0 6px;
  line-height: 1;
}
.view-counter__label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
/* Smaller variant for listing cards */
.view-counter--sm .view-counter__circle {
  min-width: 38px;
  height: 38px;
  font-size: 11px;
  border-width: 2px;
  box-shadow: 0 0 0 3px var(--green-light);
}

/* ---- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background 0.14s, opacity 0.14s;
  border: none;
  text-decoration: none;
}
.btn-primary   { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-mid); color: white; text-decoration: none; }
.btn-secondary { background: var(--white); color: var(--text-mid); border: 1.5px solid var(--gray-mid); }
.btn-secondary:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.btn-gold      { background: var(--gold); color: white; }
.btn-whatsapp  { background: #25D366; color: white; }
.btn-facebook  { background: #1877F2; color: white; }
.btn-twitter   { background: #1DA1F2; color: white; }

/* ---- Hero Section ---------------------------------------- */
.hero {
  background: linear-gradient(135deg, #01411C 0%, #1a6b3a 55%, #2e8b57 100%);
  padding: 56px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,150,42,0.2);
  border: 1px solid rgba(200,150,42,0.4);
  color: #f5c842;
  font-size: 11px; font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 38px; font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.2;
}
.hero h1 span { color: #f5c842; }
.hero p { color: rgba(255,255,255,0.75); font-size: 15px; margin-bottom: 30px; }

/* ---- Search Box ------------------------------------------ */
.search-box {
  background: white;
  border-radius: 14px;
  padding: 18px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.search-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.search-field label {
  display: block;
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.search-field input,
.search-field select {
  width: 100%;
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--offwhite);
  outline: none;
  transition: border 0.14s;
  appearance: auto;
}
.search-field input:focus,
.search-field select:focus { border-color: var(--green); }
.search-btn {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-main);
  white-space: nowrap;
  transition: background 0.14s;
}
.search-btn:hover { background: var(--green-mid); }
.search-tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.search-tags span { font-size: 11px; color: var(--text-muted); }
.tag-pill {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(1,65,28,0.15);
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 11px; font-weight: 500;
  cursor: pointer;
  transition: background 0.12s;
  text-decoration: none;
}
.tag-pill:hover { background: rgba(1,65,28,0.12); text-decoration: none; }

/* ---- Stats Bar ------------------------------------------- */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: 14px 24px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num  { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--green); }
.stat-label{ font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ---- Sections -------------------------------------------- */
.section      { padding: 40px 24px; }
.section-alt  { background: var(--white); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.section-title { font-family: var(--font-serif); font-size: 24px; font-weight: 600; }
.section-title span { color: var(--green); }
.section-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.view-all { color: var(--green); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ---- Cards (Jobs) ---------------------------------------- */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.job-card {
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.14s, transform 0.14s, box-shadow 0.14s;
  position: relative;
}
.job-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 4px 18px rgba(1,65,28,0.1); }
.job-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.job-logo {
  width: 46px; height: 46px;
  border-radius: 9px;
  background: var(--green-light);
  border: 1px solid rgba(1,65,28,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  overflow: hidden;
}
.job-logo img { width: 100%; height: 100%; object-fit: contain; }
.job-meta { flex: 1; min-width: 0; }
.job-title { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-org   { font-size: 12px; color: var(--green); font-weight: 500; }
.job-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0 10px; }
.job-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--gray-light);
}
.job-location { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.job-deadline { font-size: 11px; color: var(--red); font-weight: 500; }
.featured-ribbon {
  position: absolute;
  top: 0; right: 14px;
  background: var(--gold);
  color: white;
  font-size: 9px; font-weight: 700;
  padding: 2px 10px 5px;
  border-radius: 0 0 6px 6px;
  letter-spacing: 0.5px;
}
/* View counter on job card (small) */
.job-card .view-counter--sm {
  margin-top: 8px;
}

/* ---- Filter Bar ------------------------------------------ */
.filter-bar { display: flex; gap: 7px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-btn {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--gray-mid);
  background: var(--white);
  font-size: 12px; font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.12s;
  font-family: var(--font-main);
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); color: white; border-color: var(--green); }

/* ---- City Grid ------------------------------------------- */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.city-card {
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.14s;
  text-decoration: none;
  display: block;
}
.city-card:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.city-name  { font-size: 12px; font-weight: 600; color: var(--text-dark); }
.city-count { font-size: 10px; color: var(--text-muted); }

/* ---- Blog Cards ------------------------------------------ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.blog-card {
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.14s;
  text-decoration: none;
  display: block;
}
.blog-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(1,65,28,0.1); text-decoration: none; }
.blog-thumb { height: 120px; overflow: hidden; background: var(--green-light); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 14px 16px; }
.blog-cat  { font-size: 10px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.blog-title{ font-size: 13px; font-weight: 600; color: var(--text-dark); line-height: 1.45; margin-bottom: 7px; }
.blog-meta { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; justify-content: space-between; }

/* ---- Dept Grid ------------------------------------------- */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.dept-card {
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 16px 10px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.14s;
  text-decoration: none;
  display: block;
}
.dept-card:hover { border-color: var(--green); box-shadow: 0 4px 14px rgba(1,65,28,0.1); transform: translateY(-2px); text-decoration: none; }
.dept-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 20px; }
.dept-name  { font-size: 11px; font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.dept-count { font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* ---- Alerts / Flashes ------------------------------------ */
.alert { padding: 12px 18px; border-radius: 8px; font-size: 13px; margin: 12px 24px; }
.alert-success { background: var(--green-light); color: #0a3d1f; border: 1px solid rgba(1,65,28,0.2); }
.alert-error   { background: var(--red-light);   color: #7a1212; border: 1px solid rgba(198,40,40,0.2); }
.alert-warning { background: var(--gold-light);  color: #6b4c0a; border: 1px solid rgba(200,150,42,0.3); }

/* ---- Job Alert Strip ------------------------------------- */
.alert-strip { background: linear-gradient(135deg, var(--green) 0%, #1a6b3a 100%); padding: 36px 24px; text-align: center; color: white; }
.alert-strip h3 { font-family: var(--font-serif); font-size: 24px; margin-bottom: 7px; }
.alert-strip p  { font-size: 13px; color: rgba(255,255,255,0.78); margin-bottom: 20px; }
.alert-form { display: flex; gap: 10px; max-width: 430px; margin: 0 auto; }
.alert-form input { flex: 1; padding: 10px 14px; border-radius: 8px; border: none; font-size: 13px; font-family: var(--font-main); outline: none; }
.alert-form button { background: var(--gold); color: white; border: none; border-radius: 8px; padding: 10px 20px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font-main); white-space: nowrap; }

/* ---- Footer ---------------------------------------------- */
.site-footer { background: var(--green); color: rgba(255,255,255,0.75); padding: 36px 24px 16px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.logo-text-footer { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: white; }
.logo-text-footer span { color: var(--gold); }
.footer-brand p { font-size: 12px; margin-top: 10px; line-height: 1.65; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { color: rgba(255,255,255,0.65); font-size: 18px; transition: color 0.13s; }
.footer-social a:hover { color: white; text-decoration: none; }
.site-footer h4 { color: white; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 7px; }
.site-footer ul li a { color: rgba(255,255,255,0.65); font-size: 12px; text-decoration: none; }
.site-footer ul li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: white; }

/* ---- Pagination ------------------------------------------ */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 28px 0; flex-wrap: wrap; }
.pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border-radius: 6px; border: 1.5px solid var(--gray-mid); color: var(--text-mid); font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.12s; padding: 0 10px; }
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination a.active { background: var(--green); color: white; border-color: var(--green); }

/* ---- AdSense Placeholders -------------------------------- */
.ad-slot { background: var(--gold-light); border: 1.5px dashed rgba(200,150,42,0.4); border-radius: 8px; padding: 14px; text-align: center; color: var(--text-muted); font-size: 11px; }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--green); padding: 12px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-dropdown > a { padding: 10px 24px; width: 100%; border-radius: 0; }
  .nav-links > a.active::after { display: none; }
  .nav-mobile-toggle { display: block; }
  .hero h1 { font-size: 26px; }
  .search-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { gap: 20px; }
  .jobs-grid, .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .alert-form { flex-direction: column; }
}

/* ============================================================
   Additional Layout Styles — Jobs listing, Detail, Blog
   ============================================================ */

/* ---- Page wrap ------------------------------------------- */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 20px 24px; }

/* ---- Jobs page layout (sidebar + main) ------------------- */
.jobs-page-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.jobs-sidebar { position: sticky; top: 80px; }
.jobs-main {}

/* ---- Detail layout (main + sidebar) ---------------------- */
.detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.detail-main {}
.detail-sidebar { position: sticky; top: 80px; }

/* ---- Sidebar widgets ------------------------------------- */
.sidebar-widget { background: var(--white); border: 1.5px solid var(--gray-mid); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.sidebar-card   { background: var(--white); border: 1.5px solid var(--gray-mid); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.widget-title   { font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.widget-title i { color: var(--green); }

.sidebar-list { list-style: none; }
.sidebar-list li { border-bottom: 1px solid var(--gray-light); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 6px; font-size: 12px; color: var(--text-mid);
    text-decoration: none; transition: color 0.12s;
    border-radius: 6px;
}
.sidebar-list li a:hover { color: var(--green); text-decoration: none; }
.sidebar-list li a.active { color: var(--green); font-weight: 600; }
.sidebar-list li a span { background: var(--green-light); color: var(--green); font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; }

/* ---- Results header -------------------------------------- */
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.results-count  { font-size: 13px; color: var(--text-mid); }
.results-count strong { color: var(--text-dark); }

/* ---- Active filters -------------------------------------- */
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-bottom: 16px; }
.filter-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--green-light); color: var(--green); border: 1px solid rgba(1,65,28,0.2); border-radius: 20px; padding: 3px 11px; font-size: 11px; font-weight: 500; text-decoration: none; }
.filter-tag--clear { background: var(--red-light); color: var(--red); border-color: rgba(198,40,40,0.2); }

/* ---- Job list card (horizontal, for listing page) -------- */
.jobs-list { display: flex; flex-direction: column; gap: 12px; }
.job-list-card {
    background: var(--white);
    border: 1.5px solid var(--gray-mid);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: border-color 0.14s, box-shadow 0.14s;
    position: relative;
}
.job-list-card:hover { border-color: var(--green); box-shadow: 0 3px 14px rgba(1,65,28,0.08); }
.job-list-left  { flex-shrink: 0; }
.job-list-body  { flex: 1; min-width: 0; }
.job-list-right { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.job-list-title { font-size: 15px; font-weight: 600; color: var(--text-dark); text-decoration: none; display: block; margin-bottom: 4px; }
.job-list-title:hover { color: var(--green); }
.job-list-org   { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

/* ---- Empty state ----------------------------------------- */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty-state i  { font-size: 48px; display: block; margin-bottom: 14px; }
.empty-state h3 { font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.empty-state p  { margin-bottom: 20px; }

/* ---- Job header card (detail page) ----------------------- */
.job-header-card { background: var(--white); border: 1.5px solid var(--gray-mid); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.job-header-top  { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
.org-logo { width: 72px; height: 72px; border-radius: 10px; background: var(--green-light); border: 1.5px solid rgba(1,65,28,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.org-logo img { width: 100%; height: 100%; object-fit: contain; }
.job-header-info { flex: 1; min-width: 0; }
.job-main-title  { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--text-dark); line-height: 1.3; margin-bottom: 5px; }
.job-org-name    { font-size: 14px; font-weight: 600; color: var(--green); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-org-name a  { color: var(--green); text-decoration: none; }
.job-org-name a:hover { text-decoration: underline; }
.verified-badge  { background: var(--green-light); color: var(--green); font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; border: 1px solid rgba(1,65,28,0.2); }
.job-header-badges { display: flex; flex-wrap: wrap; gap: 6px; }

.deadline-bar { background: var(--red-light); border: 1px solid rgba(198,40,40,0.25); border-radius: 8px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; gap: 8px; }
.deadline-left { display: flex; align-items: center; gap: 8px; color: #7a1212; font-size: 12px; font-weight: 600; }
.deadline-countdown { background: var(--red); color: white; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px; }

.action-bar { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

/* ---- Info cards (detail page) ---------------------------- */
.info-card   { background: var(--white); border: 1.5px solid var(--gray-mid); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card-title  { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1.5px solid var(--gray-light); display: flex; align-items: center; gap: 8px; }
.card-title i { color: var(--green); font-size: 17px; }

.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.meta-item  {}
.meta-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.meta-value { font-size: 13px; font-weight: 500; color: var(--text-dark); display: flex; align-items: center; gap: 5px; }
.meta-value i { color: var(--green); font-size: 14px; }

.desc-content { font-size: 13px; color: var(--text-mid); line-height: 1.85; }
.desc-content h4 { font-size: 13px; font-weight: 600; color: var(--text-dark); margin: 16px 0 8px; }
.desc-content ul { padding-left: 20px; margin-bottom: 12px; }
.desc-content ul li { margin-bottom: 5px; }
.desc-content p { margin-bottom: 10px; }

/* ---- Share row ------------------------------------------- */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Apply card (sidebar) -------------------------------- */
.apply-card { background: var(--green); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; text-align: center; }
.apply-card h3 { font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: white; margin-bottom: 5px; }
.apply-card p  { font-size: 11px; color: rgba(255,255,255,0.75); margin-bottom: 14px; }

/* ---- Quick facts ----------------------------------------- */
.quick-facts { display: flex; flex-direction: column; gap: 0; }
.qf-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gray-light); }
.qf-icon { width: 32px; height: 32px; border-radius: 7px; background: var(--green-light); display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 15px; flex-shrink: 0; }
.qf-label { font-size: 10px; color: var(--text-muted); }
.qf-value { font-size: 12px; font-weight: 600; color: var(--text-dark); }

/* ---- Related jobs (sidebar) ------------------------------ */
.related-job { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--gray-light); text-decoration: none; }
.related-job:last-child { border-bottom: none; }
.rel-logo { width: 36px; height: 36px; border-radius: 7px; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; overflow: hidden; }
.rel-title { font-size: 12px; font-weight: 600; color: var(--text-dark); line-height: 1.3; margin-bottom: 2px; }
.rel-org   { font-size: 11px; color: var(--green); }
.rel-meta  { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }

/* ---- Blog article ---------------------------------------- */
.blog-article {}
.blog-content { font-size: 14px; line-height: 1.9; }
.blog-content h2 { font-family: var(--font-serif); font-size: 20px; margin: 24px 0 10px; color: var(--text-dark); }
.blog-content h3 { font-size: 16px; font-weight: 600; margin: 20px 0 8px; color: var(--text-dark); }
.blog-content p  { margin-bottom: 14px; }
.blog-content ul, .blog-content ol { padding-left: 22px; margin-bottom: 14px; }
.blog-content li { margin-bottom: 6px; }

/* ---- Dept icon colors ------------------------------------ */
.dept-icon.govt   { background: var(--green-light); color: var(--green); }
.dept-icon.mil    { background: #fff3e0; color: #e65100; }
.dept-icon.law    { background: #e8eaf6; color: #3949ab; }
.dept-icon.edu    { background: #fce4ec; color: #c62828; }
.dept-icon.health { background: #e0f7fa; color: #00838f; }
.dept-icon.bank   { background: #f3e5f5; color: #7b1fa2; }
.dept-icon.tech   { background: var(--blue-light); color: var(--blue); }
.dept-icon.ngo    { background: #f9fbe7; color: #558b2f; }

/* ---- Responsive ------------------------------------------ */
@media (max-width: 900px) {
    .jobs-page-layout { grid-template-columns: 1fr; }
    .detail-layout    { grid-template-columns: 1fr; }
    .jobs-sidebar, .detail-sidebar { position: static; }
    .meta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .job-list-card { flex-direction: column; }
    .job-list-right { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .action-bar { flex-direction: column; }
    .share-row .btn { flex: 1 1 auto; }
}
