/* ============================================================
   WORK FROM SUSSEX CAREERS — DESIGN SYSTEM v2
   Palette sampled directly from the brand logo (navy / teal / gold).
   Wave motif reserved for hero + footer only, per brand guidance.
   ============================================================ */

:root {
  /* ---- Brand (from logo) ---- */
  --brand-primary: #0B2F73;       /* deep navy — nav, buttons, headings */
  --brand-primary-dark: #082253;
  --brand-primary-light: #1D4590;
  --brand-teal: #0AA3B0;          /* teal — highlights, icons, active states */
  --brand-teal-dark: #08828C;
  --brand-teal-bg: #E6F6F7;
  --brand-accent: #F5B400;        /* golden yellow — featured, badges, CTAs */
  --brand-accent-dark: #D99900;

  /* ---- Neutrals ---- */
  --ink: #16213D;
  --ink-soft: #566078;
  --ink-faint: #8791A3;
  --surface: #FFFFFF;
  --surface-soft: #F7F9FC;
  --surface-soft-2: #EFF2F8;
  --line: #E7EAF2;
  --line-strong: #D7DCE8;

  /* ---- Feedback ---- */
  --success: #1B7A4A;
  --success-bg: #E7F5EC;
  --warn: #A5610E;
  --warn-bg: #FCF1DF;
  --danger: #C0392B;
  --danger-bg: #FBEAE6;
  --info: #0AA3B0;
  --info-bg: #E6F6F7;

  /* ---- Radius (soft, contemporary — less boxy) ---- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* ---- Shadow (soft, layered, colour-tinted for a premium feel) ---- */
  --shadow-xs: 0 1px 2px rgba(11, 33, 71, 0.04);
  --shadow-sm: 0 2px 10px -4px rgba(11, 33, 71, 0.08), 0 1px 2px rgba(11, 33, 71, 0.04);
  --shadow-md: 0 16px 40px -12px rgba(11, 33, 71, 0.16), 0 4px 12px -4px rgba(11, 33, 71, 0.08);
  --shadow-lg: 0 32px 72px -16px rgba(9, 26, 61, 0.24), 0 12px 24px -8px rgba(9, 26, 61, 0.1);
  --shadow-glow-teal: 0 12px 40px -8px rgba(10, 163, 176, 0.38);
  --shadow-glow-gold: 0 12px 36px -8px rgba(245, 180, 0, 0.4);
  --shadow-focus: 0 0 0 3px rgba(10, 163, 176, 0.35);

  /* ---- Type ---- */
  --font-display: 'Manrope', 'Inter', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* ---- Layout ---- */
  --container-max: 1280px;
  --nav-height: 84px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 15.5px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-primary);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 { font-weight: 800; letter-spacing: -0.03em; }
h2 { font-weight: 800; }
h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: 6px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 72px 0; }
.section-tight { padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 720px) {
  .section { padding-top: 48px; padding-bottom: 48px; }
  .section-tight { padding-top: 36px; padding-bottom: 36px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-teal-dark);
  background: var(--brand-teal-bg);
  padding: 5px 13px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-head { max-width: 620px; margin-bottom: 40px; }
.section-head p.lead { margin-top: 12px; font-size: 16px; color: var(--ink-soft); }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.text-muted { color: var(--ink-soft); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============ SKIP LINK ============ */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--brand-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out-back), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 30px; font-size: 15.5px; }
.btn-block { width: 100%; }
@media (max-width: 760px) {
  .btn { min-height: 46px; }
  .btn-sm { min-height: 40px; }
  .btn-lg { min-height: 52px; }
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary-light), var(--brand-primary) 60%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark) 60%); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn-accent {
  background: linear-gradient(135deg, #FFC93C, var(--brand-accent) 65%);
  color: #402D00;
  box-shadow: var(--shadow-glow-gold);
}
.btn-accent:hover { background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-dark) 65%); box-shadow: 0 16px 44px -8px rgba(245,180,0,0.5); transform: translateY(-2px); }

.btn-teal {
  background: linear-gradient(135deg, #14BFCE, var(--brand-teal) 65%);
  color: #fff;
  box-shadow: var(--shadow-glow-teal);
}
.btn-teal:hover { background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark) 65%); box-shadow: 0 16px 44px -8px rgba(10,163,176,0.5); transform: translateY(-2px); }

.btn-secondary {
  background: var(--surface);
  color: var(--brand-primary);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--brand-primary); background: var(--surface-soft); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-facebook {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2;
}
.btn-facebook:hover { background: #1465D8; border-color: #1465D8; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-ghost {
  background: transparent;
  color: var(--brand-primary);
}
.btn-ghost:hover { background: var(--surface-soft-2); }

.btn-white {
  background: #fff;
  color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-icon {
  width: 40px; height: 40px; padding: 0; border-radius: var(--radius-full);
  background: var(--surface-soft-2); color: var(--brand-primary);
}
.btn-icon:hover { background: var(--line-strong); }

/* ============ NAVIGATION ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(231,234,242,0.9), 0 12px 28px -10px rgba(11,33,71,0.22);
  border-bottom: 1px solid rgba(11,33,71,0.14);
}
.site-header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-teal) 50%, var(--brand-accent));
}
.navbar {
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; transition: transform 0.2s var(--ease); }
.brand:hover { transform: scale(1.02); }
.brand img { height: 54px; width: auto; display: block; flex-shrink: 0; }
@media (max-width: 760px) { .brand img { height: 50px; } }

.nav-links { display: flex; align-items: center; gap: 2px; background: var(--surface-soft); padding: 5px; border-radius: var(--radius-full); border: 1px solid var(--line); }
.nav-links a {
  padding: 9px 17px; border-radius: var(--radius-full); font-weight: 700; font-size: 13.5px;
  color: var(--ink-soft); transition: background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-links a:hover { color: var(--brand-primary); }
.nav-links a[aria-current="page"] { color: #fff; background: var(--brand-primary); box-shadow: var(--shadow-sm); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; align-items: center; justify-content: center;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.nav-toggle:active { transform: scale(0.94); background: var(--surface-soft-2); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-facebook { display: none; }
}

.mobile-menu {
  display: none;
  position: fixed; inset: var(--nav-height) 0 0 0; z-index: 99;
  background: #fff; overflow-y: auto;
}
.mobile-menu.open { display: block; animation: slideDown 0.2s var(--ease); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu ul { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { display: block; padding: 15px 16px; min-height: 48px; border-radius: var(--radius-md); font-weight: 600; font-size: 16.5px; color: var(--brand-primary); transition: background 0.15s var(--ease); }
.mobile-menu a:hover, .mobile-menu a:active { background: var(--surface-soft-2); }
.mobile-menu .mobile-cta { padding: 16px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); margin-top: 8px; }

/* ============ HERO — immersive gradient-mesh scene ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(10,163,176,0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(245,180,0,0.14), transparent 55%),
    radial-gradient(ellipse 800px 600px at 50% 120%, rgba(11,47,115,0.08), transparent 60%),
    var(--surface-soft);
  min-height: 460px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(11,47,115,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-ridgeline {
  position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: auto;
  color: var(--surface-soft);
}
.hero-inner {
  position: relative; z-index: 2;
  padding-top: 64px; padding-bottom: 96px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); max-width: 760px; }
.hero .lead { margin-top: 16px; font-size: 16.5px; color: var(--ink-soft); max-width: 540px; }

/* ---- Search bar — floating glass panel ---- */
.search-panel {
  margin-top: 32px;
  width: 100%; max-width: 760px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px -24px rgba(9,26,61,0.28), 0 8px 24px -8px rgba(9,26,61,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
  padding: 10px;
  display: flex; align-items: stretch; gap: 4px;
  border: 1px solid rgba(255,255,255,0.6);
}
.search-field {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-lg);
  position: relative;
  transition: background 0.2s var(--ease);
}
.search-field:focus-within { background: rgba(230,246,247,0.6); }
.search-field + .search-field { border-left: 1px solid var(--line); }
.search-field svg { flex-shrink: 0; color: var(--ink-faint); }
.search-field input, .search-field select {
  border: none; outline: none; width: 100%; font-size: 14.5px; background: transparent; color: var(--ink);
}
.search-field input::placeholder { color: var(--ink-faint); }
.search-panel .btn { flex-shrink: 0; align-self: center; margin-right: 4px; }

@media (max-width: 780px) {
  .search-panel { flex-direction: column; padding: 8px; gap: 2px; border-radius: var(--radius-lg); }
  .search-field { padding: 14px 14px; border-radius: var(--radius-md); }
  .search-field + .search-field { border-left: none; border-top: 1px solid var(--line); }
  .search-field input, .search-field select { font-size: 16px; }
  .search-panel .btn { margin: 6px 4px 4px; min-height: 50px; font-size: 16px; }
}

/* Prevent iOS Safari auto-zoom on focus by keeping all form text at 16px+ on mobile */
@media (max-width: 760px) {
  .input, select.input, textarea.input { font-size: 16px; min-height: 48px; }
  textarea.input { min-height: 110px; }
  .checkbox-row input[type="checkbox"] { width: 20px; height: 20px; }
  .checkbox-row label { font-size: 15px; }
  .checkbox-row { padding: 7px 0; }
}

.autocomplete-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); padding: 12px; text-align: left; z-index: 20;
  display: none;
}
.autocomplete-panel.open { display: block; animation: fadeUp 0.16s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px);} to { opacity: 1; transform: translateY(0);} }
.autocomplete-label { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); padding: 6px 10px 4px; }
.autocomplete-item { padding: 8px 10px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.autocomplete-item:hover, .autocomplete-item:focus { background: var(--surface-soft-2); }

/* ============ MULTI-SELECT LOCATION PICKER ============ */
.ms-trigger {
  border: none; outline: none; width: 100%; font-size: 14.5px; background: transparent; color: var(--ink);
  text-align: left; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer;
}
.ms-trigger.placeholder { color: var(--ink-faint); }
.ms-trigger .ms-count { background: var(--brand-teal); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: var(--radius-full); flex-shrink: 0; }
.ms-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); z-index: 30; display: none; overflow: hidden;
}
.ms-panel.open { display: block; animation: fadeUp 0.16s var(--ease); }
.ms-panel-inner { padding: 10px; max-height: 320px; overflow-y: auto; }
.ms-option {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink);
  cursor: pointer;
}
.ms-option:hover { background: var(--surface-soft-2); }
.ms-option input { width: 17px; height: 17px; accent-color: var(--brand-teal); flex-shrink: 0; }
.ms-option.special { color: var(--brand-teal-dark); font-weight: 600; }
.ms-divider { height: 1px; background: var(--line); margin: 6px 4px; }
.ms-panel-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface-soft); }

/* ============ SHARE THIS JOB ============ */
.share-wrap { position: relative; }
.share-panel { position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 220px; z-index: 40; }
.share-option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink); cursor: pointer; background: none; border: none; width: 100%; text-align: left; font-family: inherit; }
.share-option:hover { background: var(--surface-soft-2); }
.share-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }
.share-icon.copy { background: var(--brand-teal); }
.share-icon.whatsapp { background: #25D366; }
.share-icon.facebook { background: #1877F2; }
.share-icon.x { background: #000; }
.share-icon.linkedin { background: #0A66C2; }
.share-icon.email { background: var(--ink-faint); }
@media (max-width: 780px) { .ms-panel { position: static; box-shadow: none; border: none; margin-top: 8px; } }

.hero-tags { margin-top: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hero-tags span.label { font-size: 13px; color: var(--ink-faint); }
.pill-link {
  font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: var(--radius-full);
  background: #fff; border: 1px solid var(--line-strong); color: var(--brand-primary);
  transition: all 0.16s var(--ease);
}
.pill-link:hover { background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; }

.hero-stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.hero-stat .num { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--brand-primary); }
.hero-stat .num .plus { color: var(--brand-accent-dark); }
.hero-stat .label { font-size: 13px; color: var(--ink-faint); margin-top: 2px; }

/* ============ BADGES ============ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.01em;
  padding: 4px 10px; border-radius: var(--radius-full);
}
.badge-primary { background: var(--brand-teal-bg); color: var(--brand-teal-dark); }
.badge-accent { background: #FDF1D4; color: var(--brand-accent-dark); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: var(--surface-soft-2); color: var(--ink-soft); }
.badge-featured { background: linear-gradient(135deg, #FFC93C, var(--brand-accent) 70%); color: #402D00; box-shadow: 0 2px 10px -2px rgba(245,180,0,0.5); }

/* ============ CARDS ============ */
.card {
  background: #fff; border: 1px solid rgba(231,234,242,0.7); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

/* ---- Job card (used on homepage feature grids) ---- */
.job-card { padding: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.job-card-top { display: flex; gap: 14px; align-items: flex-start; }
.company-logo {
  width: 46px; height: 46px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff;
}
.company-logo.logo-branded, .job-row-logo.logo-branded { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4), 0 2px 8px -2px rgba(11,33,71,0.25); }
.company-logo.logo-placeholder, .job-row-logo.logo-placeholder { border: 1.5px dashed var(--line-strong); }
.job-card-title { font-size: 15.5px; font-weight: 700; color: var(--brand-primary); margin-bottom: 2px; }
.job-card-company { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.job-card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--ink-soft); }
.job-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-card-meta svg { color: var(--ink-faint); flex-shrink: 0; }
.job-card-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; flex-grow: 1; }
.job-card-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.job-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.job-card-posted { font-size: 12px; color: var(--ink-faint); }
.job-card-salary { font-family: var(--font-display); font-weight: 800; color: var(--brand-primary); font-size: 14.5px; }

.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .job-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .job-grid { grid-template-columns: 1fr; } }

/* ---- Job ROW (compact horizontal listing — search results page) ---- */
.job-row {
  display: flex; align-items: center; gap: 18px;
  padding: 20px 22px; background: #fff; border: 1px solid rgba(231,234,242,0.7); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.job-row:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-3px); }
.job-row.featured {
  border-left: 3px solid var(--brand-accent);
  background: linear-gradient(135deg, #FFFCF2, #FFFFFF 55%);
}
.job-row.featured:hover { box-shadow: var(--shadow-glow-gold); }
.job-row-logo {
  width: 52px; height: 52px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #fff;
}
.job-row-main { flex: 1; min-width: 0; }
.job-row-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-row-title { font-size: 16px; font-weight: 700; color: var(--brand-primary); }
.job-row-company { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; font-weight: 500; }
.job-row-short-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-top: 6px; }
@media (max-width: 760px) { .job-row-short-desc { display: none; } }
.job-row-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.job-row-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-row-meta svg { color: var(--ink-faint); flex-shrink: 0; }
.job-row-desc { font-size: 13px; color: var(--ink-soft); margin-top: 8px; line-height: 1.55; max-width: 640px; }
.job-row-side { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; text-align: center; }
.job-row-salary { font-family: var(--font-display); font-weight: 800; color: var(--brand-primary); font-size: 15px; white-space: nowrap; }
.job-row-actions { display: flex; gap: 8px; }
@media (max-width: 760px) {
  .job-row { flex-wrap: wrap; }
  .job-row-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; margin-top: 6px; }
}

/* ---- Expandable job row (Browse Jobs page — expands in place instead of navigating) ---- */
.exp-row {
  background: #fff; border: 1px solid rgba(231,234,242,0.7); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.15s var(--ease);
}
.exp-row:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.exp-row.featured {
  border-left: 3px solid var(--brand-accent);
  background: linear-gradient(135deg, #FFFCF2, #FFFFFF 55%);
}
.exp-row.featured:hover { box-shadow: var(--shadow-glow-gold); }
.exp-row-head {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; cursor: pointer;
}
.exp-row-head:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--brand-teal); }
.exp-row-chevron { color: var(--ink-faint); flex-shrink: 0; margin-left: auto; transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.exp-row.open .exp-row-chevron { transform: rotate(180deg); color: var(--brand-teal); }
.exp-row-head .job-row-main { flex: 0 1 480px; }
.exp-row-head .job-row-side { margin-left: 24px; }
.exp-row-title { font-size: 16px; font-weight: 700; color: var(--brand-primary); background: none; border: none; padding: 0; text-align: left; cursor: pointer; font-family: inherit; }
.exp-row-title:hover { text-decoration: underline; }

.exp-row-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); border-top: 0 solid var(--line); }
.exp-row.open .exp-row-panel { border-top-width: 1px; }
.exp-row-panel-inner { padding: 22px 22px 26px; display: grid; grid-template-columns: 1fr 260px; gap: 28px; }
@media (max-width: 760px) { .exp-row-panel-inner { grid-template-columns: 1fr; padding: 20px 20px 24px; } }

.exp-section { margin-bottom: 20px; }
.exp-section:last-child { margin-bottom: 0; }
.exp-section h4 { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--brand-teal-dark); margin-bottom: 10px; }
.exp-section p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.exp-section ul { display: flex; flex-direction: column; gap: 9px; }
.exp-section li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.exp-section li svg { color: var(--brand-teal); flex-shrink: 0; margin-top: 3px; }

.exp-side { display: flex; flex-direction: column; gap: 12px; }
.exp-side .btn { width: 100%; min-height: 48px; }

/* ---- Mobile only: CharityJob-inspired compact listing (verified against
   real screenshots) — company+location combined on one line, a circled-£
   salary icon, a short description snippet, a soft pastel "Featured" pill,
   and a blue link-style title. Desktop keeps its original card design
   above; this block only applies below 760px. ---- */
@media (max-width: 760px) {
  .exp-row:active { background: var(--surface-soft); }

  .exp-row-head {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 12px;
    row-gap: 0;
    align-items: start;
    padding: 16px;
  }
  .exp-row-head .job-row-logo { grid-column: 1; grid-row: 1; width: 40px; height: 40px; border-radius: 8px; font-size: 12px; margin-top: 1px; }
  .exp-row-head .job-row-main { grid-column: 2; grid-row: 1; flex: initial; min-width: 0; }
  .exp-row-chevron { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; margin-left: 0; width: 15px; height: 15px; margin-top: 2px; }

  .exp-row-head .job-row-side { display: none; }

  .exp-row-title { font-size: 16px; line-height: 1.3; padding-right: 4px; font-weight: 700; color: #1450C7; }
  .job-row-title-line { display: block; }
  .job-row-title-line .badge-neutral { display: none; }
  .job-row-title-line .badge-featured { display: inline-block; margin: 4px 0 0; background: #FCE4EC; color: #C2185B; box-shadow: none; font-weight: 700; }

  .job-row-company, .job-row-meta { display: none; }

  .job-row-companyloc { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .job-row-salary-line { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--ink); }
  .job-row-salary-line svg { color: var(--ink); flex-shrink: 0; }
  .job-row-snippet {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin-top: 8px;
  }
  .job-row-posted-line { font-size: 12px; color: var(--ink-faint); margin-top: 8px; }
}
@media (min-width: 761px) {
  .job-row-companyloc, .job-row-salary-line, .job-row-snippet, .job-row-posted-line { display: none; }
}

/* ============ HOW IT WORKS ============ */
.founding-badge {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px; padding: 7px 16px 7px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-soft-2); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13px; font-weight: 600;
}
.founding-badge svg { color: var(--brand-accent); width: 14px; height: 14px; flex-shrink: 0; }

/* ============ EMPLOYER PITCH (above pricing) ============ */
.employer-pitch { text-align: center; max-width: 680px; margin: 0 auto; padding: 4px 0 16px; }
.employer-pitch h2 { font-size: clamp(21px, 2.8vw, 26px); margin-bottom: 10px; }
.employer-pitch p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }

.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  position: relative; margin-top: 44px;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 27px; left: calc(16.66% + 10px); right: calc(16.66% + 10px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 18px);
}
@media (max-width: 760px) {
  .steps-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps-grid::before { display: none; }
}
.step-card {
  background: transparent; border: none; box-shadow: none;
  text-align: center; position: relative; padding: 0;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-teal-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
  margin: 0 auto 22px; box-shadow: 0 8px 20px -6px rgba(11,47,115,0.4);
  position: relative; z-index: 1;
}
.step-card h3 { font-size: 18px; color: var(--brand-primary); margin-bottom: 8px; }
.step-card p { max-width: 280px; margin-inline: auto; }

.tile-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 980px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-tile {
  padding: 22px 18px; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid rgba(231,234,242,0.7); box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.25s var(--ease);
}
.cat-tile:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cat-tile .icon-wrap {
  width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--brand-teal-bg);
  display: flex; align-items: center; justify-content: center; color: var(--brand-teal-dark);
}
.cat-tile .cat-name { font-weight: 700; color: var(--brand-primary); font-size: 14.5px; }
.cat-tile .cat-count { font-size: 12.5px; color: var(--ink-faint); }

/* ============ ADVICE HUB & ARTICLE PAGES ============ */
.advice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .advice-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .advice-grid { grid-template-columns: 1fr; } }

.advice-card {
  display: flex; flex-direction: column; padding: 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}
.advice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.advice-card-header {
  height: 130px; margin: -26px -26px 20px; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.advice-card-header::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,20,40,0.35), transparent 55%);
}
.advice-card-tag {
  display: inline-flex; align-self: flex-start; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 5px 12px;
  border-radius: var(--radius-full); color: #fff; margin-bottom: 14px;
}
.advice-card h3 { font-size: 18px; color: var(--brand-primary); line-height: 1.35; margin-bottom: 10px; }
.advice-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; flex-grow: 1; margin-bottom: 16px; }
.advice-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--ink-faint); font-weight: 600; }
.advice-card-foot span:last-child { display: flex; align-items: center; gap: 4px; color: var(--brand-teal-dark); }

.article-layout { max-width: 740px; margin: 0 auto; }
.article-tag {
  display: inline-flex; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 6px 14px; border-radius: var(--radius-full);
  color: #fff; margin-bottom: 18px;
}
.article-layout h1 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 14px; }
.article-meta-row { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ink-faint); margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-body h2 { font-size: 23px; color: var(--brand-primary); margin: 40px 0 16px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 17.5px; color: var(--brand-primary); margin: 26px 0 10px; }
.article-body p { font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 18px; }
.article-body ul { margin: 0 0 22px; padding-left: 22px; list-style: disc; }
.article-body ol { margin: 0 0 22px; padding-left: 22px; list-style: decimal; }
.article-body li { font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 10px; }
.article-body strong { color: var(--ink); }
.article-tip-box {
  background: var(--surface-soft); border-left: 4px solid var(--brand-teal);
  padding: 18px 22px; border-radius: var(--radius-md); margin: 28px 0;
}
.article-tip-box p:last-child { margin-bottom: 0; }
.article-tip-box strong { color: var(--brand-primary); }
.article-closing-cta {
  margin-top: 48px; padding: 32px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand-primary) 0%, var(--brand-teal-dark) 100%);
  color: #fff; text-align: center;
}
.article-closing-cta h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.article-closing-cta p { color: rgba(255,255,255,0.8); margin-bottom: 20px; }
.article-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-teal-dark); margin-bottom: 24px; }

/* ============ CATEGORY / LOCATION TILES ============ */
.loc-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 128px;
  display: flex; align-items: flex-end; padding: 18px; color: #fff;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.loc-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.loc-tile::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--brand-primary), var(--brand-teal-dark));
  transition: transform 0.4s var(--ease);
}
.loc-tile:hover::before { transform: scale(1.08); }
.loc-tile span { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 15.5px; }
.loc-tile small { position: relative; z-index: 1; display: block; font-weight: 500; opacity: 0.85; font-size: 12px; margin-top: 2px;}

/* ============ TESTIMONIALS ============ */
.testimonial-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.testimonial-quote { font-size: 14.5px; color: var(--ink); line-height: 1.7; }
.testimonial-quote::before { content: '\201C'; color: var(--brand-accent); font-size: 28px; font-family: Georgia, serif; line-height: 0; display:inline-block; margin-right:2px; vertical-align: -7px;}
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.testimonial-name { font-weight: 700; font-size: 13.5px; color: var(--brand-primary); }
.testimonial-role { font-size: 12px; color: var(--ink-faint); }
.stars { color: var(--brand-accent); display: flex; gap: 2px; }

/* ============ LOGO STRIP ============ */
.logo-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; opacity: 0.8; }
.logo-strip .logo-chip { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink-soft); }

/* ============ NEWSLETTER ============ */
.newsletter {
  background: linear-gradient(120deg, var(--brand-primary) 0%, var(--brand-primary) 55%, var(--brand-teal-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #fff;
  position: relative; overflow: hidden;
}
.newsletter::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 20%, rgba(245,180,0,0.22), transparent 55%);
}
.newsletter h3 { color: #fff; font-size: 23px; max-width: 380px; position: relative; z-index: 1; }
.newsletter p { color: rgba(255,255,255,0.75); margin-top: 6px; position: relative; z-index: 1; }
.newsletter > div:first-child { position: relative; z-index: 1; }
.newsletter-form { display: flex; gap: 10px; position: relative; z-index: 1; flex-shrink: 0; width: 360px; }
.newsletter-form input {
  flex: 1; border: none; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px;
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
@media (max-width: 860px) {
  .newsletter { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .newsletter-form { width: 100%; }
}

/* ============ FOOTER ============ */
.site-footer { background: var(--brand-primary); color: rgba(255,255,255,0.75); position: relative; overflow: hidden; }
.footer-ridge { color: var(--surface); display: block; width: 100%; }
.footer-top { padding-top: 56px; padding-bottom: 36px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-col h5 { color: #fff; font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 15px; font-weight: 700;}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; transition: color 0.16s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: var(--radius-sm); background: #1877F2; color: #fff; display: flex; align-items: center; justify-content: center; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.footer-social a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 20px; padding-bottom: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.footer-bottom a:hover { color: #fff; }

/* ============ FORMS ============ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--brand-primary); margin-bottom: 7px; }
.form-hint { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong);
  background: #fff; font-size: 14.5px; color: var(--ink); transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.input:focus { border-color: var(--brand-teal); box-shadow: var(--shadow-focus); }
textarea.input { resize: vertical; min-height: 110px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.checkbox-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--brand-teal); border-radius: 4px; flex-shrink: 0; }
.checkbox-row label { font-size: 14px; color: var(--ink-soft); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ''; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 38px; }

/* ============ FILTER SIDEBAR ============ */
.filter-block { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.filter-block:last-child { border-bottom: none; }
.filter-block h4 { font-size: 13.5px; margin-bottom: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--brand-primary); }
.filter-list { display: flex; flex-direction: column; gap: 11px; }
.filter-count { margin-left: auto; font-size: 12px; color: var(--ink-faint); }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input { width: 100%; accent-color: var(--brand-teal); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: var(--radius-full);
  border: 1.5px solid var(--line-strong); color: var(--ink-soft); transition: all 0.15s var(--ease);
}
.chip.active, .chip:hover { border-color: var(--brand-teal); color: var(--brand-teal-dark); background: var(--brand-teal-bg); }

/* ============ PAGINATION ============ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; }
.page-btn {
  min-width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13.5px; color: var(--ink-soft); border: 1px solid transparent; padding: 0 11px;
}
.page-btn:hover { background: var(--surface-soft-2); }
.page-btn.active { background: var(--brand-primary); color: #fff; }
.page-btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ============ TABS ============ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tab-btn { padding: 12px 18px; font-weight: 600; font-size: 14px; color: var(--ink-faint); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-btn.active, .tab-btn:hover { color: var(--brand-primary); }
.tab-btn.active { border-color: var(--brand-teal); }
.tab-panel { display: none; padding-top: 22px; }
.tab-panel.active { display: block; animation: fadeUp 0.2s var(--ease); }

/* ============ ACCORDION ============ */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; background: none; border: none; text-align: left; font-family: var(--font-display);
  font-weight: 700; font-size: 15px; color: var(--brand-primary);
}
.accordion-trigger svg { flex-shrink: 0; transition: transform 0.2s var(--ease); color: var(--brand-teal); }
.accordion-item.open .accordion-trigger svg { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.25s var(--ease); }
.accordion-panel-inner { padding: 0 4px 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }

/* ============ BREADCRUMBS ============ */
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-faint); flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--brand-teal-dark); }
.breadcrumbs .sep { color: var(--line-strong); }
.breadcrumbs .current { color: var(--ink-soft); font-weight: 600; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px -12px rgba(11,33,71,0.18);
  padding: 18px 24px; transform: translateY(100%);
  transition: transform 0.35s var(--ease-out-back);
}
.cookie-banner.open { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--container-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cookie-banner p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; max-width: 640px; margin: 0; }
.cookie-banner a { color: var(--brand-teal-dark); font-weight: 600; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
/* Accept and Reject are deliberately styled with equal size, weight and
   visual prominence — making one more eye-catching than the other is
   exactly the kind of "dark pattern" UK cookie rules explicitly forbid. */
.cookie-banner-actions button {
  min-height: 42px; padding: 0 20px; border-radius: var(--radius-full);
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--brand-primary);
}
.cookie-banner-actions .cookie-accept { background: var(--brand-primary); color: #fff; }
.cookie-banner-actions .cookie-reject { background: #fff; color: var(--brand-primary); }
@media (max-width: 640px) {
  .cookie-banner { padding: 16px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions button { flex: 1; }
}

.toast-region { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; background: var(--brand-primary); color: #fff;
  padding: 13px 17px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); min-width: 250px;
  animation: toastIn 0.25s var(--ease-out-back);
}
.toast svg { color: var(--brand-accent); flex-shrink: 0; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.toast.leaving { animation: toastOut 0.2s var(--ease) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
@media (max-width: 560px) { .toast-region { left: 16px; right: 16px; bottom: 16px; } .toast { min-width: 0; } }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11, 20, 40, 0.55); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; z-index: 250; padding: 24px;
}
.modal-overlay.open { display: flex; animation: fadeUp 0.18s var(--ease); }
.modal-box { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 440px; width: 100%; padding: 30px; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; }

/* ============ NEWSLETTER POPUP ============ */
.popup-card {
  max-width: 420px; width: 100%;
  border-radius: var(--radius-xl);
  padding: 40px 32px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-teal-dark) 0%, var(--brand-primary) 65%);
  box-shadow: var(--shadow-lg);
}
.popup-card::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% 88%, rgba(245,180,0,0.28), transparent 55%),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, 22px 22px;
}
.popup-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.14); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease);
}
.popup-close:hover { background: rgba(255,255,255,0.26); }
.popup-icon {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 18px;
  background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; color: var(--brand-accent);
}
.popup-card h3 { position: relative; z-index: 1; color: #fff; font-size: 21px; margin-bottom: 8px; }
.popup-card p { position: relative; z-index: 1; color: rgba(255,255,255,0.8); font-size: 14px; line-height: 1.6; max-width: 320px; margin-inline: auto; }
.popup-form { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.popup-form input {
  border: 1px solid rgba(255,255,255,0.28); border-radius: var(--radius-full);
  padding: 13px 18px; font-size: 14.5px; background: rgba(255,255,255,0.12); color: #fff; text-align: center;
}
.popup-form input::placeholder { color: rgba(255,255,255,0.6); }
.popup-form input:focus { outline: none; box-shadow: 0 0 0 3px rgba(245,180,0,0.4); }
.popup-fineprint { position: relative; z-index: 1; font-size: 11.5px; color: rgba(255,255,255,0.55); margin-top: 14px; }
.popup-form #popupNotNowBtn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ============ SKELETONS ============ */
.skeleton { background: linear-gradient(100deg, var(--surface-soft-2) 30%, #FAFBFC 50%, var(--surface-soft-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 150% 0; } 100% { background-position: -150% 0; } }
.skel-line { height: 14px; margin-bottom: 8px; }
.skel-row { height: 100px; border-radius: var(--radius-md); }

/* ============ ALERTS ============ */
.alert { display:flex; gap:12px; padding:14px 16px; border-radius: var(--radius-sm); font-size: 14px; align-items:flex-start; }
.alert svg { flex-shrink:0; margin-top:1px; }
.alert-info { background: var(--info-bg); color: var(--brand-teal-dark); }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }

/* ============ EMPTY STATE ============ */
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state svg { color: var(--line-strong); margin-bottom: 18px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); max-width: 380px; margin: 0 auto 18px; }

/* ============ FADE-IN ON SCROLL ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============ ANIMATED COUNTER ============ */
.counter { font-variant-numeric: tabular-nums; }

/* ============ UTILITY LAYOUT ============ */
.split-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split-hero { grid-template-columns: 1fr; } }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 780px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat-box { text-align: center; padding: 24px 14px; border-radius: var(--radius-md); background: var(--surface-soft); border: 1px solid var(--line); }
.stat-box .num { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--brand-primary); }
.stat-box .label { font-size: 13px; color: var(--ink-soft); margin-top: 5px; }

.page-hero {
  background:
    radial-gradient(ellipse 700px 400px at 10% -20%, rgba(10,163,176,0.1), transparent 60%),
    radial-gradient(ellipse 600px 400px at 100% -10%, rgba(245,180,0,0.09), transparent 55%),
    var(--surface-soft);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 42px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(26px, 3.6vw, 38px); margin-top: 10px; }
.page-hero .lead { margin-top: 10px; font-size: 15.5px; color: var(--ink-soft); max-width: 600px; }
.page-hero-compact { padding: 24px 0 28px; }
@media (max-width: 760px) { .page-hero-compact { padding: 16px 0 14px; } }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.price-card { padding: 30px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 2px solid var(--brand-teal); box-shadow: var(--shadow-lg); }
.price-card .plan-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--brand-primary); }
.price-card .plan-price { font-family: var(--font-display); font-weight: 800; font-size: 36px; color: var(--brand-primary); margin: 10px 0 4px; }
.price-card .plan-price span { font-size: 14px; font-weight: 500; color: var(--ink-faint); }
.price-card .plan-desc { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.price-card ul { display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; flex-grow: 1; }
.price-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.price-card li svg { color: var(--brand-teal); flex-shrink: 0; margin-top: 2px; }

/* Timeline (About) */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -30px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--brand-accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand-primary); }
.timeline-year { font-family: var(--font-display); font-weight: 800; color: var(--brand-teal-dark); font-size: 13px; }
.timeline-item h4 { margin: 4px 0 6px; font-size: 15.5px; }
.timeline-item p { color: var(--ink-soft); font-size: 14px; }

/* 404 */
.error-page { min-height: 66vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 56px 24px; }
.error-page h1 { font-size: clamp(56px, 11vw, 120px); }
.error-page p { margin-top: 10px; color: var(--ink-soft); max-width: 400px; }

/* Contact map placeholder */
.map-placeholder {
  border-radius: var(--radius-md); height: 300px; position: relative; overflow: hidden;
  background: var(--surface-soft-2); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line);
}

/* Sticky apply panel */
.apply-sticky { position: sticky; top: calc(var(--nav-height) + 20px); }

/* ============ EMPLOYER PROFILE ============ */
.employer-cover { height: 200px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--brand-primary), var(--brand-teal-dark)); position: relative; overflow: hidden; }
.employer-header { display:flex; gap:20px; align-items:flex-end; margin-top:-48px; padding: 0 8px; position:relative; z-index:2; }
@media (max-width: 600px) {
  .employer-header { flex-wrap: wrap; margin-top: -36px; }
  .employer-header > a.btn { margin-left: auto; }
}
.employer-logo-lg { width: 96px; height: 96px; border-radius: var(--radius-md); background:#fff; border: 4px solid #fff; box-shadow: var(--shadow-md); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:800; font-size:28px; color:#fff; flex-shrink:0; }
.employer-facts { display:flex; flex-wrap:wrap; gap: 12px; margin-top: 18px; }
.employer-fact { display:flex; align-items:center; gap:8px; font-size:13.5px; color:var(--ink-soft); background:var(--surface-soft); border:1px solid var(--line); padding:8px 14px; border-radius: var(--radius-full); }
.employer-fact svg { color: var(--brand-teal); }
.culture-tag { display:inline-flex; align-items:center; font-size:13px; font-weight:600; padding:7px 13px; border-radius:var(--radius-full); background: var(--brand-teal-bg); color: var(--brand-teal-dark); }

/* Career advice */
.article-card { padding: 0; overflow: hidden; display:flex; flex-direction:column; }
.article-thumb { height: 140px; display:flex; align-items:center; justify-content:center; color:#fff; }
.article-body { padding: 20px; display:flex; flex-direction:column; gap:8px; flex-grow:1; }
.article-cat { font-size: 11.5px; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; color: var(--brand-teal-dark); }
.article-title { font-size: 16px; font-weight:700; color: var(--brand-primary); }
.article-excerpt { font-size: 13.5px; color: var(--ink-soft); line-height:1.6; flex-grow:1; }
.article-meta { font-size: 12px; color: var(--ink-faint); margin-top:4px; }

.hero-corner-waves { position: absolute; top: -40px; right: -60px; width: 480px; height: auto; z-index: 1; opacity: 0.7; pointer-events: none; }
@media (max-width: 760px) { .hero-corner-waves { display: none; } }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(50px); z-index: 1; pointer-events: none;
}
.hero-orb-1 { width: 260px; height: 260px; left: 6%; bottom: -10%; background: radial-gradient(circle, rgba(10,163,176,0.28), transparent 70%); }
.hero-orb-2 { width: 320px; height: 320px; right: 4%; bottom: -18%; background: radial-gradient(circle, rgba(245,180,0,0.22), transparent 70%); }
.hero-orb-3 { width: 200px; height: 200px; right: 30%; top: -8%; background: radial-gradient(circle, rgba(11,47,115,0.14), transparent 70%); }

/* ---- Floating glass chips (overlap the hero for depth) ---- */
.floating-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7); border-radius: var(--radius-full);
  padding: 10px 18px 10px 12px; box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 700; color: var(--brand-primary);
  animation: floatChip 5s ease-in-out infinite;
}
.floating-chip .chip-icon { width: 28px; height: 28px; border-radius: 50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.floating-chip-1 { top: 12%; left: 6%; animation-delay: 0s; }
.floating-chip-2 { top: 18%; right: 7%; animation-delay: 1.4s; }
@keyframes floatChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 900px) { .floating-chip { display: none; } }

/* ---- Tinted icon-wrap cycling variants (colourful nav tiles) ---- */
.icon-wrap-navy { background: #E7ECF6 !important; color: var(--brand-primary) !important; }
.icon-wrap-teal { background: var(--brand-teal-bg) !important; color: var(--brand-teal-dark) !important; }
.icon-wrap-gold { background: #FDF1D4 !important; color: var(--brand-accent-dark) !important; }

.cta-band {
  background: linear-gradient(135deg, #0D3A8C 0%, var(--brand-primary) 45%, var(--brand-teal-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 85% 15%, rgba(245,180,0,0.28), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(10,163,176,0.3), transparent 50%),
    radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px;
}
.cta-band h2 { color: #fff; position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,0.78); margin-top: 10px; position: relative; z-index: 1; max-width: 460px; margin-inline: auto; }
.cta-band .btn { margin-top: 26px; position: relative; z-index: 1; }

/* ---- Category tile size bump for homepage primary nav ---- */
.cat-tile-lg { padding: 26px 20px; }
.cat-tile-lg .icon-wrap { width: 48px; height: 48px; }
.cat-tile-lg .cat-name { font-size: 15.5px; }

/* ============ NO-SCROLL HOMEPAGE LAYOUT ============ */
body.homepage { height: 100vh; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; }
body.homepage .site-header { flex-shrink: 0; }
body.homepage main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
body.homepage .hero { flex: 1; min-height: 0; display: flex; align-items: center; padding: 0; }
body.homepage .hero-inner { padding-top: 20px; padding-bottom: 20px; }
body.homepage .hero h1 { font-size: clamp(22px, 3vw, 32px); margin-top: 4px; margin-bottom: 4px; }
body.homepage .hero-brandline { display: inline-block; white-space: nowrap; font-size: clamp(18px, 6.2vw, 32px); }
body.homepage .search-panel { margin-top: 22px; }
body.homepage .cta-section { flex-shrink: 0; padding: 18px 0; background: var(--surface-soft); }
body.homepage .cta-band { padding: 30px 40px; }
body.homepage .cta-band h2 { font-size: clamp(19px, 2.2vw, 24px); }
body.homepage .cta-band p { margin-top: 6px; font-size: 14px; }
body.homepage .cta-band .btn { margin-top: 16px; }
body.homepage .footer-mini { flex-shrink: 0; }
@media (max-width: 760px) {
  body.homepage { height: auto; overflow: visible; }
  body.homepage .hero { padding: 32px 0; }
}
@media (max-width: 340px) {
  body.homepage .hero-brandline { font-size: 15.5px; letter-spacing: -0.01em; }
}

/* ---- Compact single-row footer (used on the homepage) ---- */
.footer-mini { background: var(--brand-primary); padding: 16px 0; }
.footer-mini .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-mini-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-mini-links a { color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 600; }
.footer-mini-links a:hover { color: #fff; }
.footer-mini-copy { color: rgba(255,255,255,0.55); font-size: 12.5px; }
.footer-mini-social { display: flex; gap: 8px; }
.footer-mini-social a { width: 30px; height: 30px; border-radius: var(--radius-sm); background: #1877F2; display: flex; align-items: center; justify-content: center; color: #fff; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.footer-mini-social a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Fade-in keyframe helper class list */
.hidden { display: none !important; }

