@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --accent: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-hover: #1e40af;
  --success: #059669;
  --success-light: #ecfdf5;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; color: var(--gray-900); letter-spacing: -0.02em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { color: var(--gray-600); }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* ─── LAYOUT ─── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.page-content { min-height: calc(100vh - 72px); padding: 40px 0 80px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: 12px; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-sm { font-size: 0.875rem; } .text-xs { font-size: 0.75rem; }
.text-muted { color: var(--gray-500); }
.text-center { text-align: center; }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }

/* ─── NAVBAR ─── */
#navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: 72px;
  position: sticky; top: 0; z-index: 1000;
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.nav-logo-icon {
  width: 42px; height: 38px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 0.85rem; letter-spacing: -0.5px;
}
.nav-logo-text { font-weight: 700; font-size: 1.1rem; color: var(--gray-900); }
.nav-logo-text span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--gray-600);
  cursor: pointer; transition: all var(--transition); border: none; background: none;
}
.nav-link:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-link.active { color: var(--accent); background: var(--accent-light); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-user-info { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--gray-600); }
.avatar {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.8rem; font-weight: 600;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--transition);
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 0 0 3px rgba(29,78,216,0.15); color: white; }
.btn-secondary { background: var(--white); color: var(--gray-700); border: 1.5px solid var(--gray-200); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-300); color: var(--gray-900); }
.btn-ghost { background: transparent; color: var(--gray-600); padding: 9px 14px; }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: var(--success); color: white; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 28px; font-size: 1rem; }
.btn-icon { padding: 9px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-clickable { cursor: pointer; }
.card-clickable:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

/* ─── FORMS ─── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--gray-700); }
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}
.form-input::placeholder { color: var(--gray-400); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--gray-400); }
.form-error { font-size: 0.78rem; color: var(--danger); }
.form-row { display: grid; gap: 16px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* File upload */
.file-upload-zone {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--gray-50);
}
.file-upload-zone:hover, .file-upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.file-upload-zone input[type="file"] { display: none; }

/* ─── BADGES ─── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #d1fae5; color: #059669; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-orange { background: #ffedd5; color: #9a3412; }

/* ─── SEARCH BAR ─── */
.search-bar {
  display: flex; align-items: center;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.search-bar:focus-within { box-shadow: 0 0 0 3px rgba(29,78,216,0.1); border-color: var(--accent); }
.search-bar input {
  flex: 1; padding: 12px 16px;
  border: none; outline: none;
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  color: var(--gray-900);
}
.search-bar input::placeholder { color: var(--gray-400); }
.search-divider { width: 1px; height: 24px; background: var(--gray-200); }
.search-bar .btn { border-radius: 0; border-left: none; padding: 12px 20px; }

/* ─── TABS ─── */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--gray-200); margin-bottom: 28px; }
.tab-btn {
  padding: 11px 18px; border: none; background: none;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 500;
  color: var(--gray-500); cursor: pointer;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--gray-800); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; animation: fadeIn 0.2s ease; }
.tab-panel.active { display: block; }

/* ─── MODALS ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 600px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(8px);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 24px 28px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
}
.modal-body { padding: 20px 28px 28px; }
.modal-footer {
  padding: 0 28px 24px;
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
  padding: 80px 0 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px; border-radius: 999px;
  color: rgba(255,255,255,0.9); font-size: 0.82rem; font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 { color: white; font-size: 3rem; margin-bottom: 18px; }
.hero h1 span { color: #93c5fd; }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 560px; margin-bottom: 36px; }
.hero-search { max-width: 680px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-search-inner { display: flex; align-items: stretch; }
.hero-search-field { flex: 1; padding: 14px 20px 12px; display: flex; flex-direction: column; gap: 2px; }
.hero-field-label { font-size: 0.68rem; font-weight: 700; color: var(--gray-500); letter-spacing: 0.08em; text-transform: uppercase; }
.hero-search-field input { border: none; outline: none; font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--gray-900); width: 100%; padding: 0; background: transparent; }
.hero-search-field input::placeholder { color: var(--gray-400); }
.hero-search-divider { width: 1px; background: var(--gray-200); margin: 10px 0; flex-shrink: 0; }
.hero-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 60px; flex-shrink: 0;
  background: var(--gray-100); border: none; border-left: 1px solid var(--gray-200);
  cursor: pointer; color: var(--accent); transition: all var(--transition);
}
.hero-search-btn:hover { background: var(--accent); color: white; }
.hero-search-btn svg { width: 22px; height: 22px; }

/* Jobs browse page search bar (same style as hero) */
.jobs-search-bar {
  display: flex; align-items: stretch;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.jobs-search-field { flex: 1; padding: 14px 20px 12px; display: flex; flex-direction: column; gap: 2px; }
.jobs-search-label { font-size: 0.68rem; font-weight: 700; color: var(--gray-500); letter-spacing: 0.08em; text-transform: uppercase; }
.jobs-search-field input {
  border: none; outline: none; font-family: 'Inter', sans-serif;
  font-size: 0.95rem; color: var(--gray-900); width: 100%; padding: 0; background: transparent;
}
.jobs-search-field input::placeholder { color: var(--gray-400); }
.jobs-search-divider { width: 1px; background: var(--gray-200); margin: 10px 0; flex-shrink: 0; }
.jobs-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 60px; flex-shrink: 0;
  background: var(--accent); border: none;
  cursor: pointer; color: white; transition: all var(--transition);
}
.jobs-search-btn:hover { background: var(--accent-hover); }
.jobs-search-btn svg { width: 22px; height: 22px; }
.hero-stats { display: flex; gap: 36px; margin-top: 32px; }
.hero-stat .num { font-size: 1.5rem; font-weight: 700; color: white; }
.hero-stat .label { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ─── JOB CARDS ─── */
.job-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.job-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); transform: translateY(-1px); }
.job-card.featured { border-color: var(--accent); border-width: 1.5px; }
.job-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.company-logo {
  width: 48px; height: 48px;
  background: var(--gray-100); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: var(--gray-600);
  border: 1px solid var(--gray-200);
}
.job-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 3px; }
.company-name { font-size: 0.875rem; color: var(--gray-500); font-weight: 500; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.job-meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--gray-500); }
.job-description { font-size: 0.875rem; color: var(--gray-600); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gray-100); }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-bookmark { padding: 6px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); background: none; cursor: pointer; color: var(--gray-400); transition: all var(--transition); }
.job-bookmark:hover, .job-bookmark.saved { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }

/* ─── SIDEBAR FILTERS ─── */
.sidebar-filter { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; }
.filter-section { border-bottom: 1px solid var(--gray-100); padding-bottom: 18px; margin-bottom: 18px; }
.filter-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.filter-title { font-size: 0.875rem; font-weight: 700; color: var(--gray-800); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.filter-checkbox { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.filter-checkbox input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }
.filter-checkbox span { font-size: 0.875rem; color: var(--gray-700); }
.filter-checkbox .count { margin-left: auto; font-size: 0.75rem; color: var(--gray-400); }

/* ─── DASHBOARD ─── */
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.stat-card .stat-num { font-size: 2rem; font-weight: 700; color: var(--gray-900); }
.stat-card .stat-label { font-size: 0.875rem; color: var(--gray-500); margin-top: 2px; }
.stat-card .stat-change { font-size: 0.8rem; font-weight: 600; margin-top: 8px; }
.stat-card .stat-change.up { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }

/* ─── TABLE ─── */
.table-wrap { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
th { padding: 12px 16px; text-align: left; font-size: 0.8rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
td { padding: 14px 16px; font-size: 0.875rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }
.table-actions { display: flex; gap: 6px; }

/* ─── NOTIFICATIONS ─── */
.toast-container { position: fixed; top: 84px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow-lg); min-width: 300px; max-width: 400px;
  transform: translateX(120%); transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--accent); }
.toast.warning { border-left: 4px solid var(--warning); }

/* ─── AI ASSISTANT ─── */
.ai-panel {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 1px solid #bee3f8;
  border-radius: var(--radius-lg);
  padding: 24px;
}
.ai-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ai-icon { width: 36px; height: 36px; background: var(--accent); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.ai-output {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px;
  font-size: 0.9rem; color: var(--gray-700); line-height: 1.7;
  min-height: 100px; white-space: pre-wrap;
}
.ai-typing::after { content: '▊'; animation: blink 0.8s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ─── SPELL CHECK ─── */
.spell-error { border-bottom: 2px wavy var(--danger); cursor: pointer; }
.spell-suggestion { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 4px 10px; font-size: 0.85rem; cursor: pointer; }
.spell-suggestion:hover { background: var(--accent-light); color: var(--accent); }

/* ─── PROGRESS STEPPER ─── */
.stepper { display: flex; align-items: center; margin-bottom: 32px; }
.step { display: flex; align-items: center; }
.step-circle {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  border: 2px solid var(--gray-200);
  background: var(--white); color: var(--gray-400);
  transition: all var(--transition);
}
.step.active .step-circle { border-color: var(--accent); background: var(--accent); color: white; }
.step.done .step-circle { border-color: var(--success); background: var(--success); color: white; }
.step-label { font-size: 0.8rem; font-weight: 500; color: var(--gray-500); margin-left: 8px; }
.step.active .step-label { color: var(--accent); font-weight: 600; }
.step-line { flex: 1; height: 2px; background: var(--gray-200); margin: 0 12px; }
.step-line.done { background: var(--success); }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-icon { width: 72px; height: 72px; background: var(--gray-100); border-radius: var(--radius-xl); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }

/* ─── PROFILE ─── */
.profile-header {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: white;
  position: relative; overflow: hidden;
}
.profile-avatar { width: 80px; height: 80px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; border: 3px solid rgba(255,255,255,0.3); }

/* ─── PAGINATION ─── */
.pagination { display: flex; align-items: center; gap: 4px; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200);
  background: var(--white); font-size: 0.875rem; cursor: pointer;
  color: var(--gray-600); transition: all var(--transition);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: white; font-weight: 600; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── ADMIN ─── */
.admin-sidebar { width: 240px; flex-shrink: 0; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--gray-600);
  cursor: pointer; transition: all var(--transition);
}
.admin-nav-item:hover { background: var(--gray-100); color: var(--gray-900); }
.admin-nav-item.active { background: var(--accent-light); color: var(--accent); }
.admin-nav-section { font-size: 0.72rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.08em; padding: 10px 14px 6px; }

/* ─── LOADING ─── */
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.spinner { width: 20px; height: 20px; border: 2.5px solid var(--gray-200); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── MISC ─── */
.divider { height: 1px; background: var(--gray-200); margin: 24px 0; }
.tag-input-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); min-height: 42px; align-items: center; cursor: text; }
.tag-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29,78,216,0.1); }
.tag-chip { display: flex; align-items: center; gap: 5px; background: var(--accent-light); color: var(--accent); padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; }
.tag-chip button { background: none; border: none; cursor: pointer; color: var(--accent); padding: 0; line-height: 1; font-size: 1rem; }
.tag-input { border: none; outline: none; font-family: 'Inter', sans-serif; font-size: 0.875rem; flex: 1; min-width: 80px; }
.rating-bar { height: 6px; background: var(--gray-100); border-radius: 3px; overflow: hidden; }
.rating-fill { height: 100%; background: var(--accent); border-radius: 3px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.dropdown-menu {
  position: absolute; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 180px; padding: 6px; z-index: 500;
}
.dropdown-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.875rem; cursor: pointer; color: var(--gray-700); transition: background var(--transition); }
.dropdown-item:hover { background: var(--gray-100); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-light); }
.relative { position: relative; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn 0.25s ease forwards; }

/* ─── AD BANNERS ─── */
.ad-banner { text-align: center; }
.ad-banner-top { background: var(--gray-50); padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.ad-banner-link { display: inline-block; text-decoration: none; max-width: 100%; }
.ad-banner-img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.ad-banner-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 728px; max-width: 100%; height: 90px;
  background: var(--gray-100); border: 2px dashed var(--gray-300); border-radius: var(--radius);
  color: var(--gray-400); font-size: 0.8rem; gap: 4px; margin: 0 auto;
}
.ad-banner-placeholder .ad-size { font-size: 0.7rem; color: var(--gray-300); }
@media (max-width: 768px) {
  .ad-banner-placeholder { width: 100%; height: 60px; }
  .ad-banner-img { border-radius: 0; }
}

/* ─── REGISTRATION ROLE TOGGLE ─── */
.reg-role-btn {
  flex: 1; padding: 10px; border: none; border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; background: transparent; color: var(--gray-500);
  transition: all var(--transition);
}
.reg-role-btn.active {
  background: var(--white); color: var(--accent); box-shadow: var(--shadow-sm);
}

/* ─── HORIZONTAL FILTER BAR ─── */
.filter-bar { border-bottom: 1px solid var(--gray-200); padding-bottom: 12px; }
.filter-bar-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-pill-wrap { position: relative; }
.filter-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--gray-300); background: var(--white);
  font-size: 0.85rem; font-weight: 500; color: var(--gray-700);
  cursor: pointer; transition: all var(--transition);
  font-family: inherit; white-space: nowrap;
}
.filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.filter-pill.active { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.filter-pill svg { width: 15px; height: 15px; }
.pill-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: white; font-size: 0.68rem; font-weight: 700;
}
.filter-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 280px; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 100;
  overflow: hidden;
}
.filter-dropdown.open { display: block; }
.filter-dropdown-header {
  padding: 14px 16px 10px; font-weight: 600; font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}
.filter-dropdown-body { max-height: 320px; overflow-y: auto; }
.filter-dropdown-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-top: 1px solid var(--gray-100);
}
.filter-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer; font-size: 0.875rem;
  transition: background var(--transition);
}
.filter-option:hover { background: var(--gray-50); }
.filter-option input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }
.filter-option .count { margin-left: auto; color: var(--gray-400); font-size: 0.78rem; }
.filter-sort-select {
  padding: 8px 14px; border-radius: 100px; border: 1px solid var(--gray-300);
  font-size: 0.85rem; font-family: inherit; color: var(--gray-600);
  background: var(--white); cursor: pointer;
}
.active-filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-top: 10px;
}
.active-filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 12px; border-radius: 100px;
  background: var(--accent-light); color: var(--accent);
  font-size: 0.8rem; font-weight: 500;
}
.active-filter-tag button {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font-size: 1rem; padding: 0 2px; line-height: 1; opacity: 0.7;
}
.active-filter-tag button:hover { opacity: 1; }

/* ─── RESPONSIVE ─── */

/* Tablet: 901px - 1024px */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 2.5rem; }
}

/* Tablet portrait / small laptop: 768px - 900px */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.1rem; }
  .hero { padding: 56px 0 48px; }
  .admin-sidebar { width: 100%; }

  /* Jobs browse: stack sidebar + results */
  .page-content > div > div[style*="display:flex;gap:28px"] {
    flex-direction: column !important;
  }
  .page-content > div > div[style*="display:flex;gap:28px"] > div[style*="width:260px"],
  .sidebar-filter { width: 100% !important; flex-shrink: initial !important; }
  .page-content > div > div[style*="display:flex;gap:28px"] > div[style*="flex:1"] { width: 100%; }

  /* Job detail: stack main + sidebar */
  .page-content > div > div[style*="display:flex;gap:28px;align-items:flex-start"] {
    flex-direction: column !important;
  }
  .page-content > div > div[style*="display:flex;gap:28px;align-items:flex-start"] > div[style*="width:300px"] {
    width: 100% !important; flex-shrink: initial !important;
  }

  /* Stat cards */
  .stat-card .stat-num, .grid-4 .stat-card .stat-num { font-size: 1.5rem; }
}

/* Mobile: under 768px */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.15rem; }
  .page-content { padding: 24px 0 56px; }

  /* Navbar: compact */
  #navbar { height: 60px; }
  .nav-inner { height: 60px; gap: 8px; }
  .nav-logo-text { font-size: 0.95rem; }
  .nav-logo-icon { width: 34px; height: 34px; font-size: 0.85rem; }
  .nav-links { display: none; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 7px 12px; font-size: 0.78rem; }
  .avatar { width: 30px; height: 30px; font-size: 0.7rem; }

  /* Hero: full-width, stacked */
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 1.85rem; margin-bottom: 14px; }
  .hero h1 br { display: none; }
  .hero p { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-badge { font-size: 0.75rem; padding: 5px 12px; margin-bottom: 16px; }
  .hero-search { padding: 0; border-radius: var(--radius); }
  .hero-search-inner { flex-direction: column; }
  .hero-search-field { padding: 12px 16px 10px; }
  .hero-search-divider { width: 100%; height: 1px; margin: 0; }
  .hero-search-btn { width: 100%; height: 48px; border-left: none; border-top: 1px solid var(--gray-200); border-radius: 0 0 var(--radius) var(--radius); background: var(--accent); color: white; }
  .hero-search-btn:hover { background: var(--accent-hover); }
  .hero-stats { gap: 20px; margin-top: 24px; flex-wrap: wrap; }
  .hero-stat .num { font-size: 1.25rem; }
  .hero-stat .label { font-size: 0.75rem; }

  /* Grids: single column on mobile */
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }

  /* Cards */
  .card { padding: 18px; }
  .card-clickable { padding: 16px; }

  /* Horizontal filter bar on mobile */
  .filter-bar-pills { gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-pill { padding: 7px 12px; font-size: 0.78rem; }
  .filter-dropdown { min-width: 260px; max-width: calc(100vw - 32px); position: fixed; left: 16px; right: 16px; top: auto; }
  .filter-sort-select { font-size: 0.78rem; padding: 7px 10px; }
  .active-filters { gap: 6px; }
  .active-filter-tag { font-size: 0.72rem; padding: 3px 8px 3px 10px; }

  /* Jobs search bar on mobile */
  .jobs-search-bar { flex-direction: column; border-radius: var(--radius); }
  .jobs-search-field { padding: 12px 16px 10px; }
  .jobs-search-divider { width: 100%; height: 1px; margin: 0; }
  .jobs-search-btn { width: 100%; height: 48px; border-radius: 0 0 var(--radius) var(--radius); }

  /* Job cards: single column */
  div[style*="display:flex;flex-direction:column;gap:16px"] { gap: 12px; }
  .job-card { padding: 18px; }
  .job-card-header { flex-direction: column; gap: 8px; }
  .company-logo { width: 40px; height: 40px; font-size: 0.9rem; }

  /* Tables: horizontal scroll */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 600px; }
  th, td { padding: 10px 12px; font-size: 0.8rem; white-space: nowrap; }
  .table-actions { gap: 4px; }
  .table-actions .btn { padding: 4px 8px; font-size: 0.72rem; }

  /* Stat cards on mobile: 2 columns */
  .grid-4[class] { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card .stat-num { font-size: 1.4rem; }
  .stat-card .stat-label { font-size: 0.78rem; }

  /* Tabs */
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0; }
  .tab-btn { padding: 10px 14px; font-size: 0.82rem; white-space: nowrap; }

  /* Modal */
  .modal-overlay { padding: 12px; }
  .modal { max-width: 100%; border-radius: var(--radius); }
  .modal-header { padding: 18px 20px 0; }
  .modal-body { padding: 16px 20px 20px; }

  /* Forms */
  .form-input, .form-select, .form-textarea { padding: 10px 12px; font-size: 0.88rem; }
  .form-label { font-size: 0.82rem; }

  /* Buttons */
  .btn { padding: 9px 16px; font-size: 0.85rem; }
  .btn-lg { padding: 12px 22px; font-size: 0.92rem; }
  .btn-sm { padding: 6px 10px; font-size: 0.78rem; }

  /* Stepper on mobile */
  .stepper { gap: 0; }
  .step-label { font-size: 0.7rem; display: none; }
  .step-circle { width: 30px; height: 30px; font-size: 0.78rem; }
  .step-line { margin: 0 8px; }

  /* Profile header */
  .profile-header { padding: 24px; }
  .profile-avatar { width: 60px; height: 60px; font-size: 1.4rem; }

  /* Admin sidebar on mobile */
  .admin-sidebar { width: 100%; margin-bottom: 16px; }
  .admin-nav-item { padding: 8px 12px; font-size: 0.82rem; }

  /* Footer */
  footer .container > div { flex-direction: column; text-align: center; gap: 12px; }
  footer .flex-gap { justify-content: center; flex-wrap: wrap; }

  /* Toast */
  .toast-container { top: 68px; right: 12px; left: 12px; }
  .toast { min-width: auto; max-width: 100%; }

  /* Employer/about page grids */
  div[style*="display:flex;gap:28px;align-items:flex-start"] {
    flex-direction: column !important;
  }
  div[style*="width:300px;flex-shrink:0"],
  div[style*="width:260px;flex-shrink:0"] {
    width: 100% !important;
    flex-shrink: initial !important;
  }

  /* Flex-between on mobile: allow wrap */
  .flex-between { flex-wrap: wrap; gap: 8px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Small phone: under 400px */
@media (max-width: 400px) {
  .container { padding: 0 12px; }
  h1 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.55rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 10px; }
  .hero-stats { gap: 16px; }
  .hero-stat { flex: 0 0 calc(50% - 8px); }
  .nav-actions .btn-sm span,
  .nav-actions .btn-sm svg { display: none; }
  .nav-actions .btn.btn-primary.btn-sm::after { content: 'Join'; }
  .stat-card .stat-num { font-size: 1.2rem; }
  .job-meta { gap: 6px; }
  .job-meta-item { font-size: 0.72rem; }
  .badge { font-size: 0.68rem; padding: 2px 7px; }
  .stepper { justify-content: center; }
  .step-line { min-width: 30px; }
  table { min-width: 500px; }

  /* File upload zone */
  .file-upload-zone { padding: 20px 16px; }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
  .hero { padding: 28px 0 24px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-search-inner { flex-direction: row; flex-wrap: wrap; }
  .hero-search-field { flex: 1; min-width: 120px; }
  .page-content { min-height: auto; }
}

/* Touch device helpers */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  .nav-link { min-height: 44px; display: flex; align-items: center; }
  .filter-checkbox { min-height: 40px; }
  .form-input, .form-select, .form-textarea { min-height: 44px; }
  .job-card { cursor: default; }
  .job-card:hover { transform: none; }
  .card-clickable:hover { transform: none; }
  .job-bookmark { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
}

/* Print */
@media print {
  #navbar, footer, .toast-container, .btn, .nav-actions { display: none !important; }
  .hero { background: #333 !important; -webkit-print-color-adjust: exact; }
  .page-content { min-height: auto; padding: 20px 0; }
}

/* JLL Fix: job detail mobile padding */
@media (max-width: 768px) {
  .page-content .container,
  .page-content > .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  /* Job detail card should not overflow */
  .job-detail-wrap,
  .job-detail-wrap .card {
    border-radius: 0;
    margin-left: -16px;
    margin-right: -16px;
  }
}


/* JLL: Style Uniformity v1
   Uniform 44px height on desktop, 36px on mobile.
   Overrides base styles appended here so base file stays clean.
*/

/* ── DESKTOP: uniform 44px for inputs + buttons ─────────────────────────── */
.form-input,
.form-select {
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 14px;
  padding-right: 14px;
  line-height: 44px;
  box-sizing: border-box;
}

.form-textarea {
  height: auto;
  min-height: 100px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.5;
}

.btn {
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 20px;
  padding-right: 20px;
  line-height: 1 !important;
  font-size: 0.9rem;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
}

.btn-sm {
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 14px;
  padding-right: 14px;
  line-height: 1 !important;
  font-size: 0.82rem;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
}

.btn-lg {
  height: 50px;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 28px;
  padding-right: 28px;
  line-height: 1 !important;
  font-size: 1rem;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
}

/* icon-only buttons keep square ratio */
.btn-icon {
  width: 44px;
  padding-left: 0;
  padding-right: 0;
}

/* ── MOBILE: compact 36px ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-input,
  .form-select {
    height: 36px;
    line-height: 36px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 0.88rem;
  }

  .btn {
    height: 36px;
    line-height: 36px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 0.85rem;
  }

  .btn-sm {
    height: 32px;
    line-height: 32px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.78rem;
  }

  .btn-lg {
    height: 42px;
    line-height: 42px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 0.92rem;
  }

  .btn-icon {
    width: 36px;
  }

  /* ── Mobile job detail: fix container padding + overflow ─────────────── */
  #jll-root,
  #jll-app,
  .jll-page,
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Job detail cards: full bleed on mobile */
  .page-content .card {
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* But keep standalone cards (not inside page-content) rounded */
  .card:not(.page-content .card),
  .modal .card,
  .sidebar-filter,
  .stat-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-left: 0;
    margin-right: 0;
  }

  /* Job detail description: preserve newlines */
  .job-description-full {
    white-space: pre-line;
    word-break: break-word;
  }

  /* Prevent any element from overflowing viewport */
  .hero-search,
  .jobs-search-bar,
  table,
  img {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Hero search: stack on mobile */
  .hero-search-inner {
    flex-direction: column;
  }
}

/* ── Small phone 400px and below ────────────────────────────────────────── */
@media (max-width: 400px) {
  .form-input,
  .form-select {
    height: 34px;
    line-height: 34px;
    font-size: 0.85rem;
  }

  .btn {
    height: 34px;
    line-height: 34px;
    font-size: 0.82rem;
  }

  .btn-sm {
    height: 30px;
    line-height: 30px;
  }
}


/* JLL: Mobile Layout Fix v1
   Targets exact inline styles used by the JS-rendered job detail page.
   Must use !important to beat inline style specificity.
*/
@media (max-width: 768px) {

  /* ── Stop the whole page from scrolling horizontally ─────────────────── */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* ── Two-column job detail wrapper: display:flex;gap:28px ────────────── */
  /* Force single-column stacked layout */
  [style*="display:flex"][style*="gap:28px"] {
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Also catch display: flex (with space) variant */
  [style*="display: flex"][style*="gap:28px"],
  [style*="display: flex"][style*="gap: 28px"],
  [style*="display:flex"][style*="gap: 28px"] {
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* ── 300px sidebar: width:300px;flex-shrink:0 ────────────────────────── */
  [style*="width:300px"] {
    width: 100% !important;
    flex-shrink: 1 !important;
    max-width: 100% !important;
  }

  [style*="width: 300px"] {
    width: 100% !important;
    flex-shrink: 1 !important;
    max-width: 100% !important;
  }

  /* ── 260px sidebar (used in jobs browse page) ────────────────────────── */
  [style*="width:260px"],
  [style*="width: 260px"] {
    width: 100% !important;
    flex-shrink: 1 !important;
    max-width: 100% !important;
  }

  /* ── Flex children: make all flex children full width ────────────────── */
  [style*="display:flex"][style*="gap:28px"] > div,
  [style*="display:flex"][style*="gap:28px"] > section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* ── Job detail description text: word wrap ──────────────────────────── */
  .job-description-full,
  [class*="description"] p,
  .page-content p {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: pre-line !important;
  }

  /* ── Prevent any fixed-width element from causing overflow ───────────── */
  .page-content *,
  .page-content {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* But allow buttons and badges to be auto-width inline elements */
  .btn, .badge, .tab-btn {
    max-width: none !important;
  }

  /* ── Job meta row: wrap on mobile ────────────────────────────────────── */
  .job-meta {
    flex-wrap: wrap !important;
  }

  /* ── Table horizontal scroll wrapper ─────────────────────────────────── */
  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 400px) {
  /* Extra safety for very small screens */
  [style*="display:flex"][style*="gap:28px"],
  [style*="display:flex"][style*="gap:24px"],
  [style*="display:flex"][style*="gap:20px"] {
    flex-direction: column !important;
  }
}

/* ── DIVI OVERRIDE RESET ──────────────────────────────────────────────────
   Divi's global CSS bleeds into the SPA and turns <a> tags into blue blocks.
   This section hard-resets everything inside .jll-app-body to our values.
   ──────────────────────────────────────────────────────────────────────── */
.jll-app-body a {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: inline !important;
  color: var(--accent) !important;
}
/* Restore btn display after the above reset */
.jll-app-body a.btn {
  display: inline-flex !important;
}

/* Restore our specific styled anchor classes */
.jll-app-body a.btn {
  display: inline-flex !important;
  background: inherit !important;
  border: inherit !important;
  padding: inherit !important;
  color: inherit !important;
  background-color: inherit !important;
}
.jll-app-body a.btn-primary {
  background-color: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
  padding: 0.5rem 1rem !important;
}
.jll-app-body a.btn-secondary {
  background-color: transparent !important;
  color: var(--gray-700) !important;
  border: 1px solid var(--gray-300) !important;
  padding: 0.5rem 1rem !important;
}
.jll-app-body a.nav-link {
  display: inline-flex !important;
  background: transparent !important;
  color: var(--gray-700) !important;
  border: none !important;
  padding: 0 !important;
}
.jll-app-body a.badge,
.jll-app-body a.badge,
.jll-app-body a.badge-blue {
  display: inline-flex !important;
  align-items: center !important;
  background: #dbeafe !important;
  background-color: #dbeafe !important;
  color: #1d4ed8 !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  border: none !important;
  text-decoration: none !important;
}

/* Fix pricing card anchor CTAs specifically */
.jll-app-body .card a.btn,
.jll-app-body [style*="border-radius:12px"] a.btn,
.jll-app-body [style*="border-radius:8px"] a.btn {
  display: block !important;
  text-align: center !important;
  text-decoration: none !important;
  background-color: var(--accent) !important;
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
}
.jll-app-body [style*="border-radius:12px"] a.btn-secondary,
.jll-app-body [style*="border-radius:8px"] a.btn-secondary {
  background-color: transparent !important;
  color: var(--gray-700) !important;
  border: 1px solid var(--gray-300) !important;
}

/* Nav anchor buttons */
.jll-app-body #navAuthArea a.btn-secondary {
  background: transparent !important;
  color: var(--gray-700) !important;
  border: 1px solid var(--gray-300) !important;
  padding: 6px 14px !important;
}
.jll-app-body #navAuthArea a.btn-primary {
  background-color: var(--accent) !important;
  color: #fff !important;
  padding: 6px 14px !important;
}

/* Footer links */
.jll-app-body footer a {
  display: inline !important;
  color: rgba(255,255,255,0.6) !important;
  background: transparent !important;
  padding: 0 !important;
}



/* ============================================================
   BLOG TEMPLATE STYLES (jll-blog-template plugin)
   All scoped to .jll-blog-page — zero bleed to other pages
   ============================================================ */

body.jll-blog-body { background: var(--gray-50) !important; margin: 0 !important; }
body.jll-blog-body > *:not(.jll-blog-page) { display: none !important; }
.jll-blog-page *, .jll-blog-page *::before, .jll-blog-page *::after { box-sizing: border-box; }
.jll-blog-page { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--gray-50); min-height: 100vh; color: var(--gray-800); }

.jll-blog-nav { background: white; border-bottom: 1px solid var(--gray-200); height: 64px; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.jll-blog-nav-inner { max-width: 860px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.jll-blog-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--gray-900) !important; font-weight: 800; font-size: 1rem; }
.jll-blog-brand-icon { width: 32px; height: 32px; background: var(--accent); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: white !important; font-weight: 800; font-size: 0.75rem; flex-shrink: 0; }
.jll-blog-nav-links { display: flex; align-items: center; gap: 6px; }
.jll-blog-nav-links a { text-decoration: none !important; color: var(--gray-600) !important; font-size: 0.875rem; font-weight: 500; padding: 7px 14px; border-radius: var(--radius-sm); white-space: nowrap; }
.jll-blog-nav-links a:hover { background: var(--gray-100); color: var(--gray-900) !important; }
.jll-blog-nav-links a.jll-blog-btn-primary { background: var(--accent) !important; color: white !important; border-radius: var(--radius-sm); }
.jll-blog-nav-links a.jll-blog-btn-primary:hover { background: var(--accent-hover) !important; }

.jll-blog-wrap { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }

.jll-blog-archive-hdr { margin-bottom: 32px; }
.jll-blog-archive-hdr h1 { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); margin: 0 0 8px; }
.jll-blog-archive-hdr p { color: var(--gray-500); font-size: 0.95rem; margin: 0; }
.jll-blog-post-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 16px; }
.jll-blog-post-card h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
.jll-blog-post-card h2 a { text-decoration: none !important; color: var(--gray-900) !important; }
.jll-blog-post-card h2 a:hover { color: var(--accent) !important; }
.jll-blog-post-card-meta { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 10px; }
.jll-blog-post-card-excerpt { font-size: 0.9rem; line-height: 1.7; color: var(--gray-600); margin-bottom: 14px; }
.jll-blog-read-more { color: var(--accent) !important; font-weight: 600; font-size: 0.875rem; text-decoration: none !important; }

.jll-blog-back { display: inline-flex; align-items: center; gap: 6px; color: var(--gray-500) !important; font-size: 0.875rem; text-decoration: none !important; margin-bottom: 20px; }
.jll-blog-back:hover { color: var(--accent) !important; }
.jll-blog-post-title { font-size: 2rem; font-weight: 800; color: var(--gray-900); line-height: 1.25; margin: 0 0 10px; }
.jll-blog-post-dateline { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 28px; }
.jll-blog-post-body { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 36px 40px; width: 100%; }
.jll-blog-post-body h2 { font-size: 1.3rem; font-weight: 700; color: var(--gray-900) !important; margin: 28px 0 12px; }
.jll-blog-post-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-800) !important; margin: 22px 0 8px; }
.jll-blog-post-body p { line-height: 1.8; color: var(--gray-700) !important; margin: 0 0 16px; }
.jll-blog-post-body ul, .jll-blog-post-body ol { padding-left: 22px; margin: 0 0 16px; }
.jll-blog-post-body li { line-height: 1.8; color: var(--gray-700) !important; margin-bottom: 4px; }
.jll-blog-post-body strong { color: var(--gray-900) !important; font-weight: 600; }
.jll-blog-post-body a { color: var(--accent) !important; }
.jll-blog-post-body a:hover { text-decoration: underline; }
.jll-blog-post-body [style*="background:#1d4ed8"] *, .jll-blog-post-body [style*="background: #1d4ed8"] *,
.jll-blog-post-body [style*="background:#1e40af"] *, .jll-blog-post-body [style*="background:#2563eb"] *,
.jll-blog-post-body [style*="background: #2563eb"] *, .jll-blog-post-body [style*="background:var(--accent)"] *,
.jll-blog-post-body [style*="background: var(--accent)"] * { color: white !important; }

@media (max-width: 600px) {
  .jll-blog-post-body { padding: 20px; }
  .jll-blog-post-title { font-size: 1.5rem; }
  .jll-blog-nav-links a.jll-blog-hide-sm { display: none; }
}

/* ============================================================
   LANDING PAGE STYLES (jll-html-sitemap plugin)
   ============================================================ */

.lp-hero { background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%); color: white; padding: 56px 0 48px; }
.lp-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: white; margin: 0 0 12px; }
.lp-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.95); margin: 0 0 28px; max-width: 620px; }
.lp-hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.lp-hero-stat { font-size: 0.9rem; color: rgba(255,255,255,0.95); }
.lp-hero-stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: white; }
.lp-job-card { border: 1px solid var(--gray-200); border-radius: 10px; padding: 18px 20px; margin-bottom: 12px; background: white; transition: box-shadow 0.15s; }
.lp-job-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.lp-job-card h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.lp-job-card h3 a { color: var(--accent); text-decoration: none; }
.lp-job-card h3 a:hover { text-decoration: underline; }
.lp-job-meta { font-size: 0.85rem; color: var(--gray-500); display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.lp-job-pay { color: #16a34a; font-weight: 600; }
.lp-sidebar { background: var(--gray-50); border-radius: 12px; padding: 24px; }
.lp-sidebar h3 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); margin: 0 0 12px; }
.lp-sidebar ul { list-style: none; padding: 0; margin: 0 0 24px; }
.lp-sidebar ul li { margin-bottom: 6px; }
.lp-sidebar ul li a { font-size: 0.9rem; color: var(--accent); text-decoration: none; }
.lp-sidebar ul li a:hover { text-decoration: underline; }
.lp-cta { background: linear-gradient(135deg, #1d4ed8, #1e40af); color: white; border-radius: 12px; padding: 32px; text-align: center; margin-top: 40px; }
.lp-cta h2 { color: white; margin: 0 0 8px; }
.lp-cta p { color: white; opacity: 0.9; margin: 0 0 20px; }
.lp-breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.9); margin-bottom: 16px; }
.lp-breadcrumb a { color: rgba(255,255,255,0.9) !important; text-decoration: none; }
.lp-breadcrumb a:hover { color: white; text-decoration: underline; }
/* CTA block secondary button — must beat .jll-app-body a.btn-secondary override */
.lp-cta a.btn-secondary { color: white !important; border-color: rgba(255,255,255,0.5) !important; background: transparent !important; }