/* ========================================================
   ROZGAR PAKISTAN - PREMIUM DESIGN SYSTEM & STYLESHEET
   Curated Palette: Emerald (#0d5c3a), Teal (#059669), Gold (#f59e0b)
   Typography: Outfit & Inter
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #0d5c3a;
  --primary-hover: #09452b;
  --primary-light: #e6f4ed;
  --accent: #10b981;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fef3c7;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  
  --container-max: 1200px;
}

[data-theme="dark"] {
  --bg-main: #0b1120;
  --bg-card: #151e32;
  --bg-subtle: #1e293b;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border: #334155;
  
  --primary-light: #132e22;
  --accent-gold-light: #362909;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========================================================
   TOP NOTIFICATION BAR (WhatsApp Alerts & Breaking)
   ======================================================== */
.top-bar {
  background: linear-gradient(90deg, #064e3b 0%, #0d5c3a 50%, #064e3b 100%);
  color: #ffffff;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.top-badge {
  background: var(--accent-gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-bar-link {
  color: #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}
.top-bar-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ========================================================
   HEADER & NAVBAR
   ======================================================== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.brand-logo:hover {
  transform: translateY(-1px);
}
.logo-emblem {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 10px rgba(6, 78, 59, 0.22));
}
.brand-logo:hover .logo-emblem {
  transform: scale(1.06) rotate(-2deg);
}
.logo-img {
  width: 100%;
  height: 100%;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.logo-accent {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}
[data-theme="dark"] .logo-text h1 {
  color: #f8fafc;
}
[data-theme="dark"] .logo-accent {
  background: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}
.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.footer-brand-header h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.logo-accent-light {
  color: #34d399;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
  padding: 0.35rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
}
[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  transition: all 0.2s;
}
.theme-toggle-btn:hover {
  background: var(--border);
}
.btn-whatsapp-join {
  background: #25D366;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-whatsapp-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(37, 211, 102, 0.4);
}

/* ========================================================
   CATEGORY QUICK NAV (Province & Job Type Bar)
   ======================================================== */
.category-nav-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  overflow-x: auto;
  white-space: nowrap;
}
.category-nav-inner {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.cat-pill {
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ========================================================
   HERO SEARCH SECTION (GREEN & OBSIDIAN-BLACK COMBINATION)
   ======================================================== */
.hero-section, .hero-search {
  background: linear-gradient(135deg, #021f14 0%, #064e3b 40%, #02120b 100%) !important;
  color: #ffffff !important;
  padding: 3rem 1rem 2.75rem !important;
  position: relative !important;
  overflow: hidden !important;
  border-bottom: 3px solid rgba(16, 185, 129, 0.25) !important;
  margin-bottom: 2.25rem !important;
}
.hero-section::before, .hero-search::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(#10b981 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  opacity: 0.16;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.16);
  backdrop-filter: blur(8px);
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6ee7b7;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  letter-spacing: 0.02em;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 850;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  letter-spacing: -0.025em;
  color: #ffffff !important;
}
.hero-title .text-gradient {
  background: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Arrow 1: Subtitle to Search Box Space Reduced to 0.75rem (12px) */
.hero-subtitle {
  font-size: 1.05rem;
  color: #d1fae5 !important;
  margin-bottom: 0.55rem !important;
  font-weight: 400;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.archive-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
}
.archive-breadcrumbs a {
  color: #a7f3d0;
  text-decoration: none;
  font-weight: 600;
}
.archive-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.archive-breadcrumbs span {
  color: rgba(255, 255, 255, 0.45);
}

/* Search Form */
.search-form-card {
  background: var(--bg-card);
  padding: 0.5rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.search-input-group {
  flex: 1 1 250px;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  outline: none;
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.search-select {
  flex: 1 1 160px;
  padding: 0.85rem 1rem;
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}
.btn-search {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-search:hover {
  background: var(--primary-hover);
}

/* Popular Search Tags */
.popular-tags {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #a7f3d0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.popular-tags a {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  color: #ffffff;
  transition: background 0.2s;
}
.popular-tags a:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ========================================================
   ADSENSE ADVERT BLOCKS (Compliant & Well Styled)
   ======================================================== */
.ad-slot-wrapper {
  margin: 1.75rem 0;
  text-align: center;
}
.ad-slot-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.ad-box {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.ad-box-leaderboard {
  min-height: 90px;
  max-width: 728px;
  margin: 0 auto;
}
.ad-box-rectangle {
  min-height: 250px;
  width: 100%;
}
.ad-box p {
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

/* ========================================================
   SECTION HEADINGS & LAYOUT
   ======================================================== */
.section {
  padding: 2.5rem 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.75rem;
}
.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-title-bar {
  width: 4px;
  height: 28px;
  background: var(--primary);
  border-radius: 4px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.view-all-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.2s;
}
.view-all-link:hover {
  transform: translateX(4px);
}

/* ========================================================
   JOB CARDS GRID: 4-COLUMN DESKTOP & 2-COLUMN MOBILE
   ======================================================== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.job-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-gold) 100%);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.job-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.badge-category {
  background: var(--primary-light);
  color: var(--primary);
}
[data-theme="dark"] .badge-category {
  color: #34d399;
}
.badge-province {
  background: var(--bg-subtle);
  color: var(--text-secondary);
}
.badge-featured {
  background: var(--accent-gold-light);
  color: #b45309;
}

.job-posted-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.job-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-primary);
  line-height: 1.32;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.65em;
}
.job-card:hover .job-title {
  color: var(--primary);
}
[data-theme="dark"] .job-card:hover .job-title {
  color: var(--accent);
}

.job-dept {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.78rem;
}
.job-info-item {
  display: flex;
  flex-direction: column;
}
.info-label {
  color: var(--text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 600;
}
.info-value {
  color: var(--text-primary);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  gap: 0.5rem;
}
.last-date-badge {
  font-size: 0.75rem;
  color: #dc2626;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.btn-view-job {
  background: var(--primary);
  color: #ffffff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.btn-view-job:hover {
  background: var(--primary-dark);
}

/* ========================================================
   SINGLE JOB DETAIL PAGE
   ======================================================== */
.job-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  margin-top: 1.5rem;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.job-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.detail-main-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0.75rem 0 1rem;
  color: var(--text-primary);
}
.detail-sub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.sub-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Share & Action Buttons */
.job-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}
.share-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.btn-share-whatsapp {
  background: #25D366;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-share-fb {
  background: #1877F2;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Quick Overview Table (High AdSense Value) */
.overview-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card-section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
[data-theme="dark"] .card-section-title {
  color: #34d399;
}
.job-summary-table {
  width: 100%;
  border-collapse: collapse;
}
.job-summary-table tr {
  border-bottom: 1px solid var(--border);
}
.job-summary-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  width: 35%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.875rem;
}
.job-summary-table td {
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Detail Text Blocks */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
}
.content-card p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1rem;
}
.content-list {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.content-list li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

/* Vacancy / Positions Table */
.positions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.positions-table th {
  background: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.85rem;
}
.positions-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

/* FAQs Accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  background: var(--bg-subtle);
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Official Ad Image Preview */
.ad-image-container {
  text-align: center;
  background: var(--bg-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-top: 1rem;
}
.ad-image-container img {
  border-radius: var(--radius-sm);
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  max-height: 600px;
  object-fit: cover;
  width: 100%;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
  color: var(--text-primary);
}
.quick-apply-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #064e3b 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}
.quick-apply-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.quick-apply-cta p {
  font-size: 0.85rem;
  color: #d1fae5;
  margin-bottom: 1.25rem;
}
.btn-cta-apply {
  display: block;
  width: 100%;
  background: var(--accent-gold);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.2s, background 0.2s;
}
.btn-cta-apply:hover {
  transform: translateY(-2px);
  background: #f59e0b;
}

.related-job-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.related-job-item:last-child {
  border-bottom: none;
}
.related-job-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.related-job-info h4:hover {
  color: var(--primary);
}
.related-job-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================================================
   MANDATORY LEGAL / INFO PAGES (AdSense Pillars)
   ======================================================== */
.page-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin: 2.5rem auto;
  max-width: 900px;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
}
.page-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
[data-theme="dark"] .page-title {
  color: #34d399;
}
.page-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.page-body h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--text-primary);
}
.page-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}
.page-body p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.page-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}
.page-body li {
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.form-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.form-control {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--bg-subtle);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.form-control:focus {
  border-color: var(--primary);
  background: var(--bg-card);
}
textarea.form-control {
  min-height: 140px;
  resize: vertical;
}
.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover {
  background: var(--primary-hover);
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* ========================================================
   ADMIN CMS DASHBOARD STYLES
   ======================================================== */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 80px);
}
.admin-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 2rem 1.25rem;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-nav-link {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}
.admin-content {
  padding: 2.5rem;
  background: var(--bg-main);
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.stat-card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.stat-card-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0.25rem;
}

.table-responsive {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background: var(--bg-subtle);
  padding: 1rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.action-buttons {
  display: flex;
  gap: 0.5rem;
}
.btn-sm {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.btn-edit {
  background: var(--primary-light);
  color: var(--primary);
}
.btn-delete {
  background: #fee2e2;
  color: #dc2626;
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background: #061910;
  color: #e2e8f0;
  margin-top: auto;
  padding: 4rem 0 1.5rem;
  border-top: 4px solid var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 360px;
}
.footer-column h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* ========================================================
   RESPONSIVE DESIGN (Mobile Friendly for AdSense)
   ======================================================== */
@media (max-width: 992px) {
  .job-detail-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .main-nav {
    display: none; /* Can be toggled or kept in bottom drawer */
  }
  .search-form-card {
    flex-direction: column;
  }
  .search-select {
    border-left: none;
    border-top: 1px solid var(--border);
    width: 100%;
  }
  .btn-search {
    width: 100%;
    justify-content: center;
  }
  /* replaced mobile 1fr */
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-bar-content {
    justify-content: center;
  }
}


/* ========================================================
   RESPONSIVE ADMIN CMS ENHANCEMENTS (Mobile First)
   ======================================================== */
.admin-header {
  background: #064e3b;
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.admin-header-link {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}
.admin-header-link.live-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #a7f3d0;
}
.admin-header-link.live-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.admin-header-link.logout-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}
.admin-header-link.logout-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.admin-form-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.admin-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.admin-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Desktop vs Mobile Jobs View */
.admin-desktop-table {
  display: block;
}
.admin-mobile-cards {
  display: none;
}
.admin-job-mobile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.admin-job-mobile-card:hover {
  border-color: var(--accent);
}
.admin-job-mobile-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
}
.admin-job-mobile-dept {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.admin-job-mobile-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  background: var(--bg-subtle);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}
.admin-job-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.admin-job-mobile-actions .btn-sm {
  padding: 0.65rem 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

/* Mobile Media Queries for Admin */
@media (max-width: 768px) {
  .admin-header {
    padding: 0.75rem 1rem;
  }
  .admin-header-brand span {
    font-size: 1.1rem;
  }
  .admin-header-brand strong {
    font-size: 0.95rem;
  }
  .admin-header-link {
    font-size: 0.75rem;
    padding: 0.3rem 0.55rem;
  }

  .admin-sidebar {
    padding: 0.5rem 0.75rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
  }
  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    gap: 0.4rem;
    padding-bottom: 0.25rem;
  }
  .admin-nav::-webkit-scrollbar {
    height: 3px;
  }
  .admin-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
  }
  .admin-nav-link {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 9999px;
    background: var(--bg-subtle);
  }
  .admin-nav-link.active {
    background: var(--primary);
    color: #ffffff;
  }

  .admin-content {
    padding: 1.25rem 0.85rem;
  }
  .admin-dashboard-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.85rem !important;
  }
  .admin-dashboard-header h1 {
    font-size: 1.4rem !important;
  }
  .admin-dashboard-header .btn-search {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .admin-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .admin-stat-grid .stat-card:last-child {
    grid-column: span 2;
  }
  .stat-card {
    padding: 1rem;
  }
  .stat-card-label {
    font-size: 0.75rem;
  }
  .stat-card-value {
    font-size: 1.6rem;
  }

  /* Table becomes mobile cards */
  .admin-desktop-table {
    display: none;
  }
  .admin-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Forms on Mobile */
  .admin-form-container {
    padding: 1rem 0.75rem;
  }
  .admin-form-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }
  .admin-form-card h1 {
    font-size: 1.35rem !important;
  }
  .form-control {
    font-size: 16px !important;
    padding: 0.75rem;
  }
  .admin-form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .admin-form-actions button,
  .admin-form-actions a {
    width: 100% !important;
    justify-content: center;
    text-align: center;
  }
}


/* ========================================================
   CRITICAL OVERFLOW-X FIXES FOR MOBILE SCREEN
   ======================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

.admin-layout {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

.admin-layout > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

.admin-sidebar {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.admin-content {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

.admin-mobile-cards {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.admin-job-mobile-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.admin-job-mobile-title {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.admin-job-mobile-dept {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.35rem !important;
}

.admin-job-mobile-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.admin-job-mobile-actions form {
  width: 100% !important;
  margin: 0 !important;
}

.admin-job-mobile-actions .btn-sm {
  width: 100% !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}


/* ========================================================
   COMPREHENSIVE RESPONSIVE STYLES (MOBILE & DESKTOP ENHANCEMENTS)
   ======================================================== */

/* 1. Global Overflow Prevention */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 2. Quick Browse Bar (Hide Ugly Scrollbars Everywhere) */
.category-nav-bar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
.category-nav-bar::-webkit-scrollbar {
  display: none !important;
}
.category-nav-inner {
  display: flex !important;
  gap: 0.5rem !important;
  padding: 0.25rem 0 !important;
  width: max-content !important;
}

/* 3. Hero Search Form Styling */
.search-form-card {
  background: var(--bg-card) !important;
  padding: 0.65rem !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.65rem !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.search-input-group {
  flex: 2 1 240px !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}
.search-icon {
  position: absolute !important;
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: var(--text-muted) !important;
  font-size: 1.1rem !important;
  pointer-events: none !important;
}
.search-input {
  width: 100% !important;
  height: 48px !important;
  padding: 0.65rem 1rem 0.65rem 2.85rem !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  background: var(--bg-subtle) !important;
  font-size: 0.95rem !important;
  color: var(--text-primary) !important;
  outline: none !important;
  box-sizing: border-box !important;
}
.search-input:focus {
  border-color: var(--primary) !important;
  background: var(--bg-card) !important;
}
.search-select {
  flex: 1 1 160px !important;
  height: 48px !important;
  padding: 0.65rem 1rem !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  background: var(--bg-subtle) !important;
  font-size: 0.9rem !important;
  color: var(--text-primary) !important;
  outline: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}
.btn-search {
  height: 48px !important;
  padding: 0 1.75rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  border-radius: var(--radius-md) !important;
}

/* 4. Job Cards Text Overflow Fix */
.info-value {
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.35 !important;
  overflow: visible !important;
  text-overflow: unset !important;
}
.job-title {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}
.job-dept {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

/* 5. Single Job Post Page Desktop & Mobile Enhancements */
.job-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
}
.meta-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.meta-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.meta-card-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
  line-height: 1.35;
}
.meta-card-value.date-red {
  color: #dc2626 !important;
}

.job-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.share-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.btn-share-whatsapp, .btn-share-fb {
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.btn-portal-link {
  padding: 0.65rem 1.5rem !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/* Job Specifications Table (Desktop) */
.job-summary-table {
  width: 100%;
  border-collapse: collapse;
}
.job-summary-table tr {
  border-bottom: 1px solid var(--border);
}
.job-summary-table tr:nth-child(even) {
  background: var(--bg-subtle);
}
.job-summary-table th {
  text-align: left;
  padding: 0.85rem 1.15rem;
  width: 32%;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.875rem;
}
.job-summary-table td {
  padding: 0.85rem 1.15rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  word-break: break-word;
}

/* 6. Footer (Desktop 5 Columns, Mobile 2x2 Columns) */
.site-footer {
  background: #061910;
  color: #e2e8f0;
  margin-top: auto;
  padding: 3.5rem 0 1.5rem;
  border-top: 4px solid var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

/* ========================================================
   MOBILE MEDIA QUERIES (max-width: 768px)
   ======================================================== */
@media (max-width: 768px) {
  /* Search Form on Mobile */
  .search-form-card {
    flex-direction: column !important;
    padding: 0.75rem !important;
    gap: 0.65rem !important;
  }
  .search-input-group {
    width: 100% !important;
    flex: none !important;
  }
  .search-select {
    width: 100% !important;
    flex: none !important;
  }
  .btn-search {
    width: 100% !important;
  }

  /* Job Cards on Mobile */
  .job-card {
    padding: 1.15rem !important;
  }
  .job-info-list {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem !important;
    padding: 0.75rem !important;
  }

  /* Job Detail Page on Mobile */
  .job-header-card {
    padding: 1.25rem 1rem !important;
  }
  .detail-main-title {
    font-size: 1.35rem !important;
    line-height: 1.3 !important;
  }
  .job-meta-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }
  .meta-card {
    padding: 0.65rem 0.75rem !important;
  }
  .meta-card-label {
    font-size: 0.7rem !important;
  }
  .meta-card-value {
    font-size: 0.85rem !important;
  }

  /* Share buttons on mobile */
  .job-actions-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .share-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }
  .btn-share-whatsapp, .btn-share-fb {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 0.5rem !important;
  }
  .apply-portal-wrap {
    width: 100% !important;
  }
  .btn-portal-link {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    padding: 0.75rem 1rem !important;
  }

  /* Specifications Table becomes stacked on mobile! */
  .overview-table-card {
    padding: 1.25rem 1rem !important;
  }
  .card-section-title {
    font-size: 1.15rem !important;
  }
  .job-summary-table, .job-summary-table tbody, .job-summary-table tr, .job-summary-table th, .job-summary-table td {
    display: block !important;
    width: 100% !important;
  }
  .job-summary-table tr {
    padding: 0.65rem 0 !important;
    border-bottom: 1px solid var(--border) !important;
    background: transparent !important;
  }
  .job-summary-table th {
    padding: 0 0 0.2rem 0 !important;
    font-size: 0.725rem !important;
    text-transform: uppercase !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.05em !important;
  }
  .job-summary-table td {
    padding: 0 !important;
    font-size: 0.95rem !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
  }

  /* FOOTER ON MOBILE: 2x2 SECTIONS SIDE BY SIDE */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem 1.25rem !important;
  }
  .footer-brand {
    grid-column: span 2 !important;
    margin-bottom: 0.5rem !important;
  }
  .footer-column {
    min-width: 0 !important;
  }
  .footer-column h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.85rem !important;
  }
  .footer-links a {
    font-size: 0.825rem !important;
    word-break: break-word !important;
  }
}


/* ========================================================
   TOP BAR SINGLE LINE & POPULAR TAGS SINGLE LINE ENHANCEMENTS
   ======================================================== */
.top-bar {
  padding: 0.45rem 0 !important;
}
.top-bar-content-single {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}
.top-bar-text {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 0.825rem !important;
  font-weight: 500 !important;
  color: #ffffff !important;
}

.popular-tags {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important; /* STRICTLY 1 SINGLE LINE! */
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  gap: 0.4rem !important;
  white-space: nowrap !important;
  padding: 0.5rem 0.25rem !important;
  margin-top: 1rem !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.popular-tags::-webkit-scrollbar {
  display: none !important;
}
.popular-label {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #a7f3d0 !important;
  flex-shrink: 0 !important;
}
.popular-tags a {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  padding: 0.25rem 0.65rem !important;
  border-radius: 6px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  transition: background 0.2s !important;
}
.popular-tags a:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

@media (max-width: 768px) {
  .top-bar-text {
    font-size: 0.775rem !important;
  }
  .top-badge {
    font-size: 0.7rem !important;
    padding: 2px 6px !important;
  }
  .popular-tags {
    justify-content: flex-start !important;
    padding: 0.5rem 0.5rem !important;
  }
}


/* ========================================================
   HEADER DROPDOWN & MOBILE DRAWER NAVIGATION
   ======================================================== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  outline: none;
  transition: color 0.2s;
}
.dropdown-toggle:hover {
  color: var(--primary);
}
[data-theme="dark"] .dropdown-toggle:hover {
  color: var(--accent);
}
.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 1.25rem;
  min-width: 440px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.dropdown-col-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.05em;
}
[data-theme="dark"] .dropdown-col-title {
  color: #34d399;
}
.dropdown-item {
  display: block;
  padding: 0.4rem 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  text-decoration: none;
}
.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateX(4px);
}
[data-theme="dark"] .dropdown-item:hover {
  color: #34d399;
}

/* Mobile Hamburger Menu Button */
.mobile-menu-btn {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  transition: background 0.2s;
}
.mobile-menu-btn:hover {
  background: var(--border);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--primary);
  padding: 1.25rem 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 80vh;
  overflow-y: auto;
}
.mobile-drawer.open {
  display: block;
  animation: slideDown 0.25s ease forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-nav-link {
  display: block;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  margin-bottom: 0.35rem;
  background: var(--bg-subtle);
}
.mobile-nav-link.active {
  background: var(--primary);
  color: #ffffff;
}
.mobile-drawer-heading {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .mobile-drawer-heading {
  color: #34d399;
}
.mobile-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.mobile-drawer-item {
  display: block;
  padding: 0.45rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.mobile-drawer-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
[data-theme="dark"] .mobile-drawer-item:hover {
  color: #34d399;
}
.mobile-drawer-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: inline-flex !important;
  }
  .main-nav {
    display: none !important;
  }
}


@media (max-width: 640px) {
  .logo-emblem {
    width: 38px;
    height: 38px;
  }
  .logo-text h1 {
    font-size: 1.25rem;
  }
  .logo-tagline {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
}


/* ========================================================
   SITE FOOTER (BALANCED 4-COLUMN DESKTOP & CLEAN 2-COLUMN MOBILE)
   ======================================================== */
.site-footer {
  background: #061910;
  color: #e2e8f0;
  margin-top: auto;
  padding: 3.5rem 0 1.5rem;
  border-top: 4px solid var(--primary);
  width: 100%;
  box-sizing: border-box;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.15fr 1.15fr 1.15fr;
  gap: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.footer-brand {
  max-width: 330px;
}
.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.footer-brand-logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}
.footer-brand-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: -0.025em;
  color: #ffffff;
}
.logo-accent-light {
  color: #34d399;
}
.footer-brand p {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0;
}
.footer-column {
  min-width: 0;
}
.footer-column h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 750;
  color: #ffffff;
  margin-bottom: 1.15rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links li {
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  line-height: 1.4;
}
.footer-links a:hover {
  color: #34d399;
  transform: translateX(3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.85rem;
}
.footer-bottom-links a:hover {
  color: #34d399;
}
.footer-bottom-links .sep {
  color: #475569;
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 2rem 1.5rem !important;
  }
  .footer-brand {
    grid-column: span 3 !important;
    max-width: 100% !important;
    margin-bottom: 0.5rem !important;
  }
}

/* Mobile (<= 768px): Clean 2-Column Side by Side */
@media (max-width: 768px) {
  .site-footer {
    padding: 2.25rem 0 1.5rem !important;
  }
  .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem 1.25rem !important;
    margin-bottom: 2rem !important;
  }
  .footer-brand {
    grid-column: span 2 !important;
    max-width: 100% !important;
    margin-bottom: 0.5rem !important;
  }
  .footer-brand p {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
  }
  .footer-column {
    min-width: 0 !important;
  }
  .footer-column h3 {
    font-size: 0.95rem !important;
    margin-bottom: 0.8rem !important;
    white-space: nowrap !important;
  }
  .footer-links {
    gap: 0.55rem !important;
  }
  .footer-links a {
    font-size: 0.825rem !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
  }
  
  /* Quick links on mobile span 2 columns with 2-col links grid */
  .footer-column-quick {
    grid-column: span 2 !important;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-links-quick {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem 1rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.85rem !important;
    padding-top: 1.25rem !important;
  }
  .footer-bottom-links {
    justify-content: center !important;
    gap: 0.75rem !important;
  }
}

/* ========================================================
   RESPONSIVE JOBS GRID (4 DESKTOP / 3 TABLET / 2 MOBILE)
   ======================================================== */
@media (max-width: 1200px) and (min-width: 993px) {
  .jobs-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .jobs-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
  }
}

@media (max-width: 768px) {
  /* 2 CARDS PER ROW ON MOBILE */
  .jobs-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .job-card {
    padding: 0.75rem !important;
    border-radius: 10px !important;
  }
  .job-card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
    margin-bottom: 0.4rem !important;
  }
  .job-meta-badges {
    gap: 0.25rem !important;
  }
  .badge {
    font-size: 0.6rem !important;
    padding: 2px 5px !important;
  }
  .job-posted-time {
    font-size: 0.62rem !important;
  }
  .job-title {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.3rem !important;
    min-height: 2.5em !important;
    -webkit-line-clamp: 2 !important;
  }
  .job-dept {
    font-size: 0.72rem !important;
    margin-bottom: 0.45rem !important;
  }
  .job-info-list {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.35rem 0.45rem !important;
    padding: 0.45rem 0.5rem !important;
    margin-bottom: 0.6rem !important;
  }
  .info-label {
    font-size: 0.56rem !important;
  }
  .info-value {
    font-size: 0.72rem !important;
  }
  .job-card-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.45rem !important;
    padding-top: 0.5rem !important;
  }
  .last-date-badge {
    font-size: 0.68rem !important;
    justify-content: center !important;
  }
  .btn-view-job {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.42rem 0.5rem !important;
    font-size: 0.72rem !important;
  }
}

@media (max-width: 380px) {
  .jobs-grid {
    gap: 0.5rem !important;
  }
  .job-card {
    padding: 0.6rem !important;
  }
  .job-title {
    font-size: 0.8rem !important;
  }
}


/* ========================================================
   LOAD MORE JOBS BUTTON & ANIMATION
   ======================================================== */
.job-card-hidden {
  display: none !important;
}

.load-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.5rem 0 1.5rem;
}

.btn-load-more {
  background: var(--bg-card);
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.1);
}

.btn-load-more:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 78, 59, 0.22);
}

[data-theme="dark"] .btn-load-more {
  background: var(--bg-card);
  color: #34d399;
  border-color: #34d399;
}

[data-theme="dark"] .btn-load-more:hover {
  background: #059669;
  color: #ffffff;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.popular-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: 1rem;
  scrollbar-width: none;
}
.popular-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #a7f3d0 !important;
  white-space: nowrap;
}
.popular-tags a {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.popular-tags a:hover {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  transform: translateY(-1px);
}


/* ========================================================
   HERO SEARCH SPACING & AIRY MARGINS
   ======================================================== */
.hero-section, .hero-search {
  margin-bottom: 2.5rem !important;
}

.search-form {
  margin-bottom: 1.25rem !important;
}

/* Removed late large margin override for popular-tags */

.ad-slot-wrapper {
  margin: 2rem 0 2.5rem !important;
}

/* ========================================================
   JOB CARD FOOTER & APPLY BUTTON (100% VISIBLE ON ALL SCREENS)
   ======================================================== */
.job-card-footer {
  margin-top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.5rem !important;
  border-top: 1px solid var(--border) !important;
  padding-top: 0.75rem !important;
}

.last-date-badge {
  font-size: 0.75rem !important;
  color: #dc2626 !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.25rem !important;
  width: 100% !important;
  white-space: nowrap !important;
}

.btn-view-job {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.8rem !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.btn-view-job:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(6, 78, 59, 0.2) !important;
}


/* ========================================================
   HERO SEARCH BOXES (PRECISE 5px GAP - NOT TOO MUCH SPACE)
   ======================================================== */
.search-form-layout {
  width: 100% !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important; /* Arrow 2: Exactly 5px clean gap between Search Input & Dropdowns */
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: none !important;
}

/* Row 1: Search Input Box */
.search-form-layout .search-input-group {
  width: 100% !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.search-form-layout .search-icon {
  position: absolute !important;
  left: 1.15rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #64748b !important;
  font-size: 1.15rem !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.search-form-layout .search-input {
  width: 100% !important;
  height: 50px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 0.95rem !important;
  font-family: var(--font-body) !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 0 1rem 0 3.1rem !important;
  outline: none !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
}

.search-form-layout .search-input:focus {
  border-color: #10b981 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
}

/* Row 2: Bottom Controls Row (Categories + Provinces + Search Button) */
.search-controls-row {
  display: flex !important;
  gap: 0.45rem !important;
  align-items: center !important;
  width: 100% !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
  padding: 0 !important;
}

.search-controls-row .search-select {
  flex: 1 1 180px !important;
  height: 46px !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-size: 0.9rem !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  padding: 0 1.15rem !important;
  outline: none !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
}

.search-controls-row .search-select:focus {
  border-color: #10b981 !important;
}

.search-controls-row .btn-search {
  height: 46px !important;
  padding: 0 1.85rem !important;
  background: #065f38 !important;
  color: #ffffff !important;
  font-family: var(--font-heading) !important;
  font-size: 0.95rem !important;
  font-weight: 750 !important;
  border: none !important;
  border-radius: 9px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  box-shadow: 0 3px 12px rgba(6, 95, 56, 0.35) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.search-controls-row .btn-search:hover {
  background: #044e2e !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 15px rgba(6, 95, 56, 0.45) !important;
}

@media (max-width: 640px) {
  .search-controls-row .search-select {
    flex: 1 1 100% !important;
  }
  .search-controls-row .btn-search {
    width: 100% !important;
  }
}

/* ========================================================
   UNIFORM HERO SPACING (MATCHING POPULAR SECTION DISTANCE)
   - Subtitle to Search Box: 12px
   - Search Box to Dropdowns: 12px
   - Dropdowns to Popular Section: 14px
   ======================================================== */
.hero-subtitle {
  margin-bottom: 12px !important;
}

.search-form-layout {
  gap: 12px !important;
  margin: 0 auto 0 auto !important;
}

.search-form-layout .search-input-group {
  margin: 0 !important;
  padding: 0 !important;
}

.search-controls-row {
  margin: 0 !important;
  padding: 0 !important;
}

.popular-tags {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  gap: 0.5rem !important;
  white-space: nowrap !important;
  padding: 0.25rem !important;
  margin-top: 14px !important;
  margin-bottom: 0.5rem !important;
}


/* ========================================================
   HEADER SEARCH BAR (DESKTOP & MOBILE)
   ======================================================== */
.header-search-form {
  flex: 1 1 280px;
  max-width: 380px;
  margin: 0 1.25rem;
}

.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-subtle, #f1f5f9);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 9999px;
  padding: 3px 4px 3px 2.3rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .header-search-wrap {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.header-search-wrap:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  background: #ffffff;
}

[data-theme="dark"] .header-search-wrap:focus-within {
  background: #0f172a;
}

.header-search-icon {
  position: absolute;
  left: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted, #94a3b8);
  pointer-events: none;
}

.header-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  outline: none;
  padding: 0.35rem 0.5rem 0.35rem 0;
}

.header-search-input::placeholder {
  color: var(--text-muted, #94a3b8);
}

.header-search-btn {
  background: #065f38;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.35rem 1.05rem;
  font-size: 0.8rem;
  font-weight: 750;
  font-family: var(--font-heading);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.header-search-btn:hover {
  background: #044e2e;
  transform: translateY(-1px);
}

/* Mobile Drawer Search */
.mobile-drawer-search {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-drawer-search input {
  flex: 1;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 0.85rem;
  font-size: 0.9rem;
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
}

.mobile-drawer-search button {
  background: #065f38;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 1rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 960px) {
  .header-search-form {
    display: none;
  }
}


/* ========================================================
   APPLY NOW BUTTON HOVER STATE (GREEN TEXT ON WHITE HOVER)
   ======================================================== */
.btn-view-job {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  background: #065f38 !important;
  color: #ffffff !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--radius-sm, 6px) !important;
  border: 1.5px solid #065f38 !important;
  font-size: 0.8rem !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.btn-view-job:hover {
  background: #ffffff !important;
  color: #065f38 !important;
  border: 1.5px solid #065f38 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(6, 95, 56, 0.25) !important;
}

[data-theme="dark"] .btn-view-job {
  background: #065f38 !important;
  color: #ffffff !important;
  border: 1.5px solid #10b981 !important;
}

[data-theme="dark"] .btn-view-job:hover {
  background: #0f172a !important;
  color: #34d399 !important;
  border: 1.5px solid #34d399 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}


/* ========================================================
   JOB CATEGORIES SHOWCASE GRID (DESKTOP & MOBILE RESPONSIVE)
   100% VISIBLE ON ALL SCREENS - NO HORIZONTAL SCROLL OR CUTOFF
   ======================================================== */
.categories-showcase-section {
  width: 100%;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 12px);
  padding: 1.15rem 0.65rem 1rem;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #10b981;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.16);
  background: #ffffff;
}

[data-theme="dark"] .category-card {
  background: #151e32;
  border-color: #334155;
}

[data-theme="dark"] .category-card:hover {
  background: #1a253d;
  border-color: #34d399;
  box-shadow: 0 8px 20px rgba(52, 211, 153, 0.2);
}

.category-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.65rem;
  transition: transform 0.22s ease;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.18);
}

.category-card:hover .category-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.cat-icon-gov { background: rgba(13, 92, 58, 0.12); color: #0d5c3a; }
.cat-icon-forces { background: rgba(180, 83, 9, 0.12); color: #b45309; }
.cat-icon-bank { background: rgba(3, 105, 161, 0.12); color: #0369a1; }
.cat-icon-police { background: rgba(109, 40, 217, 0.12); color: #6d28d9; }
.cat-icon-edu { background: rgba(4, 120, 87, 0.12); color: #047857; }
.cat-icon-it { background: rgba(2, 132, 199, 0.12); color: #0284c7; }

.category-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.25;
  transition: color 0.2s;
}

.category-card:hover .category-name {
  color: #065f38;
}

[data-theme="dark"] .category-card:hover .category-name {
  color: #6ee7b7;
}

.category-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #059669;
  line-height: 1.2;
}

[data-theme="dark"] .category-count {
  color: #34d399;
}

/* Tablet: 3 columns x 2 rows (100% visible) */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
  }
}

/* Mobile: Exactly 2 columns x 3 rows (100% visible, none hidden) */
@media (max-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  .category-card {
    padding: 0.9rem 0.5rem 0.85rem !important;
  }
  .category-icon-wrap {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem !important;
  }
  .category-name {
    font-size: 0.85rem !important;
  }
  .category-count {
    font-size: 0.7rem !important;
  }
}


/* ========================================================
   COMPACT SINGLE LINE POPULAR TAGS (MOBILE & DESKTOP)
   Fits All Tags (PPSC, FPSC, Pak Army, Police, FIA, SBP) in 1 Line
   ======================================================== */
.popular-tags {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important; /* STRICTLY 1 SINGLE LINE ON MOBILE & DESKTOP */
  gap: 4px !important;
  margin-top: 12px !important;
  margin-bottom: 0.5rem !important;
  padding: 0.2rem 4px !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
}

.popular-tags::-webkit-scrollbar {
  display: none !important;
}

.popular-label {
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  color: #a7f3d0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-right: 2px !important;
}

.popular-tags a {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  padding: 2px 7px !important;
  border-radius: 9999px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  line-height: 1.4 !important;
  transition: all 0.2s ease !important;
}

.popular-tags a:hover {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  transform: translateY(-1px) !important;
}

/* Mobile: Compact Sizes so SBP never drops to second line */
@media (max-width: 640px) {
  .popular-tags {
    gap: 3px !important;
    padding: 0.15rem 2px !important;
    justify-content: center !important;
  }
  .popular-label {
    font-size: 0.7rem !important;
    margin-right: 1px !important;
  }
  .popular-tags a {
    font-size: 0.67rem !important;
    padding: 2px 5px !important;
  }
}


/* ========================================================
   PROFESSIONAL VECTOR SVG ICONS STYLING
   Replaces all system cartoon emojis with corporate SVG icons
   ======================================================== */
.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.job-posted-time {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.job-dept {
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
}

.job-dept .svg-icon {
  color: #059669;
}

.last-date-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.last-date-badge .svg-icon {
  color: #dc2626;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.35rem;
  vertical-align: -2px;
}

.meta-card-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}
