/* Minor overrides / one-off adjustments kept separate from the component library */

/* Working Capital hero background position override to prevent head cropping */
.page-hero .hero-bg-img[src*="solution_working_capital"] {
  object-position: right 25%;
}

.hero .hero-visual {
  min-height: 360px;
}

@media (max-width:959px) {
  .hero .hero-visual {
    min-height: 220px;
  }
}

.page-hero-inner .breadcrumb {
  margin-top: 22px;
}

#leadership .notice-box a {
  text-decoration: underline;
}

.solution-card .tags span {
  cursor: default;
}

@media (max-width:480px) {
  .hero-inner {
    padding-top: 36px;
    padding-bottom: 30px;
  }
}

/* Prevent long words breaking layout on very small screens */
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

/* --- Careers Page --- */
.job-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.job-header {
  padding: 36px 36px 30px;
  background: linear-gradient(135deg, rgba(26, 43, 99, .05) 0%, rgba(255, 81, 90, .04) 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.job-header-info h2 {
  font-size: 1.75rem;
  color: var(--navy-900);
  margin: 10px 0 14px;
}

.job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.job-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}

.job-badge--dept {
  background: rgba(26, 43, 99, .1);
  color: var(--navy-900);
  border: 1px solid rgba(26, 43, 99, .22);
}

.job-badge--active {
  background: rgba(255, 81, 90, .1);
  color: var(--red-600);
  border: 1px solid rgba(255, 81, 90, .28);
}

.job-badge--meta {
  background: #FFFFFF;
  color: var(--text-dark);
  border: 1px solid var(--line);
}

.job-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 36px;
}

@media (min-width:960px) {
  .job-layout {
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .job-sidebar {
    position: sticky;
    top: 96px;
  }
}

.job-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.job-block h3 {
  font-size: 1.25rem;
  color: var(--navy-900);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-block h4 {
  font-size: 1.02rem;
  color: var(--navy-900);
  margin: 18px 0 10px;
  font-weight: 700;
}

.job-block p {
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 14px;
}

.job-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-dark);
  font-size: .94rem;
  line-height: 1.55;
}

.job-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-600);
}

.job-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.job-pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(26, 43, 99, .05);
  border: 1px solid rgba(26, 43, 99, .16);
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 600;
  color: var(--navy-900);
}

.job-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.job-sidebar-card {
  background: var(--bg-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.job-sidebar-card h4 {
  font-size: 1.1rem;
  color: var(--navy-900);
  margin-bottom: 16px;
}

.job-summary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.job-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.job-summary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.job-summary-label {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  font-weight: 700;
}

.job-summary-val {
  font-size: .94rem;
  font-weight: 600;
  color: var(--navy-900);
}

.benefit-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.benefit-card-item {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(26, 43, 99, .04);
  border: 1px solid rgba(26, 43, 99, .12);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy-900);
}

.benefit-card-item svg {
  color: var(--red-600);
  flex-shrink: 0;
}

@media (max-width:768px) {
  .job-header {
    padding: 26px 20px;
  }

  .job-layout {
    padding: 28px 20px;
  }
}

/* --- Application Popup Modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 99, .78);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px -12px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(.98);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

.modal.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 26px 28px 20px;
  background: linear-gradient(135deg, rgba(26, 43, 99, .05) 0%, rgba(255, 81, 90, .03) 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-header h3 {
  font-size: 1.35rem;
  color: var(--navy-900);
  margin: 0 0 4px;
}

.modal-header p {
  font-size: .86rem;
  color: var(--text-muted);
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  transition: background .15s ease, color .15s ease;
}

.modal-close:hover {
  background: rgba(26, 43, 99, .1);
  color: var(--navy-900);
}

.modal-body {
  padding: 28px 28px;
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}

/* File upload styling */
.file-upload-box {
  border: 2px dashed rgba(26, 43, 99, .25);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: rgba(26, 43, 99, .02);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s ease, background .2s ease;
  position: relative;
}

.file-upload-box:hover,
.file-upload-box.dragover {
  border-color: var(--navy-900);
  background: rgba(26, 43, 99, .05);
}

.file-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.file-upload-content {
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.file-upload-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(26, 43, 99, .1);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-upload-label {
  font-weight: 700;
  font-size: .92rem;
  color: var(--navy-900);
}

.file-upload-hint {
  font-size: .78rem;
  color: var(--text-muted);
}

.modal-submit-btn {
  background: #1A2B63;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 30px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s ease, transform .15s ease;
}

.modal-submit-btn:hover {
  background: #F3525A;
  transform: translateY(-1px);
}

.form-success-msg {
  display: none;
  padding: 32px 24px;
  background: rgba(26, 43, 99, .04);
  border: 1px solid rgba(26, 43, 99, .18);
  border-radius: var(--radius-md);
  text-align: center;
}

.form-success-msg.is-visible {
  display: block;
}