/* CTA card grid — ported from CMS11 _cta-card.scss for career pages */

body.career-template .cta-card {
  position: relative;
  height: 50vh;
}

@media screen and (min-width: 48em) {
  body.career-template .cta-card {
    flex-basis: 0;
    flex-grow: 1;
  }
}

body.career-template .cta-card__container {
  display: block;
}

@media screen and (min-width: 48em) {
  body.career-template .cta-card__container {
    display: flex;
  }
}

body.career-template .cta-card__link {
  display: block;
  height: 100%;
  width: 100%;
  color: #121212;
  position: relative;
}

@media screen and (min-width: 48em) {
  body.career-template .cta-card__link::before {
    content: '+';
    font-size: 2rem;
    font-weight: 300;
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    transition: opacity 0.2s;
    opacity: 1;
    padding: 1px 0 0 1px;
    box-sizing: border-box;
    z-index: 1;
  }

  body.career-template .bg-light .cta-card__link::before {
    background: rgba(255, 255, 255, 0.95);
  }

  body.career-template .bg-dark .cta-card__link::before {
    background: rgba(18, 18, 18, 0.95);
    color: #ffffff;
  }

  body.career-template .bg-primary-light .cta-card__link::before {
    background: rgba(8, 58, 112, 0.95);
  }

  body.career-template .bg-primary-dark .cta-card__link::before {
    background: rgba(6, 46, 88, 0.95);
    color: #ffffff;
  }

  body.career-template .bg-secondary-light .cta-card__link::before {
    background: rgba(8, 58, 112, 0.95);
  }

  body.career-template .bg-secondary-dark .cta-card__link::before {
    background: rgba(6, 46, 88, 0.95);
    color: #ffffff;
  }

  body.career-template .cta-card__link:hover::before,
  body.career-template .cta-card__link:focus::before {
    opacity: 0;
  }

  [data-whatinput='keyboard'] body.career-template .cta-card__link:focus {
    outline: 0;
  }
}

body.career-template .cta-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.career-template .cta-card__hover {
  background: rgba(255, 255, 255, 0.95);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-content: center;
  justify-content: flex-start;
  padding: 1.25rem 1.5625rem;
}

@media screen and (min-width: 48em) {
  body.career-template .cta-card__hover {
    opacity: 0;
    height: 100%;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
  }
}

body.career-template .bg-light .cta-card__hover {
  background: rgba(255, 255, 255, 0.95);
}

body.career-template .bg-dark .cta-card__hover {
  background: rgba(18, 18, 18, 0.95);
  color: #ffffff;
}

body.career-template .bg-primary-light .cta-card__hover {
  background: rgba(8, 58, 112, 0.95);
}

body.career-template .bg-primary-dark .cta-card__hover {
  background: rgba(6, 46, 88, 0.95);
  color: #ffffff;
}

body.career-template .bg-secondary-light .cta-card__hover {
  background: rgba(8, 58, 112, 0.95);
}

body.career-template .bg-secondary-dark .cta-card__hover {
  background: rgba(6, 46, 88, 0.95);
  color: #ffffff;
}

body.career-template .cta-card__hover p {
  font-weight: bold;
  font-size: 1.25rem;
  text-align: center;
  margin: 0;
}

body.career-template .cta-card__hover svg {
  margin-left: 0.5rem;
  transform: rotate(-90deg);
}

body.career-template .cta-card__hover .svg-stroke {
  stroke: currentColor;
}

@media screen and (min-width: 48em) {
  body.career-template .cta-card__hover svg {
    transform: rotate(180deg);
    margin-top: 0.5rem;
    margin-left: 0;
  }
}

body.career-template .cta-card__link:hover .cta-card__hover,
body.career-template .cta-card__link:focus .cta-card__hover {
  opacity: 1;
}

[data-whatinput='keyboard'] body.career-template .cta-card__link:focus .cta-card__hover {
  border: 2px solid #121212;
}

[data-whatinput='keyboard'] body.career-template .bg-dark .cta-card__link:focus .cta-card__hover,
[data-whatinput='keyboard'] body.career-template .bg-primary-dark .cta-card__link:focus .cta-card__hover,
[data-whatinput='keyboard'] body.career-template .bg-secondary-dark .cta-card__link:focus .cta-card__hover {
  border: 2px solid #ffffff;
}
