/* Job detail only. Scoped so onboarding (same .background-image class) is untouched. */

.job-detail {
  --navy: #243759;
  --slate: #748496;
}

.job-detail-hero.container.background-image {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 1rem;
  padding-top: 1.35rem !important;
  padding-bottom: 1.2rem !important;
  max-height: none !important;
  border: 1px solid rgba(36, 55, 89, 0.08);
  border-bottom: 0;
  border-radius: 1.1rem 1.1rem 0 0;
}

.job-detail-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 0.35rem;
}

.job-detail-hero-inner h1 {
  color: #fff;
  font-size: clamp(1.15rem, 2.4vw + 0.7rem, 1.75rem);
  line-height: 1.25;
  margin: 0 0 0.35rem;
}

.job-detail-hero-inner p {
  color: #fff !important;
  font-size: clamp(0.88rem, 1.1vw + 0.7rem, 1.05rem);
  line-height: 1.4;
  margin: 0 !important;
  padding: 0 !important;
}

.job-detail-panel.container {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1.15rem;
  background: #fff;
  border: 1px solid rgba(36, 55, 89, 0.08);
  border-top: 0;
  border-radius: 0 0 1.1rem 1.1rem;
  box-shadow: 0 12px 32px rgba(36, 55, 89, 0.12);
}

.job-detail-card {
  min-width: 0;
}

.job-detail-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(36, 55, 89, 0.1);
}

.job-detail-heading h2 {
  font-size: clamp(1.15rem, 1.4vw + 0.85rem, 1.45rem);
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 0.7rem;
  overflow-wrap: anywhere;
}

.job-detail-id {
  color: var(--slate);
  font-weight: 500;
  font-size: 0.85em;
}

.job-detail-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.job-detail-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0;
}

.job-detail-meta .bi {
  color: var(--navy);
  margin-top: 0.1rem;
  flex: 0 0 auto;
}

.job-detail-share {
  min-width: 0;
}

.job-detail-share .a2a_kit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.job-detail .nav-tabs {
  display: flex;
  width: 100%;
  border-bottom: 1px solid rgba(36, 55, 89, 0.14);
}

.job-detail .nav-tabs .nav-item {
  flex: 1 1 50%;
}

.job-detail .nav-tabs .nav-link {
  width: 100%;
  text-align: center;
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.7rem 0.5rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.job-detail .nav-tabs .nav-link.active {
  color: var(--navy);
  background: transparent;
  border-bottom-color: var(--navy);
}

.job-detail .tab-content {
  padding-top: 0.9rem;
}

.job-detail-description {
  max-height: none;
  overflow: visible;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--navy);
}

.job-detail-description img,
.job-detail-description table,
.job-detail-description iframe {
  max-width: 100%;
  height: auto;
}

.job-detail-description table {
  display: block;
  overflow-x: auto;
}

.job-detail-subhead {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 1.1rem 0 0.45rem;
}

.job-detail-list {
  margin: 0 0 0.5rem;
  padding-left: 1.15rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.job-detail-branch .card {
  border: 1px solid rgba(36, 55, 89, 0.12);
  border-radius: 0.85rem;
  box-shadow: none;
}

.job-detail-branch .card-header {
  background: #f4f4f4;
  border-bottom: 1px solid rgba(36, 55, 89, 0.1);
}

.job-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(36, 55, 89, 0.1);
}

.job-detail-actions .btn {
  width: 100%;
  min-height: 2.85rem;
}

.job-detail .detailapply {
  background-color: rgb(255, 209, 89) !important;
  color: #243759 !important;
  border: none !important;
  border-radius: 0.85rem !important;
}

.job-detail .detailapply:hover,
.job-detail .detailapply:focus {
  background-color: rgb(245, 190, 60) !important;
  color: #243759 !important;
}

.job-detail .detailback {
  background-color: #fff !important;
  color: #243759 !important;
  border: 1px solid rgba(36, 55, 89, 0.22) !important;
  border-radius: 0.85rem !important;
}

.job-detail .detailback:hover,
.job-detail .detailback:focus {
  background-color: #243759 !important;
  color: #fff !important;
  border-color: #243759 !important;
}

.job-detail-sticky {
  display: none;
}

@media (min-width: 768px) {
  .job-detail-hero.container.background-image {
    margin-top: 1.35rem;
    padding-top: 1.6rem !important;
    padding-bottom: 1.4rem !important;
  }
}

@media (min-width: 992px) {
  .job-detail-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .job-detail-share .a2a_kit {
    justify-content: flex-end;
  }

  .job-detail .nav-tabs .nav-item {
    flex: 0 0 auto;
  }

  .job-detail .nav-tabs .nav-link {
    width: auto;
    padding: 0.7rem 1rem;
  }

  .job-detail-actions {
    flex-direction: row;
    justify-content: center;
  }

  .job-detail-actions .btn {
    width: auto;
    min-width: 11.5rem;
  }
}

@media (max-width: 991.98px) {
  .job-detail {
    padding-bottom: 0.75rem;
  }

  .job-detail-hero.container.background-image {
    margin-top: 0.75rem;
    padding-top: 1.1rem !important;
    padding-bottom: 1rem !important;
    border-radius: 0.85rem 0.85rem 0 0;
  }

  .job-detail-panel.container {
    padding-top: 0.85rem;
    padding-bottom: 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 0 0 0.85rem 0.85rem;
  }

  .job-detail-actions {
    display: none;
  }

  .job-detail-sticky {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    gap: 0.5rem;
    margin: 0;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid rgba(36, 55, 89, 0.12);
    box-shadow: 0 -8px 24px rgba(36, 55, 89, 0.1);
  }

  .job-detail-sticky .btn {
    flex: 1 1 0;
    min-height: 2.75rem;
  }

  body:has(.job-detail) footer.site-footer {
    padding-bottom: 5.5rem;
  }
}
