.jobs--header {
  align-content: center;
  align-items: center;
  position: relative;
  background-image: url('/img/jobs.jpg');
  background-size: cover;
  background-position: center center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 9rem 0 6rem;

  strong { color: inherit; }

  article {
    z-index: 2;
    padding: 4rem 0;
  }

  p { 
    padding: 1rem 5rem;
  }

  &:before {
    content: "";
    @extend %gradient-bg;
    background-color: transparent;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.7;
  }
}

.jobs--description {
  background-color: rgba($primary, 0.15);

  article p {
    padding: 3rem;
  }
}

.jobs--form {
  @extend %section-margin;

  article {
    justify-content: flex-start;

    div {
      $border-color: rgba($primary, 0.4);
      border-color: $border-color;
      margin-right: 2rem;
      flex: 0 0 100%;

      select { width: 100%; }

      select, a {
        border-color: inherit;
      }

      a:hover { 
        border-color: $border-color;
      }

      input {
        width: 100%;
        height: 100%;
        border-radius: $radius;
        border: solid $border-color 0.1rem;
        padding-left: 2.5rem;
        font-size: 1rem;

        &:focus {
          outline: unset;
        }

        @media screen and (min-width: $tablet) {
          width: 17rem;
        }
      }

      &.control span { color: $primary !important; }

      @media screen and (min-width: $tablet) {
        flex-basis: auto;
      }

      @media screen and (max-width: $desktop) {
        margin-bottom: 1rem;

        input[type="text"] { height: 2.25rem; }
        
        &:last-child { text-align: center; }
      }
    }

    @media screen and (min-width: $tablet) {
      padding: 3rem 0 0;
    }
  }
}

.jobs--listing {
  @extend %section-margin;
  justify-content: flex-start;

  .jobs--listing-wrapper { justify-content: inherit; }

  &-hidden { display: none !important; }

  &-title h2 {
    @extend %backendbr-styled-title;
  }

  &-item {
    @include generate-shadow(darken($primary, 30%));
    @include generate-post-margin($tablet, 3);
    @include generate-post-margin($desktop, 4);
    border-radius: $radius * 2;
    color: $primary;
    margin-bottom: 1rem !important;
    margin-right: 0 !important;
    padding: 1.5rem 1rem;

    a:hover li,
    a:hover p .fas,
    a:hover h4 { 
      color: $primary !important;
    }

    h4 {
      font-weight: bold;
    }

    ul {
      padding-top: 1rem;

      li {
        background-color: lighten($primary, 30%);
        border-radius: $radius;
        display: inline-block;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        margin-right: 0.15rem;
        margin-bottom: 0.25rem;
      }
    }
    
    p {
      padding-top: 1rem;

      & > span:not(.fas) {
        color: $text;
        font-size: 0.85rem;;
      }
    }
  }

  &-load {
    padding: 4rem 0 2rem;

    @media screen and (max-width: $tablet) {
      text-align: center;
    }
    
    a {
      margin: 0 auto;
      background-color: $primary;
      border-color: transparent;
      color: #fff;

      &:hover,
      &:active,
      &:visited {
        color: #fff;
        border-color: transparent;
      }

      &[disabled] {
        background-color: $primary !important;
        border-color: transparent !important;
        box-shadow: none;
        opacity: 1 !important;
      }
    }
  }
}

.jobs--partners {
  @extend %section-margin;
  margin-bottom: 4rem !important;

  &-title h2 {
    @extend %backendbr-styled-title;
  }

  ul {
    li {
      display: inline-block;
      color: #fff;

      a {
        background-color: $primary;
        border-radius: $radius;
        padding: 0.5rem 1rem;
        margin-right: 0.15rem;
        color: inherit !important;
      }
    }

    @media screen and (max-width: $tablet) {
      text-align: center;
    }
  }
}
