.page-hero--openings {
  background-image: url('../assets/images/why-choose-bg.png');
  background-position: center 42%;
}

.job-openings-search-page .page-hero--openings {
  background: #f7f5f0;
  border-bottom: 1px solid #ece4d2;
  background-image: none;
}

.jobs-search-hero__content {
  display: grid;
  gap: 1.2rem;
}

.job-openings-search-page .page-hero--openings .eyebrow {
  margin: 0;
  color: #c9a84c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.job-openings-search-page .page-hero--openings h1 {
  margin: 0;
  color: #0d1b2e;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
}

.job-openings-search-page .hero--openings-board {
  min-height: clamp(540px, 74vh, 720px);
}

.job-openings-search-page .hero--openings-board::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(229, 211, 138, 0.18), transparent 34%),
    radial-gradient(circle at 74% 78%, rgba(245, 232, 200, 0.16), transparent 44%),
    linear-gradient(to bottom, rgba(17, 26, 45, 0.18), rgba(17, 26, 45, 0.08) 36%, rgba(30, 28, 27, 0.34) 100%);
}

.job-openings-search-page .hero--openings-board .hero-overlay {
  background:
    linear-gradient(
      100deg,
      rgba(7, 21, 45, 0.92) 0%,
      rgba(7, 21, 45, 0.86) 28%,
      rgba(7, 21, 45, 0.7) 44%,
      rgba(17, 26, 45, 0.44) 60%,
      rgba(30, 28, 27, 0.18) 72%,
      transparent 82%
    );
}

.job-openings-search-page .hero--openings-board .hero-grid {
  padding-top: clamp(10rem, 15vw, 13rem);
  padding-bottom: clamp(4.75rem, 8vw, 6.75rem);
}

.jobs-search-toolbar,
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}

.jobs-search-toolbar .input,
.jobs-search-toolbar .select,
.toolbar .input,
.toolbar .select {
  min-height: 52px;
  border: 1.5px solid #e2d9c5;
  border-radius: 14px;
  background: #ffffff;
  color: #0d1b2e;
  box-shadow: none;
}

.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 2fr);
  gap: 14px;
  align-items: start;
  width: 100%;
}

.job-list-stack {
  grid-column: 1 / span 2;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.job-grid-viewport {
  overflow: visible;
}

[data-jobs-empty] {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid #e2d9c5;
  border-radius: 16px;
  background: #ffffff;
  color: #555;
  font-weight: 500;
  text-align: center;
}

/* Keep the public Current Openings page on a 2-card desktop grid while still
   allowing the narrower responsive breakpoints below to collapse cleanly. */
.job-openings-search-page .job-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Empty state reads as an intentional card that matches the lead panel.
   Scoped to :not([hidden]) so the flex display doesn't override the
   hidden attribute when openings are present. */
.job-openings-search-page [data-jobs-empty]:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 2.5rem 1.75rem;
  border-top: 3px solid #c9a84c;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-height: 0;
  padding: 1.2rem;
  background: #ffffff;
  border: 1.5px solid #e2d9c5;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.job-card:hover {
  border-color: #c9a84c;
  box-shadow: 0 16px 30px rgba(201, 168, 76, 0.12);
  transform: translateY(-1px);
}

.job-card--active {
  border: 2px solid #c9a84c;
  box-shadow: 0 18px 32px rgba(201, 168, 76, 0.14);
}

.job-card__department {
  margin: 0;
  color: #c9a84c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.job-card__title {
  margin: 0;
  color: #0d1b2e;
  font-family: "Playfair Display", serif;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.15;
}

.job-card__divider,
.lead-divider {
  border-top: 1px solid #f0ebe0;
  margin: 0;
}

.job-card__tags,
.job-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid #e2d0a0;
  border-radius: 999px;
  background: #fdf8ee;
  color: #8a6820;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.job-tag-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.job-tag-pill__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.job-card__preview-wrap {
  position: relative;
}

.job-card__preview {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card__preview-fade {
  position: absolute;
  inset: auto 0 0;
  height: 1.8rem;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.job-card__read-more {
  color: #c9a84c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.job-card__apply {
  width: 100%;
  margin-top: auto;
  border: 1px solid #0d1b2e;
  border-radius: 12px;
  background: #0d1b2e;
  color: #ffffff;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.job-card__apply:hover,
.job-card__apply:focus-visible {
  background: #16253c;
  border-color: #16253c;
  transform: translateY(-1px);
}

.job-lead-panel {
  position: sticky;
  top: calc(var(--site-header-height, 98px) + 16px);
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(229, 211, 138, 0.2), transparent 34%),
    linear-gradient(180deg, #fffdf9 0%, #f7f1e6 100%);
  border: 1px solid rgba(201, 168, 76, 0.24);
  border-radius: 24px;
  padding: clamp(2rem, 3vw, 2.8rem);
  min-height: 100%;
  box-shadow: 0 22px 50px rgba(13, 27, 46, 0.08);
  min-width: 0;
}

.job-lead-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #c9a84c 0%, #e5d38a 52%, rgba(229, 211, 138, 0) 100%);
}

.job-lead-panel .lead-eyebrow {
  margin: 0 0 0.8rem;
  color: #9c7b2f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.job-lead-panel .lead-heading {
  margin: 0 0 1rem;
  color: #0d1b2e;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.05rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 9ch;
}

.job-lead-panel:not(.job-lead-panel--default) .lead-heading {
  font-size: 22px;
  line-height: 1.2;
  font-family: Georgia, serif;
  font-weight: 700;
  color: #0d1b2e;
  margin: 0 0 10px;
  letter-spacing: 0;
  max-width: none;
}

.job-lead-panel .lead-subtext,
.job-detail-description {
  margin: 0;
  color: #465063;
  font-size: 15px;
  line-height: 1.85;
}

.job-detail-description {
  margin-bottom: 1.5rem;
}

.job-detail-description--empty {
  color: #aaa;
  font-style: italic;
}

.job-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

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

.job-detail-close {
  width: 36px;
  height: 36px;
  border: 1px solid #e2d9c5;
  border-radius: 999px;
  background: #ffffff;
  color: #0d1b2e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 36px;
}

.job-detail-close:hover,
.job-detail-close:focus-visible {
  border-color: #c9a84c;
  color: #c9a84c;
}

.cta-row {
  display: flex;
  width: 100%;
  margin-top: 1.5rem;
}

.job-lead-panel--default {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  height: fit-content;
  min-height: unset;
  max-width: 360px;
  padding: 28px 26px;
  background: #ffffff;
  border: 1.5px solid #e2d9c5;
  border-radius: 16px;
  box-shadow: none;
}

.job-lead-panel--default::before {
  content: none;
}

.job-lead-panel--default .lead-eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}

.job-lead-panel--default .lead-heading {
  font-size: 20px !important;
  font-weight: 700;
  font-family: Georgia, serif;
  color: #0d1b2e;
  margin: 0 0 10px;
  line-height: 1.3;
  letter-spacing: 0;
  max-width: none;
}

.job-lead-panel--default .lead-subtext {
  font-size: 14px !important;
  color: #777;
  line-height: 1.75;
  margin: 0 0 20px;
  max-width: none;
}

.job-lead-panel--default .lead-divider {
  display: none;
}

.job-lead-panel--default .cta-row {
  width: auto;
  margin-top: 0;
}

.job-lead-panel--default .lead-submit-btn {
  background: #c9a84c !important;
  color: #0d1b2e !important;
  border: none;
  border-radius: 10px;
  padding: 12px 22px !important;
  font-size: 14px !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  width: auto !important;
  min-height: unset;
  display: inline-block !important;
  align-self: flex-start;
  box-shadow: none;
}

.job-lead-panel:not(.job-lead-panel--default) .cta-row {
  width: auto;
}

.job-lead-panel:not(.job-lead-panel--default) .lead-submit-btn,
.job-lead-panel:not(.job-lead-panel--default) .lead-submit-btn--gold {
  width: auto;
  display: inline-flex;
  align-self: flex-start;
  padding: 12px 22px;
  min-height: unset;
}

.job-lead-panel .lead-submit-btn,
.lead-submit-btn--gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 1rem 1.35rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #d7b75a 0%, #c9a84c 100%);
  color: #0d1b2e;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(201, 168, 76, 0.22);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.job-lead-panel .lead-submit-btn:hover,
.job-lead-panel .lead-submit-btn:focus-visible,
.lead-submit-btn--gold:hover,
.lead-submit-btn--gold:focus-visible {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(201, 168, 76, 0.28);
}


body.modal-open {
  overflow: hidden;
}

.apply-modal[hidden] {
  display: none;
}

.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
}

.apply-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 45, 0.52);
  backdrop-filter: blur(2px);
}

.apply-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 1rem;
  max-height: calc(100vh - 2rem);
  border-radius: 14px;
  overflow: hidden;
  background: #f9f6ef;
  box-shadow: 0 24px 50px rgba(13, 27, 54, 0.28);
}

.apply-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(232, 217, 181, 0.82);
  border-radius: 50%;
  background: #ffffff;
  color: #0d1b36;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.apply-modal-scroll {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.1rem;
}

.apply-modal-content {
  background: #f9f6ef;
}

.apply-job-summary {
  background: #0d1b36;
  border-radius: 12px;
  padding: 1rem 1.1rem 1rem;
  margin-bottom: 0.9rem;
}

.apply-job-label {
  margin: 0 0 4px;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 600;
}

.apply-job-summary h2 {
  margin: 0;
  color: #f7f5f2;
  font-size: 24px;
  font-family: var(--font-heading);
}

.apply-job-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.apply-job-pills .meta-pill {
  background: rgba(201, 168, 76, 0.14);
  border-color: rgba(201, 168, 76, 0.55);
  color: #f4de95;
}

.apply-form-card {
  background: #ffffff;
  border: 1px solid #e8d9b5;
  border-top: 3px solid #c9a84c;
  border-radius: 12px;
  padding: 1.1rem;
}

.apply-form h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
  font-size: 20px;
  color: #1a1a1a;
}

.apply-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.apply-input-group {
  display: grid;
  gap: 0.35rem;
}

.apply-input-group span {
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
}

.apply-input-group input {
  width: 100%;
  border: 1px solid #e8d9b5;
  border-radius: 10px;
  background: #fff;
  color: #1a1a1a;
  padding: 12px 14px;
  font: inherit;
}

.apply-input-group input:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}

.apply-upload {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.25rem;
  border: 1px dashed #d6c59d;
  background: #fdfaf4;
  border-radius: 10px;
  padding: 1.05rem 0.9rem;
  margin-bottom: 0.8rem;
  cursor: pointer;
}

.apply-upload strong {
  color: #1a1a1a;
  font-size: 13px;
}

.apply-upload span {
  color: #777;
  font-size: 12px;
}

.apply-upload input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.apply-upload.is-drag {
  border-color: #c9a84c;
  background: #f7eed9;
}

.apply-submit-btn {
  width: 100%;
  border: none;
  border-radius: 9px;
  background: #c9a84c;
  color: #1a1a1a;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.apply-confidentiality {
  margin: 0.75rem 0 0;
  color: #8b8b8b;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.apply-success,
.apply-error {
  margin: 0.65rem 0 0;
  font-size: 12px;
}

.apply-success {
  color: #3b6d11;
}

.apply-error {
  color: #b53030;
}


.section-navy .dark-cta-right.cta-section {
  padding: clamp(2rem, 4vw, 3rem) !important;
  border-radius: 12px;
}

.section-navy .dark-cta-right.cta-section p + .cta-row,
.section-navy .dark-cta-right.cta-section p + .hero-cta-buttons {
  margin-top: clamp(1.4rem, 2.6vw, 2rem);
}

.section-navy .dark-cta-right.cta-section .cta-row + p,
.section-navy .dark-cta-right.cta-section .hero-cta-buttons + p {
  margin-top: clamp(1.4rem, 2.4vw, 1.9rem) !important;
}

.jobs-help-section {
  background: #0d1b2e;
  border-top: none;
}

.jobs-help-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(2.4rem, 4vw, 4rem);
  border-radius: 20px;
  background: #0d1b2e;
}

.jobs-help-card h2 {
  margin: 0;
  max-width: 12ch;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4.1vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.jobs-help-copy,
.jobs-help-footer {
  margin: 0;
  max-width: 64ch;
  color: #b8c4d4 !important;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
}

.jobs-help-actions {
  display: flex;
  align-items: center;
}

.jobs-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.4rem;
  border: 1.5px solid #ffffff;
  border-radius: 12px;
  background: transparent;
  color: #ffffff !important;
  font-family: "Poppins", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.jobs-help-button:hover,
.jobs-help-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.88);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.jobs-help-link {
  color: #c9a84c !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  transition: color 180ms ease, border-bottom-color 180ms ease;
}

.jobs-help-link:hover,
.jobs-help-link:focus-visible {
  color: #e5c56a !important;
  border-bottom-color: rgba(229, 197, 106, 0.88);
}

@media (max-width: 1024px) {
  .job-openings-search-page .job-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .job-openings-search-page .job-list-stack {
    grid-column: auto;
  }

  .job-openings-search-page .job-lead-panel {
    position: static;
  }
}

@media (max-width: 767px) {
  .job-openings-search-page .hero--openings-board {
    min-height: clamp(430px, 68vh, 560px);
  }

  .job-openings-search-page .hero--openings-board .hero-grid {
    padding-top: 7.25rem;
    padding-bottom: 2.5rem;
  }

  .jobs-search-toolbar,
  .job-grid {
    grid-template-columns: 1fr;
  }

  .apply-modal-dialog {
    width: min(100%, 96vw);
    margin: 0.65rem;
    max-height: calc(100vh - 1.3rem);
  }

  .apply-modal-scroll {
    max-height: calc(100vh - 1.3rem);
    padding: 0.85rem;
  }

  .apply-job-summary h2 {
    font-size: 20px;
  }

  .apply-name-grid {
    grid-template-columns: 1fr;
  }

  .jobs-help-button {
    width: 100%;
  }
}
