/* jobs – ported 1:1 from the old site */
.jobs-section,
    .jobs-section * {
      box-sizing: border-box;
    }

    .jobs-section {
      --accent: var(--ag-primary);
      --accent-dark: #262626;
      --text: #000;
      --muted: #555;

      width: 100%;
      max-width: 100%;
      margin: 0;
      padding: 0;
      color: var(--text);
      background: transparent;
      font-family: var(--ag-font);
    }

    /* ---------- Header ---------- */

    .jobs-header {
      width: 100%;
      max-width: 1100px;
      margin: 0 auto 32px;
      padding: 0;
    }

    .jobs-heading-wrap {
      width: 100%;
      max-width: 1100px;
    }

    .jobs-kicker {
      display: inline-flex;
      width: fit-content;
      max-width: max-content;
      align-items: center;
      gap: 8px;
      margin: 0 0 16px;
      padding: 9px 16px;
      border-radius: 999px;
      background: var(--accent);
      color: #fff;
      font-size: .78rem;
      font-weight: 800;
      line-height: 1;
      letter-spacing: .08em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .jobs-kicker::before {
      content: "";
      width: 8px;
      height: 8px;
      flex: 0 0 8px;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 0 0 5px rgba(255, 255, 255, .16);
    }

    .jobs-title {
      margin: 0;
      color: #000;
      font-size: clamp(2.4rem, 6vw, 5.5rem);
      font-weight: 700;
      line-height: .96;
      letter-spacing: -.04em;
    }

    .jobs-intro {
      max-width: 900px;
      margin: 18px 0 36px 0px;
      color: var(--muted);
      font-size: clamp(1rem, 1.6vw, 1.2rem);
      line-height: 1.65;
    }

    /* ---------- Slider ---------- */

    .jobs-slider {
      width: 100%;
      overflow: hidden;
    }

    .jobs-track {
      display: flex;
      gap: 22px;
      width: 100%;
      overflow-x: auto;
      padding: 0 0 24px;
      scroll-padding-left: 0;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
    }

    .jobs-track::-webkit-scrollbar {
      display: none;
    }

    /* ---------- Cards ---------- */

    .job-card {
      flex: 0 0 calc((100% - 66px) / 4);
      min-width: 0;
      min-height: 520px;
      padding: 28px;

      display: grid;
      grid-template-rows: auto auto auto 1fr auto;
      align-items: start;

      scroll-snap-align: start;
      overflow: visible;
      border: 0;
      border-radius: 5px;
      background: #fff;
      box-shadow: 0 10px 24px rgba(0, 0, 0, .06);

      transition:
        transform .25s ease,
        box-shadow .25s ease;
    }

    .job-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 18px 36px rgba(0, 0, 0, .11);
    }

    /* ---------- Status ---------- */

    .job-status {
      display: inline-flex;
      width: fit-content;
      max-width: max-content;
      align-items: center;
      justify-self: start;
      align-self: start;
      gap: 8px;
      padding: 8px 13px;
      border-radius: 999px;
      background: var(--accent);
      color: #fff;
      font-size: .72rem;
      font-weight: 800;
      line-height: 1;
      letter-spacing: .07em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .job-status::before {
      content: "";
      width: 7px;
      height: 7px;
      flex: 0 0 7px;
      border-radius: 50%;
      background: #fff;
      animation: jobPulse 1.8s ease-in-out infinite;
    }

    /* ---------- Card text ---------- */

    .job-card h3 {
      margin: 22px 0 14px;
      color: #000;
      font-size: clamp(1.35rem, 1.9vw, 1.75rem);
      font-weight: 700;
      line-height: 1.15;
      letter-spacing: -.04em;
      overflow-wrap: anywhere;
    }

    .job-card h3 .job-gender {
      display: inline-block;
      margin-left: .2em;
      color: var(--muted);
      font-size: .48em;
      font-weight: 700;
      line-height: 1;
      letter-spacing: 0;
      vertical-align: middle;
    }

    .job-card p {
      margin: 0;
      color: var(--muted);
      font-size: .94rem;
      line-height: 1.65;
    }

    /* ---------- Benefits ---------- */

    .job-benefits {
      display: grid;
      gap: 11px;
      margin: 24px 0 28px;
      padding: 0;
      list-style: none;
    }

    .job-benefits li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: #000;
      font-size: .9rem;
      line-height: 1.45;
    }

    .job-check {
      display: inline-grid;
      place-items: center;
      flex: 0 0 22px;
      width: 22px;
      height: 22px;
      margin-top: 1px;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      font-size: .74rem;
      font-weight: 900;
    }

    /* ---------- Apply button ---------- */

    .apply-button {
      position: relative;
      isolation: isolate;
      overflow: hidden;

      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;

      width: auto;
      min-height: 44px;
      padding: 11px 18px;
      align-self: flex-start;

      border-radius: 999px;
      background: var(--accent);
      color: #fff !important;
      font-size: .88rem;
      font-weight: 800;
      text-decoration: none !important;
      box-shadow: 0 10px 22px rgba(0, 0, 0, .12);

      transition:
        transform .25s ease,
        background-color .25s ease,
        box-shadow .25s ease;
    }

    .apply-button::before {
      content: "";
      position: absolute;
      z-index: -1;
      top: 0;
      left: -130%;
      width: 65%;
      height: 100%;
      transform: skewX(-24deg);
      background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, .4),
        transparent
      );
      animation: buttonShine 3s ease-in-out infinite;
    }

    .apply-button::after {
      content: "→";
      transition: transform .25s ease;
    }

    .apply-button:hover,
    .apply-button:focus-visible {
      background: var(--accent-dark);
      color: #fff !important;
      transform: translateY(-3px);
      box-shadow: 0 16px 28px rgba(0, 0, 0, .18);
    }

    .apply-button:hover::after,
    .apply-button:focus-visible::after {
      transform: translateX(5px);
    }

    .apply-button:focus-visible {
      outline: 3px solid rgba(38, 38, 38, .25);
      outline-offset: 4px;
    }

    /* ---------- Controls ---------- */

    .jobs-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-top: 18px;
    }

    .jobs-arrow {
      display: inline-grid;
      place-items: center;
      width: 42px;
      height: 42px;
      padding: 0;
      border: 0;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      font: inherit;
      font-size: 1.15rem;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(0, 0, 0, .12);

      transition:
        transform .2s ease,
        background-color .2s ease,
        opacity .2s ease;
    }

    .jobs-arrow:hover,
    .jobs-arrow:focus-visible {
      background: var(--accent-dark);
      transform: translateY(-2px);
    }

    .jobs-arrow:disabled {
      opacity: .35;
      cursor: default;
      transform: none;
    }

    .jobs-arrow:focus-visible {
      outline: 3px solid rgba(38, 38, 38, .25);
      outline-offset: 3px;
    }

    /* ---------- Animations ---------- */

    @keyframes buttonShine {
      0%,
      58% {
        left: -130%;
      }

      78%,
      100% {
        left: 150%;
      }
    }

    @keyframes jobPulse {
      0%,
      100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .4);
      }

      50% {
        transform: scale(1.12);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
      }
    }

    /* ---------- Tablet ---------- */

    @media (max-width: 1100px) {
      .job-card {
        flex-basis: calc((100% - 22px) / 2);
      }
    }

    /* ---------- Mobile / narrow tablets ---------- */

    @media (max-width: 820px) {
      .jobs-header {
        margin-bottom: 24px;
        padding: 0;
      }

      .jobs-title {
        font-size: clamp(2.25rem, 12vw, 3.5rem);
        line-height: 1;
      }

      .jobs-intro {
        font-size: .96rem;
        line-height: 1.6;
      }

      .jobs-slider {
        overflow: visible;
      }

      .jobs-track {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        padding: 0 0 22px;
        overflow: visible;
        scroll-behavior: auto;
        scroll-snap-type: none;
        scroll-padding-left: 0;
      }

      .job-card {
        flex: none;
        width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 24px 20px;
        scroll-snap-align: none;
      }

      .job-card:hover {
        transform: none;
      }

      .job-status {
        padding: 7px 11px;
        font-size: .68rem;
      }

      .job-card h3 {
        margin: 20px 0 12px;
        font-size: 1.35rem;
        line-height: 1.15;
      }

      .job-card p {
        font-size: .9rem;
        line-height: 1.6;
      }

      .job-benefits {
        gap: 10px;
        margin: 22px 0 24px;
      }

      .job-benefits li {
        gap: 9px;
        font-size: .86rem;
      }

      .job-check {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
        font-size: .68rem;
      }

      .apply-button {
        width: 100%;
        min-height: 44px;
        padding: 11px 16px;
        font-size: .84rem;
      }

      .jobs-controls {
        display: none;
      }
    }

    /* ---------- Reduced motion ---------- */

    @media (prefers-reduced-motion: reduce) {
      .jobs-track {
        scroll-behavior: auto;
      }

      .job-status::before,
      .apply-button::before {
        animation: none;
      }

      .job-card,
      .apply-button,
      .jobs-arrow {
        transition: none;
      }
    }.jobs-empty { max-width: 1100px; margin: 0 auto; padding: 1.4rem 1.6rem; border-radius: 16px; background: var(--ag-cream); border: 1px dashed #e3ddd4; font-weight: 500; }

/* Grid instead of slider: panels on the content grid */
.jobs-section--grid .jobs-header { max-width: none; margin-inline: 0; padding-inline: 0; }
.jobs-section--grid .jobs-heading-wrap { max-width: none; margin-inline: 0; }
.jobs-section--grid .jobs-slider { overflow: visible; }
.jobs-section--grid .jobs-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 22px;
  width: 100%;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}
.jobs-section--grid .job-card { flex: none; width: auto; min-height: 0; }
.jobs-section--grid .job-card h3 { overflow-wrap: anywhere; }
.jobs-section--grid .job-gender { display: inline; white-space: nowrap; }
/* smaller section headline */
.jobs-section .jobs-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
