/* Careers page — VOC Sourcing */

.voc-career-hero {
  position: relative;
  overflow: hidden;
  padding: 4.75rem 0 3.75rem;
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 48%, #0ea5e9 100%);
  color: #fff;
  text-align: center;
}

.voc-career-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 15%, rgba(34, 211, 238, 0.28), transparent 42%),
    radial-gradient(circle at 8% 85%, rgba(255, 255, 255, 0.07), transparent 38%);
  pointer-events: none;
}

.voc-career-hero .container {
  position: relative;
  z-index: 1;
}

.voc-career-hero h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.voc-career-hero .lead {
  max-width: 38rem;
  margin: 0 auto;
  opacity: 0.94;
  line-height: 1.7;
}

.voc-career-hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.voc-career-hero__pills span {
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.38rem 0.85rem;
  border-radius: 50px;
}

.voc-career-main {
  padding: 3rem 0 4.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 35%);
}

.voc-career-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.voc-career-intro h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0c4a6e;
  margin-bottom: 0.5rem;
}

.voc-career-intro p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

.voc-career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.voc-career-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.25rem;
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.voc-career-card:hover {
  border-color: #06b6d4;
  box-shadow: 0 14px 40px rgba(14, 165, 233, 0.1);
  transform: translateY(-2px);
}

.voc-career-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.voc-career-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #e0f2fe, #cffafe);
  color: #0369a1;
}

.voc-career-card__meta {
  flex: 1;
  min-width: 0;
}

.voc-career-card__dept {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

.voc-career-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.voc-career-card__loc {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
}

.voc-career-card__loc i {
  color: #0ea5e9;
  margin-right: 0.2rem;
}

.voc-career-card__desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}

.voc-career-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.voc-career-card__tags span {
  font-size: 0.72rem;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
}

.voc-career-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.voc-career-apply-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  color: #fff;
}

.voc-career-why {
  max-width: 900px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.voc-career-why__item {
  text-align: center;
  padding: 1.25rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.voc-career-why__item i {
  font-size: 1.35rem;
  color: #0ea5e9;
  margin-bottom: 0.5rem;
}

.voc-career-why__item strong {
  display: block;
  font-size: 0.92rem;
  color: #0c4a6e;
  margin-bottom: 0.25rem;
}

.voc-career-why__item span {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

/* Apply modal */
.voc-career-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

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

.voc-career-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.voc-career-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(92vh, 720px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
  padding: 1.5rem 1.5rem 1.35rem;
}

.voc-career-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.voc-career-modal__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.voc-career-modal__head h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0c4a6e;
  margin: 0 0 0.25rem;
  padding-right: 2rem;
}

.voc-career-modal__role {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0ea5e9;
  margin: 0 0 0.35rem;
}

.voc-career-modal__head p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 1.1rem;
  line-height: 1.55;
}

.voc-career-field {
  margin-bottom: 0.85rem;
}

.voc-career-field label,
.voc-career-field .voc-career-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.3rem;
}

.voc-career-field .voc-req {
  color: #ef4444;
}

.voc-career-field .form-control {
  border-radius: 10px;
  border-color: #e2e8f0;
  font-size: 0.9rem;
}

.voc-career-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.voc-career-resume {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 1.1rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #f8fafc;
}

.voc-career-resume:hover,
.voc-career-resume.is-dragover {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.voc-career-resume.has-file {
  border-style: solid;
  border-color: #06b6d4;
  background: #ecfeff;
}

.voc-career-resume i {
  font-size: 1.5rem;
  color: #0ea5e9;
  margin-bottom: 0.35rem;
}

.voc-career-resume__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0c4a6e;
  margin: 0;
}

.voc-career-resume__hint {
  font-size: 0.72rem;
  color: #94a3b8;
  margin: 0.25rem 0 0;
}

.voc-career-resume__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0369a1;
  margin-top: 0.35rem;
  word-break: break-all;
}

.voc-career-resume input[type="file"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.voc-career-resume--warn {
  border-color: #f59e0b;
  animation: voc-career-shake 0.4s ease;
}

@keyframes voc-career-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.voc-career-submit {
  width: 100%;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 0.25rem;
}

.voc-career-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.voc-career-note {
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  margin: 0.65rem 0 0;
  line-height: 1.45;
}

.voc-career-modal__success {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.voc-career-modal__success[hidden] {
  display: none !important;
}

.voc-career-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.voc-career-modal__success h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0c4a6e;
  margin-bottom: 0.5rem;
}

.voc-career-modal__success p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.voc-career-success__close {
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: #0369a1;
  background: #e0f2fe;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 767px) {
  .voc-career-why {
    grid-template-columns: 1fr;
  }

  .voc-career-row {
    grid-template-columns: 1fr;
  }
}
