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

/* ==========================================================================
   WorkBase21 — Design Tokens
   ========================================================================== */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --secondary: #1E293B;
  --accent: #38BDF8;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --text: #0F172A;
  --text-grey: #64748B;
  --border: #E2E8F0;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 76px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--secondary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }

.section-heading { margin-bottom: 36px; }
.section-heading h2 { font-size: 2rem; margin-bottom: 8px; }
.section-heading p { color: var(--text-grey); }

.section-cta { text-align: center; margin-top: 36px; }

.narrow-content { max-width: 780px; }
.narrow-content h2 { margin-top: 32px; margin-bottom: 12px; font-size: 1.4rem; }
.narrow-content p { color: var(--text-grey); margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); background: rgba(37, 99, 235, 0.05); transform: translateY(-2px); }

.btn-block { width: 100%; margin-top: 18px; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-back { color: var(--text-grey); padding: 8px 0; }
.btn-back:hover { color: var(--primary); }
.btn-disabled { background: var(--border); color: var(--text-grey); cursor: not-allowed; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
  background: rgba(248, 250, 252, 0.97);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 34px; width: 34px; object-fit: contain; border-radius: 8px; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--secondary); }
.logo-accent { color: var(--primary); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--secondary);
  position: relative;
  padding: 6px 2px;
  /* The hover underline (::after, zero width) made Chrome wrap each link
     onto an empty second line, so the menu sat higher than the search box
     and account links. Links are single words — never wrap them. */
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--primary);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  gap: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.nav-search input { border: none; outline: none; width: 190px; font-family: var(--font-body); font-size: 0.9rem; background: transparent; }
.nav-search button { background: none; border: none; color: var(--text-grey); cursor: pointer; display: flex; }
.nav-search button:hover { color: var(--primary); }

.mic-btn { position: relative; }
.mic-btn.listening { color: #DC2626; }
.mic-btn.listening::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.15);
  animation: mic-pulse 1.2s ease-out infinite;
}
@keyframes mic-pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.12), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(37, 99, 235, 0.10), transparent 45%),
    var(--bg);
}
.hero-inner { text-align: center; max-width: 760px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 16px;
}

.hero-sub { color: var(--text-grey); font-size: 1.1rem; margin-bottom: 36px; }

.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 10px 10px 20px;
  box-shadow: var(--shadow-md);
  max-width: 620px;
  margin: 0 auto;
}
.hero-search svg { color: var(--text-grey); flex-shrink: 0; }
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  background: transparent;
}
.hero-search .btn { flex-shrink: 0; }
.hero-search .mic-btn {
  background: none;
  border: none;
  color: var(--text-grey);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  padding: 4px;
}
.hero-search .mic-btn:hover { color: var(--primary); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.tag-pill {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--secondary);
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all var(--transition);
}
.tag-pill:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   Page header (for listing / static pages)
   ========================================================================== */
.page-header {
  padding: 56px 0 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(37,99,235,0.05), transparent);
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.page-header p { color: var(--text-grey); }

/* ==========================================================================
   Job Grid & Cards
   ========================================================================== */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.job-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.expired-ribbon {
  position: absolute;
  top: 14px;
  right: -30px;
  background: #DC2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 32px;
  transform: rotate(40deg);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
  pointer-events: none;
}
.job-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.25);
}

.job-card-image {
  margin: -24px -24px 16px;
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--bg);
}
.job-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.job-card:hover .job-card-image img { transform: scale(1.05); }

.job-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

.job-card-logo, .job-detail-logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.job-detail-logo { width: 64px; height: 64px; }
.job-card-logo img, .job-detail-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.job-type-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  white-space: nowrap;
}
.job-type-internship { background: rgba(56, 189, 248, 0.15); color: #0369A1; }
.job-type-learnership { background: rgba(34, 197, 94, 0.12); color: #15803D; }
.job-type-inservice { background: rgba(234, 179, 8, 0.15); color: #A16207; }
.job-type-bursary { background: rgba(168, 85, 247, 0.12); color: #7E22CE; }
.job-type-expired { background: rgba(220, 38, 38, 0.12); color: #DC2626; }

.job-card-title { font-size: 1.1rem; margin-bottom: 4px; }
.job-card-company { color: var(--text-grey); font-size: 0.9rem; margin-bottom: 16px; }

.job-card-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; flex: 1; }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-grey); }
.meta-item svg { flex-shrink: 0; color: var(--primary); }
.meta-item.deadline.expired { color: #DC2626; }
.meta-item.deadline.expired svg { color: #DC2626; }

/* ==========================================================================
   Empty state
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-grey);
}
.empty-state svg { margin: 0 auto 16px; color: var(--border); }
.empty-state h3 { color: var(--secondary); margin-bottom: 6px; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-link {
  font-weight: 600;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.page-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-current { color: var(--text-grey); font-size: 0.9rem; }

/* ==========================================================================
   Job Detail Page
   ========================================================================== */
.job-detail-inner { max-width: 820px; margin: 0 auto; }

.job-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-top: 12px;
}

.job-detail-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.job-detail-header h1 { font-size: 1.6rem; margin: 8px 0 4px; }
.job-detail-company { color: var(--text-grey); font-weight: 500; }

.job-detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-grey); font-weight: 600; }
.fact-value { font-weight: 600; color: var(--secondary); }
.fact-value.expired { color: #DC2626; }

.job-detail-body { color: var(--text); margin-bottom: 32px; }
.job-detail-body h1, .job-detail-body h2, .job-detail-body h3 { margin: 20px 0 10px; }
.job-detail-body p { margin-bottom: 14px; color: var(--text); }
.job-detail-body ul, .job-detail-body ol { margin: 0 0 14px 22px; color: var(--text); }
.job-detail-body a { color: var(--primary); text-decoration: underline; }

.ad-placeholder { margin: 36px 0; text-align: center; }
.ad-label {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-grey);
  margin-bottom: 10px;
}
.ad-box {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  padding: 28px;
  color: var(--text-grey);
}
.ad-box p { font-weight: 600; color: var(--secondary); margin-bottom: 4px; }
.ad-box span { font-size: 0.85rem; }

.job-detail-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.multi-apply-section {
  margin: 8px 0 24px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.multi-apply-section h3 { font-size: 1rem; margin-bottom: 14px; color: var(--secondary); }
.multi-apply-links { display: flex; flex-direction: column; gap: 10px; }
.multi-apply-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--secondary);
  transition: all var(--transition);
}
.multi-apply-link:hover { border-color: var(--primary); color: var(--primary); transform: translateX(2px); box-shadow: var(--shadow-sm); }
.multi-apply-link svg { color: var(--primary); flex-shrink: 0; }

/* ==========================================================================
   Forms (Contact page)
   ========================================================================== */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--secondary); }
.form-control {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-error { color: #DC2626; font-size: 0.82rem; }
.form-help { color: var(--text-grey); font-size: 0.82rem; }
.form-control-multi { min-height: 110px; max-height: 200px; overflow-y: auto; }

/* ==========================================================================
   Job-seeker accounts (header links, auth forms, profile page)
   ========================================================================== */
.auth-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.auth-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary);
  white-space: nowrap;
}
.auth-link:hover { color: var(--primary); }
.auth-link-muted { color: var(--text-grey); font-weight: 500; }
.auth-logout-form { display: inline-flex; margin: 0; }
.auth-link-button {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  cursor: pointer;
}
.auth-link-cta {
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.auth-link-cta:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-grey);
}
.auth-switch a { font-weight: 600; color: var(--primary); }

.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.profile-card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}
.profile-card-header h2 { margin: 0; font-size: 1.2rem; }
.profile-card-header .btn { margin-left: auto; }
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-email { color: var(--text-grey); font-size: 0.88rem; margin: 2px 0 0; }
.profile-nudge {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #92400E;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 24px;
}
.profile-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.profile-section { margin-top: 24px; }
.profile-section h3 { font-size: 0.95rem; margin-bottom: 10px; }

.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-weight: 500;
}
.alert-success { background: rgba(34, 197, 94, 0.1); color: #15803D; border: 1px solid rgba(34, 197, 94, 0.25); }
.alert-error { background: rgba(220, 38, 38, 0.1); color: #B91C1C; border: 1px solid rgba(220, 38, 38, 0.25); }

/* ==========================================================================
   404 Page
   ========================================================================== */
.error-page { text-align: center; padding: 120px 0; }
.error-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6rem;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.error-page p { color: var(--text-grey); margin: 12px 0 28px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--secondary); color: #CBD5E1; padding: 56px 0 0; margin-top: 80px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { margin-top: 12px; font-size: 0.9rem; color: #94A3B8; max-width: 320px; }
.site-footer .logo-text { color: #fff; }
.site-footer .logo-accent { color: var(--accent); }

.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #CBD5E1;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--accent); color: var(--secondary); transform: translateY(-3px); }

.footer-links h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #94A3B8; font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom { padding: 24px 0; text-align: center; font-size: 0.85rem; color: #64748B; }

/* ==========================================================================
   Back to top
   ========================================================================== */
#back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 90;
}
#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--primary-dark); }

/* ==========================================================================
   Scroll fade-in animation
   ========================================================================== */
.fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}

/* Only hide elements that are waiting for the animation */
.fade-in:not(.in-view) {
  opacity: 0;
  transform: translateY(18px);
}

.fade-in.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Jobs Sector Choice + Sector Listing (Public/Private)
   ========================================================================== */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.sector-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(37, 99, 235, 0.25); }
.sector-icon { font-size: 2.6rem; }
.sector-card h3 { font-size: 1.2rem; }
.sector-card p { color: var(--text-grey); font-size: 0.9rem; }
.sector-count { font-size: 0.85rem; font-weight: 700; color: var(--primary); margin: 4px 0 8px; }
.sector-card .btn { margin-top: auto; width: 100%; }

.sector-switch { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.sector-switch a {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--secondary);
  background: #fff;
  transition: all var(--transition);
}
.sector-switch a.active, .sector-switch a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ==========================================================================
   Job Detail — image, apply-by-email, Z83 download
   ========================================================================== */
.job-detail-image {
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.10), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(37, 99, 235, 0.10), transparent 55%),
    var(--bg);
  position: relative;
}
.job-detail-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.job-detail-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.job-detail-image-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition);
}
.job-detail-image:hover .job-detail-image-hint { opacity: 1; transform: translateY(0); }

.apply-email-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  flex-wrap: wrap;
}
.apply-email-box a { font-weight: 700; color: var(--primary); word-break: break-all; }
.copy-email-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-grey);
  transition: all var(--transition);
}
.copy-email-btn:hover { border-color: var(--primary); color: var(--primary); }
.copy-email-btn.copied { color: #15803D; border-color: #15803D; }

.btn-z83 { background: #fff; border: 1.5px solid var(--accent); color: #0369A1; }
.btn-z83:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   Share Links
   ========================================================================== */
.share-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); text-align: center; }
.share-section h3 { margin-bottom: 16px; font-size: 1.05rem; }
.share-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: all var(--transition);
}
.share-facebook { background: #1877F2; }
.share-twitter { background: #0F1419; }
.share-pinterest { background: #E60023; }
.share-linkedin { background: #0A66C2; }
.share-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ==========================================================================
   Related Jobs
   ========================================================================== */
.related-jobs { margin-top: 56px; }
.related-jobs h2 { font-size: 1.4rem; margin-bottom: 20px; }

/* ==========================================================================
   Reviews (homepage)
   ========================================================================== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-stars { color: #FBBF24; margin-bottom: 10px; font-size: 0.95rem; letter-spacing: 2px; }
.review-message { color: var(--text); margin-bottom: 18px; font-style: italic; }
.review-author { font-weight: 700; color: var(--secondary); font-size: 0.92rem; }
.review-role { color: var(--text-grey); font-size: 0.82rem; }

/* ==========================================================================
   Trending in the Job Market (homepage)
   ========================================================================== */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.trend-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  overflow: hidden;
}
.trend-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.trend-card-image {
  margin: -22px -22px 16px;
  height: 140px;
  overflow: hidden;
  background: var(--bg);
}
.trend-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.trend-card:hover .trend-card-image img { transform: scale(1.05); }
.trend-card-body { display: flex; gap: 14px; align-items: flex-start; }
.trend-icon { font-size: 1.8rem; line-height: 1; }
.trend-title { font-weight: 700; color: var(--secondary); margin-bottom: 2px; }
.trend-desc { color: var(--text-grey); font-size: 0.85rem; }
.trend-stat { color: var(--primary); font-weight: 700; font-size: 0.82rem; margin-top: 8px; display: inline-block; }

.section-alt { background: #F1F5F9; }

/* ==========================================================================
   Blog / Articles
   ========================================================================== */
.trend-read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}
a.trend-card { cursor: pointer; }
a.trend-card:hover .trend-read-more { text-decoration: underline; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(37, 99, 235, 0.25); }
.article-card-image {
  margin: -28px -24px 16px;
  height: 150px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--bg);
}
.article-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.article-card:hover .article-card-image img { transform: scale(1.05); }
.article-card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.article-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.article-card p { color: var(--text-grey); font-size: 0.9rem; flex: 1; margin-bottom: 14px; }
.article-card-meta { font-size: 0.78rem; color: var(--text-grey); font-weight: 600; }

.article-detail-card { max-width: 760px; margin: 0 auto; }
.article-detail-header { text-align: center; margin-bottom: 32px; }
.article-detail-icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.article-detail-header h1 { font-size: 1.8rem; margin-bottom: 8px; }
.article-detail-meta { color: var(--text-grey); font-size: 0.9rem; }
.article-body h2, .article-body h3 { margin: 24px 0 12px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 20px 0;
  display: block;
  box-shadow: var(--shadow-sm);
}
/* CKEditor's built-in alignment classes, so images placed left/right/center render correctly */
.article-body img.image_resized { height: auto; }
.article-body p > img:only-child { margin-left: auto; margin-right: auto; }
.article-body .image-style-align-left,
.article-body img[style*="float: left"],
.article-body img[style*="float:left"] {
  float: left;
  margin: 6px 24px 16px 0;
  max-width: 45%;
}
.article-body .image-style-align-right,
.article-body img[style*="float: right"],
.article-body img[style*="float:right"] {
  float: right;
  margin: 6px 0 16px 24px;
  max-width: 45%;
}
.article-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 4px 20px;
  margin: 20px 0;
  color: var(--text-grey);
  font-style: italic;
}
.article-body-block { overflow: auto; }

.job-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.skill-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ==========================================================================
   Eligibility checker (job detail CTA + results page)
   ========================================================================== */
.eligibility-cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 32px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.eligibility-cta h3 { margin: 0 0 4px; font-size: 1.1rem; }
.eligibility-cta p { margin: 0; color: var(--text-grey); font-size: 0.9rem; }

.eligibility-disclaimer {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--text-grey);
  margin-bottom: 24px;
}
.eligibility-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
}
.eligibility-summary-count { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.eligibility-group { margin-bottom: 24px; }
.eligibility-group h3 { font-size: 1rem; margin-bottom: 10px; }
.eligibility-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.eligibility-group li {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}
.eligibility-matched li { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.eligibility-unmet li { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.eligibility-unclear li { background: var(--bg); border: 1px solid var(--border); color: var(--text-grey); }
.eligibility-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ==========================================================================
   Advanced search filters (job listing pages)
   ========================================================================== */
.job-filters {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.job-filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.job-filter-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
/* Grid items default to min-width:auto, so a long option like "No formal
   qualification required" forced its column wider than a phone screen.
   min-width:0 + width:100% keeps each box inside its column. */
.job-filter-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-grey);
}
.job-filter-field select,
.job-filter-field input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  background: #fff;
}
.job-filter-field select:focus,
.job-filter-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.job-filters-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.job-filters-clear {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-grey);
  text-decoration: underline;
}
.job-filters-clear:hover { color: var(--primary); }

/* ==========================================================================
   Job Market Insights page
   ========================================================================== */
.market-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.insight-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}
.insight-card h2 {
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.insight-bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.insight-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 6px;
}
.insight-bar-label span:last-child { color: var(--text-grey); font-weight: 600; }
.insight-bar-track {
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}
.insight-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
}
.market-insights-note {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--text-grey);
  text-align: center;
}
.profile-quicklinks { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }

/* Profile edit: typeable skills/qualifications with tap-to-add chips */
.suggestion-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.suggestion-label { font-size: 0.8rem; color: var(--text-grey); }
.suggestion-chip {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: var(--transition);
}
.suggestion-chip:hover { border-color: var(--primary); }
.suggestion-chip.added { background: var(--primary); color: #fff; border-color: var(--primary); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.text-muted { color: var(--text-grey); font-size: 0.9rem; }

/* ==========================================================================
   Recommended jobs feed
   ========================================================================== */
.recommended-job { display: flex; flex-direction: column; }
.recommended-reason {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--primary-dark);
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

/* ==========================================================================
   Career Explorer
   ========================================================================== */
.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.career-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  transition: var(--transition);
  display: block;
}
.career-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); }
.career-card-icon { font-size: 2rem; margin-bottom: 10px; }
.career-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--secondary); }
.career-card p { color: var(--text-grey); font-size: 0.9rem; margin-bottom: 14px; }
.career-back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}
.career-milestones {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
  font-size: 0.92rem;
}
.career-milestones li { padding-left: 4px; }

/* ==========================================================================
   Saved jobs + application tracker
   ========================================================================== */
.save-job-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.save-job-bar form { margin: 0; }
.save-btn.saved { border-color: var(--primary); color: var(--primary); }
.save-job-link { font-size: 0.88rem; font-weight: 600; color: var(--primary); margin-left: auto; }
.tracked-status { font-size: 0.9rem; color: var(--secondary); font-weight: 600; display: flex; align-items: center; gap: 8px; }

.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-grey);
}
.status-applied { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.status-assessment { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }
.status-interview { background: #EDE9FE; border-color: #DDD6FE; color: #5B21B6; }
.status-offer { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.status-rejected { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }

.tracker-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.tracker-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-grey);
}
.tracker-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--secondary); }
.tracker-stats-note { font-size: 0.8rem; color: var(--text-grey); margin: 10px 0 28px; }

.tracker-reminders {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 28px;
}
.tracker-reminders h3 { font-size: 1rem; margin-bottom: 10px; }
.tracker-reminders ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.tracker-reminders li.overdue { color: #991B1B; }
.tracker-reminders a { color: var(--primary); font-weight: 600; }

.tracker-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tracker-tabs a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-grey);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  transition: var(--transition);
}
.tracker-tabs a:hover { border-color: var(--primary); color: var(--primary); }
.tracker-tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.tracker-list { display: flex; flex-direction: column; gap: 14px; }
.tracker-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tracker-item-main { min-width: 0; flex: 1; }
.tracker-item-title { font-weight: 700; font-size: 1.02rem; color: var(--secondary); }
.tracker-item-title:hover { color: var(--primary); }
.tracker-item-company { font-size: 0.88rem; color: var(--text-grey); margin: 2px 0 8px; }
.tracker-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--text-grey); margin: 0; }
.tracker-item-notes { font-size: 0.85rem; color: var(--text); margin-top: 8px; }

.tracker-delete-form { margin-top: 24px; text-align: center; }
.tracker-delete-btn {
  background: none;
  border: none;
  color: #B91C1C;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   Saved searches + in-app job alerts
   ========================================================================== */
.save-search-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.save-search-form { margin: 0; }
.save-search-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}
.save-search-btn:hover { border-color: var(--primary); background: rgba(37, 99, 235, 0.1); }
.save-search-hint { font-size: 0.78rem; color: var(--text-grey); }

.auth-link-wrap { position: relative; display: inline-flex; align-items: center; }
.alert-badge {
  position: absolute;
  top: -10px;
  right: -12px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #DC2626;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.alert-badge:hover { background: #B91C1C; color: #fff; }

.alerts-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  color: var(--secondary);
}
.alerts-summary form { margin: 0; }
.alert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.alert-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.alert-card-header h3 { font-size: 1rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.alert-card-header .text-muted { margin: 0; }
.alert-new-count { color: #DC2626; font-weight: 700; }
.alert-job-list { list-style: none; padding: 0; margin: 14px 0 6px; display: flex; flex-direction: column; gap: 10px; }
.alert-job-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.alert-job-list a { font-weight: 700; color: var(--secondary); }
.alert-job-list a:hover { color: var(--primary); }
.alert-job-list span { font-size: 0.8rem; color: var(--text-grey); }
.alert-card-actions { display: flex; gap: 16px; margin-top: 12px; }
.alert-card-actions form { margin: 0; }
.alert-action-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}
.alert-action-danger { color: #B91C1C; }

.admin-preview-banner {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #92400E;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.admin-preview-banner a { color: #92400E; font-weight: 700; text-decoration: underline; margin-left: 6px; }

/* ==========================================================================
   Skills & career graph: suggestions + career path map
   ========================================================================== */
.suggestions-card { margin-top: 24px; }
.suggestions-title { font-size: 1.15rem; margin: 0 0 2px; }
.career-suggestion-list { display: flex; flex-direction: column; gap: 10px; }
.career-suggestion {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.career-suggestion:hover { border-color: var(--primary); }
.career-suggestion-icon { font-size: 1.5rem; flex-shrink: 0; }
.career-suggestion-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.career-suggestion-main strong { color: var(--secondary); }
.career-suggestion-main .text-muted { font-size: 0.82rem; }
.career-suggestion-arrow { color: var(--primary); font-weight: 700; }

.skill-suggestion-list { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.skill-suggestion-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.skill-suggestion-list li > div { display: flex; flex-direction: column; min-width: 0; }
.skill-suggestion-list .text-muted { font-size: 0.8rem; }
.skill-suggestion-list form { margin: 0; flex-shrink: 0; }

.career-map { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.career-map-col { display: flex; flex-direction: column; gap: 6px; }
.career-map-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-grey); }
.career-map-node {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary);
}
a.career-map-node:hover { border-color: var(--primary); color: var(--primary); }
.career-map-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.career-map-arrow { font-size: 1.3rem; color: var(--text-grey); }

/* ==========================================================================
   Account settings, password reset, delete account
   ========================================================================== */
.forgot-link { display: inline-block; margin-top: 4px; font-size: 0.88rem; font-weight: 600; color: var(--primary); }
.settings-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn-danger { background: #DC2626; color: #fff; border: 1px solid #DC2626; }
.btn-danger:hover { background: #B91C1C; border-color: #B91C1C; color: #fff; }
.danger-zone { border-color: #FECACA; }
.delete-list { margin: 8px 0 14px 20px; color: var(--text); font-size: 0.92rem; }
.delete-list li { margin-bottom: 4px; }
.form-help ul { margin: 6px 0 0 18px; }

/* ==========================================================================
   Header: account links in the hamburger menu, alert badge on the icon
   ========================================================================== */
.nav-account-item { display: none; }          /* desktop: they live in the header bar */
.nav-login-item { display: none; }            /* only shown on the smallest phones, see responsive.css */
.nav-alert-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #DC2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}
.hamburger { position: relative; }
.hamburger-badge {
  position: absolute;
  top: -8px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #DC2626;
  color: #fff;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

/* ==========================================================================
   Form errors: summary box + highlighted fields
   (".form-group .form-error" is deliberately more specific than
   ".narrow-content p", which used to turn error text grey so it looked
   exactly like the help hints.)
   ========================================================================== */
.form-error-summary {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-left: 4px solid #DC2626;
  border-radius: var(--radius-sm);
  color: #991B1B;
  padding: 14px 16px;
  font-size: 0.9rem;
  scroll-margin-top: calc(var(--header-height) + 16px);
}
.form-error-summary ul { margin: 8px 0 0 18px; display: flex; flex-direction: column; gap: 4px; }
.form-error-summary a { color: #991B1B; font-weight: 700; text-decoration: underline; }
.form-group { scroll-margin-top: calc(var(--header-height) + 24px); }
.form-group .form-error,
.form-group p.form-error {
  color: #B91C1C;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 2px 0 0;
}
.form-group .form-error::before { content: "\26A0\FE0F  "; }
.form-group.has-error label { color: #B91C1C; }
.form-group.has-error .form-control {
  border-color: #DC2626;
  background: #FEF2F2;
}
.form-group.has-error .form-control:focus {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}
.form-group .form-error-note { color: #92400E; font-size: 0.8rem; margin: 2px 0 0; }
.form-group .form-help { color: var(--text-grey); font-size: 0.8rem; line-height: 1.5; }
.form-group .form-help ul { margin: 4px 0 0 18px; padding: 0; }
.form-group .form-help li { margin: 0; }

/* ==========================================================================
   Pop-up result message (Contact page)
   ========================================================================== */
.result-modal {
  border: none;
  padding: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  color: var(--text);
  background: var(--card);
}
.result-modal[open] { animation: resultModalIn 0.22s ease-out; }
.result-modal::backdrop { background: rgba(15, 23, 42, 0.55); }
.result-modal-body { padding: 32px 28px 26px; text-align: center; }
.result-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.result-modal-success .result-modal-icon { background: #DCFCE7; color: #15803D; }
.result-modal-error .result-modal-icon { background: #FEE2E2; color: #B91C1C; }
.result-modal h2 { font-size: 1.35rem; margin: 0 0 10px; }
.result-modal p { color: var(--text-grey); font-size: 0.95rem; line-height: 1.6; margin: 0 0 10px; overflow-wrap: anywhere; }
.result-modal .result-modal-alt { font-size: 0.88rem; }
.result-modal .result-modal-alt a { color: var(--primary); font-weight: 600; }
.result-modal form { margin: 18px 0 0; }
.result-modal .btn { min-width: 140px; }
@keyframes resultModalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .result-modal[open] { animation: none; } }

@media (max-width: 640px) {
  .job-filters { padding: 16px 18px; }
  .job-filters-row { grid-template-columns: 1fr 1fr; }
}
