/*
Theme Name: Mimu's Jobs — Kenya
Theme URI: https://kenya.mimusjobs.com
Author: Mimu's Jobs Team
Author URI: https://mimusjobs.com
Description: Mimu's Jobs Kenya — a standalone WordPress theme for kenya.mimusjobs.com. Tailored for the Kenyan job market with local colours, Kenya-specific content, salary benchmarks, and employer insights.
Version: 2.0.0
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-kenya
Tags: career, jobs, kenya, nairobi, africa, regional
*/

/* =============================================================
   DESIGN SYSTEM — TOKENS
   Palette: Kenyan flag — Crimson Red · Forest Green · Black
   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:          #C0392B;
  --red-dark:     #922b21;
  --red-light:    #e74c3c;
  --red-pale:     #fdf0ee;
  --green:        #1a6b3c;
  --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(192,57,43,.35);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 6px 20px rgba(192,57,43,.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(192,57,43,.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; }

/* Kenya flag bar under header */
.kenya-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: 96px 0 80px;
  overflow: hidden;
}
.hero-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(192,57,43,.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(192,57,43,.18);
  border: 1px solid rgba(192,57,43,.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(192,57,43,.15);
  border-color: rgba(192,57,43,.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(192,57,43,.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; }
.ke-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; }
.ke-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;
  overflow: hidden;
  background: var(--grey-100);
}
.resource-card-img img { width: 100%; height: 100%; object-fit: cover; 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: #000; }
.footer-flag-stripe .s2 { background: var(--red); }
.footer-flag-stripe .s3 { background: var(--green); }

/* 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: 64px 0; }
  .hero { padding: 64px 0 60px; }
  .hero-stat:not(:last-child) { margin-right: 16px; padding-right: 16px; }
  #site-navigation { display: none; }
  .menu-toggle { display: inline-flex; }
  .ke-cta-banner { padding: 36px 28px; 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; }
}
@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; }
}
