.job-positions-archive,
.job-positions-single {
  margin-bottom: 3rem;
}

.job-positions-single__header {
  margin-bottom: 2rem;
}

.job-positions__hero {
  display: flex;
  margin-bottom: 1.3rem;
  /* justify-content: space-between; */
  align-items: center;
}

.job-positions__bigscreen {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.job-positions__row {
  display: flex;
}

.job-positions__row .job-positions__filtercolumn {
  flex: 0 0 300px;
}

.job-positions__row .job-positions__results {
  flex: 1;
}

.job-positions__title,
.job-positions-single__title {
  margin: 0;
}

.job-positions__sidefilters {
  padding: 0 24px;
  border-right: 1px solid #f0f0f0;
  margin-right: 24px;
}

.job-positions__filters-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  color: #000;
}

.job-positions__filters-right {
  color: #03cb94;

  &.disabled {
    color: #646a73;
    cursor: not-allowed;
    pointer-events: none;
  }
}

.job-positions__sidefilters-grid {
  margin-top: 24px;
  color: #000000;
}

.job-positions__fieldset {
  border: none;
  margin: 0;
  padding: 0;
  margin-bottom: 40px;
}

.job-positions__legend {
  margin-bottom: 16px;
}

.job-positions__label {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  font-size: 14px;
}

.job-positions__label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 16px;
  height: 16px;
  border: 1px solid #dee0e3;
  border-radius: 3px;
  background-color: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.job-positions__label input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transition: transform 0.1s ease-in-out;
}

.job-positions__label input[type="checkbox"]:checked {
  background-color: #03cb94;
  border-color: #03cb94;
}

.job-positions__label input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.job-positions__results-count {
  font-weight: 600;
  margin: 0;
  font-size: 14px;
  color: #000;
}

.job-positions__grid {
  display: flex;
  flex-direction: column;
  .job_position {
    margin-bottom: 10px;
  }
}

.job-positions-card,
.job-positions-single__article {
  background: #fff;
  overflow: hidden;
}

.job-positions-card {
  transition: all 0.5s;
  cursor: pointer;

  .more-link {
    display: none;
  }

  &:hover {
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.05);

    .job-positions-card__title a {
      color: #16b998;
    }
  }
}

.job-positions-card__body .job-positions-card__excerpt {
  font-size: 14px;
}

.job-positions-card__body .job-positions-card__excerpt p {
  margin: 0;
}

.job-positions-card__title {
  margin: 0 0 0.75rem;
}

.job-positions-single__meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.job-positions-card__terms {
  display: flex;
  flex-wrap: wrap;
}

.job-positions-single__meta {
  .job-positions-single__meta-group:not(:first-child) {
    margin-left: 1.05rem;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      width: 1px;
      background-color: #b6b6b6cc;
      height: 12px;
      top: 50%;
      transform: translateY(-50%);
      left: -9px;
    }
  }
}

.job-positions-card__terms {
  .job-positions-card__term-group:not(:first-child) {
    margin-left: 1.05rem;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      width: 1px;
      background-color: #b6b6b6cc;
      height: 12px;
      top: 50%;
      transform: translateY(-50%);
      left: -9px;
    }
  }
}

.job-positions-card__term-group,
.job-positions-single__meta-group {
  color: #4b5348;
  font-size: 14px;
}

.job-positions-card__excerpt p:last-child,
.job-positions-single__excerpt p:last-child {
  margin-bottom: 0;
}

.job-positions__load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.job-positions__load-more-button {
  background: #2f4f4f;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  min-width: 180px;
  padding: 0.85rem 1.4rem;
}

.job-positions__load-more-button[disabled] {
  cursor: wait;
  opacity: 0.75;
}

.job-positions__empty {
  background: #f6f4ef;
  border-radius: 12px;
  font-size: 14px;
  margin: 0;
  padding: 1rem 1.2rem;
  text-align: center;
  margin-top: 10vh;
}

.job-positions-single__content {
  line-height: 1.7;
}

.job-positions-single__content strong {
  position: relative;
  padding-left: 12px;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #03cb94;
  }
}

.job-positions-single__btncontainer {
  text-align: center;
}

.job-positions__button {
  padding: 0 32px;
  justify-content: center;
  align-items: center;
  border-radius: 40px;
  background: #03cb94;
  color: white;
  display: inline-flex;

  &:hover {
    color: white;
    background: #01ab7c;
  }

  &:focus {
    color: white;
  }
}

.is-loading #job-positions-results-list,
.is-loading #job-positions-load-more {
  opacity: 0.6;
}

.job-positions__filter-container {
  position: sticky;
  top: 22px;
  z-index: 1;

  .tabs {
    font-size: 14px;
    color: #000;
    display: flex;
    justify-content: space-between;
    position: relative;
    background-color: white;
    padding: 12px 0;
    margin-top: -12px;
  }

  .job-positions__tab {
    position: relative;
    padding-right: 12px;
    &::before {
      content: "▾";
      position: absolute;
      top: 0;
      right: 0;
    }
    &.active {
      color: #03cb94;
      &::before {
        transform: rotate(180deg);
      }
    }
  }
  .overlay {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    display: none;
  }

  .popover {
    display: none;
    font-size: 14px;
    color: #000;
    border-top: #f1f1f1;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid #f1f1f1;
    transform: translateY(100%);
    background-color: white;
    z-index: 2;
    margin-left: -30px;
    margin-right: -30px;
    border-radius: 0 0 8px 8px;
  }

  .content {
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 16px;
    max-height: 300px;
    min-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .foonter {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px 16px;
    border-top: 1px solid #f1f1f1;

    .btn {
      flex: 1;
      /* width: 160px; */
      height: 40px;
      padding: 0;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 40px;
    }

    .reset-btn {
      border: 1px solid #ccc;
    }
  }

  .label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
  }

  input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 16px;
    height: 16px;
    border: 1px solid #dee0e3;
    border-radius: 3px;
    background-color: #fff;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease;
  }

  input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #fff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: transform 0.1s ease-in-out;
  }

  input[type="checkbox"]:checked {
    background-color: #03cb94;
    border-color: #03cb94;
  }

  input[type="checkbox"]:checked::before {
    transform: scale(1);
  }
}
