/* ------------------------------------------------------------------ */
/* Careers                                                              */
/*                                                                      */
/* The CV banner, the filter row and the vacancy list. The hero and the */
/* two-tone heading come from style.css untouched.                      */
/* Logical properties throughout, so Arabic mirrors on its own.         */
/* ------------------------------------------------------------------ */

.careers-section {
  padding: clamp(34px, 3.4vw, 62px) 0 var(--section-gap);
}

.careers-intro {
  max-width: 820px;
  margin-top: clamp(12px, 1.2vw, 20px);
  font-size: clamp(12px, .95vw, 16px);
  line-height: 1.75;
  color: var(--text-soft);
}

/* ---- the CV banner --------------------------------------------------- */

.cv-banner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.3vw, 22px);
  margin-top: clamp(20px, 2vw, 36px);
  padding: clamp(14px, 1.4vw, 24px);
  border: 1px solid #E7E9F1;
  border-radius: 14px;
  background: var(--white);
}

.cv-banner__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: clamp(38px, 3vw, 52px);
  height: clamp(38px, 3vw, 52px);
  border-radius: 12px;
  background: #EEF1F9;
  color: var(--navy);
  font-size: clamp(15px, 1.2vw, 21px);
}

.cv-banner__body {
  flex: 1 1 auto;
  min-width: 0;
}

.cv-banner__body h3 {
  margin: 0;
  font-size: clamp(15px, 1.25vw, 22px);
  font-weight: 500;
  color: var(--navy);
}

/* The gradient only reaches maroon at its far end, so across two letters it
   would read as plain navy. */
.cv-banner__body h3 .grad-text {
  display: inline;
  background: none;
  color: #A11D2B;
}

.cv-banner__body p {
  margin: 6px 0 0;
  font-size: clamp(11px, .85vw, 14px);
  line-height: 1.5;
  color: var(--text-soft);
}

/* A label, not a button: it wraps the hidden file input, so clicking it
   opens the picker without a line of script. */
.btn-upload {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: clamp(10px, .95vw, 16px) clamp(18px, 1.7vw, 30px);
  border-radius: 999px;
  background: var(--red);
  font-size: clamp(11px, .88vw, 15px);
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: opacity .2s;
}

.btn-upload:hover {
  opacity: .9;
}

.cv-banner__status {
  margin: 10px 0 0;
  font-size: clamp(11px, .85vw, 14px);
  color: #1a906e;
}

.cv-banner__status--error {
  color: var(--red);
}

/* ---- filters ---------------------------------------------------------- */

.careers-filters {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, .8vw, 14px);
  margin-top: clamp(16px, 1.6vw, 28px);
}

.careers-search {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  align-items: center;
}

.careers-search i {
  position: absolute;
  inset-inline-start: clamp(14px, 1.1vw, 18px);
  color: var(--text-soft);
  font-size: .9em;
  pointer-events: none;
}

.careers-search input {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(9px, .85vw, 15px) clamp(14px, 1.1vw, 18px);
  padding-inline-start: clamp(36px, 2.8vw, 46px);
  border: 1px solid #DDE0EA;
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-size: clamp(12px, .9vw, 15px);
  color: var(--text);
}

.careers-select {
  flex: 0 1 190px;
  display: flex;
}

/* `background-position` takes no logical keyword, so the chevron is the one
   thing mirrored by hand at the end of this file. */
.careers-select select {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(9px, .85vw, 15px) clamp(14px, 1.1vw, 18px);
  padding-inline-end: clamp(34px, 2.6vw, 42px);
  border: 1px solid #DDE0EA;
  border-radius: 999px;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23141C38' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 11px 7px;
  background-position: right clamp(14px, 1.1vw, 18px) center;
  font: inherit;
  font-size: clamp(12px, .9vw, 15px);
  color: var(--text);
  appearance: none;
  cursor: pointer;
}

.careers-search input:focus-visible,
.careers-select select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.careers-meta {
  margin: clamp(14px, 1.3vw, 22px) 0 0;
  font-size: clamp(11px, .85vw, 14px);
  color: var(--text-soft);
}

/* ---- the vacancy rows -------------------------------------------------- */

.job-list {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, .95vw, 16px);
  margin-top: clamp(12px, 1.1vw, 18px);
}

.job-card {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.2vw, 20px);
  padding: clamp(12px, 1.2vw, 20px);
  border: 1px solid #EDEFF5;
  border-radius: 14px;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}

.job-card:hover {
  border-color: #DDE1EC;
  box-shadow: 0 6px 20px rgba(31, 49, 99, .06);
}

.job-card__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: clamp(40px, 3.2vw, 56px);
  height: clamp(40px, 3.2vw, 56px);
  border-radius: 12px;
  background: var(--tile-bg, #EEF0F6);
  color: var(--tile-fg, var(--navy));
  font-size: clamp(15px, 1.2vw, 21px);
}

.job-card__icon--green { --tile-bg: #E4F3ED; --tile-fg: #1a906e; }
.job-card__icon--blue  { --tile-bg: #E7EDFA; --tile-fg: #1F3163; }
.job-card__icon--lilac { --tile-bg: #EEECFA; --tile-fg: #6C4AB6; }
.job-card__icon--amber { --tile-bg: #FDF0DF; --tile-fg: #C77B16; }
.job-card__icon--sky   { --tile-bg: #E6F1FB; --tile-fg: #2C6FD1; }
.job-card__icon--rose  { --tile-bg: #FBE9EC; --tile-fg: #B11A18; }

.job-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.job-card__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(8px, .8vw, 14px);
  margin: 0;
  font-size: clamp(14px, 1.1vw, 19px);
  font-weight: 700;
  color: var(--navy);
}

.job-card__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--badge-bg, #EEF0F6);
  font-size: clamp(9px, .72vw, 12px);
  font-weight: 500;
  color: var(--badge-fg, var(--navy));
}

.job-card__badge--full-time { --badge-bg: #E4F3ED; --badge-fg: #1a906e; }
.job-card__badge--part-time { --badge-bg: #FDF0DF; --badge-fg: #C77B16; }

/* The department and the location, set apart by a gap rather than a
   separator character — a bullet between them would sit on the wrong side
   of the pair once the page flips to Arabic. */
.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.1vw, 20px);
  margin: 8px 0 0;
  font-size: clamp(11px, .85vw, 14px);
  color: var(--text-soft);
}

.btn-details {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: clamp(9px, .85vw, 14px) clamp(16px, 1.5vw, 26px);
  border: 1px solid #DDE0EA;
  border-radius: 999px;
  background: var(--white);
  font-size: clamp(11px, .85vw, 14px);
  color: var(--navy);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.btn-details:hover {
  border-color: var(--navy);
  background: #F5F6FA;
  color: var(--navy);
}

.careers-empty {
  margin-top: clamp(20px, 2vw, 34px);
  font-size: var(--fs-sub);
  color: var(--text-soft);
  text-align: center;
}

/* ---- RTL --------------------------------------------------------------- */

[dir="rtl"] .careers-select select {
  background-position: left clamp(14px, 1.1vw, 18px) center;
}

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 767.98px) {
  /* The button drops under the text rather than squeezing the title into
     two or three words per line. */
  .cv-banner,
  .job-card {
    flex-wrap: wrap;
  }

  .cv-banner__body,
  .job-card__body {
    flex-basis: 100%;
    order: 2;
  }

  .cv-banner__icon,
  .job-card__icon {
    order: 1;
  }

  .btn-upload,
  .btn-details {
    order: 3;
  }

  .careers-select {
    flex-basis: calc(50% - 7px);
  }
}

@media (max-width: 479.98px) {
  .careers-select {
    flex-basis: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* Submit your CV, and the vacancy detail page                          */
/*                                                                      */
/* Both forms are the International Patient components (.intl-field,    */
/* .intl-drop, .intl-consent, .btn-submit) with intl.js behind them —   */
/* the design draws that same form, so only the page frame is new.      */
/* ------------------------------------------------------------------ */

/* The open application stands alone on the page rather than beside an
   aside, so it is centred and its button with it. */
.cv-form {
  max-width: 1180px;
  margin-top: clamp(20px, 2vw, 36px);
  padding: 0;
}

.cv-form .btn-submit {
  justify-self: center;
  margin-top: clamp(8px, .8vw, 14px);
}

/* ---- vacancy detail ---------------------------------------------------- */

.job-section {
  padding: clamp(34px, 3.4vw, 62px) 0 var(--section-gap);
}

.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 46px);
  align-items: start;
}

.job-detail__title {
  margin: 0;
  font-size: clamp(22px, 2vw, 36px);
  font-weight: 700;
  color: var(--navy);
}

.job-chips {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, .8vw, 14px);
  margin: clamp(12px, 1.2vw, 20px) 0 0;
  padding: 0;
  list-style: none;
}

.job-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(5px, .5vw, 9px) clamp(10px, .95vw, 16px);
  border-radius: 8px;
  background: #F1F3F8;
  font-size: clamp(10px, .8vw, 13px);
  color: var(--navy);
}

.job-chips i {
  font-size: .95em;
  opacity: .65;
}

/* A rule under each heading, as the design sets it — drawn with a border
   rather than an <hr> so it stays tied to the heading it belongs to. */
.job-detail__heading {
  margin: clamp(22px, 2.2vw, 40px) 0 clamp(12px, 1.2vw, 20px);
  padding-bottom: clamp(8px, .8vw, 14px);
  border-bottom: 1px solid #E4E7F0;
  font-size: clamp(15px, 1.25vw, 22px);
  font-weight: 500;
  color: var(--navy);
}

.job-detail p {
  margin: 0 0 clamp(10px, 1vw, 18px);
  font-size: clamp(11px, .88vw, 15px);
  line-height: 1.75;
  color: var(--text-soft);
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-list li {
  display: flex;
  align-items: flex-start;
  gap: clamp(9px, .85vw, 14px);
  font-size: clamp(11px, .88vw, 15px);
  line-height: 1.7;
  color: var(--text-soft);
}

.job-list i {
  flex-shrink: 0;
  margin-top: .35em;
}

.job-list--check i { color: var(--navy); }
.job-list--caret i { color: var(--navy); font-size: .9em; opacity: .55; }

/* ---- the apply panel ---------------------------------------------------- */

.job-apply__title {
  margin: 0 0 clamp(6px, .6vw, 12px);
  font-size: clamp(16px, 1.4vw, 25px);
  font-weight: 500;
  color: var(--navy);
}

/* .intl-form carries its own padding for the panel it normally sits in;
   here it is already inside the page column. */
.job-apply .intl-form {
  padding: 0;
}

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 991.98px) {
  .job-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .cv-form {
    grid-template-columns: 1fr;
  }
}
