/* ==========================================================================
   JobVisitors - Unified Design System
   A modern, minimalist job portal with clean aesthetics
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */
:root {
  /* Background Colors */
  --bg-primary: #F4F7FA;
  --bg-secondary: #FFFFFF;
  --bg-dark: #101828;

  /* ────────────────────────────────────────────────────────────
     Brand palette (light mode only — dark mode permanently removed)

     Primary  : #1E4CB0  → trustworthy blue, used for links,
                           navigation active state, headings,
                           informational accents.
     Secondary: #FF9F1C  → energetic orange, used for CTAs
                           (Apply, Post a Job, Search), badges,
                           hover highlights.

     `--accent` is re-mapped to the secondary orange so existing
     button/badge styles automatically pick up the new CTA color
     without sweeping selector renames. The blue lives in its own
     `--brand-primary*` namespace and is applied semantically.
     ──────────────────────────────────────────────────────────── */

  /* Public-facing color aliases used in component-level CSS / JS. */
  --color-primary: #1E4CB0;
  --color-secondary: #FF9F1C;
  --color-hero-bg-left: #F2ECE1;
  --color-hero-bg-right: #E9EEFA;

  /* Brand — Primary (Blue) */
  --brand-primary: #1E4CB0;
  --brand-primary-50:  #EAF0FB;
  --brand-primary-100: #D2DEF5;
  --brand-primary-200: #A4BCEB;
  --brand-primary-300: #6F92DD;
  --brand-primary-400: #3F6BC9;
  --brand-primary-500: #1E4CB0;
  --brand-primary-600: #173E92;
  --brand-primary-700: #123374;
  --brand-primary-800: #0E2856;
  --brand-primary-900: #091B3A;
  --brand-primary-soft: rgba(30, 76, 176, 0.10);
  --brand-primary-hover: #173E92;

  /* Brand — Secondary (Orange) — also used as the CTA accent */
  --brand-secondary: #FF9F1C;
  --brand-secondary-50:  #FFF4E2;
  --brand-secondary-100: #FFE7BF;
  --brand-secondary-200: #FFD082;
  --brand-secondary-300: #FFB94A;
  --brand-secondary-400: #FFA928;
  --brand-secondary-500: #FF9F1C;
  --brand-secondary-600: #E08612;
  --brand-secondary-700: #B86C0C;
  --brand-secondary-800: #8C5108;
  --brand-secondary-900: #5E3604;
  --brand-secondary-soft: rgba(255, 159, 28, 0.12);
  --brand-secondary-hover: #E08612;

  /* Accent alias (CTA color) — primary brand BLUE per the latest
     design system. `.btn-primary`, the hero "Search" button, the hero
     "Explore Jobs" CTA, and the "Post a Job" header button all consume
     this token and therefore render in the trustworthy blue. The
     amber secondary is reserved for highlight surfaces such as the
     hero "NEW" pill and small alert badges. */
  --accent: var(--brand-primary-500);
  --accent-light: var(--brand-primary-soft);
  --accent-hover: var(--brand-primary-hover);

  /* Text Colors */
  --text-primary: #101828;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --text-white: #FFFFFF;

  /* UI Colors */
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --success: #10B981;
  --success-light: rgba(16, 185, 129, 0.12);
  --info: var(--brand-primary-500);
  --info-light: var(--brand-primary-soft);
  --warning: #F59E0B;
  
  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 18px 45px rgba(16, 24, 40, 0.10);
  --shadow-xl: 0 24px 60px rgba(16, 24, 40, 0.12);
  --shadow-accent: 0 10px 25px rgba(30, 76, 176, 0.28);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;

  /* Legacy token aliases used by later phase styles.
     `--primary` historically mapped to the CTA accent color; we now
     point it at the brand primary blue so links, nav-active states,
     and headings follow the new design system semantics. */
  --primary: var(--brand-primary-500);
  --primary-hover: var(--brand-primary-hover);
  --primary-soft: var(--brand-primary-soft);
  --bg: var(--bg-primary);
  --card: var(--bg-secondary);
  --text: var(--text-primary);
  --text-sec: var(--text-secondary);
  --dark-bg: var(--bg-dark);
}

/* Dark mode permanently removed — light mode is the only theme. */

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

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

ul, ol {
  list-style: none;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.text-display {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.text-lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-small {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.text-label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   4. Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: 960px;
}

.container-wide {
  max-width: 1440px;
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-24) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ==========================================================================
   5. Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-white);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(30, 76, 176, 0.28);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--border-light);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background-color: var(--border-light);
  color: var(--text-primary);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* Cards */
.card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-flat {
  box-shadow: none;
  border: 1px solid var(--border);
}

.card-flat:hover {
  border-color: var(--accent);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input::placeholder {
  color: var(--text-light);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
}

.badge-primary {
  background-color: var(--accent-light);
  color: var(--accent);
}

.badge-success {
  background-color: var(--success-light);
  color: var(--success);
}

.badge-info {
  background-color: var(--info-light);
  color: var(--info);
}

.badge-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background-color: var(--border-light);
  border-radius: var(--radius-sm);
}

/* Avatars */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-white);
  background-color: var(--accent);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-lg {
  width: 72px;
  height: 72px;
  font-size: var(--text-xl);
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: var(--text-xs);
}

/* ==========================================================================
   6. Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  height: 72px;
  display: flex;
  align-items: center;
  background-color: transparent;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.navbar-brand svg {
  width: 32px;
  height: 32px;
}

.navbar-nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  /* Hover state uses the primary brand blue per design system. */
  color: var(--brand-primary-500);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.jv-auth-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.navbar-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-base);
}

/* Sticky Search Bar */
.sticky-search {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-4) 0;
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-base);
}

.sticky-search.visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-search .container {
  display: flex;
  gap: var(--space-4);
}

.sticky-search .form-input {
  flex: 1;
}

/* ==========================================================================
   7. Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.home-hero.hero {
  min-height: auto;
}

.hero-bg-circle {
  position: absolute;
  left: 52vw;
  top: 10vh;
  width: 78vw;
  height: 78vw;
  border-radius: 50%;
  background: rgba(30, 76, 176, 0.10);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  /* `minmax(0, 1fr)` is critical — it lets grid items shrink below their
     content's min-content size and stops the search-form / title from
     bleeding into the right-hand column at narrow desktop widths. */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
}

.hero-text {
  min-width: 0;           /* prevent flex/grid min-content overflow */
  max-width: 620px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.hero-title {
  margin-bottom: var(--space-6);
}

.hero-title .underline {
  position: relative;
  display: inline-block;
}

.hero-title .underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 4px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
  opacity: 0.6;
}

.hero-description {
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;           /* let grid column actually constrain this */
  width: 100%;
}

.hero-illustration img {
  width: 100%;
  max-width: 560px;
  height: auto;
}

/* Search Card */
.search-card {
  position: relative;
  z-index: 3;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-8);
  /* Containment: search card never escapes its column */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  width: 100%;
  min-width: 0;
}

.search-form > * {
  min-width: 0;           /* allow grid items to shrink */
}

.search-field {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
}

.search-field svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-field input {
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-sm);
}

.search-field select {
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  font-size: var(--text-sm);
  appearance: none;
}

.search-field input:focus {
  outline: none;
  box-shadow: none;
}

.search-field select:focus {
  outline: none;
  box-shadow: none;
}

.search-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.search-popular a {
  color: var(--accent);
  font-weight: 500;
}

.search-popular a:hover {
  text-decoration: underline;
}

.main-content {
  padding-top: 72px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.home-stat {
  padding: var(--space-4) var(--space-4);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.home-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.home-stat span {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  line-height: 1.4;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(160deg, rgba(16, 24, 40, 0.96), rgba(30, 41, 59, 0.92)),
    radial-gradient(circle at top right, rgba(30, 76, 176, 0.22), transparent 35%);
  color: var(--text-white);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: auto -10% -35% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(30, 76, 176, 0.18);
  filter: blur(8px);
}

.hero-panel-header,
.hero-panel-grid {
  position: relative;
  z-index: 1;
}

.hero-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.hero-panel-title {
  margin-bottom: var(--space-2);
  color: var(--text-white);
}

.hero-panel-copy {
  color: rgba(248, 250, 252, 0.8);
  font-size: var(--text-sm);
}

.hero-signal {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
}

.hero-signal::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.14);
}

.hero-panel-grid {
  display: grid;
  gap: var(--space-4);
}

.hero-mini-card {
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-mini-card strong {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-base);
}

.hero-mini-card p {
  color: rgba(248, 250, 252, 0.72);
  font-size: var(--text-sm);
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(30, 76, 176, 0.14);
  color: #c4fff8;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(30, 76, 176, 0.04));
}

.empty-collection {
  padding: var(--space-8);
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-2xl);
  background: var(--bg-secondary);
}

.empty-collection p {
  color: var(--text-secondary);
}

.page-shell {
  padding: var(--space-16) 0 var(--space-20);
}

.page-card {
  padding: var(--space-8);
}

.page-header-card {
  margin-bottom: var(--space-6);
}

.prose {
  color: var(--text-secondary);
  line-height: 1.8;
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--text-primary);
}

/* ==========================================================================
   8. Section Styles
   ========================================================================== */

/* Section Header */
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0 0 var(--space-12);
  text-align: left;
}

.section-header > *:first-child {
  max-width: 640px;
}

.section-header-left {
  justify-content: flex-start;
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* Category Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-light);
  border-radius: var(--radius-lg);
}

.category-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.category-title {
  font-size: var(--text-xl);
  font-weight: 600;
}

.category-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Job Cards */
.job-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.job-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-5);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.job-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent);
}

.job-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.job-title {
  font-size: var(--text-base);
  font-weight: 600;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.job-meta svg {
  width: 14px;
  height: 14px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.job-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.job-rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--warning);
}

/* Step Cards */
.steps-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.step-card {
  position: relative;
  padding: var(--space-6);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--accent);
  background-color: var(--accent-light);
  border-radius: var(--radius-md);
}

.step-content {
  padding-top: calc(40px + var(--space-4));
}

.step-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Mentor Cards */
.mentor-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

.mentor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.mentor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.mentor-avatar {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  overflow: hidden;
  background-color: var(--accent-light);
}

.mentor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mentor-name {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.mentor-role {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
}

.mentor-company {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.mentor-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.mentor-rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--warning);
}

/* Company Cards */
.company-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.company-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: var(--space-5);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.company-card:hover {
  box-shadow: var(--shadow-md);
}

.company-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.company-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent);
}

.company-info h4 {
  font-size: var(--text-lg);
  font-weight: 600;
}

.company-rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--warning);
}

.company-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Testimonial Cards */
.testimonial-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.testimonial-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding: var(--space-8);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.testimonial-quote {
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
}

.testimonial-quote::before {
  content: '"';
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  display: block;
  margin-bottom: var(--space-2);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-6);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: var(--space-5);
}

.blog-category {
  margin-bottom: var(--space-3);
}

.blog-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  line-height: 1.4;
}
.blog-title a,
.blog-card a,
.blog-card > a {
  text-decoration: none;
  color: inherit;
}
.blog-card a:hover .blog-title,
.blog-title a:hover {
  color: var(--color-primary, #1E4CB0);
}
.blog-card__link { text-decoration: none; color: inherit; display: block; }
.blog-card__link:hover { text-decoration: none; }

.blog-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.footer {
  background-color: var(--bg-secondary);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-cta {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-16);
}

.footer-cta h2 {
  margin-bottom: var(--space-4);
}

.footer-cta p {
  margin-bottom: var(--space-6);
  color: var(--text-secondary);
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.footer-divider {
  height: 2px;
  background-color: var(--border);
  margin-bottom: var(--space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-column h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: var(--space-4);
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--accent);
  background-color: var(--accent-light);
}

/* ==========================================================================
   10. Jobs Page Specific
   ========================================================================== */
.jobs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-top: 100px;
}

.jobs-sidebar {
  position: static;
}

.sidebar-card {
  position: sticky;
  top: 100px;
  padding: var(--space-6);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.sidebar-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.filter-group {
  margin-bottom: var(--space-6);
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.jobs-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.jobs-count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.jobs-sort {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.jobs-sort label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ==========================================================================
   11. Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: var(--z-modal);
  width: min(560px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: 600;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--border-light);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
}

/* Video Modal Specific */
.video-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   12. Mobile Navigation
   ========================================================================== */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-fixed);
  background: rgba(0, 0, 0, 0);
  visibility: hidden;
  transition: background 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}

.mobile-nav.active {
  background: rgba(0, 0, 0, 0.5);
  visibility: visible;
}

/* The actual sliding panel */
.jv-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--card, #fff);
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active .jv-mobile-nav__panel {
  transform: translateX(0);
}

/* Backdrop click area */
.jv-mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  flex-shrink: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  flex: 1;
}

.mobile-nav-links a {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border, #e5e7eb);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary, #111827);
  text-decoration: none;
  transition: background 0.15s;
}

.mobile-nav-links a:hover {
  background: var(--bg-hover, rgba(37,99,235,0.04));
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--border, #e5e7eb);
  flex-shrink: 0;
}

.jv-mobile-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   13. Dark Mode Toggle
   ========================================================================== */
.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--border);
  color: var(--text-primary);
}

/* ==========================================================================
   14. Responsive Styles
   ========================================================================== */
@media (min-width: 640px) {
  .grid-2-sm { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* On small/medium screens keep the three selects on one row and move
     the submit button to its own row so nothing overflows the hero column. */
  .search-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .search-form > button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

@media (min-width: 768px) {
  .navbar-nav {
    display: flex;
  }

  .grid-2-md { grid-template-columns: repeat(2, 1fr); }
  .grid-3-md { grid-template-columns: repeat(3, 1fr); }

  /* Tablet: still stack the hero vertically so the search bar has room.
     The two-column hero layout kicks in at the wider breakpoint below. */
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mentor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .company-card {
    grid-template-columns: 1fr 2fr auto;
    align-items: center;
  }
  
  .testimonial-card {
    grid-template-columns: 2fr 1fr;
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .grid-4-lg { grid-template-columns: repeat(4, 1fr); }
  
  .jobs-layout {
    grid-template-columns: 280px 1fr;
  }
  
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .mentor-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-panel-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: stretch;
  }
}

/* ==========================================================================
   15. Utility Classes
   ========================================================================== */
.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;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Animation Utilities */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   16. Final Theme Overrides
   ========================================================================== */
.jv-page-shell {
  min-height: calc(100vh - 72px);
  padding-top: 72px;
}

.navbar {
  background: linear-gradient(180deg, rgba(244, 247, 250, 0.96), rgba(244, 247, 250, 0.82));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(148, 163, 184, 0.18);
}

.navbar .container {
  gap: var(--space-4);
}

.navbar-brand {
  min-width: 0;
}

.navbar-brand img {
  width: auto;
  height: 40px;
}

.logo-dark {
  display: none;
}

.nav-link {
  position: relative;
  padding: 10px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  /* Brand primary blue underlines nav links per design system. */
  background: var(--brand-primary-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--text-primary);
}

.navbar-actions {
  flex-shrink: 0;
}

.navbar-actions .btn {
  min-height: 44px;
}

.navbar-toggle {
  border-radius: 12px;
  transition: background-color var(--transition-fast);
}

.navbar-toggle:hover {
  background: var(--border-light);
}

/* .mobile-nav layout handled by the fixed-overlay rules above */

.mobile-nav-links {
  flex: 1;
}

.mobile-nav-links a.is-active {
  color: var(--brand-primary-500);
  border-bottom-color: rgba(30, 76, 176, 0.28);
}

.mobile-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.footer-bottom > div:first-child {
  min-width: 0;
}

.footer-bottom .logo-light,
.footer-bottom .logo-dark {
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .navbar {
    height: 68px;
  }

  .jv-page-shell {
    padding-top: 68px;
  }

  .navbar .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .navbar-brand img {
    height: 36px;
  }

  .navbar-actions {
    gap: var(--space-2);
  }

  .navbar-actions > .btn,
  .navbar-actions .jv-auth-actions > .btn {
    display: none;
  }

  .theme-toggle,
  .navbar-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-links a {
    font-size: var(--text-lg);
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .footer-bottom > div:first-child {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }
}

/* ==========================================================================
   17. Homepage Refresh
   ========================================================================== */
.home-hero {
  min-height: auto;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

/* ==========================================================================
   17.a Hero layout containment fix
   --------------------------------------------------------------------------
   The hero used to break at 768px because:
     • .hero-content used `1fr 1fr` (no minmax(0, …)) so the left column
       inherited the min-content width of the search-form and bled into
       the right "Trusted companies" card.
     • .search-form switched to a 4-track grid (`repeat(3, 1fr) auto`) at
       640px, making the "Search Jobs" submit button overflow the column.
   Fix: enforce box-sizing + min-width:0 everywhere, keep the search-form
   three-up with the submit button on its own row until the hero is wide
   enough for a genuine 2-column layout (≥1024px), and only at ≥1280px do
   we allow the inline 4-track form so it never overflows.
   ========================================================================== */
.home-hero .container {
  box-sizing: border-box;
}

.home-hero .hero-content {
  gap: var(--space-10);
}

.home-hero__title,
.home-hero__description,
.home-search-card,
.hero-actions,
.home-stats {
  max-width: 100%;
}

.home-search-card {
  width: 100%;
  box-sizing: border-box;
}

/* Explore Jobs / Create Account live below the search bar with clear spacing. */
.home-hero .hero-actions {
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}

/* True 2-column hero only when we have room for both the text column and
   a sensible 400px right card without the search-form colliding. */
@media (min-width: 1024px) {
  .home-hero .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: var(--space-12);
    align-items: start;
  }

  .home-hero .hero-text {
    max-width: 620px;
  }

  .home-hero .hero-illustration {
    position: sticky;
    top: var(--space-20);
  }
}

/* Only allow the inline 4-track search form when the hero left column is
   actually wide enough to hold it without pushing the submit button out. */
@media (min-width: 1280px) {
  .home-hero .search-form {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
  }
  .home-hero .search-form > button[type="submit"] {
    grid-column: auto;
    justify-self: end;
  }
}

/* Tablet & mobile: stack cleanly, right card drops below with breathing room. */
@media (max-width: 1023px) {
  .home-hero .hero-content {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10);
  }
  .home-hero .hero-illustration {
    margin-top: var(--space-6);
  }
}


.home-hero__badge {
  margin-bottom: var(--space-5);
  border: 1px solid rgba(30, 76, 176, 0.35);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 14px;
}

.home-hero__title {
  max-width: 16ch;
}

.home-hero__description {
  max-width: 52ch;
}

.home-search-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.home-company-showcase {
  position: relative;
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-2xl);
  background: linear-gradient(160deg, rgba(10, 30, 66, 0.92), rgba(7, 14, 30, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.home-company-showcase--simple {
  gap: var(--space-4);
  padding: var(--space-5);
}

.home-company-showcase--simple .home-logo-grid {
  gap: 12px;
}

.home-company-showcase::before {
  content: '';
  position: absolute;
  inset: auto -12% -28% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 76, 176, 0.22), transparent 70%);
  pointer-events: none;
}

.home-company-showcase__header,
.home-logo-grid,
.home-mini-stats {
  position: relative;
  z-index: 1;
}

.home-mini-label {
  color: rgba(226, 232, 240, 0.74);
}

.home-logo-grid {
  display: grid;
  gap: 14px;
}

.home-logo-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}

.home-logo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.home-logo-card img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 16px;
  background: #ffffff;
}

.home-logo-card strong {
  display: block;
  color: #ffffff;
  font-size: var(--text-base);
  margin-bottom: 2px;
}

.home-logo-card span {
  display: block;
  color: rgba(226, 232, 240, 0.76);
  font-size: var(--text-sm);
}

.home-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-mini-stat {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.home-mini-stat strong {
  display: block;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: 4px;
}

.home-mini-stat span {
  color: rgba(226, 232, 240, 0.72);
  font-size: var(--text-xs);
}

.home-category-card {
  min-height: 220px;
}

.home-prep-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-6);
}

.home-prep-card {
  padding: var(--space-8);
  background: var(--bg-secondary);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

.home-prep-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.home-prep-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 76, 176, 0.26);
}

.home-prep-card__icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: var(--space-5);
  color: var(--accent);
  background: rgba(30, 76, 176, 0.1);
}

.home-prep-card__icon svg {
  width: 28px;
  height: 28px;
}

.home-prep-card h3 {
  margin-bottom: var(--space-3);
}

.home-prep-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.home-partners-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-partner-item {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.home-partner-item:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 76, 176, 0.24);
  box-shadow: var(--shadow-md);
}

.home-partner-item img {
  width: auto;
  max-width: 120px;
  max-height: 44px;
  object-fit: contain;
}

.home-logo-marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
}

.home-logo-marquee::before,
.home-logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 2;
  pointer-events: none;
}

.home-logo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(255, 255, 255, 0) 100%);
}

.home-logo-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-primary) 0%, rgba(255, 255, 255, 0) 100%);
}

.home-logo-marquee__track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: homeLogoMarquee 28s linear infinite;
}

.home-logo-marquee:hover .home-logo-marquee__track {
  animation-play-state: paused;
}

@keyframes homeLogoMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (min-width: 768px) {
  .home-prep-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-partners-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-hero {
    min-height: auto;
    padding-top: calc(68px + var(--space-10));
  }

  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }

  .home-company-showcase {
    padding: var(--space-5);
  }

  .home-mini-stats {
    grid-template-columns: 1fr;
  }

  .home-logo-card {
    grid-template-columns: 46px 1fr;
    gap: 12px;
  }

  .home-logo-card img {
    width: 46px;
    height: 46px;
  }

  .home-logo-marquee::before,
  .home-logo-marquee::after {
    width: 28px;
  }
}

.animate-float {
  animation: float 3.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   18. Home Hero v2 (reference design)
   --------------------------------------------------------------------------
   Scoped under .home-hero--v2 so the rest of the site keeps its existing
   teal accent. Orange/coral palette, big illustration on the right, and a
   full-width search bar that sits below the hero text + art.
   ========================================================================== */
.home-hero--v2 {
  --accent: #1E4CB0;
  --accent-hover: #173E92;
  --accent-light: rgba(30, 76, 176, 0.12);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

/* ──────────────────────────────────────────────────────────────────────
   Hero v2 background circles
   - Left  cream  (#F2ECE1) sits behind the headline + CTAs.
   - Right periwinkle (#E9EEFA) sits behind the illustration.
   Both scale responsively with viewport width and stay below content
   via `pointer-events: none` and a low z-index.
   ────────────────────────────────────────────────────────────────────── */
.home-hero--v2 .hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.home-hero--v2 .hero-bg-circle--left {
  left: -22vw;
  top: -14vh;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: var(--color-hero-bg-left);
  filter: blur(0.5px);
}

.home-hero--v2 .hero-bg-circle--right {
  right: -18vw;
  left: auto;
  top: -8vh;
  width: 64vw;
  height: 64vw;
  max-width: 780px;
  max-height: 780px;
  background: var(--color-hero-bg-right);
}

.home-hero--v2 .hero-content,
.home-hero--v2 .home-search-card {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .home-hero--v2 .hero-bg-circle--left {
    left: -32vw;
    width: 80vw;
    height: 80vw;
  }
  .home-hero--v2 .hero-bg-circle--right {
    right: -34vw;
    width: 80vw;
    height: 80vw;
  }
}

.home-hero--v2 .hero-content {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 1024px) {
  .home-hero--v2 .hero-content {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-12);
  }
  .home-hero--v2 .hero-illustration {
    position: static;
    top: auto;
  }
}

.home-hero__badge--v2 {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0;
  background: transparent;
  border: 0;
  margin-bottom: var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.home-hero__badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  /* "NEW" pill is the amber secondary brand accent. */
  background: rgba(255, 159, 28, 0.14);
  color: var(--color-secondary, #FF9F1C);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-hero__badge-text {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.home-hero__title--v2 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  max-width: 14ch;
}

.home-hero__title-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.home-hero__title-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 4px;
  background: #1E4CB0;
  border-radius: 999px;
  opacity: 0.85;
}

.home-hero__description--v2 {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 44ch;
  margin-bottom: var(--space-8);
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: 0;
}

.home-hero__cta-primary {
  background-color: #1E4CB0;
  color: #ffffff;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: var(--text-base);
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(30, 76, 176, 0.28);
}

.home-hero__cta-primary:hover {
  background-color: #173E92;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(30, 76, 176, 0.32);
}

.home-hero__cta-secondary {
  background-color: #ffffff;
  color: var(--text-primary);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 14px 28px;
  font-size: var(--text-base);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.home-hero__cta-secondary:hover {
  background-color: #ffffff;
  border-color: rgba(15, 23, 42, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.home-hero__cta-secondary svg {
  width: 22px;
  height: 22px;
  color: var(--text-primary);
}

.home-hero__illustration {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-hero__art {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
}

/* Full-width search card sits below hero content. */
.home-hero--v2 .home-search-card--v2 {
  margin-top: var(--space-10);
  padding: var(--space-3);
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.home-hero--v2 .home-search-form--v2{
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: center;
}

.home-hero--v2 .home-search-form--v2 .search-field {
  background: #F8FAFC;
  border-radius: 999px;
  padding: 14px 22px;
  gap: var(--space-3);
  min-height: 56px;
}

.home-hero--v2 .home-search-form--v2 .search-field svg {
  width: 20px;
  height: 20px;
  color: #94A3B8;
}

.home-hero--v2 .home-search-form--v2 .search-field input,
.home-hero--v2 .home-search-form--v2 .search-field select {
  font-size: var(--text-base);
  color: var(--text-primary);
  background: transparent;
  width: 100%;
}

.home-hero--v2 .home-search-form--v2 .search-field input::placeholder {
  color: #94A3B8;
}

.home-hero--v2 .home-search-form--v2 .search-field--with-caret {
  position: relative;
  padding-right: 44px;
}

.home-hero--v2 .home-search-form--v2 .search-field--with-caret select {
  appearance: none;
  -webkit-appearance: none;
}

.home-hero--v2 .home-search-form--v2 .search-field__caret {
  position: absolute;
  right: 22px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}

.home-hero--v2 .home-search-form__submit {
  background-color: #1E4CB0;
  color: #ffffff;
  border-radius: 999px;
  padding: 14px 36px;
  font-size: var(--text-base);
  font-weight: 600;
  min-height: 56px;
  box-shadow: 0 10px 24px rgba(30, 76, 176, 0.28);
  justify-self: stretch;
}

.home-hero--v2 .home-search-form__submit:hover {
  background-color: #173E92;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(30, 76, 176, 0.32);
}

.home-search-popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6) var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.home-search-popular__label {
  color: var(--text-secondary);
  font-weight: 500;
}

.home-search-popular a {
  color: #1E4CB0;
  font-weight: 500;
}

.home-search-popular a:hover {
  color: #173E92;
  text-decoration: underline;
}

/* Inline search-form layout at wider breakpoints. */
@media (min-width: 768px) {
  .home-hero--v2 .home-search-form--v2{
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: var(--space-2);
  }
  .home-hero--v2 .home-search-form__submit {
    justify-self: end;
    padding: 14px 40px;
  }
  .home-hero--v2 .home-search-card--v2 {
    border-radius: 999px;
  }
}

/* Mobile: stack search form, give the card a softer rounded shape. */
@media (max-width: 767px) {
  .home-hero--v2 .home-search-card--v2 {
    border-radius: 28px;
    padding: var(--space-4);
  }
  .home-hero--v2 .home-search-form--v2 .search-field {
    border-radius: 16px;
  }
  .home-hero--v2 .home-search-form__submit {
    border-radius: 16px;
    width: 100%;
  }
  .home-hero__cta {
    width: 100%;
  }
  .home-hero__cta-primary,
  .home-hero__cta-secondary {
    flex: 1;
    justify-content: center;
  }
  .home-hero__title--v2 {
    font-size: clamp(2rem, 8vw, 2.6rem);
    max-width: 100%;
  }
}

/* ==========================================================================
   19. Brand Semantic Mapping (loaded last so it wins the cascade)
   --------------------------------------------------------------------------
   Primary brand blue (#1E4CB0) is applied to: navigation active state,
   inline content links, headline accent underlines, and informational
   surfaces. Secondary brand orange (#FF9F1C) stays mapped to `--accent`
   and powers conversion elements (.btn-primary, .badge-primary,
   "Apply", "Search", "Post a Job").
   ========================================================================== */

/* Active nav link sits in primary blue text + blue underline. */
.nav-link.is-active,
.mobile-nav-links a.is-active {
  color: var(--brand-primary-500);
}

/* Inline links inside content / blog / detail pages. */
.jv-content a:not(.jv-btn):not(.btn),
.blog-content a:not(.btn):not(.jv-btn),
.jv-detail-card a:not(.jv-btn):not(.btn),
.jv-prose a:not(.jv-btn):not(.btn) {
  color: var(--brand-primary-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jv-content a:hover:not(.jv-btn):not(.btn),
.blog-content a:hover:not(.btn):not(.jv-btn),
.jv-detail-card a:hover:not(.jv-btn):not(.btn),
.jv-prose a:hover:not(.jv-btn):not(.btn) {
  color: var(--brand-primary-hover);
}

/* Hero / section title accent underline → blue per design system. */
.hero-title .underline::after,
.section-title .underline::after {
  background-color: var(--brand-primary-500);
}

/* Hero v2 underline (kept blue to align with primary brand). */
.home-hero__title-underline::after {
  background: var(--brand-primary-500);
}

/* Informational chips and category labels lean on the primary blue tint. */
.text-label,
.jv-overview-chip,
.jv-category-pill {
  color: var(--brand-primary-700);
}

/* Sort select + sidebar focus ring → blue (interactive surface). */
.jv-input:focus,
.jv-select:focus,
.jv-filter-input:focus,
.form-input:focus,
.form-select:focus {
  border-color: var(--brand-primary-500);
  box-shadow: 0 0 0 3px var(--brand-primary-soft);
  outline: none;
}

/* ──────────────────────────────────────────────────────────────────────
   Global clickable elements (Task 2)
   - Plain text links (anchors with no class) take the brand primary blue.
   - Outlined / ghost button variants follow suit so they read as
     interactive without changing their structural style.
   - `.btn-secondary` (neutral outlined CTA used for "Browse all jobs",
     "Watch How it Works", etc.) inherits the same blue to stay
     consistent with the new design system.
   ────────────────────────────────────────────────────────────────────── */
a:not([class]),
.text-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:not([class]):hover,
.text-link:hover {
  color: var(--brand-primary-hover);
}

.btn-secondary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  background-color: var(--brand-primary-soft);
}

.btn-outline,
.btn-ghost {
  color: var(--color-primary);
}

.btn-outline {
  border: 1.5px solid var(--color-primary);
  background: transparent;
}

.btn-outline:hover,
.btn-ghost:hover {
  color: var(--brand-primary-hover);
  background-color: var(--brand-primary-soft);
}

/* ── Hero Mobile Fixes ─────────────────────────────────────── */
@media (max-width: 640px) {
    .hero-title,
    .home-hero__title {
        font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
        line-height: 1.15;
    }
    .hero-actions,
    .home-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .hero-actions .btn,
    .home-hero__actions .jv-btn {
        width: 100%;
        text-align: center;
    }
    .hero-search,
    .home-hero__search {
        flex-direction: column;
        gap: 10px;
    }
    .hero-search input,
    .hero-search select,
    .hero-search .jv-btn {
        width: 100%;
    }
    .hero,
    .home-hero {
        overflow-x: hidden;
    }
}

/* ── Global Mobile Fixes ───────────────────────────────────── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .jv-container,
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .footer-grid,
    .jv-footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px;
    }
    .nav-links-desktop { display: none; }
    .jv-service-card,
    .jv-listing-card,
    .blog-card {
        max-width: 100%;
        overflow: hidden;
    }
    .jv-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .jv-dash-layout {
        grid-template-columns: 1fr !important;
    }
    /* .jv-dash-sidebar handled by dashboard.css (flex sticky tab-bar) */
    .jv-dash-stats {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    .footer-grid,
    .jv-footer-grid {
        grid-template-columns: 1fr !important;
    }
    .jv-services-grid {
        grid-template-columns: 1fr !important;
    }
    .jv-dash-stats {
        grid-template-columns: 1fr !important;
    }
}

/* ── Figma Navbar + Hero v3 ─────────────────────────────────── */

/* NAVBAR */
.jv-navbar--figma {
    background: #ffffff;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    box-shadow: none;
}
.jv-navbar--figma .jv-navbar__inner {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
}
.jv-navbar--figma .jv-navbar__brand {
    margin-right: 32px;
    flex-shrink: 0;
}
/* Constrain WP custom logo in navbar — !important overrides WP inline width/height attrs */
img.custom-logo,
.jv-navbar__brand img,
.jv-navbar__brand .custom-logo-link img,
.jv-mobile-nav__brand img,
.jv-mobile-nav__brand .custom-logo-link img {
    height: 38px !important;
    width: auto !important;
    max-width: 160px !important;
    max-height: 38px !important;
    object-fit: contain !important;
    display: block !important;
}
@media (max-width: 768px) {
    img.custom-logo,
    .jv-navbar__brand img,
    .jv-navbar__brand .custom-logo-link img {
        height: 30px !important;
        max-height: 30px !important;
        max-width: 120px !important;
    }
}
.jv-navbar--figma .jv-navbar__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}
.jv-navbar--figma .jv-navbar__nav .nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
}
.jv-navbar--figma .jv-navbar__nav .nav-link.is-active {
    color: #2563EB;
    font-weight: 600;
}
/* Navbar search */
.jv-navbar-search {
    display: flex;
    align-items: center;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 100px;
    padding: 6px 6px 6px 16px;
    margin: 0 auto 0 32px;
    width: 240px;
    flex-shrink: 0;
}
.jv-navbar-search input {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #374151;
    width: 100%;
    outline: none;
}
.jv-navbar-search input::placeholder { color: #9CA3AF; }
.jv-navbar-search button {
    background: #2563EB;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.jv-navbar-search button svg { color: white; }
/* Navbar actions — text only */
.jv-navbar--figma .jv-navbar__actions {
    margin-left: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.jv-navbar--figma .jv-navbar__actions a {
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    white-space: nowrap;
}
.jv-navbar--figma .jv-navbar__actions a:hover { color: #2563EB; }
.jv-navbar--figma .jv-navbar__actions a.btn-primary,
.jv-navbar--figma .jv-navbar__actions a.btn-primary:hover { color: #ffffff; }
.jv-navbar--figma .jv-btn { all: unset; font-size: 15px; font-weight: 500; color: #111827; cursor: pointer; }
.jv-navbar--figma .jv-btn:hover { color: #2563EB; }

/* HERO */
.home-hero--v3 {
    background: #F0F2F8;
    padding: 80px 0 60px;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.home-hero--v3 .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
.home-hero--v3 .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
/* Badge */
.home-hero--v3 .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}
.home-hero--v3 .home-hero__badge-pill {
    background: #FEF3C7;
    color: #D97706;
    border-radius: 100px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.home-hero--v3 .home-hero__badge-text {
    color: #6B7280;
    font-size: 14px;
    font-weight: 400;
}
/* H1 */
.home-hero--v3 .hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}
.home-hero--v3 .hero-title .underline,
.home-hero--v3 .hero-title .underline::after { display: none !important; }
/* Subtext */
.home-hero--v3 .hero-subtitle,
.home-hero--v3 .home-hero__subtitle {
    font-size: 17px;
    color: #6B7280;
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 36px;
}
/* CTA row */
.home-hero--v3 .hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.home-hero--v3 .hero-btn-magician {
    background: #2563EB;
    color: #ffffff;
    border: none;
    border-radius: 100px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.home-hero--v3 .hero-btn-magician:hover { background: #1D4ED8; transform: translateY(-1px); }
.home-hero--v3 .hero-btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #1E3A5F;
    border: 2px solid #1E3A5F;
    border-radius: 100px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.home-hero--v3 .hero-btn-upload:hover {
    background: #1E3A5F;
    color: #ffffff;
    transform: translateY(-1px);
}
.home-hero--v3 .hero-btn-how {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.home-hero--v3 .hero-btn-how:hover { color: #2563EB; }
/* Right column */
.home-hero--v3 .hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.home-hero--v3 .hero-circle {
    width: 480px;
    height: 480px;
    max-width: 100%;
    border-radius: 50%;
    background: #DDE3F5;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.home-hero--v3 .hero-circle img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    object-position: bottom center;
}
.home-hero--v3 .hero-circle-fallback {
    font-size: 120px;
    line-height: 1;
    padding-bottom: 20px;
}
/* Floating decorative elements */
.home-hero--v3 .hero-float {
    position: absolute;
    pointer-events: none;
}
.home-hero--v3 .hero-float--chat {
    top: 8%;
    left: 2%;
    background: white;
    border-radius: 12px;
    padding: 8px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    font-size: 20px;
}
.home-hero--v3 .hero-float--dots {
    bottom: 15%;
    right: 0;
    opacity: 0.4;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .home-hero--v3 .hero-content { grid-template-columns: 1fr; }
    .home-hero--v3 .hero-visual { display: none; }
    .home-hero--v3 { padding: 56px 0 40px; }
    .jv-navbar-search { display: none; }
}
@media (max-width: 640px) {
    .home-hero--v3 .hero-actions { flex-direction: column; align-items: flex-start; }
    .home-hero--v3 .hero-btn-magician { width: 100%; justify-content: center; }
}

/* ── Search Dropdown ─────────────────────────────────── */
.jv-search-wrap { position: relative; }
.jv-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 9999;
    overflow: hidden;
    min-width: 320px;
}
.jv-sd-group {
    padding: 10px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #F9FAFB;
}
.jv-sd-item {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    text-decoration: none;
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.15s;
}
.jv-sd-item:hover { background: #F0F7FF; }
.jv-sd-title { font-size: 14px; font-weight: 500; color: #111827; }
.jv-sd-meta { font-size: 12px; color: #6B7280; margin-top: 2px; }
.jv-sd-empty { padding: 16px; font-size: 14px; color: #6B7280; text-align: center; }
.jv-sd-all {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #2563EB;
    text-decoration: none;
    background: #F0F7FF;
    border-top: 1px solid #E5E7EB;
    text-align: center;
}
.jv-sd-all:hover { background: #DBEAFE; }

/* ── Services Grid: rules now live in content.css and polish.css.
   Removed legacy 12-col `:has()` hack that produced inconsistent rows. ── */

/* ── Mobile Global Fixes ── */
html, body { overflow-x: hidden; max-width: 100%; }
img, video { max-width: 100%; height: auto; }

@media (max-width: 767px) {
    .jv-navbar-search { display: none !important; }
    .footer-grid, .jv-site-footer__nav { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
    .footer-cta-actions { flex-direction: column !important; align-items: stretch !important; }
    .footer-cta-actions .btn { width: 100% !important; text-align: center !important; }
    .mentor-grid { grid-template-columns: 1fr 1fr !important; }
    .jv-detail-layout { grid-template-columns: 1fr !important; }
    .jv-detail-sidebar { order: -1; }
}

@media (max-width: 640px) {
    .home-hero__title, .hero-title { font-size: clamp(1.8rem, 8vw, 2.6rem) !important; }
    .hero-actions, .home-hero__actions { flex-direction: column !important; align-items: stretch !important; }
    .hero-actions .btn, .hero-actions .jv-btn { width: 100% !important; text-align: center !important; }
    .container, .jv-container { padding-left: 16px !important; padding-right: 16px !important; }
    .jv-page-header { padding: calc(68px + 24px) 16px 32px !important; }
    .jv-page-header__title { font-size: clamp(1.6rem, 7vw, 2.2rem) !important; }
}

@media (max-width: 480px) {
    .footer-grid, .jv-site-footer__nav { grid-template-columns: 1fr !important; }
    .mentor-grid { grid-template-columns: 1fr !important; }
    .jv-listing-card { padding: 14px 12px; }
    .jv-services-grid { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════════════════
   TESTIMONIALS SECTION
══════════════════════════════════════════════════════════ */
.jv-testimonials-section {
    padding: 80px 0 72px;
    background: #F0F4FF;
    overflow: hidden;
}
.jv-testimonials-header {
    text-align: center;
    margin-bottom: 48px;
}
.jv-section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary, #2563EB);
    background: rgba(37,99,235,0.1);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 14px;
}
.jv-testimonials-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.25;
}
.jv-testimonials-subtitle {
    font-size: 15px;
    color: #6B7280;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}
.jv-testimonials-slider {
    overflow: hidden;
    position: relative;
}
.jv-testimonials-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
    align-items: stretch;
}
.jv-tcard {
    box-sizing: border-box;
    padding: 10px;
    flex-shrink: 0;
}
.jv-tcard > * { pointer-events: none; }
.jv-tcard__inner,
.jv-tcard {
    /* inner card look applied via inner wrapper but we use padding trick */
}
/* Inner card box */
.jv-tcard {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.jv-tcard {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 26px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s, transform 0.25s;
    margin: 0 10px 4px;
}
.jv-tcard:hover {
    box-shadow: 0 10px 32px rgba(37,99,235,0.10);
    transform: translateY(-3px);
}
.jv-tcard__stars { display: flex; gap: 3px; }
.jv-tcard__text {
    font-size: 14px;
    line-height: 1.72;
    color: #374151;
    flex: 1;
    margin: 0;
    position: relative;
    padding-left: 18px;
}
.jv-tcard__text::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -6px;
    font-size: 30px;
    color: var(--primary, #2563EB);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}
.jv-tcard__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #F3F4F6;
    margin-top: auto;
}
.jv-tcard__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.jv-tcard__initials {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.jv-tcard__name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}
.jv-tcard__role {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}
/* Nav */
.jv-t-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}
.jv-t-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #E5E7EB;
    background: #fff;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.jv-t-btn:hover {
    border-color: var(--primary, #2563EB);
    color: var(--primary, #2563EB);
    background: rgba(37,99,235,0.05);
}
.jv-t-dots { display: flex; gap: 6px; }
.jv-t-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
}
.jv-t-dot.active {
    background: var(--primary, #2563EB);
    width: 22px;
    border-radius: 4px;
}
@media (max-width: 768px) {
    .jv-testimonials-section { padding: 52px 0 44px; }
    .jv-testimonials-header { margin-bottom: 28px; }
    .jv-tcard { padding: 20px 16px 18px; margin: 0 6px 4px; }
}
@media (max-width: 480px) {
    .jv-tcard__text { font-size: 13.5px; }
}

/* ── Mobile touch performance ── */
* {
    -webkit-tap-highlight-color: transparent;
}
button, a, [role="button"] {
    touch-action: manipulation;
}
