/* ============================================================
   ejobsAfrica — Design System V3
   Brand Primary: #008DAA (Deep Teal)
   Brand Accent:  #EE5A00 (Vivid Orange)
   Brand Dark:    #004455 (Midnight Teal)
   Brand Light:   #1BB5CC (Bright Aqua Cyan)
   Philosophy: Warm, human, trustworthy — African talent, global quality
   Palette: 3-swatch — orange-red, deep teal, bright aqua
   ============================================================ */

/* ---------- Base & Reset ---------- */
* { scrollbar-width: thin; scrollbar-color: #d5d5d9 transparent; box-sizing: border-box; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: #d5d5d9; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #85858f; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ---------- Custom Properties ---------- */
:root {
  --brand: #008DAA;
  --brand-light: #1BB5CC;
  --brand-dark: #087a94;
  --brand-glow: rgba(0,141,170,0.15);
  --accent: #EE5A00;
  --accent-light: #FF7A20;
  --accent-dark: #D44E00;
  --accent-glow: rgba(238,90,0,0.15);
  --dark: #085467;
  --dark-soft: #08414f;
  --surface: #ffffff;
  --surface-warm: #fafaf8;
  --surface-cool: #f7f9fc;
  --text-primary: #1a1a1f;
  --text-secondary: #62626d;
  --text-tertiary: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.12);
  --shadow-brand: 0 8px 24px rgba(0,141,170,0.25);
  --shadow-accent: 0 8px 24px rgba(226,68,0,0.25);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* ---------- Hero V2 — Solid Teal Background ---------- */
.hero-v2 {
  background: #008BA3;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 75%, rgba(0,0,0,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(255,255,255,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(0,0,0,0.04) 0%, transparent 50%);
  z-index: 1;
}

/* Grain texture for depth */
.hero-v2::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.018'/%3E%3C/svg%3E");
  z-index: 2;
  pointer-events: none;
}

/* --- Hero section height --- */
.hero-section-height {
  height: 82vh;
  min-height: 460px;
}
/* On mobile, hero must auto-size to content — no fixed height */
@media (max-width: 767px) {
  .hero-section-height,
  .hero-v2.hero-section-height,
  section.hero-v2 {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 3rem !important;
  }
}

/* --- Hero content layout (moved from inline styles) --- */
.hero-content-wrap {
  padding-top: 160px;
}
.hero-text-wrap {
  max-width: 720px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
}
.hero-sub-text {
  font-size: 18.5px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 44px;
  max-width: 560px;
}
.hero-search-wrap {
  border-radius: 16px;
  margin-bottom: 12px;
  max-width: 1007px;
}
.hero-search-input-row {
  height: 54px;
}
.hero-search-icon {
  padding-left: 16px;
  color: #9ca3af;
  flex-shrink: 0;
  font-size: 13px;
}
.hero-search-input {
  flex: 1;
  padding: 0 10px;
  font-size: 15px;
  color: #1a1a1f;
  outline: none;
  background: transparent;
  height: 100%;
  min-width: 0;
  width: 0; /* forces flex shrink */
  border: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-search-cta {
  height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 700;
  color: white;
  font-size: 14px;
  white-space: nowrap;
}
.hero-trust-notes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.hero-trust-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.hero-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
  font-size: 11px;
}
.hero-badge-wrap {
  margin-bottom: 36px;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  letter-spacing: 0.03em;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  flex-shrink: 0;
}
.hero-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: clamp(2.24rem, 4.64vw, 3.92rem);
  line-height: 1.1;
  margin-bottom: 32px;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  will-change: transform;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: rgba(20,146,179,0.05);
  top: -25%; right: -15%;
  animation: orbFloat1 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: rgba(20,146,179,0.04);
  bottom: -15%; left: -5%;
  animation: orbFloat2 20s ease-in-out infinite;
}
.hero-orb-3 {
  width: 250px; height: 250px;
  background: rgba(20,146,179,0.03);
  top: 30%; left: 45%;
  animation: orbFloat3 15s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.05); }
  66% { transform: translate(20px, -15px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -20px) scale(1.08); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 25px); }
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 2;
  mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}

/* ---------- Navbar V2 ---------- */
.nav-v2 {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.03em;
}
.nav-bar-inner {
  height: 72px;
  padding-top: 4px;
}
.nav-left-group {
  gap: 32px;
}
.nav-logo-img {
  height: 42px;
}
.nav-solid {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}
/* Nav always shows white background — hero is dark teal so transparent nav is unreadable */
.nav-transparent {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

/* ---------- Staggered Animations ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroBadgePop {
  0% { opacity: 0; transform: translateY(16px) scale(0.95); }
  60% { transform: translateY(-2px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-anim-1 { animation: heroBadgePop 0.7s ease-out 0.1s both; }
.hero-anim-2 { animation: heroFadeUp 0.7s ease-out 0.3s both; }
.hero-anim-3 { animation: heroFadeUp 0.7s ease-out 0.5s both; }
.hero-anim-4 { animation: heroFadeUp 0.7s ease-out 0.7s both; }
.hero-anim-5 { animation: heroFadeIn 0.8s ease-out 1.0s both; }

/* ---------- Social Proof Bar ---------- */
.proof-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.proof-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--accent), transparent);
  opacity: 0.4;
}
.proof-stat {
  transition: var(--transition);
}
.proof-stat:hover {
  transform: translateY(-2px);
}
.proof-stat:hover .proof-icon {
  transform: scale(1.15) rotate(-5deg);
}
.proof-icon {
  transition: var(--bounce);
}

/* ---------- Section Headings ---------- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ---------- Category Bento Cards ---------- */
.cat-bento {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.cat-bento::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(0,141,170,0.05), rgba(226,68,0,0.04));
  transition: opacity 0.35s ease;
}
.cat-bento:hover::before { opacity: 1; }
.cat-bento:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: 0 16px 40px rgba(0,141,170,0.15), 0 0 0 1px rgba(0,141,170,0.12);
}
.cat-bento:hover .cat-bento-icon {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  transform: scale(1.1) rotate(-3deg);
  box-shadow: var(--shadow-brand);
}
.cat-bento-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cat-bento:hover .cat-bento-bar { transform: scaleX(1); }
.cat-bento-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}

/* ---------- Steps / Timeline ---------- */
.step-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.step-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.step-card:hover .step-number {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  border-color: transparent;
}
.step-number {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.step-connector {
  position: absolute;
  left: 44px;
  top: 68px;
  bottom: -24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--border), transparent);
}

/* ==================== TALENT LEVELS — Redesigned ==================== */
.lv-section {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, #fef5f0 0%, #fdeee5 100%);
}
.lv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- Card base --- */
.lv-card {
  background: #fff;
  border: 1.5px solid #dde8ef;
  border-radius: 20px;
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.lv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.lv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,60,80,0.10);
}

/* --- Per-tier top bar & hover --- */
.lv-card-0::before { background: linear-gradient(90deg, #9ca3af, #78858f); }
.lv-card-0:hover { border-color: #9ca3af; }
.lv-card-1::before { background: linear-gradient(90deg, #1BB5CC, #008DAA); }
.lv-card-1:hover { border-color: #1BB5CC; }
.lv-card-2::before { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.lv-card-2:hover { border-color: #3b82f6; }
.lv-card-3::before { background: linear-gradient(90deg, #EE5A00, #D44E00); }
.lv-card-3:hover { border-color: #EE5A00; }

/* --- Top row: icon + price --- */
.lv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.lv-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.lv-icon-0 { background: #f1f3f5; color: #6b7280; }
.lv-icon-1 { background: #e6f7f9; color: #008DAA; }
.lv-icon-2 { background: #eff4ff; color: #2563eb; }
.lv-icon-3 { background: #FEF2E8; color: #EE5A00; }
.lv-price {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #c0cbd2;
}

/* --- Badge --- */
.lv-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.lv-badge-0 { background: linear-gradient(135deg, #9ca3af, #78858f); }
.lv-badge-1 { background: linear-gradient(135deg, #1BB5CC, #008DAA); }
.lv-badge-2 { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.lv-badge-3 { background: linear-gradient(135deg, #EE5A00, #D44E00); }

/* --- Name, subtitle, desc --- */
.lv-name {
  font-size: 19px;
  font-weight: 800;
  color: #0D4F67;
  line-height: 1.2;
  margin-bottom: 2px;
}
.lv-subtitle {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7FAFC4;
  margin-bottom: 10px;
}
.lv-desc {
  font-size: 13.5px;
  font-weight: 400;
  color: #5c7a88;
  line-height: 1.55;
  margin-bottom: 18px;
}

/* --- Perks --- */
.lv-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #edf2f5;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lv-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #3a5f6f;
}
.lv-perk i {
  font-size: 10px;
  color: #1BB5CC;
  flex-shrink: 0;
}

/* --- Progression path --- */
.lv-path-wrap {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}
.lv-path {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #f0f5f7;
  border-radius: 100px;
  padding: 10px 28px;
  border: 1.5px solid #dde8ef;
}
.lv-path-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lv-path-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: transform 0.25s ease;
}
.lv-path-dot:hover { transform: scale(1.12); }
.lv-path-label {
  font-size: 13px;
  font-weight: 700;
  color: #0D4F67;
}
.lv-path-arrow {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #b0c4ce;
  font-size: 11px;
}

/* ==================== TALENT LEVELS — Mobile ==================== */

/* ---------- Value Props V2 (Grid, not marquee) ---------- */
.vp-v2 {
  border-radius: var(--radius-xl);
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}
.vp-v2:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}
.vp-v2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.vp-v2:hover::after { opacity: 1; }
.vp-v2-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--bounce);
}
.vp-v2:hover .vp-v2-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* ---------- Feature Bento Grid ---------- */
.feat-bento {
  border-radius: var(--radius-xl);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}
.feat-bento::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}
.feat-bento:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feat-bento:hover::before { transform: scaleX(1); }
.feat-bento-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--bounce);
}
.feat-bento:hover .feat-bento-icon {
  transform: scale(1.1);
}

/* ---------- CTA V2 ---------- */
.cta-v2 {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(0,141,170,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(226,68,0,0.14) 0%, transparent 50%);
  z-index: 1;
}
.cta-v2-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* ---------- Footer V2 ---------- */
.footer-v2 {
  background: #002a38;
  position: relative;
}
.footer-v2 a {
  transition: color 0.2s ease;
}
.footer-v2 a:hover {
  color: var(--brand-light);
}
.footer-social {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.footer-social:hover {
  transform: translateY(-2px);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-warm {
  background: linear-gradient(135deg, var(--accent), #FF7733);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Accent Button ---------- */
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(226,68,0,0.3);
  position: relative;
  overflow: hidden;
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-dark), #B84400);
  box-shadow: 0 6px 20px rgba(226,68,0,0.4);
  transform: translateY(-1px);
}
.btn-brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-brand);
}
.btn-brand:hover {
  box-shadow: 0 10px 28px rgba(0,141,170,0.35);
  transform: translateY(-1px);
}

/* ---------- Shimmer ---------- */
.btn-shimmer { position: relative; overflow: hidden; }
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* ---------- Search Input ---------- */
.search-hero {
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.search-hero:focus-within {
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), 0 0 0 3px rgba(226,68,0,0.25);
}
.search-hero input:focus {
  outline: none;
}

/* ---------- Scroll Reveal V2 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children reveal */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}
/* Only animate when parent is visible */
.stagger-children:not(.visible) > * {
  opacity: 0;
  transform: translateY(20px);
}

/* ---------- Toast ---------- */
.toast {
  animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s forwards;
}
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(100%); } }

/* ---------- Dashboard ---------- */
.fade-in { animation: fadeInUp 0.3s ease-in; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.slide-in { animation: slideIn 0.3s ease-out; }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* ---------- Card Utilities ---------- */
.card-hover {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.card-lift {
  transition: var(--transition);
}
.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---------- Animated Counter ---------- */
.counter-val {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* ---------- Marquee (for trust bar) ---------- */
.testimonial-track {
  display: flex;
  gap: 1.5rem;
  animation: marquee 40s linear infinite;
}
.testimonial-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* ---------- Pulse animation ---------- */
@keyframes pulseSoft {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.animate-pulse-soft { animation: pulseSoft 2s ease-in-out infinite; }

/* ---------- Dot Pattern ---------- */
.dot-pattern {
  background-image:
    radial-gradient(circle, rgba(0,141,170,0.04) 1px, transparent 1px),
    radial-gradient(circle, rgba(226,68,0,0.025) 1px, transparent 1px);
  background-size: 24px 24px, 36px 36px;
  background-position: 0 0, 12px 12px;
}

/* ---------- Misc ---------- */
[x-cloak] { display: none !important; }
.kanban-col { min-height: 200px; }
.drag-over { background: #e6f5f8; border-color: var(--brand); }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero-v2::after { opacity: 0.5; }
  .hero-orb { filter: blur(60px); }
  .hero-orb-1 { width: 300px; height: 300px; }
  .hero-orb-2 { width: 200px; height: 200px; }
  .hero-orb-3 { display: none; }
  .hero-search-input-row { height: 48px; }
  .hero-search-cta { height: 42px; padding: 0 18px; font-size: 13px; }
}

/* ---------- Step Number Circle (legacy compat) ---------- */
.step-num { position: relative; }
.step-num::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--brand), var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.step-num:hover::after { opacity: 1; }

/* ---------- Trust Bar Items ---------- */
.trust-item { transition: all 0.2s ease; }
.trust-item:hover { color: var(--accent); }

/* ---------- Section Dividers ---------- */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 30%, var(--accent) 70%, transparent 100%);
  border: none; margin: 0; opacity: 0.3;
}

/* ---------- Pop Tags ---------- */
.pop-tag { transition: all 0.2s ease; }
.pop-tag:hover {
  background: rgba(226,68,0,0.2);
  border-color: rgba(226,68,0,0.4);
  color: var(--accent);
}

/* ---------- Service Card ---------- */
.service-card { transition: var(--transition); border-radius: 0.75rem; overflow: hidden; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .card-img { transition: transform 0.4s ease; }
.service-card:hover .card-img { transform: scale(1.03); }

/* ---------- Accent Underline ---------- */
.accent-underline { position: relative; display: inline; }
.accent-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

/* ---------- Glow Ring ---------- */
.glow-accent {
  box-shadow: 0 0 0 0 rgba(226,68,0,0);
  transition: box-shadow 0.3s ease;
}
.glow-accent:hover {
  box-shadow: 0 0 0 6px rgba(226,68,0,0.12);
}

/* Old hero compat */
.hero-dark {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 85%, rgba(0,141,170,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 15%, rgba(226,68,0,0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(27,181,204,0.05) 0%, transparent 60%);
}

/* ========================================================
   V4 — Fiverr-Inspired Clean Marketplace Components
   ======================================================== */

/* ---------- Hero V4 — Cinematic Full-Bleed ---------- */
.hero-v4 {
  background: #083746;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-v4-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, #083746 0%, #085467 30%, #087a94 55%, #084458 100%);
  z-index: 1;
}
.hero-v4-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 75% 40%, rgba(0,141,170,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 15% 80%, rgba(27,181,204,0.14) 0%, transparent 50%),
    radial-gradient(circle at 60% 90%, rgba(226,68,0,0.08) 0%, transparent 40%);
  z-index: 2;
}
.hero-v4-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.15), transparent),
    radial-gradient(1px 1px at 45% 65%, rgba(255,255,255,0.1), transparent),
    radial-gradient(1px 1px at 75% 35%, rgba(255,255,255,0.12), transparent),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,0.08), transparent),
    radial-gradient(1.5px 1.5px at 25% 85%, rgba(27,181,204,0.2), transparent),
    radial-gradient(1.5px 1.5px at 65% 15%, rgba(0,141,170,0.15), transparent);
  pointer-events: none;
  animation: particleDrift 20s linear infinite alternate;
}
@keyframes particleDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-8px, 5px); }
}

/* Slow-moving light sweep on hero for video-like feel */
.hero-v4::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse 40% 30% at 50% 50%, rgba(0,141,170,0.06) 0%, transparent 70%);
  z-index: 2;
  animation: heroLightSweep 15s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroLightSweep {
  0%, 100% { transform: translate(0%, 0%); }
  25% { transform: translate(10%, -5%); }
  50% { transform: translate(-5%, 10%); }
  75% { transform: translate(-10%, -8%); }
}
/* Noise texture overlay */
.hero-v4::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  z-index: 3;
  pointer-events: none;
}

/* Hero Search Bar */
.hero-search-bar {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
  transition: box-shadow 0.3s ease;
}
.hero-search-bar:focus-within {
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 2px rgba(0,141,170,0.4);
}

/* Hero pill buttons */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.04);
}
.hero-pill:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.1);
  color: white;
}

/* Hero CTA Button — Orange accent */
.hero-cta-btn {
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.hero-cta-btn:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(226,68,0,0.35);
}

/* Hero orange text highlight */
.hero-highlight-orange {
  color: #ffffff;
}

/* Legacy hero-stats-strip (replaced by trust-bar) */

/* ---------- Category Card V3 — Rounded Icon Style ---------- */
.cat-card-v3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}
.cat-card-v3:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 20px rgba(0,141,170,0.1);
  transform: translateY(-2px);
}
.cat-card-v3-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}
.cat-card-v3:hover .cat-card-v3-icon {
  color: var(--brand);
}

/* ---------- Popular Service Cards — Horizontal Scroll ---------- */
.pop-service-card {
  width: 230px;
  min-width: 230px;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  background: #fff;
}
.pop-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--brand);
}
.pop-service-top {
  height: 200px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-radius: 16px;
}
.pop-service-icon-wrap {
  align-self: flex-end;
  margin-top: auto;
}

/* Scroll button */
.pop-scroll-btn {
  transition: all 0.2s ease;
}
.pop-scroll-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

/* ---------- Value strip items ---------- */
.value-strip-item {
  text-align: left;
}

/* ---------- Guide Cards ---------- */
.guide-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.3s ease;
  display: block;
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: transparent;
}
.guide-card-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.guide-card:hover .guide-card-img {
  filter: brightness(1.05);
}

/* ---------- Category Nav Links ---------- */
.cat-nav-link {
  transition: all 0.2s ease;
}
.cat-nav-link:hover {
  border-bottom-color: var(--brand) !important;
}

/* ---------- CTA Banner V4 — Rich dark background ---------- */
.cta-banner-v4 {
  background: linear-gradient(135deg, #2a1520 0%, #3a1828 30%, #4a1a2a 50%, #3a1520 100%);
  position: relative;
}
.cta-banner-v4-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(226,68,0,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0,141,170,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(27,181,204,0.06) 0%, transparent 40%);
  z-index: 1;
}
.cta-banner-v4::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.05), transparent),
    radial-gradient(1px 1px at 60% 60%, rgba(255,255,255,0.04), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.03), transparent);
  pointer-events: none;
}

/* ---------- Scrollbar hide ---------- */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Category nav bar ---------- */
#cat-nav-bar {
  transition: all 0.3s ease;
}

/* ---------- Nav text spacing ---------- */
.nav-link-dynamic {
  letter-spacing: 0.04em;
  color: #1a3a45 !important;
}

/* ---------- Nav solid state refinement ---------- */
.nav-solid .nav-link-dynamic,
.nav-transparent .nav-link-dynamic {
  color: #1a3a45 !important;
  font-weight: 500;
}
.nav-solid .nav-link-dynamic:hover,
.nav-transparent .nav-link-dynamic:hover {
  color: var(--brand) !important;
}
.nav-solid #nav-signin,
.nav-transparent #nav-signin {
  color: #1a3a45 !important;
  font-weight: 500;
}
.nav-solid #nav-signin:hover,
.nav-transparent #nav-signin:hover {
  color: var(--brand) !important;
}
.nav-solid #nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  border: 2px solid var(--brand) !important;
  border-radius: 100px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.nav-solid #nav-cta:hover {
  background: var(--brand-dark, #006d88) !important;
  border-color: var(--brand-dark, #006d88) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0,141,170,0.3);
}

/* ---------- Responsive hero (small screens) ---------- */
@media (max-width: 640px) {
  .hero-section-height {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 3rem !important;
  }
  .hero-search-bar {
    flex-direction: row;
  }
  .pop-service-card {
    width: 200px;
    min-width: 200px;
  }
  .pop-service-top {
    height: 170px;
  }
  .guide-card-img {
    height: 140px;
  }
}

/* ================================================================
   MOBILE RESPONSIVE OVERHAUL
   ================================================================ */

/* --- Mobile Menu --- */
#mobile-menu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}
.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* --- Trust Bar (Stats Strip) — Icon + Text with Dividers --- */
.trust-bar-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 0;
}
.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  transition: opacity 0.2s ease;
}
.trust-bar-item:hover { opacity: 0.85; }
.trust-bar-divider {
  width: 1.5px;
  height: 36px;
  background: #b0bec5;
  flex-shrink: 0;
}
.trust-bar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.trust-bar-icon-teal {
  background: #e6f7f9;
  color: #0E8FAB;
}
.trust-bar-icon-orange {
  background: #fef1ec;
  color: #EE5A00;
}
.trust-bar-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.trust-bar-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #8db5c3;
  letter-spacing: 0.02em;
  line-height: 1;
}
.trust-bar-value {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* --- Categories Section — Card Grid --- */
.cat-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  background: #e6f7f9;
  color: #0D8AA7;
  border: 1px solid #d0eff5;
}
/* ── Unified section heading / subtitle ── */
.section-heading,
.cat-section-heading,
.hiw-heading,
.why-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #0D4F67;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 18px;
  color: #74B4CE;
  font-weight: 400;
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto 44px;
}
.cat-section-sub {
  font-size: 18px;
  color: #74B4CE;
  font-weight: 400;
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto;
}
.cat-browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 14px;
  background: #0D8AA7;
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(13,138,167,0.25);
  white-space: nowrap;
}
.cat-browse-btn:hover {
  background: #0B7A95;
  box-shadow: 0 6px 20px rgba(13,138,167,0.35);
  transform: translateY(-1px);
}
.cat-browse-btn i {
  font-size: 13px;
}
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.cat-card-v4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 12px 18px;
  border-radius: 16px;
  border: 1px solid #e8eff2;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.cat-card-v4:hover {
  border-color: #0D8AA7;
  box-shadow: 0 8px 24px rgba(13,138,167,0.1);
  transform: translateY(-3px);
}
.cat-card-v4-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s ease;
}
.cat-card-v4:hover .cat-card-v4-icon {
  transform: scale(1.08);
}
.cat-icon-teal {
  background: #e6f7f9;
  color: #0E8FAB;
}
.cat-icon-orange {
  background: #fef1ec;
  color: #EE5A00;
}
.cat-card-v4-label {
  font-size: 14px;
  font-weight: 600;
  color: #2d5c6b;
  line-height: 1.3;
}

/* ================================================================
   HOW IT WORKS — Two-Column Process Section
   ================================================================ */
.hiw-section {
  padding: 72px 0 80px;
  background: #ffffff;
}

/* Badge pill */
.hiw-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: #fff1ea;
  color: #EE5A00;
  border: 1px solid #ffe4d6;
}
.hiw-badge i { font-size: 12px; }

/* Heading — consolidated in unified rule above */

/* Subtitle */
.hiw-subtitle {
  font-size: 18px;
  color: #74B4CE;
  font-weight: 400;
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto 44px;
}

/* Two-column grid */
.hiw-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
}

/* Column header */
.hiw-col-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.hiw-col-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
}
.hiw-col-icon-dark { background: #0E5A73; }
.hiw-col-icon-teal { background: #0E8FAB; }
.hiw-col-title {
  font-size: 20px;
  font-weight: 700;
  color: #0D4F67;
  line-height: 1.2;
}
.hiw-col-sub {
  font-size: 15px;
  color: #7FAFC4;
  font-weight: 400;
  margin-top: 2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Step cards container */
.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Individual step card */
.hiw-step-card {
  background: #fff;
  border: 1px solid #dde8ef;
  border-radius: 20px;
  padding: 20px 22px;
  transition: all 0.25s ease;
}
.hiw-step-card:hover {
  border-color: #b4d4e2;
  box-shadow: 0 6px 24px rgba(13,79,103,0.06);
  transform: translateY(-2px);
}

/* Card inner layout */
.hiw-step-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Number badge */
.hiw-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.hiw-num-outline {
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #0D4F67;
  color: #0D4F67;
}
.hiw-num-filled {
  border-radius: 9px;
  background: #e0f0f5;
  border: 1.5px solid #b5dfe9;
  color: #0D6E85;
}

/* Step text */
.hiw-step-text {
  flex: 1;
  min-width: 0;
}
.hiw-step-title {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #2A5A6C;
  line-height: 1.25;
  margin-bottom: 2px;
  display: block;
}
.hiw-step-desc {
  font-size: 16px;
  color: #7FAFC4;
  line-height: 1.4;
  font-weight: 400;
}

/* Right-side icon */
.hiw-step-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #F6F9FB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.hiw-step-icon i {
  font-size: 14px;
  color: #8dbfd4;
}

/* ==================== WHY EJOBSAFRICA ==================== */
.why-section {
  padding: 72px 0 80px;
  background: #ffffff;
}
/* why-heading — consolidated in unified rule above */
.why-subtitle {
  font-size: 18px;
  color: #74B4CE;
  font-weight: 400;
  line-height: 1.55;
  max-width: 600px;
  margin: 0 auto 44px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-card {
  background: #fff;
  border: 1px solid #dde5ea;
  border-radius: 20px;
  padding: 26px 24px;
  transition: all 0.25s ease;
}
.why-card:hover {
  border-color: #b4d4e2;
  box-shadow: 0 6px 24px rgba(13,79,103,0.06);
  transform: translateY(-2px);
}
.why-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 16px;
}
.why-icon-teal { background: #e6f7f9; color: #0E8FAB; }
.why-icon-orange { background: #FFF3E8; color: #EE5A00; }
.why-icon-indigo { background: #eef0ff; color: #5B5FC7; }
.why-icon-purple { background: #f3eaff; color: #8B5CF6; }
.why-icon-red { background: #ffecee; color: #E5384B; }
.why-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #0D4F67;
  line-height: 1.25;
  margin-bottom: 8px;
}
.why-card-desc {
  font-size: 14.5px;
  color: #7FAFC4;
  line-height: 1.5;
  font-weight: 400;
}

/* ================================================================
   MOBILE STYLES — Single authoritative block
   All mobile hero, search bar, layout overrides live here.
   ================================================================ */

/* --- Mobile < 768px --- */
@media (max-width: 767px) {

  /* === KILL ALL HERO ANIMATIONS — prevent opacity:0 ghost elements === */
  .hero-anim-1,
  .hero-anim-2,
  .hero-anim-3,
  .hero-anim-4,
  .hero-anim-5 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  /* === HERO: auto-height, no fixed vh === */
  .hero-v2,
  .hero-mobile-fix,
  section.hero-v2 {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    padding-bottom: 2.5rem !important;
  }

  /* === KILL ALL REVEAL ANIMATIONS ON MOBILE === */
  .reveal, .reveal-left, .reveal-right, .reveal-scale,
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* === HERO CONTENT: nav-bar offset, full width === */
  .hero-content-wrap {
    padding-top: 110px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  .hero-text-wrap {
    max-width: 100% !important;
    overflow: visible !important;
    text-align: center !important;
  }

  /* === HERO BADGE: centred === */
  .hero-badge-wrap {
    display: flex !important;
    justify-content: center !important;
  }

  /* === HERO HEADLINE: centred === */
  .hero-headline,
  h1.hero-headline,
  .hero-anim-2.hero-headline {
    text-align: center !important;
  }

  /* === HERO BADGE === */
  .hero-badge-wrap {
    margin-bottom: 12px !important;
  }
  .hero-badge-pill {
    font-size: 11px !important;
    padding: 4px 12px !important;
  }

  /* === HERO HEADLINE: readable size, allows 2–3 lines === */
  .hero-headline,
  h1.hero-headline,
  .hero-anim-2.hero-headline {
    font-size: 2.1rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 56px !important;
    color: #ffffff !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  /* === ROTATING BADGE: inline, no transforms === */
  #hero-rotating-text {
    display: inline !important;
    position: static !important;
    transform: none !important;
    font-size: inherit !important;
    white-space: normal !important;
    -webkit-box-decoration-break: clone !important;
    box-decoration-break: clone !important;
  }

  /* === SUB-TEXT: hidden on mobile === */
  .hero-sub-text,
  p.hero-sub-text {
    display: none !important;
  }

  /* === SEARCH BAR: always a single row, never stacked === */
  .hero-search-wrap {
    border-radius: 10px !important;
    max-width: 100% !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
  }

  /* === TRUST NOTES === */
  /* === TRUST NOTES: all 3 on one horizontal line === */
  .hero-trust-notes {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin-top: 4px !important;
    width: 100% !important;
  }
  .hero-trust-note {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,0.92) !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    border-radius: 100px !important;
    padding: 6px 4px !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .hero-trust-dot {
    font-size: 9px !important;
    flex-shrink: 0 !important;
  }
  .hero-trust-icon {
    display: none !important;
  }

  /* === NAVBAR === */
  .nav-bar-inner { height: 60px !important; }
  .nav-logo-img  { height: 34px !important; }
  .nav-left-group { gap: 16px !important; }

  /* === TRUST BAR === */
  .trust-bar-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    padding: 8px 0 !important;
  }
  .trust-bar-divider { display: none !important; }
  .trust-bar-item   { padding: 8px 12px !important; gap: 8px !important; }
  .trust-bar-icon   { width: 30px !important; height: 30px !important; font-size: 12px !important; border-radius: 8px !important; }
  .trust-bar-label  { font-size: 11px !important; }
  .trust-bar-value  { font-size: 12.5px !important; }
  .trust-bar-text   { gap: 1px !important; }

  /* === SECTION PADDING === */
  #categories-section { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  section[class*="py-16"] { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  section[class*="py-20"] { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  #how-it-works, #levels { padding-top: 3rem !important; padding-bottom: 3rem !important; }

  /* === CATEGORIES === */
  .cat-cards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .cat-card-v4    { padding: 14px 8px 12px !important; }
  .cat-section-heading { font-size: 1.35rem !important; }
  .cat-section-sub     { font-size: 14px !important; }
  .cat-browse-btn      { width: 100% !important; justify-content: center !important; }

  /* === HOW IT WORKS === */
  .hiw-section   { padding: 48px 0 56px !important; }
  .hiw-columns   { grid-template-columns: 1fr !important; gap: 32px !important; }
  .section-heading, .hiw-heading { font-size: 1.35rem !important; }
  .section-subtitle, .hiw-subtitle { font-size: 14.5px !important; margin-bottom: 28px !important; max-width: 100% !important; }
  .hiw-step-card { padding: 16px !important; border-radius: 14px !important; }
  .hiw-col-header { gap: 10px !important; margin-bottom: 16px !important; }
  .hiw-col-icon  { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
  .hiw-col-title { font-size: 17px !important; }
  .hiw-col-sub   { font-size: 13px !important; }
  .hiw-step-title { font-size: 14.5px !important; }
  .hiw-step-desc  { font-size: 13.5px !important; }
  .hiw-num { width: 30px !important; height: 30px !important; font-size: 11px !important; }
  .hiw-step-icon { width: 28px !important; height: 28px !important; }
  .hiw-step-icon i { font-size: 12px !important; }

  /* === TALENT LEVELS === */
  .lv-section { padding: 48px 0 56px !important; }
  .lv-grid    { grid-template-columns: 1fr !important; gap: 14px !important; }
  .lv-card    { padding: 22px 18px 20px !important; }
  .lv-icon-wrap { width: 38px !important; height: 38px !important; border-radius: 10px !important; font-size: 15px !important; }
  .lv-name   { font-size: 17px !important; }
  .lv-subtitle { font-size: 11.5px !important; }
  .lv-desc   { font-size: 13px !important; }
  .lv-badge  { font-size: 10px !important; padding: 3px 10px !important; }
  .lv-perk   { font-size: 12.5px !important; }
  .lv-price  { font-size: 14px !important; }
  .lv-path-wrap { margin-top: 28px !important; }
  .lv-path   { flex-wrap: wrap !important; justify-content: center !important; gap: 6px !important; padding: 12px 16px !important; }
  .lv-path-arrow { padding: 0 6px !important; font-size: 10px !important; }
  .lv-path-dot   { width: 28px !important; height: 28px !important; font-size: 11px !important; border-radius: 8px !important; }
  .lv-path-label { font-size: 11.5px !important; }

  /* === WHY SECTION === */
  .why-section  { padding: 48px 0 56px !important; }
  .why-heading  { font-size: 1.35rem !important; }
  .why-subtitle { font-size: 14.5px !important; margin-bottom: 28px !important; max-width: 100% !important; }
  .why-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .why-card { padding: 20px 18px !important; }
  .why-card-icon  { width: 38px !important; height: 38px !important; border-radius: 10px !important; font-size: 15px !important; }
  .why-card-title { font-size: 15px !important; }
  .why-card-desc  { font-size: 13.5px !important; }

  /* === GUIDES === */
  .guide-card-img { height: 140px !important; }

  /* === CAT NAV BAR === */
  .cat-nav-section { top: 72px !important; }

  /* === POPULAR SERVICES === */
  .pop-service-card { width: 180px !important; min-width: 180px !important; }
  .pop-service-top  { height: 160px !important; }

  /* === BOTTOM CTA === */
  .cta-banner-v4 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
  .cta-banner-v4 h2 { font-size: 1.65rem !important; line-height: 1.2 !important; }
  .cta-banner-v4 p  { font-size: 14.5px !important; }
  .cta-banner-v4 .flex-wrap { flex-direction: column !important; align-items: stretch !important; }
  .cta-banner-v4 .flex-wrap button { justify-content: center !important; width: 100% !important; }

  /* === FOOTER === */
  .footer-v2 .grid { gap: 1.5rem !important; }
  .footer-v2 .grid > div:first-child { grid-column: 1 / -1 !important; }
}

/* --- Small phones < 480px --- */
@media (max-width: 479px) {

  /* Hero height */
  .hero-v2, .hero-mobile-fix, section.hero-v2 {
    height: auto !important;
    min-height: 0 !important;
  }

  /* Hero content */
  .hero-content-wrap {
    padding-top: 100px !important;
    padding-left: 0.875rem !important;
    padding-right: 0.875rem !important;
  }

  /* Headline slightly smaller on tiny phones */
  .hero-headline, h1.hero-headline {
    font-size: 1.9rem !important;
    line-height: 1.25 !important;
    margin-bottom: 48px !important;
  }

  /* Sub-text always hidden */
  .hero-sub-text, p.hero-sub-text { display: none !important; }

  /* Section headings */
  .section-heading, .hiw-heading, .why-heading, .cat-section-heading {
    font-size: 1.2rem !important;
  }

  /* Categories */
  .cat-cards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .cat-card-v4  { padding: 12px 6px 10px !important; }
  .cat-section-sub { font-size: 13px !important; }

  /* Talent Levels */
  .lv-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .lv-card { padding: 18px 16px 16px !important; }
  .lv-name { font-size: 16px !important; }
  .lv-path { flex-wrap: wrap !important; justify-content: center !important; gap: 4px !important; padding: 10px 14px !important; border-radius: 16px !important; }

  /* Why section */
  .why-card { padding: 18px 16px !important; }
  .why-card-title { font-size: 14.5px !important; }
  .why-card-desc  { font-size: 13px !important; }

  /* CTA banner */
  .cta-banner-v4 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .cta-banner-v4 h2 { font-size: 1.4rem !important; }
  .cta-banner-v4 p  { font-size: 13.5px !important; margin-bottom: 1.5rem !important; }

  /* Footer */
  .footer-v2 { padding-top: 2rem !important; }
  .footer-v2 .grid { grid-template-columns: 1fr !important; }

  /* Trust bar */
  .trust-bar-icon  { width: 28px !important; height: 28px !important; font-size: 11px !important; }
  .trust-bar-label { font-size: 10.5px !important; }
  .trust-bar-value { font-size: 12px !important; }
}

/* --- Tablet (sm to md) --- */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-content-wrap { padding-top: 130px; }
  .hero-sub-text { font-size: 16px; }
  .cat-cards-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-bar-grid { flex-wrap: wrap; justify-content: space-around; }
  .trust-bar-item { padding: 6px 14px; }
  .trust-bar-divider { height: 28px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .lv-grid  { grid-template-columns: repeat(2, 1fr); }
  .hiw-columns { gap: 24px; }
  .lv-path { padding: 10px 20px; }
  .cta-banner-v4 h2 { font-size: 2rem !important; }
}

/* --- Desktop (lg+) --- */
@media (min-width: 1024px) {
  .cat-cards-grid { grid-template-columns: repeat(8, 1fr); }
}

/* --- Extra large screens --- */
@media (min-width: 1440px) {
  .hero-content-wrap { padding-top: 180px; }
}

/* ================================================================
   SEARCH BAR — Always visible, never animated away
   ================================================================ */
.hero-search-bar,
.hero-search-wrap {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
