.bodyy {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f8fe;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 18vh 2rem 1.5rem;
  color: #0b2a4a;
  line-height: 1.5;
}

.career-wrapper {
  max-width: 1360px;
  width: 100%;
  background: #ffffff;
  border-radius: 2.8rem;
  box-shadow: 0 30px 60px -20px rgba(0, 20, 40, 0.2), 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  padding: 2.8rem 2.5rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* header */
.header-section {
  margin-bottom: 2.5rem;
  border-bottom: 2px solid #ecf3fa;
  padding-bottom: 1.8rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e6f0fe;
  color: #1a4c8a;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  margin-bottom: 1rem;
  border: 1px solid #d0e2f7;
  text-transform: uppercase;
}

.badge i {
  color: #2a6bb0;
  font-size: 0.75rem;
}

h1 {
  font-size: 2.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(145deg, #0b2a4a, #1f4f7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.subhead {
  font-size: 1.1rem;
  color: #3d5a78;
  max-width: 720px;
  font-weight: 400;
}

.subhead i {
  color: #2d6fb0;
  margin-right: 0.4rem;
}

/* vacancy grid – 2 columns */
.vacancy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.vacancy-item {
  background: white;
  border-radius: 1.6rem;
  padding: 1.5rem 1.6rem 1.6rem;
  border: 1px solid #e3ecf6;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.vacancy-item:hover {
  border-color: #b0c8e3;
  background: #ffffff;
  box-shadow: 0 10px 22px -12px rgba(18, 52, 94, 0.10);
  transform: translateY(-3px);
}

.vacancy-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #0f3153;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.vacancy-title .position-badge {
  background: #1a4c8a;
  color: white;
  padding: 0.2rem 1rem;
  border-radius: 40px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.vacancy-ref {
  font-weight: 400;
  font-size: 0.8rem;
  color: #4a7ba5;
  margin-left: 0.3rem;
}

.vacancy-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1rem;
  margin: 0.6rem 0 0.7rem;
  font-size: 0.85rem;
  color: #214b72;
}

.vacancy-detail-grid .detail-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vacancy-detail-grid .detail-item i {
  width: 1rem;
  color: #3d7bb5;
  font-size: 0.8rem;
}

/* description – longer, 5-6 lines */
.vacancy-description {
  font-size: 0.92rem;
  color: #1e3f60;
  background: #f2f8ff;
  padding: 0.9rem 1.2rem;
  border-radius: 1.2rem;
  margin: 0.4rem 0 1rem;
  border-left: 3px solid #7aa9d9;
  line-height: 1.6;
  flex: 1;
}

.vacancy-description i {
  color: #2d6fb0;
  margin-right: 0.4rem;
}

.vacancy-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

/* remove badges – only apply button remains */
.bodyy .apply-btn {
  background: #0f3b64;
  color: white;
  border: none;
  padding: 0.5rem 1.6rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px -4px rgba(15, 59, 100, 0.25);
}

.bodyy .apply-btn i {
  font-size: 0.7rem;
}

.bodyy .apply-btn:hover {
  background: #1a4f80;
  transform: scale(1.02);
  box-shadow: 0 8px 18px -6px rgba(15, 59, 100, 0.35);
}

/* list header */
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.list-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0b2a4a;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.list-header h2 i {
  color: #2a6bb0;
}

.vacancy-count {
  background: #dce8f5;
  padding: 0.3rem 1.1rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a4a78;
}

/* ===== POPUP OVERLAY ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 30, 55, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.popup-overlay.active {
  display: flex;
}

.popup-card {
  background: white;
  max-width: 540px;
  width: 100%;
  border-radius: 2.5rem;
  padding: 2.2rem 2.2rem 2.5rem;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: fadeUp 0.25s ease;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.popup-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: #f0f5fc;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 40px;
  font-size: 1.2rem;
  color: #1f4a73;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  background: #dce6f2;
  transform: rotate(90deg);
}

.popup-card h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0b2a4a;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.popup-card .popup-sub {
  font-size: 0.95rem;
  color: #2f5a82;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid #e6eff8;
  padding-bottom: 0.8rem;
}

.popup-card .popup-sub strong {
  color: #0f3b64;
  background: #e7f0fe;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-weight: 600;
}
.form-group p {
    margin-bottom: 0;
    width: 100%;
}
.popup-overlay .form-group {
  margin-bottom: 1.2rem;
}

.popup-overlay .form-group label {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #1f4a73 !important;
  display: block !important;
  margin-bottom: 0.3rem !important;
  letter-spacing: 0.02em !important;
}

.popup-overlay .form-group label i {
  color: #4a7bb5;
  width: 1.2rem;
}

.popup-overlay .form-group input,
.popup-overlay .form-group input[type="file"] {
  width: 100% !important;
  padding: 0.7rem 1rem !important;
  border: 1.5px solid #dce8f5 !important;
  border-radius: 1.5rem !important;
  font-size: 0.95rem !important;
  transition: 0.2s !important;
  background: #fbfdff !important;
  color: #0b2a4a !important;
}

.popup-overlay .form-group input:focus {
  outline: none;
  border-color: #2a6bb0;
  box-shadow: 0 0 0 4px rgba(42, 107, 176, 0.1);
  background: white;
}

/* file input styling */
.popup-overlay .form-group input[type="file"] {
  padding: 0.6rem 0.8rem !important;
  background: #f5faff !important;
  border: 2px dashed #c6dbf0 !important;
  border-radius: 1.2rem !important;
  cursor: pointer !important;
}

.popup-overlay .form-group input[type="file"]::file-selector-button {
  background: #e6f0fe;
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  color: #1a4c8a;
  margin-right: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.popup-overlay .form-group input[type="file"]::file-selector-button:hover {
  background: #d0e2f7;
}

.popup-overlay .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.popup-submit {
  background: #0f3b64 !important;
  color: white !important;
  border: none !important;
  width: 100% !important;
  padding: 0.9rem !important;
  border-radius: 60px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  margin-top: 0.6rem !important;
  cursor: pointer !important;
  transition: 0.2s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  box-shadow: 0 8px 18px -6px rgba(15, 59, 100, 0.25) !important;
}

.popup-submit:hover {
  background: #1a4f80;
  transform: scale(1.01);
}

.popup-note {
  font-size: 0.7rem;
  color: #6d8bb0;
  text-align: center;
  margin-top: 1.2rem;
}

/* responsive */
@media (max-width: 900px) {
  .vacancy-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .career-wrapper {
    padding: 1.8rem 1.2rem;
  }
  h1 {
    font-size: 2.2rem;
  }
  .vacancy-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .vacancy-detail-grid {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .popup-card {
    padding: 1.8rem 1.2rem;
  }
  .vacancy-title {
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .vacancy-footer {
    justify-content: stretch;
  }
  .apply-btn {
    width: 100%;
    justify-content: center;
  }
}