/*
  Careers section shared styles
  Use this stylesheet on the Careers parent page and related child pages,
  including Early careers programs and That's My Career!.

  Load after 2024-styles.css so these section-specific styles can override
  older local page styles where needed.
*/

/* =========================
   Careers banner and breadcrumb
   ========================= */

.careers-hero {
  background-color: #131640;
}

.careers-breadcrumb-strip {
  background-color: #037DBB;
}

.careers-hero h1,
.careers-hero p,
.careers-breadcrumb-strip,
.careers-breadcrumb-strip a {
  color: #ffffff !important;
}

.careers-hero .lead {
  color: #ffffff !important;
}

/* Banner and section CTA buttons: white with yellow hover/focus */

.btn-careers,
.careers-hero .btn-careers,
.careers-hero .btn-custom-imt,
.careers-hero .btn-custom-dev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  background-color: #ffffff !important;
  color: #131640 !important;
  border: 2px solid #ffffff !important;
  border-radius: 0.35rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-careers:hover,
.btn-careers:focus,
.careers-hero .btn-careers:hover,
.careers-hero .btn-careers:focus,
.careers-hero .btn-custom-imt:hover,
.careers-hero .btn-custom-imt:focus,
.careers-hero .btn-custom-dev:hover,
.careers-hero .btn-custom-dev:focus {
  background-color: #FFE900 !important;
  color: #131640 !important;
  border-color: #FFE900 !important;
  text-decoration: none;
}

.btn-careers:focus-visible,
.careers-hero .btn-careers:focus-visible,
.careers-hero .btn-custom-imt:focus-visible,
.careers-hero .btn-custom-dev:focus-visible {
  outline: 3px solid #FFE900;
  outline-offset: 3px;
}

/* =========================
   Shared Careers cards
   ========================= */

.card.custom-card.careers-card,
.card.custom-card.careers-dark-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background-color: #131640 !important;
  color: #ffffff !important;
  border: 1px solid #131640;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(19, 22, 64, 0.14);
}

.card.custom-card.careers-card .card-body,
.card.custom-card.careers-card .card-footer,
.card.custom-card.careers-dark-card .card-body,
.card.custom-card.careers-dark-card .card-footer {
  background-color: #131640 !important;
  color: #ffffff !important;
}

.card.custom-card.careers-card .card-body,
.card.custom-card.careers-dark-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.25rem;
}

.card.custom-card.careers-card .card-footer,
.card.custom-card.careers-dark-card .card-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 0 !important;
}

.card.custom-card.careers-card .card-title,
.card.custom-card.careers-card h2,
.card.custom-card.careers-card h3,
.card.custom-card.careers-dark-card .card-title,
.card.custom-card.careers-dark-card h2,
.card.custom-card.careers-dark-card h3 {
  color: #FFE900 !important;
}

.card.custom-card.careers-card .card-text,
.card.custom-card.careers-card p,
.card.custom-card.careers-dark-card .card-text,
.card.custom-card.careers-dark-card p {
  color: #ffffff !important;
}

.card.custom-card.careers-card a:not(.btn):not(.list-group-item),
.card.custom-card.careers-dark-card a:not(.btn):not(.list-group-item) {
  color: #FFE900;
  text-decoration: underline;
}

.card.custom-card.careers-card a:not(.btn):not(.list-group-item):hover,
.card.custom-card.careers-card a:not(.btn):not(.list-group-item):focus,
.card.custom-card.careers-dark-card a:not(.btn):not(.list-group-item):hover,
.card.custom-card.careers-dark-card a:not(.btn):not(.list-group-item):focus {
  color: #ffffff;
  text-decoration: none;
}

/* Card media: images and embedded videos */

.careers-card-media {
  height: 320px;
  background-color: #131640;
  display: flex;
  align-items: center;
  justify-content: center;
}

.careers-card-media img,
.careers-card-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* Use this variant for video cards so embeds stay 16:9 */

.career-video-card .careers-card-media {
  height: auto;
  aspect-ratio: 16 / 9;
  background-color: #000000;
}

.career-video-card .careers-card-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   Careers card buttons and linked-list CTAs
   ========================= */

.card.custom-card.careers-card .btn,
.card.custom-card.careers-card .btn-custom-dev,
.card.custom-card.careers-card .btn-custom-imt,
.card.custom-card.careers-dark-card .btn,
.card.custom-card.careers-dark-card .btn-custom-dev,
.card.custom-card.careers-dark-card .btn-custom-imt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  background-color: #ffffff !important;
  color: #131640 !important;
  border: 2px solid #ffffff !important;
  border-radius: 0.35rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.card.custom-card.careers-card .btn:hover,
.card.custom-card.careers-card .btn:focus,
.card.custom-card.careers-card .btn-custom-dev:hover,
.card.custom-card.careers-card .btn-custom-dev:focus,
.card.custom-card.careers-card .btn-custom-imt:hover,
.card.custom-card.careers-card .btn-custom-imt:focus,
.card.custom-card.careers-dark-card .btn:hover,
.card.custom-card.careers-dark-card .btn:focus,
.card.custom-card.careers-dark-card .btn-custom-dev:hover,
.card.custom-card.careers-dark-card .btn-custom-dev:focus,
.card.custom-card.careers-dark-card .btn-custom-imt:hover,
.card.custom-card.careers-dark-card .btn-custom-imt:focus {
  background-color: #FFE900 !important;
  color: #131640 !important;
  border-color: #FFE900 !important;
  text-decoration: none;
}

.card.custom-card.careers-card .btn:focus-visible,
.card.custom-card.careers-card .btn-custom-dev:focus-visible,
.card.custom-card.careers-card .btn-custom-imt:focus-visible,
.card.custom-card.careers-dark-card .btn:focus-visible,
.card.custom-card.careers-dark-card .btn-custom-dev:focus-visible,
.card.custom-card.careers-dark-card .btn-custom-imt:focus-visible {
  outline: 3px solid #FFE900;
  outline-offset: 3px;
}

.card.custom-card.careers-card .list-group,
.card.custom-card.careers-dark-card .list-group {
  margin-top: auto;
}

.card.custom-card.careers-card .list-group-item-custom,
.card.custom-card.careers-card .list-group-item-action,
.card.custom-card.careers-dark-card .list-group-item-custom,
.card.custom-card.careers-dark-card .list-group-item-action {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background-color: #ffffff !important;
  color: #131640 !important;
  border: 2px solid #ffffff !important;
  border-radius: 0.35rem !important;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.card.custom-card.careers-card .list-group-item-custom:hover,
.card.custom-card.careers-card .list-group-item-custom:focus,
.card.custom-card.careers-card .list-group-item-action:hover,
.card.custom-card.careers-card .list-group-item-action:focus,
.card.custom-card.careers-dark-card .list-group-item-custom:hover,
.card.custom-card.careers-dark-card .list-group-item-custom:focus,
.card.custom-card.careers-dark-card .list-group-item-action:hover,
.card.custom-card.careers-dark-card .list-group-item-action:focus {
  background-color: #FFE900 !important;
  color: #131640 !important;
  border-color: #FFE900 !important;
  text-decoration: none;
}

.card.custom-card.careers-card .list-group-item-custom:focus-visible,
.card.custom-card.careers-card .list-group-item-action:focus-visible,
.card.custom-card.careers-dark-card .list-group-item-custom:focus-visible,
.card.custom-card.careers-dark-card .list-group-item-action:focus-visible {
  outline: 3px solid #FFE900;
  outline-offset: 3px;
}

/* =========================
   Hear from our people video cards
   ========================= */

.career-video-section {
  background-color: #f5f7fa;
  padding: 3rem 0;
}

.career-video-section h2,
.career-video-intro {
  color: #131640;
}

.career-video-intro {
  max-width: 720px;
  margin: 0 auto;
}

/* Backwards-compatible carousel styling if the carousel remains temporarily */

.career-carousel-section {
  background-color: #f5f7fa;
  padding: 3rem 0;
}

.career-carousel-section h2,
.career-carousel-section p {
  color: #131640;
}

.career-carousel-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.career-carousel-wrap .carousel-inner {
  overflow: hidden;
  background-color: #000000;
  border-radius: 0.75rem;
}

.career-carousel-caption {
  background-color: #131640;
  color: #ffffff;
  padding: 1rem 1.25rem;
}

.career-carousel-caption h3 {
  color: #FFE900;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.career-carousel-caption p {
  color: #ffffff;
  margin-bottom: 0;
}

.career-carousel-wrap .carousel-control-prev,
.career-carousel-wrap .carousel-control-next {
  width: 8%;
}

.career-carousel-wrap .carousel-indicators li {
  background-color: #131640;
}

/* =========================
   What we offer icon section
   ========================= */

.careers-benefit-item i,
.careers-benefit-item .h4 {
  color: #131640 !important;
}

/* =========================
   Mobile refinements
   ========================= */

@media (max-width: 767.98px) {
  .careers-hero {
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
  }

  .careers-card-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .card.custom-card.careers-card .card-body,
  .card.custom-card.careers-dark-card .card-body {
    padding: 1rem;
  }

  .career-video-section,
  .career-carousel-section {
    padding: 2rem 0;
  }

  .btn-careers,
  .careers-hero .btn-careers,
  .careers-hero .btn-custom-imt,
  .careers-hero .btn-custom-dev {
    width: 100%;
    margin-top: 0.5rem;
  }
}
