.sb-careers {
  --sb-careers-teal: #589098;
  --sb-careers-rule: #bab5b0;
  --sb-careers-text: #5f5f5f;
  --sb-careers-label: #7f7f7f;
  width: 100%;
}

.sb-careers *,
.sb-careers *::before,
.sb-careers *::after {
  box-sizing: border-box;
}

/* ── Filters ─────────────────────────────────────────────── */

.sb-careers__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 38px;
}

.sb-careers__field {
  flex: 1 1 160px;
  min-width: 0;
}

.sb-careers__label {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  color: var(--sb-careers-label);
  margin-bottom: 6px;
}

.sb-careers__select,
.et_pb_module .sb-careers__select,
.et-db #et-boc .et-l .sb-careers__select,
.sb-careers__search-input,
.et_pb_module .sb-careers__search-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--sb-careers-text);
  background-color: #fff;
  border: 1px solid #8c827a;
  border-radius: 0;
  line-height: normal;
}

.sb-careers__select,
.et_pb_module .sb-careers__select,
.et-db #et-boc .et-l .sb-careers__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0 12px 0 36px;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolygon points='2,1.2 8.5,5 2,8.8' fill='%238c827a'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 12px center !important;
  background-size: 10px 10px !important;
}

.sb-careers__select:focus,
.sb-careers__search-input:focus {
  outline: 2px solid var(--sb-careers-teal);
  outline-offset: 1px;
}

.sb-careers__search {
  position: relative;
}

.sb-careers__search-input {
  padding-right: 38px;
}

.sb-careers__search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.sb-careers__search-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--sb-careers-label);
  pointer-events: none;
}

/* ── Job list ────────────────────────────────────────────── */

.sb-careers__job {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--sb-careers-rule);
}

.sb-careers__job[hidden] {
  display: none;
}

.sb-careers__job-body {
  flex: 1 1 auto;
  min-width: 0;
}

.sb-careers__job-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--sb-careers-teal);
}

.sb-careers__job-title a {
  color: inherit;
  text-decoration: none;
}

.sb-careers__job-title a:hover,
.sb-careers__job-title a:focus {
  text-decoration: underline;
}

.sb-careers__job-meta {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sb-careers-teal);
}

.sb-careers__meta-sep {
  margin: 0 8px;
  font-weight: 400;
  color: var(--sb-careers-label);
}

.sb-careers__job-excerpt {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #000;
}

.sb-careers__job-action {
  flex: 0 0 auto;
}

.sb-careers__apply {
  display: inline-block;
  min-width: 150px;
  padding: 9px 28px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: #fff !important;
  background-color: var(--sb-careers-teal);
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.sb-careers__apply:hover,
.sb-careers__apply:focus {
  opacity: 0.85;
  color: #fff !important;
  text-decoration: none;
}

.sb-careers__empty,
.sb-careers__error {
  margin: 0;
  padding: 24px 0;
  font-size: 16px;
  color: var(--sb-careers-text);
}

/* ── Pagination ──────────────────────────────────────────── */

.sb-careers__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.sb-careers__pagination:empty {
  display: none;
}

.sb-careers__page {
  appearance: none;
  background: none;
  border: 0;
  padding: 4px 6px;
  font-size: 15px;
  line-height: 1;
  color: var(--sb-careers-teal);
  cursor: pointer;
}

.sb-careers__page:hover,
.sb-careers__page:focus {
  text-decoration: underline;
}

.sb-careers__page.is-current {
  font-weight: 700;
  text-decoration: none;
  cursor: default;
}

.sb-careers__page--arrow {
  font-size: 17px;
}

@media (max-width: 880px) {
  .sb-careers__filters {
    gap: 14px;
  }

  .sb-careers__field {
    flex: 1 1 calc(50% - 7px);
  }
}

@media (max-width: 767px) {
  .sb-careers__job {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .sb-careers__job-title {
    font-size: 22px;
  }

  .sb-careers__apply {
    display: block;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .sb-careers__field {
    flex: 1 1 100%;
  }
}
