/*
Theme Name: Mimu's Jobs — Nigeria
Theme URI: https://nigeria.mimusjobs.com
Author: Mimu's Jobs Team
Author URI: https://mimusjobs.com
Description: Mimu's Jobs Nigeria — a standalone WordPress theme for nigeria.mimusjobs.com. Tailored for the Nigerian job market with local colours, Nigeria-specific content, salary benchmarks, and employer insights.
Version: 2.3.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mimusjobs-nigeria
Tags: career, jobs, nigeria, lagos, africa, regional
*/

/* =============================================================
   DESIGN SYSTEM — TOKENS
   Palette: Nigerian flag — Forest Green · White
   Font: DM Sans (headings) + Lato (body)
============================================================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Lato:wght@300;400;700&display=swap');

:root {
  /* Brand */
  --red:          #008751;
  --red-dark:     #922b21;
  --red-light:    #e74c3c;
  --red-pale:     #fdf0ee;
  --green:        #006600;
  --green-mid:    #27ae60;
  --green-pale:   #eafaf1;
  --gold:         #e67e22;
  --gold-pale:    #fef5ec;
  --navy:         #0d1b2a;
  --navy-mid:     #1c3149;

  /* Neutrals */
  --white:        #ffffff;
  --off-white:    #f8f9fb;
  --grey-100:     #f1f3f5;
  --grey-200:     #e4e7eb;
  --grey-300:     #cbd2da;
  --grey-400:     #9aa5b4;
  --grey-600:     #4a5568;
  --grey-800:     #1a202c;
  --text:         #1a202c;
  --text-muted:   #6b7280;
  --border:       #e4e7eb;

  /* Shadows */
  --sh-xs:  0 1px 3px rgba(0,0,0,.06);
  --sh-sm:  0 2px 8px rgba(0,0,0,.08);
  --sh-md:  0 4px 20px rgba(0,0,0,.10);
  --sh-lg:  0 8px 40px rgba(0,0,0,.14);
  --sh-xl:  0 20px 60px rgba(0,0,0,.18);

  /* Radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;

  /* Motion */
  --ease:   cubic-bezier(.22,.68,0,1.2);
  --trans:  .22s ease;
}

/* =============================================================
   RESET & BASE
============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

/* =============================================================
   LAYOUT
============================================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section        { padding: 88px 0; }
.section-sm     { padding: 48px 0; }
.section-lg     { padding: 112px 0; }
.grey-bg        { background: var(--off-white); }

/* =============================================================
   TYPOGRAPHY
============================================================= */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .75rem;
}
.section-kicker::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--red);
  border-radius: 99px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .75rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* =============================================================
   BUTTONS
============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--trans);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 4px 14px rgba(0,135,81,.35);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 6px 20px rgba(0,135,81,.45);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--grey-300);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-pale);
}
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
}
.btn-white {
  background: #fff;
  color: var(--red);
  border-color: #fff;
  font-weight: 700;
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-1px);
}
.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-green:hover {
  background: #14532d;
  transform: translateY(-1px);
}
.btn-lg  { padding: 14px 30px; font-size: 1rem; }
.btn-xl  { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--r-lg); }
.btn-sm  { padding: 8px 16px; font-size: .82rem; }

/* =============================================================
   ANNOUNCEMENT BAR
============================================================= */
.announce-bar {
  background: var(--navy);
  padding: 10px 0;
  position: relative;
  z-index: 200;
}
.announce-bar .container { display: flex; }
.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
}
.announce-badge {
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  flex-shrink: 0;
}
.announce-text {
  font-size: .83rem;
  color: rgba(255,255,255,.85);
}
.announce-link {
  font-size: .83rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.announce-link:hover { color: #fff; }
.announce-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0 0 0 12px;
  flex-shrink: 0;
  transition: color var(--trans);
}
.announce-close:hover { color: #fff; }

/* =============================================================
   HEADER
============================================================= */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sh-xs);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,135,81,.3);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-wordmark { line-height: 1.2; }
.logo-name {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
}
.logo-name span { color: var(--red); }
.logo-tagline {
  display: block;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Nav */
#site-navigation { flex: 1; }
#primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
#primary-menu li a {
  display: block;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--grey-600);
  transition: all var(--trans);
}
#primary-menu li a:hover,
#primary-menu li.current-menu-item a {
  color: var(--red);
  background: var(--red-pale);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-search-btn {
  background: none;
  border: none;
  color: var(--grey-600);
  padding: 7px;
  border-radius: var(--r-sm);
  transition: all var(--trans);
  display: flex;
  align-items: center;
}
.header-search-btn svg { width: 18px; height: 18px; }
.header-search-btn:hover { color: var(--red); background: var(--red-pale); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  gap: 6px;
  align-items: center;
}
.menu-toggle svg { width: 18px; height: 18px; }

/* Nigeria flag bar under header */
.nigeria-flag-bar {
  display: flex;
  height: 3px;
}
.kfb-black { flex: 1; background: #000; }
.kfb-red   { flex: 1; background: var(--red); }
.kfb-green { flex: 1; background: var(--green); }

/* =============================================================
   SEARCH OVERLAY
============================================================= */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.search-overlay.is-open { opacity: 1; pointer-events: all; }
.search-box {
  width: 100%;
  max-width: 640px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.search-box .search-field {
  display: flex;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-xl);
}
.search-box input[type="search"] {
  flex: 1;
  padding: 18px 22px;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--navy);
  background: transparent;
}
.search-box .search-submit {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 0 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.search-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: .8rem;
  text-align: center;
  transition: color var(--trans);
}
.search-close:hover { color: #fff; }

/* =============================================================
   HERO
============================================================= */
.hero {
  position: relative;
  background: var(--navy);
  padding: 72px 0 60px;
  overflow: hidden;
}
.hero-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,135,81,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(26,107,60,.15) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 90% 85%, rgba(230,126,34,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 760px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,135,81,.18);
  border: 1px solid rgba(0,135,81,.35);
  color: #ff9f9f;
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  letter-spacing: -.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--red-light);
  position: relative;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2rem;
}
.hero-stat {
  flex: 1;
  min-width: 120px;
  padding-right: 32px;
}
.hero-stat:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,.1);
  margin-right: 32px;
}
.hero-stat .num {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .lbl {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* =============================================================
   TRUST STRIP
============================================================= */
.trust-strip {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.trust-items {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: var(--grey-600);
}
.trust-item svg { width: 13px; height: 13px; flex-shrink: 0; }

/* =============================================================
   JOB SEARCH FORM
============================================================= */
.ke-job-search-wrap {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: 6px 6px 6px 20px;
  backdrop-filter: blur(10px);
  max-width: 700px;
}
.ke-job-search-form { width: 100%; }
.ke-search-fields {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.ke-search-field {
  position: relative;
  flex: 1;
  min-width: 140px;
}
.ke-search-field:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 1px;
  background: rgba(255,255,255,.2);
}
.ke-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: rgba(255,255,255,.4);
  pointer-events: none;
}
.ke-search-field input,
.ke-search-field select {
  width: 100%;
  padding: 12px 12px 12px 34px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem;
  appearance: none;
}
.ke-search-field input::placeholder { color: rgba(255,255,255,.45); }
.ke-search-field select option { color: var(--navy); background: #fff; }
.ke-search-fields .btn-primary {
  border-radius: var(--r-lg);
  padding: 13px 24px;
  font-size: .9rem;
  flex-shrink: 0;
}

/* =============================================================
   CITIES
============================================================= */
.ke-cities-section {
  background: var(--navy);
  padding: 88px 0;
}
.ke-cities-section .section-kicker { color: var(--gold); }
.ke-cities-section .section-kicker::before { background: var(--gold); }
.ke-cities-section .section-title { color: #fff; }
.ke-cities-section .section-sub { color: rgba(255,255,255,.6); }
.ke-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 2.5rem;
}
.ke-city-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-lg);
  padding: 22px 18px;
  text-align: center;
  transition: all var(--trans);
  display: block;
  text-decoration: none;
}
.ke-city-card:hover {
  background: rgba(0,135,81,.15);
  border-color: rgba(0,135,81,.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,135,81,.2);
}
.ke-city-icon { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.ke-city-name { font-family: 'DM Sans', sans-serif; font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.ke-city-count { font-size: .75rem; color: rgba(255,255,255,.5); }

/* =============================================================
   SECTORS
============================================================= */
.ke-sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 2.5rem;
}
.ke-sector-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--trans);
  box-shadow: var(--sh-xs);
  text-decoration: none;
}
.ke-sector-card:hover {
  border-color: var(--red);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.ke-sector-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--red-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.ke-sector-name { font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.ke-sector-jobs { font-size: .75rem; color: var(--text-muted); }

/* =============================================================
   SALARY BENCHMARKS
============================================================= */
.ke-salary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 2.5rem;
}
.ke-salary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-xs);
  position: relative;
  overflow: hidden;
  transition: all var(--trans);
}
.ke-salary-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.ke-salary-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--green-mid));
}
.ke-salary-role { font-family: 'DM Sans', sans-serif; font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.ke-salary-sector { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.ke-salary-range { font-size: 1.25rem; font-weight: 800; color: var(--red); margin-bottom: 2px; font-family: 'DM Sans', sans-serif; }
.ng-salary-period { font-size: .7rem; color: var(--text-muted); margin-bottom: 12px; }
.ke-salary-bar { height: 5px; background: var(--grey-200); border-radius: 99px; overflow: hidden; }
.ng-salary-bar-fill { height: 100%; background: linear-gradient(90deg, var(--red), var(--green-mid)); border-radius: 99px; }

/* =============================================================
   EMPLOYERS
============================================================= */
.ke-employer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 2.5rem;
}
.ke-employer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 16px;
  text-align: center;
  transition: all var(--trans);
  box-shadow: var(--sh-xs);
}
.ke-employer-card:hover {
  border-color: var(--red);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.ke-employer-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--off-white);
  border: 1px solid var(--border);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.ke-employer-name { font-family: 'DM Sans', sans-serif; font-size: .86rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.ke-employer-sector { font-size: .7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* =============================================================
   CTA BANNER
============================================================= */
.ke-cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, #8b1a12 55%, #7b2d14 100%);
  border-radius: var(--r-2xl);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--sh-xl);
  position: relative;
  overflow: hidden;
}
.ke-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.ke-cta-banner h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 800; color: #fff; margin-bottom: 8px; }
.ke-cta-banner p { color: rgba(255,255,255,.75); font-size: .95rem; margin: 0; }
.ke-cta-banner .btn-white { flex-shrink: 0; box-shadow: 0 4px 20px rgba(0,0,0,.2); }

/* =============================================================
   RESOURCE CARDS
============================================================= */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--trans);
  box-shadow: var(--sh-xs);
  display: flex;
  flex-direction: column;
}
.resource-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
  border-color: var(--grey-300);
}
.resource-card-img {
  display: block;
  aspect-ratio: 16/9;
  max-height: 200px;
  overflow: hidden;
  background: var(--grey-100);
}
.resource-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s ease; }
.resource-card:hover .resource-card-img img { transform: scale(1.04); }
.resource-card-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.resource-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.resource-meta a { color: var(--red); font-weight: 600; }
.resource-meta .sep { opacity: .4; }
.resource-title { font-family: 'DM Sans', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.35; }
.resource-title a:hover { color: var(--red); }
.resource-excerpt { font-size: .88rem; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 14px; }
.resource-link { font-family: 'DM Sans', sans-serif; font-size: .82rem; font-weight: 700; color: var(--red); }
.resource-link:hover { text-decoration: underline; }
.premium-card { border-color: var(--gold); }
.premium-ribbon {
  background: var(--gold);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 99px;
}

/* =============================================================
   BACK TO MAIN NETWORK
============================================================= */
.ke-network-bar {
  background: var(--green-pale);
  border: 1px solid rgba(26,107,60,.15);
  border-radius: var(--r-xl);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ke-network-bar p { font-size: .9rem; color: var(--grey-600); margin: 0; }
.ke-network-bar p strong { color: var(--navy); font-family: 'DM Sans', sans-serif; }

/* =============================================================
   FOOTER
============================================================= */
#site-footer {
  background: var(--navy);
  padding: 60px 0 0;
  color: rgba(255,255,255,.65);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-tagline { color: rgba(255,255,255,.4); }
.footer-desc {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-top: 14px;
  margin-bottom: 20px;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  transition: all var(--trans);
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-col-title {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  transition: color var(--trans);
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.35); }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }
.footer-flag {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
}
.footer-flag-stripe {
  display: flex;
  height: 14px;
  border-radius: 3px;
  overflow: hidden;
  width: 22px;
}
.footer-flag-stripe span { flex: 1; }
.footer-flag-stripe .s1 { background: #008751; }
.footer-flag-stripe .s2 { background: #ffffff; }
.footer-flag-stripe .s3 { background: #008751; }

/* Footer menu override */
#footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}
#footer-menu a {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
#footer-menu a:hover { color: #fff; }

/* =============================================================
   UTILITIES
============================================================= */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 44px; }
  .hero-stat:not(:last-child) { margin-right: 16px; padding-right: 16px; }
  .menu-toggle { display: inline-flex; }
  .ke-cta-banner { padding: 28px 20px; flex-direction: column; text-align: center; }
  .ke-job-search-wrap { padding: 6px; }
  .ke-search-fields { flex-direction: column; gap: 0; }
  .ke-search-field::after { display: none; }
  .ke-search-field input, .ke-search-field select { padding: 12px 12px 12px 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .ke-search-fields .btn-primary { width: 100%; justify-content: center; border-radius: 10px; margin-top: 6px; }

  /* ── Mobile nav: off-canvas slide-in ── */
  #site-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    background: #fff;
    z-index: 600;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 32px rgba(0,0,0,.18);
    transform: translateX(-110%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    padding: 72px 0 32px;
    display: block !important;
  }
  body.nav-open #site-navigation {
    transform: translateX(0);
  }
  #primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0 16px;
  }
  #primary-menu li { width: 100%; }
  #primary-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    font-size: .92rem;
    border-radius: 8px;
    white-space: normal;
  }
  .mjk-nav-premium-item { display: flex; }
  .mjk-nav-premium-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 14px !important;
    font-size: .88rem !important;
    border-radius: 8px !important;
    margin-top: 8px;
  }

  .header-inner { height: 60px; gap: 12px; }
  .mjk-logo-svg { height: 34px; }
  .mjk-ref-text { font-size: .75rem; min-width: 0; }
  .mjk-ref-badge { display: none; }
  .mjk-pb-visual { display: none; }
  .mjk-premium-banner { padding: 36px 0 28px; }
  .mjk-pb-headline { font-size: 1.45rem; }
  .mjk-pb-copy { font-size: .9rem; }
  .mjk-pb-btn { padding: 11px 20px; font-size: .88rem; }
}
@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:not(.footer-brand) { display: none; }
  .hero-stats { gap: 16px; }
  .hero-stat { min-width: 100px; }
  .trust-items { gap: 12px; }
  .ke-cities-grid { grid-template-columns: repeat(2, 1fr); }
  .ke-sectors-grid { grid-template-columns: 1fr; }
  .ke-salary-grid { grid-template-columns: 1fr; }
  .ke-employer-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: 1fr; }
  .header-inner { height: 56px; gap: 8px; }
  .header-cta { gap: 6px; }
}

/* =============================================================
   IMAGE & LAYOUT IMPROVEMENTS — v2.0.1
   Fixes: oversized resource images, hero bloat, employer logos,
   city section images, general image overflow guards
============================================================= */

/* Global image safety net — nothing should overflow its container */
img {
  max-width: 100%;
  height: auto;
}

/* Resource card images — constrained height so tall images don't blow up cards */
.resource-card-img {
  max-height: 200px;  /* hard cap regardless of aspect ratio */
}
.resource-card-img img {
  width: 100%;
  height: 200px;      /* fixed height, object-fit handles cropping */
  object-fit: cover;
  object-position: center;
}

/* Employer logo — was 52×52, keep emoji/logo contained neatly */
.ke-employer-logo {
  width: 48px;
  height: 48px;
  font-size: 1.6rem;
  line-height: 48px;
}

/* City icon — reduce from 2.2rem which caused visual weight issues */
.ke-city-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

/* Hero h1 — tighten max size slightly on large screens */
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

/* Hero padding on very large screens */
@media (min-width: 1200px) {
  .hero { padding: 80px 0 64px; }
}

/* Section spacing — slightly tighter for better visual rhythm */
.section { padding: 72px 0; }
.section-sm { padding: 36px 0; }

/* Resource grid — ensure images never look giant on wide single-col layouts */
@media (min-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .resource-card-img,
  .resource-card-img img {
    max-height: 190px;
    height: 190px;
  }
}

/* Prevent any stray WordPress featured image from overflowing */
.resource-card img,
.post-thumbnail img,
.wp-post-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Fix: images inside trust-strip or stat areas should never show */
.trust-strip img,
.hero-stats img {
  display: none;
}

/* Responsive image tweak for tablet */
@media (max-width: 768px) {
  .resource-card-img,
  .resource-card-img img {
    max-height: 180px;
    height: 180px;
  }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
}

/* Mobile: single-column resource cards keep images compact */
@media (max-width: 580px) {
  .resource-card-img,
  .resource-card-img img {
    max-height: 160px;
    height: 160px;
  }
}

/* =============================================================
   LOGO — SVG logo image styles
============================================================= */
.mjk-logo-svg {
  height: 44px;
  width: auto;
  display: block;
}
@media (max-width: 600px) {
  .mjk-logo-svg { height: 36px; }
}

/* =============================================================
   MOBILE NAV CLOSE OVERLAY — tap outside to dismiss
============================================================= */
body.nav-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
}

/* =============================================================
   FAVICON theme-color is set via wp_head hook in functions.php
============================================================= */

/* =============================================================
   PREMIUM NAV BUTTON — highlighted CTA in primary menu
============================================================= */
.mjk-nav-premium-item { display: flex; align-items: center; }
.mjk-nav-premium-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 7px 16px !important;
  background: linear-gradient(135deg, #008751 0%, #006600 100%) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  font-size: .82rem !important;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 2px 10px rgba(0,135,81,.35);
  transition: transform .15s, box-shadow .15s !important;
  white-space: nowrap;
}
.mjk-nav-premium-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0,135,81,.55) !important;
  color: #fff !important;
}
@media (max-width: 980px) {
  .mjk-nav-premium-btn { padding: 6px 12px !important; font-size: .77rem !important; }
}

/* =============================================================
   POST A JOB PAGE — add to style.css
   (scoped to .mjk-paj-* so nothing bleeds into other pages)
============================================================= */

.mjk-paj-page { background: var(--off-white, #f8f9fb); min-height: 100vh; }

/* Hero */
.mjk-paj-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1c3149 55%, #004d00 100%);
  padding: 64px 0 52px; text-align: center; position: relative; overflow: hidden;
}
.mjk-paj-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0,135,81,.18) 0%, transparent 70%);
  pointer-events: none;
}
.mjk-paj-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; padding: 6px 18px;
  font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.85);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px;
}
.mjk-paj-hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900; color: #fff; margin: 0 0 14px; line-height: 1.15;
}
.mjk-paj-hero h1 em { color: #ffcdd2; font-style: normal; }
.mjk-paj-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,.72);
  max-width: 560px; margin: 0 auto 32px; line-height: 1.6;
}
.mjk-paj-hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.mjk-paj-hero-stat .num {
  display: block; font-size: 1.6rem; font-weight: 900; color: #fff;
  font-family: 'DM Sans', sans-serif;
}
.mjk-paj-hero-stat .lbl { font-size: .72rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .07em; }

/* Trust strip */
.mjk-paj-trust { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 14px 0; }
.mjk-paj-trust-inner {
  display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap;
}
.mjk-paj-trust-item { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: #374151; }

/* Layout */
.mjk-paj-body { padding: 48px 0 80px; }
.mjk-paj-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 32px;
  align-items: start; max-width: 1140px; margin: 0 auto; padding: 0 20px;
}

/* Card */
.mjk-paj-card {
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 16px;
  overflow: hidden; box-shadow: 0 2px 20px rgba(0,0,0,.05);
}
.mjk-paj-card-header { padding: 28px 32px 22px; border-bottom: 1px solid #f3f4f6; }
.mjk-paj-card-header h2 {
  font-family: 'DM Sans', sans-serif; font-size: 1.25rem; font-weight: 800;
  color: var(--navy, #0d1b2a); margin: 0 0 4px;
}
.mjk-paj-card-header p { font-size: .84rem; color: #6b7280; margin: 0; }
.mjk-paj-card-body { padding: 32px; }

/* Form sections */
.mjk-paj-section { margin-bottom: 32px; }
.mjk-paj-section:last-of-type { margin-bottom: 0; }
.mjk-paj-section-title {
  font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 800; color: #374151;
  text-transform: uppercase; letter-spacing: .1em;
  padding-bottom: 12px; border-bottom: 2px solid #f3f4f6; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}

/* Fields */
.mjk-paj-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mjk-paj-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; }
.mjk-paj-field:last-child { margin-bottom: 0; }
.mjk-paj-label { font-size: .8rem; font-weight: 700; color: #374151; letter-spacing: .01em; }
.mjk-paj-label .req { color: #e53e3e; margin-left: 2px; }
.mjk-paj-label .opt { font-weight: 400; color: #9ca3af; margin-left: 4px; font-size: .75rem; }
.mjk-paj-input,
.mjk-paj-select,
.mjk-paj-textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: .92rem; color: #1a202c; font-family: 'DM Sans', sans-serif;
  background: #fafafa; outline: none; transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.mjk-paj-input:focus,
.mjk-paj-select:focus,
.mjk-paj-textarea:focus {
  border-color: #008751; box-shadow: 0 0 0 3px rgba(0,135,81,.1); background: #fff;
}
.mjk-paj-input.is-error,
.mjk-paj-select.is-error,
.mjk-paj-textarea.is-error { border-color: #e53e3e; box-shadow: 0 0 0 3px rgba(229,62,62,.1); }
.mjk-paj-textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.mjk-paj-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}
.mjk-paj-error { font-size: .76rem; color: #e53e3e; margin-top: 3px; }
.mjk-paj-hint  { font-size: .74rem; color: #718096; margin-top: 3px; line-height: 1.4; }

/* Apply method tabs */
.mjk-paj-apply-toggle {
  display: flex; margin-bottom: 16px; border: 1.5px solid #e2e8f0; border-radius: 10px; overflow: hidden;
}
.mjk-paj-apply-tab {
  flex: 1; padding: 10px 14px; text-align: center; font-size: .82rem; font-weight: 700;
  color: #6b7280; cursor: pointer; background: #fafafa; border: none;
  font-family: 'DM Sans', sans-serif; transition: background .15s, color .15s;
}
.mjk-paj-apply-tab.active { background: #008751; color: #fff; }
.mjk-paj-apply-pane { display: none; }
.mjk-paj-apply-pane.active { display: block; }

/* Error banner */
.mjk-paj-general-error {
  background: #fff5f5; border: 1.5px solid #feb2b2; border-radius: 10px;
  padding: 14px 18px; font-size: .86rem; color: #c53030; margin-bottom: 22px;
  display: flex; align-items: flex-start; gap: 10px;
}

/* Submit */
.mjk-paj-submit {
  width: 100%; padding: 15px 24px;
  background: linear-gradient(135deg, #008751, #006600);
  color: #fff; font-size: 1rem; font-weight: 800; border: none; border-radius: 12px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  box-shadow: 0 4px 18px rgba(0,135,81,.35); transition: transform .15s, box-shadow .15s;
}
.mjk-paj-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(0,135,81,.5); }
.mjk-paj-submit-note { text-align: center; font-size: .76rem; color: #9ca3af; margin-top: 12px; }
.mjk-paj-submit-note a { color: #008751; font-weight: 600; text-decoration: none; }

/* Success */
.mjk-paj-success { padding: 60px 32px; text-align: center; }
.mjk-paj-success-icon {
  width: 80px; height: 80px; background: linear-gradient(135deg, #006600, #004d00);
  border-radius: 50%; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.mjk-paj-success h2 {
  font-family: 'DM Sans', sans-serif; font-size: 1.5rem; font-weight: 800;
  color: var(--navy, #0d1b2a); margin-bottom: 12px;
}
.mjk-paj-success p { color: #6b7280; font-size: .92rem; line-height: 1.65; max-width: 460px; margin: 0 auto 8px; }
.mjk-paj-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Sidebar */
.mjk-paj-sidebar { display: flex; flex-direction: column; gap: 20px; }
.mjk-paj-sidebar-card {
  background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px;
  padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.mjk-paj-sidebar-card h3 {
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 800;
  color: var(--navy, #0d1b2a); margin: 0 0 16px; display: flex; align-items: center; gap: 8px;
}
.mjk-paj-tip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.mjk-paj-tip-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .83rem; color: #374151; line-height: 1.5; }
.mjk-paj-tip-list li::before {
  content: '✓'; width: 20px; height: 20px; flex-shrink: 0;
  background: #e8fdf0; color: #1a7c3e; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 900; margin-top: 1px;
}
.mjk-paj-plans { display: flex; flex-direction: column; gap: 10px; }
.mjk-paj-plan { border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; transition: border-color .15s; text-decoration: none; display: block; }
.mjk-paj-plan:hover { border-color: #008751; }
.mjk-paj-plan.featured { border-color: #008751; background: linear-gradient(135deg, #fff5f5, #fff); }
.mjk-paj-plan-name { font-weight: 800; font-size: .9rem; color: var(--navy, #0d1b2a); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.mjk-paj-plan-badge { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; background: #008751; color: #fff; padding: 2px 7px; border-radius: 999px; }
.mjk-paj-plan-desc { font-size: .78rem; color: #6b7280; line-height: 1.45; }
.mjk-paj-plan-price { font-size: .85rem; font-weight: 700; color: #008751; margin-top: 6px; }
.mjk-paj-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mjk-paj-contact-list li { display: flex; align-items: center; gap: 10px; font-size: .83rem; color: #374151; }
.mjk-paj-contact-list li a { color: #008751; font-weight: 600; text-decoration: none; }
.mjk-paj-contact-list li a:hover { text-decoration: underline; }

/* Responsive */
@media ( max-width: 900px ) {
  .mjk-paj-layout { grid-template-columns: 1fr; }
  .mjk-paj-sidebar { order: -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media ( max-width: 640px ) {
  .mjk-paj-row { grid-template-columns: 1fr; }
  .mjk-paj-card-body { padding: 20px; }
  .mjk-paj-card-header { padding: 20px 20px 16px; }
  .mjk-paj-hero { padding: 44px 0 36px; }
  .mjk-paj-hero-stats { gap: 20px; }
  .mjk-paj-sidebar { grid-template-columns: 1fr; }
  .mjk-paj-body { padding: 28px 0 60px; }
}