/* ── Hero Banner ── */
.careers-hero {
  margin-top: -88px;
  min-height: 254px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(140deg, rgba(241, 88, 48, 0.55) -20%, rgba(22, 41, 82, 0.88) 65%),
    url("https://techsophy.com/wp-content/uploads/2023/11/Export-5.jpg") center center / cover no-repeat;
  color: #fff;
}

.careers-hero__inner {
  display: flex;
  align-items: flex-start;
  padding-top: 88px;
}

.careers-hero__text {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  text-transform: capitalize;
  color: #fff;
}

.careers-hero__text span {
  color: #f15830;
}

/* ── Mission Section ── */
.careers-mission {
  background: #fff;
}

.careers-mission__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 64px;
  align-items: start;
}

.careers-mission__heading {
  margin: 0 0 22px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #162952;
}

.careers-mission__body p {
  font-family: "Poppins", sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.75;
  color: #252525;
  text-align: justify;
  margin: 0 0 18px;
}

.careers-mission__body p strong {
  color: #f15830;
  font-weight: 600;
}

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

.careers-pillars li {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #252525;
  padding-left: 18px;
  position: relative;
}

.careers-pillars li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #f15830;
  font-weight: 700;
}

.careers-pillar__label {
  font-weight: 600;
  color: #162952;
}

/* Offer aside */
.careers-offer {
  background: linear-gradient(140deg, #e8f5ff 0%, #edf0ff 100%);
  border-radius: var(--radius-md, 12px);
  padding: 32px 28px;
  border: 1px solid #d4e5f2;
  position: sticky;
  top: 104px;
}

.careers-offer__heading {
  margin: 0 0 18px;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #162952;
}

.careers-offer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.careers-offer__list li {
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #253644;
  padding-left: 20px;
  position: relative;
}

.careers-offer__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f15830;
  font-weight: 700;
  font-size: 0.8rem;
  top: 2px;
}

/* ── Job Openings ── */
.careers-jobs {
  background: linear-gradient(140deg, #FFD4C9 -49.08%, #FFF 42.84%);
}

.careers-jobs__intro {
  margin-bottom: 36px;
}

.careers-jobs__intro p {
  font-family: "Poppins", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #252525;
  margin: 0 0 14px;
  text-align: justify;
}

.careers-jobs__apply {
  font-weight: 600;
  color: #162952 !important;
}

.careers-jobs__apply a {
  color: #f15830;
  font-weight: 600;
  text-decoration: none;
}

.careers-jobs__apply a:hover {
  text-decoration: underline;
}

.careers-jobs__note {
  font-style: italic;
  color: #555 !important;
}

/* Table */
.careers-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 2px 16px rgba(22, 41, 82, 0.08);
}

.careers-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
}

.careers-table thead tr {
  background: #162952;
  color: #fff;
}

.careers-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.careers-table tbody tr {
  border-bottom: 1px solid #b9d1e2;
  transition: background-color 0.18s ease;
}

.careers-table tbody tr:last-child {
  border-bottom: none;
}

.careers-table tbody tr:hover {
  background: #e8f5ff;
}

.careers-table td {
  padding: 16px 20px;
  color: #253644;
  line-height: 1.5;
  vertical-align: middle;
}

.job-title-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f15830;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.job-title-btn:hover {
  color: #c93e18;
}

/* ── Job Modals ── */
.job-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 19, 0.62);
  z-index: 10000;
  backdrop-filter: blur(3px);
}

.job-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  width: min(92vw, 640px);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(7, 11, 19, 0.28);
}

.job-modal__close {
  position: sticky;
  top: 0;
  float: right;
  margin: 16px 16px 0 0;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #555;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 1;
}

.job-modal__close:hover {
  background: #fef0ec;
  color: #f15830;
}

.job-modal__body {
  padding: 24px 36px 36px;
  clear: both;
}

.job-modal__logo {
  height: 36px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.job-modal__meta {
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  color: #555;
  margin: 0 0 16px;
  font-weight: 500;
}

.job-modal h2 {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #162952;
  margin: 0 0 6px;
  line-height: 1.25;
}

.job-modal h2 span {
  font-size: 0.95rem;
  font-weight: 400;
  color: #555;
}

.job-modal p {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #252525;
  margin: 0 0 20px;
}

.job-modal h3 {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #162952;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-modal ul {
  padding-left: 22px;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-modal ul li {
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #253644;
}

.job-modal ul li::marker {
  color: #f15830;
}

.job-modal__apply {
  display: inline-block;
  background: #ef5a30;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  float: right;
  transition: background 0.2s ease;
}

.job-modal__apply:hover {
  background: #c93e18;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .careers-mission__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .careers-offer {
    position: static;
  }
}

@media (max-width: 680px) {
  .careers-hero {
    margin-top: -78px;
    min-height: 200px;
  }

  .careers-hero__inner {
    padding-top: 78px;
  }

  .careers-table th,
  .careers-table td {
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  .job-modal__body {
    padding: 20px 22px 28px;
  }
}

@media (max-width: 480px) {
  .careers-table th:last-child,
  .careers-table td:last-child {
    display: none;
  }

  .job-modal__apply {
    float: none;
    display: block;
    text-align: center;
  }
}
