/* ============================================================
   Jobz.pk Classic & Modern Portal Stylesheet
   Authentic Look & Feel with High-Speed Clean CSS
   ============================================================ */

:root {
  /* Official Brand Colors (Derived from PakJob.pk logo) */
  --jobz-green: #007a33;        /* Emerald Green from 'Pak' & swoosh */
  --jobz-green-dark: #006329;   /* Deep Green for hover */
  --jobz-green-light: #e8f7ee;  /* Mint / soft green tint */
  --jobz-navy: #051b3b;         /* Midnight Deep Navy from 'Job' */
  --jobz-navy-dark: #031024;    /* Dark Navy for footer / top bars */
  --jobz-navy-light: #f0f4f9;   /* Soft slate tint */
  --jobz-blue: #007a33;         /* Primary brand accent */
  --jobz-blue-dark: #051b3b;    /* Secondary brand accent */
  --jobz-blue-light: #e8f7ee;
  --jobz-red: #007a33;          /* Primary search button uses brand green */
  --jobz-alert: #ca1933;        /* Red strictly reserved for last date/urgency */
  --jobz-nav: #051b3b;          /* Navbar uses Midnight Navy */
  --jobz-nav-hover: #007a33;    /* Hover tabs in brand green */
  --jobz-border: #d4e0eb;
  --jobz-table-header: #edf5f0; /* Crisp soft emerald-tinted header */
  --jobz-table-alt: #f7faf8;
  --jobz-text: #1a2228;
  --jobz-muted: #556270;
  --body-bg: #f4f7f9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Tahoma, Verdana, Helvetica, sans-serif;
  background-color: var(--body-bg);
  color: var(--jobz-text);
  line-height: 1.5;
  font-size: 13px;
}

a {
  color: var(--jobz-blue);
  text-decoration: none;
}

a:hover {
  color: var(--jobz-red);
  text-decoration: underline;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ============================================================
   Accessibility: Skip to Main Content Link
   ============================================================ */
.skip-to-content {
  position: absolute;
  top: -120px;
  left: 12px;
  background: var(--jobz-red);
  color: #ffffff !important;
  padding: 10px 18px;
  font-weight: bold;
  font-size: 13px;
  z-index: 999999;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: top 0.2s ease-in-out;
  text-decoration: none !important;
}
.skip-to-content:focus {
  top: 12px;
}

/* ============================================================
   Top Bar & Brand Header (Jobz.pk Style)
   ============================================================ */
.top-notice-bar {
  background: #ffffff;
  border-bottom: 1px solid #e1e8ed;
  padding: 6px 0;
  font-size: 11.5px;
  color: #555;
}

.top-notice-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-notice-title {
  color: #555;
}

.top-notice-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-notice-links a {
  color: #334e68;
  font-weight: 600;
}

.top-notice-links a:hover {
  color: var(--jobz-red);
}

.top-notice-links .sep {
  color: #cbd5e1;
}

.brand-section {
  background: #ffffff;
  padding: 14px 0 10px 0;
  border-bottom: 1px solid #d8e2eb;
}

.brand-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}


.site-header-logo {
  height: 52px;
  width: auto;
  max-width: 240px;
  display: block;
  object-fit: contain;
}

.mobile-nav-logo {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.logo-brand {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

.logo-brand .blue {
  color: var(--jobz-blue);
}

.logo-brand .red {
  color: var(--jobz-red);
}

.logo-tagline {
  font-size: 11px;
  color: #777;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 3px;
}

.top-cities-bar {
  font-size: 12px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cities-label {
  font-weight: bold;
  color: #051b3b;
  white-space: nowrap;
}

.cities-scroll {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.cities-scroll a {
  margin: 0 1px;
  font-weight: 600;
  color: #007a33;
  padding: 2px 4px;
  border-radius: 2px;
}

.cities-scroll a:hover {
  color: var(--jobz-red);
}

/* ============================================================
   Jobz.pk Navigation Bar & Mobile Drawer
   ============================================================ */
.main-navbar {
  background: var(--jobz-nav);
  box-shadow: 0 2px 4px rgba(0,0,0,0.12);
  position: relative;
}

.nav-container {
  display: flex;
  flex-direction: column;
}

/* Mobile Bar Header (Hidden on Desktop) */
.mobile-nav-bar {
  display: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  display: block;
  color: #ffffff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,0.12);
  transition: background 0.15s, color 0.15s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: var(--jobz-nav-hover);
  color: #4ade80;
}

/* Quick Category Swipe Strip (Hidden on Desktop) */
.mobile-quick-strip {
  display: none;
}

/* ============================================================
   Search Bar (Jobz.pk Classic Filter Box)
   ============================================================ */
.jobz-search-panel {
  background: linear-gradient(180deg, #f3f8fc 0%, #e5eef6 100%);
  border: 1px solid var(--jobz-border);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 15px auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.search-grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1.3fr auto;
  gap: 10px;
  align-items: center;
}

.search-input-wrap input,
.search-input-wrap select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #b8ccd9;
  border-radius: 3px;
  font-size: 13px;
  background: #ffffff;
  outline: none;
}

.search-input-wrap input:focus,
.search-input-wrap select:focus {
  border-color: var(--jobz-blue);
  box-shadow: 0 0 4px rgba(11,79,138,0.25);
}

.btn-jobz-search {
  background: var(--jobz-red);
  color: #ffffff;
  border: none;
  padding: 9px 20px;
  font-weight: bold;
  font-size: 13px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-jobz-search:hover {
  background: #006329;
}

/* Sub-header pills bar */
.sub-pills-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #cbdbe6;
  font-size: 12px;
}

.sub-pills-bar a {
  background: #ffffff;
  border: 1px solid #c2d4e2;
  padding: 3px 8px;
  border-radius: 3px;
  color: #051b3b;
  font-weight: bold;
  font-size: 11px;
}

.sub-pills-bar a:hover {
  background: var(--jobz-blue);
  color: #ffffff;
  text-decoration: none;
  border-color: var(--jobz-blue);
}

/* ============================================================
   Page Layout Grid (Main 72% + Sidebar 28%)
   ============================================================ */
.main-wrapper {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 18px;
  margin-bottom: 30px;
}

/* ============================================================
   Jobz.pk Table Box Styles
   ============================================================ */
.jobz-box {
  background: #ffffff;
  border: 1px solid var(--jobz-border);
  border-radius: 3px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.jobz-box-header {
  background: var(--jobz-nav);
  color: #ffffff;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: bold;
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jobz-box-header h1,
.jobz-box-header-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  padding: 0;
  display: inline-block;
  line-height: 1.3;
}

.jobz-box-header a {
  color: #4ade80;
  font-size: 12px;
  font-weight: normal;
}

.jobz-table {
  width: 100%;
  border-collapse: collapse;
}

.jobz-table th {
  background: var(--jobz-table-header);
  color: #334e68;
  font-size: 12px;
  font-weight: bold;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--jobz-border);
}

.jobz-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e7edf2;
  vertical-align: middle;
}

.jobz-table tr:nth-child(even) {
  background-color: var(--jobz-table-alt);
}

.jobz-table tr:hover {
  background-color: #f0fdf4;
}

.jobz-title-link {
  font-size: 14px;
  font-weight: bold;
  color: #051b3b;
  display: block;
  line-height: 1.35;
}

.jobz-title-link:hover {
  color: #007a33;
}

.jobz-dept {
  font-size: 11px;
  color: #555;
  margin-top: 3px;
}

.badge-tag {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 2px;
  text-transform: uppercase;
}

.badge-gov {
  background: #e8f7ee;
  color: #007a33;
  border: 1px solid #bbf7d0;
}

.badge-overseas {
  background: #f0f4f9;
  color: #051b3b;
  border: 1px solid #cbd5e1;
}

.badge-private {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.date-text {
  font-weight: bold;
  color: #d9230f;
  font-size: 11px;
}

/* ============================================================
   Sidebar Boxes (Jobz.pk Style)
   ============================================================ */
.sidebar-box {
  background: #ffffff;
  border: 1px solid var(--jobz-border);
  margin-bottom: 16px;
  border-radius: 3px;
}

.sidebar-box-header {
  background: #051b3b;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: bold;
  margin: 0;
  line-height: 1.3;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  border-bottom: 1px solid #f0f4f8;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  color: #222;
  font-size: 12px;
  text-decoration: none;
}

.sidebar-list li a:hover {
  background: #f4f8fc;
  color: var(--jobz-blue);
  padding-left: 15px;
  transition: padding-left 0.15s;
}

.sidebar-count {
  background: #eef4f8;
  color: #555;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 10px;
}

/* ============================================================
   Job Detail Page (Authentic Jobz.pk Key/Value Table)
   ============================================================ */
.detail-main-title {
  font-size: 20px;
  font-weight: bold;
  color: #051b3b;
  margin-bottom: 14px;
  line-height: 1.4;
  padding-bottom: 8px;
  border-bottom: 2px solid #007a33;
}

/* Jobz.pk Metadata Table */
.jobz-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border: 1px solid #cbdbe6;
  background: #ffffff;
}

.jobz-meta-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #e1ebf2;
  font-size: 13px;
}

.jobz-meta-table tr:nth-child(even) {
  background: #f8fbfe;
}

.meta-label-cell {
  width: 28%;
  font-weight: bold;
  color: #334e68;
  background: #edf4fa;
  border-right: 1px solid #cbdbe6;
}

.meta-val-cell {
  color: #111111;
}

.meta-val-cell a {
  color: #007a33;
  font-weight: bold;
}

/* Description Section */
.detail-heading-h2 {
  font-size: 16px;
  font-weight: bold;
  color: #051b3b;
  background: #f0fdf4;
  padding: 8px 12px;
  border-left: 4px solid #007a33;
  margin: 20px 0 12px 0;
}

.detail-desc-text {
  font-size: 13.5px;
  line-height: 1.8;
  color: #222;
  margin-bottom: 18px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5edf4;
  border-radius: 3px;
}

.detail-desc-text p {
  margin-bottom: 12px;
}

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

.desc-bullet-list {
  list-style: none;
  padding: 4px 0 6px 0;
  margin: 8px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.desc-bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #051b3b;
  line-height: 1.5;
}

.desc-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: -1px;
  color: #007a33;
  font-size: 18px;
  font-weight: bold;
}

/* Vacancy List Bullets */
.vacancies-box {
  background: #ffffff;
  border: 1px solid #cbdbe6;
  border-radius: 3px;
  padding: 14px;
  margin-bottom: 20px;
}

.vacancies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.vacancy-item {
  background: #f4f8fc;
  border: 1px solid #d4e3ef;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: bold;
  color: #051b3b;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* How to Apply Box */
.how-to-apply-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--jobz-green);
  padding: 14px;
  border-radius: 3px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.7;
}

.how-to-apply-title {
  font-size: 14px;
  font-weight: bold;
  color: #166534;
  margin-bottom: 6px;
}

/* Newspaper Advertisement Clipping Box */
.newspaper-ad-box {
  background: #ffffff;
  border: 1px solid #cbdbe6;
  border-radius: 3px;
  padding: 16px;
  text-align: center;
  margin: 24px 0;
}

.ad-actions-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-action {
  background: var(--jobz-blue);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: bold;
  padding: 7px 14px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  cursor: pointer;
}

.btn-action:hover {
  background: var(--jobz-blue-dark);
}

.btn-action-alt {
  background: #051b3b;
}
.btn-action-alt:hover {
  background: #092c5c;
}

.ad-img-responsive {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin: 0 auto;
  display: block;
}

/* ============================================================
   Pagination
   ============================================================ */
.jobz-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 20px 0;
}

.jobz-page-btn {
  padding: 6px 12px;
  border: 1px solid #c2d4e2;
  background: #ffffff;
  color: var(--jobz-blue);
  font-weight: bold;
  font-size: 12px;
  text-decoration: none;
  border-radius: 2px;
}

.jobz-page-btn.active {
  background: var(--jobz-blue);
  color: #ffffff;
  border-color: var(--jobz-blue);
}

.jobz-page-btn:hover:not(.active) {
  background: #eef4f9;
}

/* ============================================================
   Footer (Jobz.pk Style)
   ============================================================ */
.jobz-footer {
  background: #051b3b;
  color: #c9d7e3;
  padding: 30px 0 15px 0;
  margin-top: 40px;
  border-top: 4px solid var(--jobz-blue);
  font-size: 12px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 25px;
}

.footer-columns h4 {
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 1px solid #1a3c66;
  padding-bottom: 5px;
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  margin-bottom: 6px;
}

.footer-nav-list a {
  color: #c9d7e3;
}

.footer-nav-list a:hover {
  color: #4ade80;
}

.footer-bottom-bar {
  text-align: center;
  border-top: 1px solid #23547f;
  padding-top: 15px;
  color: #9cb4c9;
  font-size: 11.5px;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  font-size: 11.5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer-bottom-links a {
  color: #4ade80;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.footer-bottom-links .sep {
  color: #3b6d96;
}

/* ============================================================
   Comprehensive Mobile & Multi-Device Responsive Architecture
   Fully optimized for Mobile-First SEO & Google Core Web Vitals
   ============================================================ */

/* Helper utility for mobile hiding */
@media (max-width: 640px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Tablet & Smaller Desktops (max-width: 992px) */
@media (max-width: 992px) {
  .container {
    padding: 0 14px;
  }
  .main-wrapper {
    grid-template-columns: 1fr 280px;
    gap: 14px;
  }
  .search-grid {
    grid-template-columns: 1.5fr 1fr 1fr auto;
  }
}

/* Mid Tablets & Mobile Landscape (max-width: 860px) */
@media (max-width: 860px) {
  .main-wrapper {
    grid-template-columns: 1fr !important; /* Force single column over any inline styles */
  }
  aside {
    margin-top: 20px;
  }
  .search-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .search-input-wrap input,
  .search-input-wrap select,
  .btn-jobz-search {
    height: 42px;
    font-size: 14px;
  }
  .btn-jobz-search {
    width: 100%;
    display: block;
    text-align: center;
    padding: 10px 16px;
  }
}

/* Standard Mobile & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  /* Top notice bar stacking */
  .top-notice-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 2px 0;
  }

  /* Brand section: stack logo and cities neatly */
  .brand-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .logo-brand {
    font-size: 30px;
  }
  .top-cities-bar {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 4px 0;
    scrollbar-width: none;
  }
  .top-cities-bar::-webkit-scrollbar {
    display: none;
  }
  .cities-scroll {
    flex-wrap: nowrap;
  }
  .cities-scroll a {
    display: inline-block;
    padding: 3px 6px;
    background: #f1f6fa;
    border-radius: 3px;
    font-size: 11.5px;
  }

  /* Mobile Navigation Bar */
  .mobile-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--jobz-nav);
  }
  .mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    padding: 7px 12px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    outline: none;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle.is-active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4ade80;
    color: #4ade80;
  }
  .hamburger-box {
    width: 18px;
    height: 14px;
    position: relative;
    display: inline-block;
  }
  .hamburger-inner,
  .hamburger-inner::before,
  .hamburger-inner::after {
    width: 18px;
    height: 2px;
    background-color: currentColor;
    position: absolute;
    left: 0;
    transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
  }
  .hamburger-inner {
    top: 6px;
  }
  .hamburger-inner::before {
    content: "";
    top: -6px;
  }
  .hamburger-inner::after {
    content: "";
    bottom: -6px;
  }
  .mobile-menu-toggle.is-active .hamburger-inner {
    background-color: transparent;
  }
  .mobile-menu-toggle.is-active .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
  }
  .mobile-menu-toggle.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
  }
  .mobile-nav-title a {
    color: #ffffff;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: -0.5px;
    text-decoration: none;
  }
  .mobile-search-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #4ade80;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 6px 11px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
  }
  .mobile-search-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-decoration: none;
  }

  /* Nav Menu Dropdown on Mobile */
  .nav-menu {
    display: none;
    flex-direction: column;
    background: #0d2c47;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 0;
  }
  .nav-menu.nav-open {
    display: flex;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu li a {
    padding: 12px 18px;
    font-size: 13.5px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .nav-menu li:last-child a {
    border-bottom: none;
  }

  /* Horizontal Category Swipe Strip on Mobile */
  .mobile-quick-strip {
    display: block;
    background: #09243c;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .mobile-quick-strip::-webkit-scrollbar {
    display: none;
  }
  .mobile-quick-scroll {
    display: inline-flex;
    padding: 7px 10px;
    gap: 7px;
  }
  .mobile-quick-scroll a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #e5eff8;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    white-space: nowrap;
  }
  .mobile-quick-scroll a:hover,
  .mobile-quick-scroll a:active {
    background: var(--jobz-blue);
    color: #4ade80;
    border-color: #4ade80;
  }

  /* Sub Pills Bar (Quick Filters) */
  .sub-pills-bar {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    scrollbar-width: none;
  }
  .sub-pills-bar::-webkit-scrollbar {
    display: none;
  }
  .sub-pills-bar a {
    display: inline-block;
    padding: 5px 9px;
    font-size: 11.5px;
  }

  /* Footer Layout on Mobile */
  .footer-columns {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom-bar > div {
    width: 100%;
    justify-content: center;
  }

  /* Prevent automatic iOS font-zoom in forms */
  input[type="text"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Smartphone & Screen Width <= 640px (Job Listing Card Transformation) */
@media (max-width: 640px) {
  .container {
    padding: 0 10px;
  }

  .jobz-box-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
  }
  .jobz-box-header a {
    align-self: flex-start;
  }

  /* --- Mobile Job Card Transformation for .jobz-table --- */
  .jobz-table,
  .jobz-table tbody,
  .jobz-table tr,
  .jobz-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .jobz-table thead {
    display: none; /* Hide multi-column desktop headers */
  }

  .jobz-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid #dce5ec;
    background: #ffffff;
    transition: background 0.15s ease;
  }

  .jobz-table tr:nth-child(even) {
    background: #f8fbfe;
  }

  .jobz-table tr:hover {
    background: #f0f7fe;
  }

  .jobz-table td {
    padding: 2px 0 !important;
    border: none !important;
  }

  .jobz-table td:first-child {
    margin-bottom: 6px;
  }

  .jobz-table .jobz-title-link {
    font-size: 14.5px;
    line-height: 1.35;
    color: #007a33;
    margin-bottom: 3px;
  }

  .jobz-table .jobz-dept {
    font-size: 12px;
    color: #555;
    line-height: 1.4;
  }

  /* Meta properties line (Category, City, Date) in card footer */
  .jobz-table td:nth-child(2),
  .jobz-table td:nth-child(3),
  .jobz-table td:nth-child(4) {
    display: inline-block !important;
    width: auto !important;
    margin-right: 10px;
    margin-top: 4px;
    vertical-align: middle;
    font-size: 11.5px;
  }

  .jobz-table td:nth-child(4) {
    text-align: left !important;
  }

  .date-text {
    font-size: 11px;
    display: inline-block;
  }
  .deadline-text {
    font-size: 11px;
    display: inline-block;
    margin-left: 4px;
  }

  /* Detail Page Mobile Adjustments */
  .detail-main-title {
    font-size: 18px;
    line-height: 1.35;
  }

  .ad-actions-bar {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .ad-actions-bar .btn-action {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 13px;
  }

  .vacancies-grid {
    grid-template-columns: 1fr;
  }

  /* Pagination on Mobile */
  .jobz-pagination {
    flex-wrap: wrap;
    gap: 5px;
  }
  .jobz-page-btn {
    padding: 7px 11px;
    font-size: 12px;
    min-width: 36px;
    text-align: center;
  }

  /* Contact & Form Grid */
  .contact-form-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .error-search-form {
    flex-direction: column !important;
  }
  .error-search-form input,
  .error-search-form button {
    width: 100% !important;
  }
}

/* Extra Small Phones (max-width: 560px) */
@media (max-width: 560px) {
  /* Key/Value Meta Table on Job Detail Page */
  .jobz-meta-table,
  .jobz-meta-table tbody,
  .jobz-meta-table tr,
  .jobz-meta-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
  .jobz-meta-table tr {
    border-bottom: 1px solid #dce6ef;
  }
  .meta-label-cell {
    width: 100% !important;
    border-right: none !important;
    border-bottom: none !important;
    padding: 6px 10px 2px 10px !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #edf4fa !important;
    color: #435b73 !important;
  }
  .meta-val-cell {
    width: 100% !important;
    padding: 3px 10px 8px 10px !important;
    font-size: 13.5px !important;
    background: #ffffff !important;
  }

  .logo-brand {
    font-size: 26px;
  }
  .logo-tagline {
    font-size: 9.5px;
  }
}

/* Very Narrow Devices (iPhone SE, Galaxy Fold ~320-375px) */
@media (max-width: 480px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .brand-section {
    padding: 10px 0 8px 0;
  }
  .btn-jobz-search {
    font-size: 13.5px;
  }
}
