*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0f172a;
  --primary-mid: #1e293b;
  --primary-light: #334155;
  --accent: #0ea5e9;
  --accent2: #6366f1;
  --green: #059669;
  --red: #e11d48;
  --bg: #f8fafd;
  --bg2: #f1f5f9;
  --bg3: #e8eef6;
  --bg4: #dde5f0;
  --border: rgba(15,23,42,0.08);
  --border-md: rgba(15,23,42,0.14);
  --text: #0f172a;
  --text2: #1e293b;
  --muted: #64748b;
  --muted2: #94a3b8;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow: 0 4px 16px rgba(15,23,42,0.08), 0 1px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.12), 0 4px 12px rgba(15,23,42,0.06);
  --shadow-accent: 0 4px 20px rgba(14,165,233,0.25);
}

/* iOS safe area support */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

/* Fix iOS input zoom (font-size must be >= 16px on inputs) */
input, select, textarea {
  font-size: 16px !important;
}
@media (min-width: 641px) {
  input, select, textarea { font-size: 13px !important; }
}

/* Tap highlight remove on mobile */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted2); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted2); }

/* ── PAGE LOAD ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes pulse-ring {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14,165,233,0.4); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 8px rgba(14,165,233,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14,165,233,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-4px); }
}

/* ── NAVBAR ── */
.navbar {
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: space-between; justify-content: space-between;
  padding: 0 24px; padding-left: calc(24px + var(--safe-left)); padding-right: calc(24px + var(--safe-right));
  height: 62px; gap: 16px;
  background: rgba(248,250,253,0.95);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(15,23,42,0.06);
  -webkit-animation: fadeIn 0.4s ease; animation: fadeIn 0.4s ease;
}
.nav-brand { display: flex; align-items: center; gap: 9px; }
.brand-icon { color: var(--accent); font-size: 24px; }
.brand-name {
  font-size: 18px; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 2px; }
.nav-link {
  color: var(--muted); text-decoration: none; padding: 7px 14px;
  border-radius: var(--radius-xs); font-size: 13px; font-weight: 500;
  -webkit-transition: all 0.18s ease; transition: all 0.18s ease;
  position: relative; -webkit-tap-highlight-color: transparent;
  min-height: 44px; display: -webkit-inline-flex; display: inline-flex;
  -webkit-align-items: center; align-items: center;
}
.nav-link:hover { color: var(--text); background: var(--bg3); }
.nav-link.active {
  color: var(--text); background: var(--bg3); font-weight: 600;
}
.nav-link.active::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; background: var(--accent); border-radius: 2px;
}

/* ── HERO ── */
.hero {
  position: relative; padding: 64px 20px 52px;
  text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #f0f6ff 0%, var(--bg) 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(14,165,233,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 90% 60%, rgba(99,102,241,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none; opacity: 0.6;
}
.hero-content { position: relative; z-index: 1; animation: fadeUp 0.6s ease; }
.hero h1 {
  font-size: clamp(30px, 5vw, 52px); font-weight: 800;
  line-height: 1.12; margin-bottom: 26px; letter-spacing: -1px; color: var(--text);
}
.gradient-text {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 60%, #8b5cf6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── SEARCH BOX ── */
.hero-search {
  display: flex; gap: 0;
  background: var(--card);
  border: 1.5px solid var(--border-md);
  border-radius: 18px; padding: 6px;
  max-width: 660px; margin: 0 auto 20px;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.hero-search:focus-within {
  border-color: rgba(14,165,233,0.5);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(14,165,233,0.08);
}
.search-field {
  display: flex; align-items: center; gap: 8px;
  flex: 1; padding: 10px 14px; min-width: 0;
}
.search-field + .search-field { border-left: 1.5px solid var(--border); }
.search-field .material-icons-round { color: var(--muted2); font-size: 18px; flex-shrink: 0; }
.search-field input, .search-field select {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 13px; font-family: inherit; width: 100%; min-width: 0;
}
.search-field input::placeholder { color: var(--muted2); }
.search-field select option { background: #fff; color: var(--text); }

.hero-tags {
  display: flex; align-items: center; gap: 7px; justify-content: center;
  flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 16px;
  position: relative; z-index: 1; animation: fadeUp 0.7s ease 0.1s both;
}
.tag-pill {
  background: var(--card); border: 1.5px solid var(--border-md);
  color: var(--text2); padding: 5px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit;
  transition: all 0.18s ease; box-shadow: var(--shadow-sm);
}
.tag-pill:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(14,165,233,0.04);
  transform: translateY(-1px); box-shadow: var(--shadow);
}

/* ── BUTTONS ── */
.btn-primary {
  background: -webkit-linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff; border: none; padding: 11px 24px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  -webkit-transition: all 0.2s ease; transition: all 0.2s ease;
  letter-spacing: 0.1px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.2), 0 1px 2px rgba(15,23,42,0.1);
  position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.btn-primary:hover {
  -webkit-transform: translateY(-2px); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.25), 0 2px 6px rgba(15,23,42,0.1);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { -webkit-transform: translateY(0); transform: translateY(0); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; -webkit-transform: none; transform: none; box-shadow: none; }

.btn-text {
  background: none; border: none; color: var(--accent); font-size: 13px;
  font-weight: 600; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 3px; text-decoration: none;
  transition: all 0.18s;
}
.btn-text:hover { opacity: 0.75; gap: 5px; }

.btn-outline-full {
  width: 100%; background: transparent; border: 1.5px solid var(--border-md);
  color: var(--muted); padding: 9px; border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer; font-family: inherit; transition: all 0.18s;
}
.btn-outline-full:hover { border-color: var(--red); color: var(--red); background: rgba(225,29,72,0.03); }

.btn-apply {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff; border: none; padding: 7px 16px; border-radius: var(--radius-xs);
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  white-space: nowrap; text-decoration: none; display: inline-block;
  transition: all 0.2s; box-shadow: 0 2px 6px rgba(15,23,42,0.15);
}
.btn-apply:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,23,42,0.2); }

/* ── SECTIONS ── */
.section-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-title { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; color: var(--text); }

/* ── JOB TAGS ── */
.job-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.jtag { padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.jtag-type { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.jtag-salary { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.jtag-loc { background: var(--bg2); color: var(--muted); border: 1px solid var(--border-md); }

.badge-new {
  position: absolute; top: 14px; right: 14px;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 3px 10px; border-radius: 100px; letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(14,165,233,0.4);
  text-transform: uppercase;
}

/* ── JOB ROW ── */
.jobs-list { display: flex; flex-direction: column; gap: 12px; }

.job-row {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  gap: 16px; cursor: pointer;
  -webkit-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  -webkit-animation: fadeUp 0.4s ease both; animation: fadeUp 0.4s ease both;
}
.job-row:nth-child(1) { animation-delay: 0.05s; }
.job-row:nth-child(2) { animation-delay: 0.1s; }
.job-row:nth-child(3) { animation-delay: 0.15s; }
.job-row:nth-child(4) { animation-delay: 0.2s; }
.job-row:nth-child(5) { animation-delay: 0.25s; }

.job-row::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0ea5e9, #6366f1);
  opacity: 0; transition: opacity 0.2s; border-radius: 3px 0 0 3px;
}
.job-row:hover {
  border-color: rgba(14,165,233,0.35);
  box-shadow: 0 8px 32px rgba(15,23,42,0.1), 0 2px 8px rgba(14,165,233,0.08);
  -webkit-transform: translateY(-3px); transform: translateY(-3px);
}
.job-row:hover::before { opacity: 1; }

.job-logo {
  width: 52px; height: 52px; border-radius: 14px;
  background: -webkit-linear-gradient(135deg, var(--bg2), var(--bg3));
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1.5px solid var(--border);
  display: -webkit-flex; display: flex;
  -webkit-align-items: center; align-items: center;
  -webkit-justify-content: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  box-shadow: var(--shadow-sm);
  -webkit-transition: -webkit-transform 0.2s, box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s;
}
.job-row:hover .job-logo { -webkit-transform: scale(1.06); transform: scale(1.06); box-shadow: var(--shadow); }
.job-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.job-logo .material-icons-round { color: var(--muted2); font-size: 22px; }

.job-row-body { flex: 1; min-width: 0; }
.job-row-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.2px; transition: color 0.18s;
}
.job-row:hover .job-row-title { color: #0ea5e9; }
.job-row-company {
  font-size: 12px; color: var(--muted); margin-bottom: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 2px;
}
.job-row-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.job-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.job-date { font-size: 11px; color: var(--muted2); white-space: nowrap; }

.btn-apply {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff; border: none; padding: 9px 18px; border-radius: 10px;
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
  white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
  transition: all 0.2s; box-shadow: 0 2px 8px rgba(15,23,42,0.2);
  letter-spacing: 0.1px;
}
.btn-apply:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,0.25); background: linear-gradient(135deg, #1e293b, #334155); }

/* ── JOBS PAGE LAYOUT ── */
.jobs-page-layout { display: flex; gap: 22px; max-width: 1100px; margin: 0 auto; padding: 20px; }

.filters-panel {
  width: 230px; flex-shrink: 0;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 20px; height: fit-content;
  position: sticky; top: 78px; box-shadow: var(--shadow-sm);
}
.filters-panel h3 { font-size: 11px; font-weight: 700; margin-bottom: 18px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.filter-group { margin-bottom: 16px; }
.filter-group label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 7px; }
.filter-search {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius-xs); padding: 8px 10px; transition: all 0.18s;
}
.filter-search:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(14,165,233,0.08); }
.filter-search .material-icons-round { color: var(--muted2); font-size: 16px; }
.filter-search input { background: none; border: none; outline: none; color: var(--text); font-size: 13px; font-family: inherit; width: 100%; }
.filter-group select {
  width: 100%; background: var(--bg2); border: 1.5px solid var(--border);
  color: var(--text); padding: 8px 10px; border-radius: var(--radius-xs);
  font-size: 13px; font-family: inherit; outline: none; transition: all 0.18s; cursor: pointer;
}
.filter-group select:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(14,165,233,0.08); }

.jobs-main { flex: 1; min-width: 0; }
.jobs-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.job-count { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ── MODAL ── */
.modal-box {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 20px; width: 560px; max-width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 28px; position: relative;
  box-shadow: var(--shadow-lg);
}

/* ── FORMS ── */
.post-wrap { max-width: 700px; margin: 0 auto; padding: 32px 20px; }

/* ── MOBILE FILTER BAR ── */
.mobile-filter-bar {
  display: none; gap: 8px; padding: 10px 14px;
  background: var(--card); border-bottom: 1.5px solid var(--border);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-sm);
}
.mobile-filter-bar input,
.mobile-filter-bar select {
  background: var(--bg2); border: 1.5px solid var(--border);
  color: var(--text); padding: 7px 10px; border-radius: 8px;
  font-size: 12px; font-family: inherit; outline: none; flex-shrink: 0;
}

/* ── CTA ── */
.cta-box {
  background: var(--card);
  border: 1.5px solid var(--border-md);
  border-radius: var(--radius); padding: 48px 40px;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.cta-box::before {
  content: '';
  position: absolute; top: -60%; left: -10%;
  width: 120%; height: 200%;
  background: radial-gradient(ellipse, rgba(14,165,233,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box h3 { color: var(--text) !important; }
.cta-box p { color: var(--muted) !important; }
.cta-box .btn-primary {
  background: linear-gradient(135deg, #0f172a, #1e293b) !important;
  box-shadow: 0 4px 16px rgba(15,23,42,0.2) !important;
}

/* ── LOADING SKELETON ── */
.skeleton {
  background: -webkit-linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 400px 100%;
  -webkit-animation: shimmer 1.4s infinite; animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

/* ── API ERROR STATE ── */
.api-error-box {
  text-align: center; padding: 48px 20px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); margin: 20px 0;
}
.api-error-box .material-icons-round { font-size: 48px; color: var(--muted2); display: block; margin-bottom: 12px; }
.api-error-box p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.api-error-box button { min-height: 44px; -webkit-tap-highlight-color: transparent; }

/* ── FOOTER ── */
@media (max-width: 640px) {
  footer > div > div:first-child { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  footer > div > div:first-child > div:first-child { grid-column: 1 / -1; }
  footer > div > div:last-child { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .navbar { padding: 0 14px; height: 54px; gap: 8px; }
  .brand-name { font-size: 15px; }
  .nav-link { padding: 5px 8px; font-size: 12px; }
  .nav-link.active::after { display: none; }
  #navSearchWrap { display: none !important; }

  .hero { padding: 40px 16px 32px; }
  .hero h1 { font-size: 28px; margin-bottom: 20px; }
  .hero-search {
    flex-direction: column; gap: 0; padding: 5px; border-radius: 14px;
    /* Fix iOS shadow clipping */
    margin: 0 4px 20px;
  }
  .search-field { padding: 10px 12px; border-right: none !important; border-left: none !important; }
  .search-field + .search-field { border-top: 1.5px solid var(--border); }
  .btn-primary { width: 100%; padding: 14px; border-radius: 10px; font-size: 15px; }
  .hero-tags { font-size: 11px; }
  .tag-pill { padding: 4px 12px; font-size: 11px; }

  .jobs-page-layout { padding: 10px; gap: 0; }
  .filters-panel { display: none; }
  .mobile-filter-bar { display: flex; }

  /* ── Mobile job row: stack vertically so Apply never overlaps text ── */
  .job-row {
    padding: 12px 14px; gap: 10px; border-radius: 12px;
    flex-wrap: wrap; align-items: flex-start;
  }
  .job-row:hover { transform: none; box-shadow: var(--shadow-sm); }
  .job-logo { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
  .job-row-body { flex: 1; min-width: 0; width: calc(100% - 54px); }
  .job-row-title { font-size: 13px; white-space: normal; }
  .job-row-company { font-size: 11px; margin-bottom: 6px; white-space: normal; }
  .jtag { font-size: 10px; padding: 2px 7px; }
  .jtag-salary { display: none; }
  /* Right panel goes full-width below, row between date and button */
  .job-row-right {
    width: 100%; flex-direction: row; justify-content: space-between;
    align-items: center; gap: 8px; padding-left: 50px;
  }
  .btn-apply { padding: 7px 14px; font-size: 12px; min-height: 36px; }
  .job-date { font-size: 10px; }
  /* FEATURED badge: top-left of card, not overlapping content */
  .badge-new {
    position: static; display: inline-block;
    font-size: 8px; padding: 2px 7px; margin-bottom: 4px;
    box-shadow: none;
  }
  .section-wrap { padding: 20px 14px; }
  .section-title { font-size: 17px; }
  .cta-box { padding: 32px 20px; }

  /* Modal full screen on mobile */
  .modal-box {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 92dvh;
    max-height: 92vh;
    padding: 20px 16px;
    padding-bottom: calc(20px + var(--safe-bottom));
  }

  /* Apply page */
  .apply-wrap { padding: 16px 12px 80px; }
  .frow { grid-template-columns: 1fr !important; }
  .ep-number { font-size: 17px; letter-spacing: 1px; }
}

/* Hover only on real pointer devices */
@media (hover: none) {
  .job-row:hover { transform: none; border-color: var(--border); box-shadow: var(--shadow-sm); }
  .job-row:hover::before { opacity: 0; }
  .job-row:hover .job-logo { transform: none; }
  .job-row:hover .job-row-title { color: var(--text); }
  .btn-primary:hover { transform: none; }
  .btn-apply:hover { transform: none; }
  .tag-pill:hover { transform: none; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .jobs-page-layout { flex-direction: column; padding: 16px; }
  .filters-panel { width: 100%; position: static; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 16px; }
  .filters-panel h3 { width: 100%; margin-bottom: 0; }
  .filter-group { margin-bottom: 0; flex: 1; min-width: 140px; }
}

/* ── INLINE FILTER BAR ── */
@media (max-width: 640px) {
  .inline-filter-bar { flex-wrap: wrap; }
  .inline-filter-bar select { flex: 1; min-width: 120px; }
}
