@import "@/styles/variables";
@import "@/styles/mixins";

.viewPositions {
  color: $black;
  background-color: $grey-light;
  padding: 6.25rem 0 7.5rem 0;

  .card {
    width: 50%;
    margin: 0 1rem;
  }

  .backgroundContainer {
    padding: 1rem;
    height: 12.75rem;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: $radius;
    color: $white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;

    h3 {
      @include h3;
    }

    p {
      @include p2();
    }
  }

  .cardGroup {
    padding-top: 3.75rem;
    display: flex;
    margin: 0 -1rem;
  }
}

@media screen and (max-width: $desktop) {
  .viewPositions {
    .card {
      margin: 0 0.5rem;
    }
    .cardGroup {
      margin: 0 -0.5rem;
    }
  }
}
