/* assets/css/jobs.css
   WorkAbilities Jobs Page — clean frontend styling only.
   Keeps jobs.js IDs and functionality untouched.
*/

/* =========================================================
   PAGE HERO
   ========================================================= */

.jobs-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.4rem, 5vw, 4.2rem) 0;
  color: #fff;
  background:
    radial-gradient(circle at 8% 12%, rgba(16,185,129,0.2), transparent 30%),
    radial-gradient(circle at 90% 85%, rgba(245,158,11,0.14), transparent 32%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
}

.jobs-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.55;
  pointer-events: none;
}

.jobs-page-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -120px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  filter: blur(2px);
  pointer-events: none;
}

.jobs-hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.82fr);
  gap: clamp(1.25rem, 3vw, 2.2rem);
  align-items: center;
}

.jobs-hero-copy {
  max-width: 760px;
}

.jobs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(2,6,23,0.12);
}

.jobs-hero-copy h1 {
  max-width: 720px;
  margin: 0.85rem 0 0.78rem;
  font-family: var(--brand-font);
  font-size: clamp(1.9rem, 4.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.jobs-hero-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,0.84);
  font-size: 1rem;
  line-height: 1.72;
}

.jobs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.jobs-page-hero .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0.78rem 1rem;
  font-weight: 800;
}

.btn-light-soft {
  background: rgba(255,255,255,0.94);
  color: #1e3a8a;
  border: 1px solid rgba(255,255,255,0.55);
}

.btn-light-soft:hover,
.btn-light-soft:focus {
  background: #fff;
  color: #16306a;
}

/* Hero right panel */
.jobs-hero-panel {
  align-self: stretch;
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 28px;
  background: rgba(255,255,255,0.07);
  box-shadow: 0 22px 55px rgba(2,6,23,0.18);
  backdrop-filter: blur(12px);
}

.jobs-hero-panel-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: center;
  padding: 0.95rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  transition: transform 0.18s ease, background 0.18s ease;
}

.jobs-hero-panel-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
}

.hero-panel-icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 1rem;
}

.jobs-hero-panel-card strong {
  display: block;
  margin-bottom: 0.1rem;
  font-family: var(--brand-font);
  color: #fff;
  font-size: 0.98rem;
}

.jobs-hero-panel-card span {
  color: rgba(255,255,255,0.78);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* =========================================================
   TRUST STRIP
   ========================================================= */

.jobs-trust-strip {
  background: #ffffff;
  border-bottom: 1px solid rgba(15,23,42,0.07);
}

.jobs-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.9rem 0;
}

.jobs-trust-item {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,0.07);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(15,23,42,0.035);
}

.jobs-trust-item i {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(30,58,138,0.08);
  color: var(--color-primary);
  flex: 0 0 30px;
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

#jobsSection {
  padding-top: 32px;
  padding-bottom: 58px;
  background:
    radial-gradient(circle at top left, rgba(30,58,138,0.06), transparent 28%),
    #f8fafc;
}

#jobsSection .jobs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 1.5rem;
  align-items: start;
}

#jobsSection .jobs-main {
  min-width: 0;
}

/* Header before filters */
#jobsSection .jobs-header-upgraded {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.1rem;
  margin-bottom: 1rem;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.055);
}

.jobs-section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.55rem;
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  background: rgba(16,185,129,0.1);
  color: #047857;
  border: 1px solid rgba(16,185,129,0.16);
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#jobsSection #jobsHeading {
  margin: 0 0 0.25rem;
  font-family: var(--brand-font);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

#jobsSection .jobs-sub {
  max-width: 620px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.jobs-profile-nudge {
  flex: 0 0 auto;
  max-width: 305px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(30,58,138,0.09), transparent 35%),
    #ffffff;
  border: 1px solid rgba(30,58,138,0.13);
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(15,23,42,0.055);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.jobs-profile-nudge i {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 999px;
  background: rgba(30,58,138,0.09);
  color: var(--color-primary);
}

.jobs-profile-nudge:hover,
.jobs-profile-nudge:focus {
  transform: translateY(-1px);
  background: var(--color-primary);
  color: #fff;
}

.jobs-profile-nudge:hover i,
.jobs-profile-nudge:focus i {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* =========================================================
   FILTER BAR
   ========================================================= */

#jobsSection .filter-bar {
  position: sticky;
  top: calc(var(--nav-height, 64px) + 10px);
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 160px auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem;
  margin: 0 0 1rem;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 16px 40px rgba(15,23,42,0.07);
  border-radius: 22px;
}

#jobsSection .filter-field {
  min-width: 0;
}

#jobsSection .filter-field input,
#jobsSection .filter-field select:not(.native-hidden),
.enhanced-select-wrapper .enhanced-trigger {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.1);
  background-color: #fff;
  color: var(--text-primary);
  font-size: 0.94rem;
}

#jobsSection .filter-field input {
  padding: 0.7rem 0.85rem;
}

#jobsSection .filter-field input:focus,
#jobsSection .filter-field select:focus,
.enhanced-select-wrapper .enhanced-trigger:focus {
  border-color: rgba(30,58,138,0.55);
  box-shadow: 0 0 0 0.18rem rgba(30,58,138,0.12);
}

#jobsSection .filter-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

#jobsSection .filter-actions .btn {
  min-height: 46px;
  border-radius: 14px;
  font-weight: 800;
}

/* =========================================================
   JOB CARDS
   ========================================================= */

#jobsSection .job-cards {
  display: grid;
  gap: 1rem;
}

#jobsSection .job-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.15rem 1.15rem 1.25rem;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15,23,42,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#jobsSection .job-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  opacity: 0.85;
}

#jobsSection .job-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30,58,138,0.18);
  box-shadow: 0 20px 48px rgba(15,23,42,0.1);
}

#jobsSection .job-title {
  margin: 0 0 0.45rem;
  font-family: var(--brand-font);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

#jobsSection .job-meta {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

#jobsSection .job-meta strong {
  color: var(--text-primary);
  font-weight: 800;
}

#jobsSection .job-summary {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  margin-bottom: 0;
  overflow: hidden;
  color: var(--text-secondary);
  line-height: 1.65;
}

#jobsSection .job-cta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

#jobsSection .job-cta .btn-primary {
  min-width: 128px;
  padding: 10px 14px;
  font-weight: 800;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(30,58,138,0.18);
}

#jobsSection .save-btn {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.1);
  background: #fff;
  color: #64748b;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

#jobsSection .save-btn svg {
  width: 18px;
  height: 18px;
}

#jobsSection .save-btn:hover,
#jobsSection .save-btn:focus {
  transform: translateY(-1px);
  border-color: rgba(30,58,138,0.28);
  color: var(--color-primary);
}

#jobsSection .save-btn[aria-pressed="true"] {
  background: rgba(245,158,11,0.13);
  border-color: rgba(245,158,11,0.3);
  color: #b45309;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.jobs-aside {
  display: grid;
  gap: 1rem;
}

.jobs-aside > * {
  width: 100%;
}

.jobs-aside .ad-card,
.jobs-aside .alert-card,
.career-help-card,
.popular-search-card {
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15,23,42,0.06);
  overflow: hidden;
}

.jobs-aside .ad-card {
  position: relative;
  padding: 0;
}

.jobs-aside .alert-card,
.career-help-card,
.popular-search-card {
  padding: 1rem;
}

.jobs-aside .ad-media img {
  width: 100%;
  min-height: 170px;
  object-fit: cover;
}

.jobs-aside .ad-body {
  padding: 1rem;
}

.jobs-aside .ad-body h3,
.jobs-aside .alert-card h3,
.career-help-card h3,
.popular-search-card h3 {
  font-family: var(--brand-font);
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.jobs-aside .ad-body p,
.jobs-aside .alert-sub,
.career-help-card p {
  color: var(--text-secondary);
  line-height: 1.55;
}

.jobs-aside .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  font-weight: 700;
}

.jobs-aside .alert-form {
  display: grid;
  gap: 0.65rem;
}

.jobs-aside .alert-form input,
.jobs-aside .alert-form button {
  width: 100%;
}

.alert-form input {
  min-height: 44px;
  border-radius: 14px;
}

.career-help-card {
  background:
    radial-gradient(circle at top left, rgba(16,185,129,0.12), transparent 35%),
    #fff;
}

.career-help-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  border-radius: 17px;
  background: rgba(30,58,138,0.09);
  color: var(--color-primary);
  font-size: 1.1rem;
}

.popular-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.popular-search-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.popular-search-tags a:hover,
.popular-search-tags a:focus {
  background: var(--color-primary);
  color: #fff;
}

/* =========================================================
   PAGINATION / STATES
   ========================================================= */

#jobsSection .pagination {
  margin-top: 1.3rem;
}

#jobsSection .page-btn,
#jobsSection .page-number {
  min-width: 42px;
  min-height: 42px;
  border-radius: 13px;
}

#jobsSection .empty-state {
  text-align: center;
  padding: 44px 18px;
  color: var(--text-secondary);
  border: 1px dashed rgba(15,23,42,0.16);
  border-radius: 24px;
  background: #fff;
}

#jobsSection .skeleton {
  height: 12px;
  border-radius: 999px;
}

.enhanced-options {
  z-index: 16000;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {
  .jobs-hero-shell {
    grid-template-columns: 1fr;
  }

  .jobs-hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: auto;
  }

  .jobs-hero-panel-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    min-height: 140px;
  }

  .hero-panel-icon {
    grid-row: auto;
  }

  .jobs-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #jobsSection .jobs-grid {
    grid-template-columns: 1fr;
  }

  #jobsSection .filter-bar {
    position: relative;
    top: auto;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .jobs-page-hero {
    padding: 2rem 0 1.6rem;
  }

  .jobs-hero-copy h1 {
    font-size: clamp(1.85rem, 9vw, 2.65rem);
  }

  .jobs-hero-copy p {
    font-size: 0.96rem;
  }

  .jobs-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .jobs-hero-actions .btn {
    width: 100%;
  }

  .jobs-hero-panel {
    padding: 0.65rem;
    border-radius: 22px;
    grid-template-columns: 1fr;
  }

  .jobs-hero-panel-card {
    min-height: auto;
    grid-template-columns: 44px minmax(0, 1fr);
    text-align: left;
    justify-items: start;
  }

  .hero-panel-icon {
    grid-row: span 2;
  }

  .jobs-trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .jobs-trust-item {
    justify-content: flex-start;
    border-radius: 16px;
    min-height: 58px;
    padding: 0.75rem;
  }

  #jobsSection {
    padding-top: 24px;
  }

  #jobsSection .jobs-header-upgraded {
    align-items: stretch;
    flex-direction: column;
    padding: 1rem;
    border-radius: 20px;
  }

  .jobs-profile-nudge {
    max-width: 100%;
    width: 100%;
  }

  #jobsSection .filter-bar {
    grid-template-columns: 1fr;
    border-radius: 18px;
    padding: 0.85rem;
  }

  #jobsSection .filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  #jobsSection .filter-actions .btn {
    width: 100%;
  }

  #jobsSection .job-card {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  #jobsSection .job-cta {
    justify-content: space-between;
    width: 100%;
  }

  #jobsSection .job-cta .btn-primary {
    flex: 1;
  }

  #jobsSection .save-btn {
    flex: 0 0 46px;
  }
}

@media (max-width: 460px) {
  .jobs-trust-grid {
    grid-template-columns: 1fr;
  }

  .jobs-hero-panel-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .hero-panel-icon {
    width: 40px;
    height: 40px;
  }

  .jobs-aside .ad-media img {
    min-height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #jobsSection .job-card,
  #jobsSection .save-btn,
  .popular-search-tags a,
  .jobs-hero-panel-card,
  .jobs-profile-nudge {
    transition: none !important;
  }

  #jobsSection .job-card:hover,
  .jobs-hero-panel-card:hover,
  .jobs-profile-nudge:hover {
    transform: none;
  }
}
/* =========================================================
   JOBS PAGE TOP AREA — FINAL V2 RESTYLE
   This fixes the rough hero/trust/latest-jobs top area.
   ========================================================= */

/* Hide old top layout styling where class names still exist */
.jobs-page-hero.jobs-hero-v2 {
  padding: clamp(2.2rem, 5vw, 4rem) 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(16,185,129,0.22), transparent 32%),
    radial-gradient(circle at 92% 88%, rgba(245,158,11,0.15), transparent 32%),
    linear-gradient(135deg, #0b1220 0%, #172554 52%, #1e40af 100%);
  color: #fff;
  overflow: hidden;
}

.jobs-hero-v2::before {
  opacity: 0.45;
}

/* Main hero layout */
.jobs-hero-v2-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
  gap: clamp(1.4rem, 4vw, 2.5rem);
  align-items: center;
}

/* Left content */
.jobs-hero-v2-copy {
  max-width: 760px;
}

.jobs-kicker-v2 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jobs-hero-v2-copy h1 {
  max-width: 730px;
  margin: 0.95rem 0 0.8rem;
  font-family: var(--brand-font);
  font-size: clamp(2rem, 4.8vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.jobs-hero-v2-copy p {
  max-width: 610px;
  margin: 0;
  color: rgba(255,255,255,0.84);
  font-size: 1.02rem;
  line-height: 1.72;
}

/* Buttons */
.jobs-hero-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

.jobs-hero-v2-actions .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-weight: 800;
}

.btn-hero-white {
  background: #fff;
  color: #1e3a8a;
  border: 1px solid rgba(255,255,255,0.75);
}

.btn-hero-white:hover,
.btn-hero-white:focus {
  background: #f8fafc;
  color: #16306a;
}

.btn-hero-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}

.btn-hero-ghost:hover,
.btn-hero-ghost:focus {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Right card */
.jobs-hero-v2-card {
  display: grid;
  gap: 0.8rem;
  padding: 0.85rem;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.07));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 24px 70px rgba(2,6,23,0.22);
  backdrop-filter: blur(14px);
}

.hero-feature-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-height: 92px;
  padding: 0.95rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.13);
}

.hero-feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.17);
  color: #fff;
}

.hero-feature-row strong {
  display: block;
  margin-bottom: 0.18rem;
  font-family: var(--brand-font);
  color: #fff;
  font-size: 1rem;
}

.hero-feature-row span {
  display: block;
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Trust strip should sit like a floating white card */
.jobs-trust-v2 {
  position: relative;
  z-index: 5;
  margin-top: -22px;
  background: transparent;
}

.jobs-trust-v2-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.8rem;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 20px 55px rgba(15,23,42,0.11);
}

.trust-v2-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.75rem;
  border-radius: 18px;
  background: #f8fafc;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 800;
}

.trust-v2-item i {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 999px;
  background: rgba(30,58,138,0.08);
  color: var(--color-primary);
}

/* Pull jobs section neatly after floating trust card */
#jobsSection {
  padding-top: 34px !important;
}

/* Latest Jobs top card */
.jobs-list-top-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1.05rem;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 16px 42px rgba(15,23,42,0.07);
}

.jobs-section-label-v2 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 0.55rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.16);
  color: #047857;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.jobs-list-title-v2 h2 {
  margin: 0 0 0.25rem;
  font-family: var(--brand-font);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.jobs-list-title-v2 p {
  max-width: 640px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.jobs-profile-card-v2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 58px;
  padding: 0.8rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(30,58,138,0.09), transparent 36%),
    #f8fafc;
  border: 1px solid rgba(30,58,138,0.12);
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 850;
}

.jobs-profile-card-v2 i {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 8px 22px rgba(15,23,42,0.07);
}

.jobs-profile-card-v2:hover,
.jobs-profile-card-v2:focus {
  background: var(--color-primary);
  color: #fff;
}

.jobs-profile-card-v2:hover i,
.jobs-profile-card-v2:focus i {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

/* Disable old top blocks if old classes accidentally remain */
.jobs-hero-shell,
.jobs-hero-panel,
.jobs-trust-strip,
.jobs-trust-grid,
.jobs-trust-item,
.jobs-header-upgraded,
.jobs-profile-nudge {
  /* no forced styling here; v2 classes now control the new top layout */
}

/* Mobile */
@media (max-width: 992px) {
  .jobs-hero-v2-grid {
    grid-template-columns: 1fr;
  }

  .jobs-hero-v2-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-feature-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 150px;
  }

  .jobs-trust-v2-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jobs-list-top-v2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .jobs-page-hero.jobs-hero-v2 {
    padding: 2rem 0 2.2rem;
  }

  .jobs-hero-v2-copy h1 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .jobs-hero-v2-copy p {
    font-size: 0.96rem;
  }

  .jobs-hero-v2-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .jobs-hero-v2-actions .btn {
    width: 100%;
  }

  .jobs-hero-v2-card {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-feature-row {
    grid-template-columns: 44px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    min-height: auto;
  }

  .hero-feature-icon {
    width: 44px;
    height: 44px;
  }

  .jobs-trust-v2 {
    margin-top: -16px;
  }

  .jobs-trust-v2-card {
    grid-template-columns: 1fr 1fr;
    border-radius: 20px;
  }

  .trust-v2-item {
    align-items: flex-start;
    border-radius: 16px;
    line-height: 1.35;
  }

  .jobs-list-top-v2 {
    border-radius: 22px;
    padding: 1rem;
  }

  .jobs-profile-card-v2 {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .jobs-trust-v2-card {
    grid-template-columns: 1fr;
  }
}