/* ============================================================
   JOB PAGES — search, detail, profile
   ============================================================ */

/* utility size variants */
.btn-lg { padding: 14px 28px; font-size: 14px; }

/* ============================================================
   SEARCH HERO
   ============================================================ */
.srch-hero {
  position: relative;
  padding: 56px 0 48px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--asb-navy) 0%, #1A2240 100%);
  color: var(--paper);
}
.srch-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.srch-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.srch-blob-1 {
  top: -120px; left: -80px;
  width: 360px; height: 360px;
  background: var(--asb-orange);
  animation: srch-float-a 14s ease-in-out infinite;
}
.srch-blob-2 {
  bottom: -160px; right: -80px;
  width: 420px; height: 420px;
  background: #4357A0;
  animation: srch-float-b 18s ease-in-out infinite;
}
@keyframes srch-float-a {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, 30px); }
}
@keyframes srch-float-b {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-50px, -20px); }
}
.srch-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 0%, transparent 80%);
}

.srch-hero-inner {
  position: relative;
  text-align: center;
}
.srch-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(245,130,32,0.12);
  border: 1px solid rgba(245,130,32,0.3);
  color: var(--asb-orange-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.srch-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--asb-orange);
  box-shadow: 0 0 0 0 rgba(245,130,32,0.7);
  animation: srch-pulse-key 1.6s ease-out infinite;
}
@keyframes srch-pulse-key {
  to { box-shadow: 0 0 0 8px rgba(245,130,32,0); }
}

.srch-title {
  font-family: var(--font-bn);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 32px;
  color: var(--paper);
  text-wrap: balance;
}
body.lang-en .srch-title { font-family: var(--font-display); letter-spacing: -0.04em; }
.srch-rotate {
  font-family: var(--font-bn-display);
  font-style: italic;
  font-weight: 500;
  color: var(--asb-orange-bright);
  display: inline-block;
  animation: srch-rot-in 0.6s ease;
}
body.lang-en .srch-rotate { font-family: var(--font-display); font-weight: 600; }
@keyframes srch-rot-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* search bar */
.srch-bar {
  display: grid;
  grid-template-columns: 1fr 1px 1fr auto;
  gap: 8px;
  align-items: center;
  background: var(--surface);
  border-radius: 100px;
  padding: 6px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.4);
}
.srch-bar-field {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
}
.srch-bar-icon { color: var(--ink-3); display: flex; }
.srch-bar-icon svg { width: 18px; height: 18px; }
.srch-bar input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  padding: 14px 0;
  min-width: 0;
}
.srch-bar input::placeholder { color: var(--ink-muted); }
.srch-bar-divider { width: 1px; height: 28px; background: var(--line); }
.srch-bar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--asb-orange);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.srch-bar-btn:hover { background: var(--asb-orange-bright); transform: translateY(-1px); }
.srch-bar-btn svg { width: 14px; height: 14px; }

.srch-quick {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 22px;
}
.srch-quick-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,244,237,0.6);
}
.srch-quick-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--paper);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
}
.srch-quick-chip:hover {
  background: rgba(245,130,32,0.18);
  border-color: var(--asb-orange);
  color: var(--asb-orange-bright);
}

@media (max-width: 720px) {
  .srch-title { font-size: 36px; }
  .srch-bar { grid-template-columns: 1fr; padding: 12px; border-radius: var(--r-lg); }
  .srch-bar-divider { display: none; }
  .srch-bar-btn { width: 100%; justify-content: center; }
}

/* ============================================================
   RESULTS LAYOUT
   ============================================================ */
.srch-results {
  background: var(--paper);
  padding: 32px 0 64px;
}
.srch-results-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

/* FILTERS sidebar */
.srch-filters {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 22px;
  position: sticky;
  top: 16px;
  box-shadow: var(--shadow-1);
}
.srch-filters-head {
  display: flex; justify-content: space-between; align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 18px;
}
.srch-filters-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.srch-filters-count {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}
.srch-filters-count strong {
  color: var(--asb-orange);
  font-family: var(--font-display);
  font-size: 14px;
  margin-right: 4px;
}
.srch-filters-reset {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 100px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.srch-filters-reset:hover { border-color: var(--asb-orange); color: var(--asb-orange); }

.srch-fg {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line-soft);
}
.srch-fg:last-child { border-bottom: none; padding-bottom: 0; }
.srch-fg-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
}
body.lang-bn .srch-fg-label { letter-spacing: 0.04em; font-size: 12.5px; }
.srch-fg-opts {
  display: flex; flex-wrap: wrap;
  gap: 6px;
}
.srch-fg-opt {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s;
}
.srch-fg-opt:hover { border-color: var(--asb-orange); color: var(--asb-orange); }
.srch-fg-opt.is-on {
  background: var(--asb-navy);
  border-color: var(--asb-navy);
  color: var(--paper);
}

/* salary slider */
.srch-salary-display {
  margin-bottom: 8px;
}
.srch-salary-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--asb-navy);
  letter-spacing: -0.01em;
}
body.lang-bn .srch-salary-num { font-family: var(--font-bn); font-weight: 700; }
.srch-salary-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: linear-gradient(90deg, var(--asb-orange) 0%, var(--asb-orange) var(--p, 0%), var(--line) var(--p, 0%));
  border-radius: 100px;
  outline: none;
}
.srch-salary-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--asb-orange);
  border: 3px solid var(--surface);
  box-shadow: 0 2px 6px rgba(245,130,32,0.4);
  cursor: pointer;
}
.srch-salary-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--asb-orange);
  border: 3px solid var(--surface);
  cursor: pointer;
}
.srch-salary-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 9.5px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* AI assist card */
.srch-ai-card {
  margin-top: 22px;
  padding: 14px;
  background: linear-gradient(135deg, var(--asb-navy) 0%, #1A2240 100%);
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: 10px;
  position: relative;
  overflow: hidden;
}
.srch-ai-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, var(--asb-orange) 0%, transparent 70%);
  opacity: 0.4;
}
.srch-ai-spark {
  width: 36px; height: 36px;
  background: var(--asb-orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.srch-ai-spark svg { width: 18px; height: 18px; }
.srch-ai-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.srch-ai-title { font-size: 13px; font-weight: 700; color: var(--paper); }
.srch-ai-sub { font-size: 11px; color: rgba(247,244,237,0.6); margin-top: 2px; }

.srch-ai-toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; z-index: 1; }
.srch-ai-toggle input { opacity: 0; width: 0; height: 0; }
.srch-ai-toggle span {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
}
.srch-ai-toggle span::before {
  content: ''; position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: white;
  top: 3px; left: 3px;
  transition: transform 0.2s;
}
.srch-ai-toggle input:checked + span { background: var(--asb-orange); }
.srch-ai-toggle input:checked + span::before { transform: translateX(16px); }

/* ============================================================
   RESULTS MAIN
   ============================================================ */
.srch-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 16px;
  padding: 0 4px;
}
.srch-result-count {
  font-size: 13px; color: var(--ink-3);
}
.srch-result-count strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-right: 6px;
}
.srch-result-q { color: var(--asb-orange); margin-left: 6px; font-weight: 600; }

.srch-sort {
  display: flex; align-items: center; gap: 10px;
}
.srch-sort-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.srch-sort-pills {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px;
}
.srch-sort-pill {
  background: transparent;
  border: none;
  color: var(--ink-3);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.srch-sort-pill.is-on { background: var(--ink); color: var(--paper); }

/* JOB CARD */
.srch-list {
  display: flex; flex-direction: column;
  gap: 12px;
}
.srch-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 22px;
  cursor: pointer;
  transition: all 0.25s;
  overflow: hidden;
}
.srch-card:hover {
  border-color: var(--asb-orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(42,54,86,0.18);
}
.srch-card.is-featured {
  border-color: var(--gold-soft);
  background:
    linear-gradient(135deg, rgba(245,130,32,0.04) 0%, transparent 50%),
    var(--surface);
}

.srch-card-rib {
  position: absolute; top: 0; right: 22px;
  background: var(--asb-orange);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: 0 0 6px 6px;
  display: inline-flex; align-items: center; gap: 4px;
}
.srch-card-rib svg { width: 11px; height: 11px; }

.srch-card-top {
  display: flex; gap: 14px; align-items: start;
  margin-bottom: 12px;
}
.srch-card-logo {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  color: white;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.srch-card-meta { flex: 1; min-width: 0; padding-top: 4px; }
.srch-card-co {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: -0.005em;
}
.srch-card-verified {
  display: inline-flex;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--live);
  color: white;
  align-items: center; justify-content: center;
}
.srch-card-verified svg { width: 10px; height: 10px; }
.srch-card-loc {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}
.srch-card-loc svg { width: 12px; height: 12px; }

.srch-card-actions {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 8px;
}
.srch-card-match {
  display: flex; flex-direction: column; align-items: flex-end;
  padding: 4px 10px;
  border-radius: var(--r-md);
  background: var(--gold-mist);
  border: 1px solid var(--gold-soft);
}
.srch-card-match[data-tier="high"] { background: #DCEAD9; border-color: #B5CDB1; }
.srch-card-match[data-tier="mid"]  { background: var(--saffron-soft); border-color: #DDB876; }
.srch-card-match[data-tier="low"]  { background: var(--surface-2); border-color: var(--line); }
.srch-card-match-num {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 800;
  color: var(--asb-navy);
  line-height: 1;
}
.srch-card-match[data-tier="high"] .srch-card-match-num { color: var(--live); }
.srch-card-match-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.srch-card-save {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.srch-card-save svg { width: 16px; height: 16px; }
.srch-card-save:hover { color: var(--asb-orange); border-color: var(--asb-orange); }
.srch-card-save.is-saved { background: var(--asb-orange); border-color: var(--asb-orange); color: white; }

.srch-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.srch-card-urgent {
  background: var(--urgent);
  color: white;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 2px 8px;
  border-radius: 4px;
  animation: srch-urgent-pulse 1.5s ease-in-out infinite;
}
@keyframes srch-urgent-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

.srch-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 16px;
}
.srch-card-tag {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
}

.srch-card-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
}
.srch-card-salary {
  display: inline-flex; align-items: baseline; gap: 2px;
}
.srch-card-salary-cur {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--asb-orange);
}
.srch-card-salary-num {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
body.lang-bn .srch-card-salary-num { font-family: var(--font-bn); font-weight: 700; }
.srch-card-salary-per {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  margin-left: 2px;
}
.srch-card-foot-meta {
  display: inline-flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-3);
}
.srch-card-foot-meta > span {
  display: inline-flex; align-items: center; gap: 4px;
}
.srch-card-foot-meta svg { width: 12px; height: 12px; }
.srch-card-app span:nth-child(2) { font-weight: 700; color: var(--ink); }

/* empty state */
.srch-empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 64px 32px;
  text-align: center;
}
.srch-empty-icon { font-size: 48px; margin-bottom: 14px; opacity: 0.7; }
.srch-empty-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.srch-empty-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; }

.srch-load-more { text-align: center; margin-top: 22px; padding: 22px 0; }

/* responsive */
@media (max-width: 920px) {
  .srch-results-grid { grid-template-columns: 1fr; }
  .srch-filters { position: static; }
}

/* mark active nav item */
.nav-item.is-active {
  color: var(--asb-orange);
  position: relative;
}
.nav-item.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 8px; right: 8px;
  height: 2px;
  background: var(--asb-orange);
  border-radius: 2px;
}
