:root {
  --nbp-primary: #010103;
  --nbp-secondary: #1045ff;
  --nbp-success: #0aa06a;
  --nbp-warning: #e8b029;
  --nbp-error: #de1135;
  --nbp-grey: #6d7d8b;
  --nbp-muted: #c2c2c2;
  --nbp-border: #edf1f2;
  --nbp-border-strong: #e4e4e4;
  --nbp-surface-muted: #f4f4f4;
  --nbp-status-bg: #fef7ee;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Switzer', Arial, Helvetica, sans-serif;
  background: #fff;
  color: var(--nbp-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

.nbp-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nbp-header {
  border-bottom: 1px solid var(--nbp-border-strong);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nbp-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nbp-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nbp-brand__logo {
  height: 48px;
  width: auto;
  max-width: min(420px, 70vw);
  object-fit: contain;
  display: block;
}

.nbp-carousel {
  position: relative;
  width: 100%;
  max-height: 450px;
  background: #fff;
  overflow: hidden;
}

.nbp-carousel__track {
  position: relative;
  width: 100%;
  max-height: 450px;
}

.nbp-carousel__slide {
  display: none;
  width: 100%;
  max-height: 450px;
}

.nbp-carousel__slide.is-active {
  display: block;
}

.nbp-carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  object-position: center;
}

.nbp-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}

.nbp-carousel__dot {
  pointer-events: auto;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(1, 1, 3, 0.25);
  cursor: pointer;
}

.nbp-carousel__dot.is-active {
  background: #0a7a3e;
}

.nbp-main {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

.nbp-title {
  font-size: 32px;
  font-weight: 600;
  line-height: normal;
  margin: 0 0 8px;
  color: var(--nbp-primary);
}

.nbp-subtitle {
  color: var(--nbp-grey);
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
}

.nbp-table-wrap {
  border: 1px solid var(--nbp-border);
  border-radius: 10px;
  overflow: visible;
  background: #fff;
}

.nbp-table {
  width: 100%;
  border-collapse: collapse;
}

.nbp-table thead th {
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--nbp-primary);
  padding: 14px 20px;
  background: var(--nbp-surface-muted);
  border-bottom: 1px solid var(--nbp-border);
}

.nbp-table thead th:nth-child(2) {
  max-width: 220px;
  width: 220px;
}

.nbp-table tbody tr {
  border-bottom: 1px solid var(--nbp-border);
}

.nbp-table tbody tr:last-child {
  border-bottom: none;
}

.nbp-table tbody td {
  padding: 18px 20px;
  vertical-align: middle;
  font-size: 14px;
  font-weight: 500;
  color: var(--nbp-primary);
}

.nbp-col-title {
  min-width: 280px;
}

.nbp-job-title {
  display: inline;
  font-size: 20px;
  line-height: 1.35;
  margin: 0;
  font-weight: 500;
  color: var(--nbp-primary);
  text-decoration: none;
  cursor: pointer;
}

/* .nbp-job-title:hover {
  color: var(--nbp-secondary);
  text-decoration: underline;
} */

.nbp-col-location {
  color: var(--nbp-primary);
  font-weight: 400;
  max-width: 220px;
  width: 220px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

.nbp-location--multi {
  position: relative;
  cursor: pointer;
}

.nbp-location--multi::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 20;
  min-width: 160px;
  max-width: 280px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #010103;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.nbp-location--multi:hover::after,
.nbp-location--multi:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.nbp-col-date {
  color: var(--nbp-primary);
  font-weight: 400;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nbp-col-action {
  width: 120px;
  text-align: center;
}

.nbp-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--nbp-secondary);
  background: #fff;
  color: var(--nbp-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-transform: capitalize;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.nbp-apply-btn:hover {
  background: var(--nbp-secondary);
  color: #fff;
}

.nbp-empty,
.nbp-loading,
.nbp-error {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  color: var(--nbp-grey);
  font-size: 14px;
  font-weight: 400;
  border: 1px solid var(--nbp-border);
  border-radius: 10px;
  background: #fff;
  min-height: 120px;
}

.nbp-error {
  color: var(--nbp-error);
}

.nbp-footer {
  border-top: 1px solid var(--nbp-border-strong);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--nbp-grey);
}

.nbp-footer__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nbp-footer__logo {
  height: 20px;
  width: auto;
  display: block;
}

@media (max-width: 960px) {
  .nbp-carousel,
  .nbp-carousel__track,
  .nbp-carousel__slide,
  .nbp-carousel__slide img {
    max-height: 220px;
  }

  .nbp-title {
    font-size: 24px;
  }

  .nbp-job-title {
    font-size: 16px;
  }

  .nbp-table thead {
    display: none;
  }

  .nbp-table,
  .nbp-table tbody,
  .nbp-table tr,
  .nbp-table td {
    display: block;
    width: 100%;
  }

  .nbp-table tbody tr {
    padding: 16px 0;
  }

  .nbp-table tbody td {
    padding: 6px 20px;
    border: none;
    font-size: 12px;
  }

  .nbp-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--nbp-grey);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
  }

  .nbp-col-location {
    max-width: none;
    width: auto;
  }

  .nbp-col-action {
    text-align: left;
    padding-top: 12px !important;
  }

  .nbp-col-action::before {
    content: none !important;
    display: none !important;
  }

  .nbp-location--multi::after {
    left: 0;
    right: auto;
    max-width: min(280px, 80vw);
  }

  .nbp-apply-btn {
    font-size: 12px;
    height: 36px;
  }
}
