/* ==========================================================================
   Career page — consistent with the Intensive Fiscal design language
   Palette & type mirror home.css / about.css / research-analyst.css
   ========================================================================== */
.career-page {
  --career-navy: #102548;
  --career-navy-2: #0b2341;
  --career-gold: #c79a49;
  --career-gold-2: #d8b45b;
  --career-green: #7c8a5a;
  --career-cream: #faf9f5;
  --career-text: #56627a;
  background: var(--career-cream);
  color: var(--career-navy);
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}

.career-shell {
  width: min(100% - 48px, 1220px);
  margin-inline: auto;
}

.career-page h1,
.career-page h2,
.career-page h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1;
}

.career-page em {
  color: var(--career-green);
  font-style: italic;
}

/* ---- Shared kicker ---- */
.career-kicker {
  display: inline-flex;
    margin: 0 0 16px;
    font-family: "Poppins", sans-serif;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1a4a7a;
    border-radius: 999px;
    border: 1px solid rgba(10, 46, 92, 0.14);
    background: rgba(255, 255, 255, 0.75);
}
.career-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7cb342;
  box-shadow: 0 0 0 5px rgba(124, 179, 66, 0.12);
}
.career-kicker--light {
  color: #d9c48f;
}
.career-kicker--light span {
  background: var(--career-gold-2);
  box-shadow: 0 0 0 5px rgba(216, 180, 91, 0.16);
}

/* ==========================================================================
   Page banner (shared design language with About / Offer Documents pages)
   ========================================================================== */
.career-page-banner {
  min-height: 60vh;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.career-page-banner::before,
.career-page-banner::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(215, 179, 103, 0.2);
  transform: rotate(45deg);
}
.career-page-banner::before {
  width: 280px;
  height: 280px;
  left: -105px;
  top: -205px;
}
.career-page-banner::after {
  width: 220px;
  height: 220px;
  right: -74px;
  bottom: -165px;
}
.career-banner-pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.3;
  background-image: linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, .08) 50%, transparent 50.2%);
  background-size: 72px 100%;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
@media (max-width: 560px) {
  .career-page-banner {
    min-height: 220px;
  }
}

/* ==========================================================================
   Hero content (top of page, on the cream background)
   ========================================================================== */
.career-hero {
  padding: 56px 0 24px;
  text-align: center;
}
.career-hero__inner {
  max-width: 820px;
  margin-inline: auto;
}
.career-hero .career-kicker {
  justify-content: center;
}
.career-hero h1 {
  font-size: clamp(56px, 5vw, 65px);
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--career-navy);
}
.career-hero em {
  color: var(--career-green);
}
.career-hero__body {
  max-width: 600px;
  margin: 0 auto;
  color: var(--career-text);
  font-size: 15px;
  line-height: 1.9;
}

/* ==========================================================================
   Intro
   ========================================================================== */
.career-intro {
  padding: 96px 0 24px;
}
.career-intro__copy {
  max-width: 920px;
}
.career-intro h2 {
  font-size: clamp(42px, 5.4vw, 78px);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.career-intro p:not(.career-kicker) {
  max-width: 760px;
  color: var(--career-text);
  font-size: 15px;
  line-height: 1.9;
  margin: 0;
}

/* ==========================================================================
   Benefits
   ========================================================================== */
.career-benefits {
  padding: 84px 0 96px;
}
.career-section-heading {
  max-width: 720px;
  margin: 0 0 48px;
}
.career-section-heading h2 {
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.career-section-heading h2 span {
  color: var(--career-green);
}
.career-section-heading p:not(.career-kicker) {
  color: var(--career-text);
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
}
.career-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.career-benefit {
  position: relative;
  padding: 40px 30px 34px;
  background: linear-gradient(145deg, #fff 0%, #f5f5ed 100%);
  border: 1px solid rgba(199, 154, 73, 0.2);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(9, 38, 75, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.career-benefit:hover {
  transform: translateY(-7px);
  border-color: rgba(199, 154, 73, 0.5);
  box-shadow: 0 28px 56px rgba(9, 38, 75, 0.15);
}
.career-benefit__number {
  position: absolute;
  top: 24px;
  right: 26px;
  font: 600 20px/1 "Cormorant Garamond", serif;
  color: rgba(199, 154, 73, 0.6);
}
.career-benefit__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--career-navy);
  color: #e2c878;
  font-size: 22px;
}
.career-benefit h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  margin: 0 0 12px;
  color: var(--career-navy);
}
.career-benefit p {
  color: var(--career-text);
  font-size: 13.5px;
  line-height: 1.8;
  margin: 0;
}

/* ==========================================================================
   Application form
   ========================================================================== */
.career-apply {
  position: relative;
  margin-bottom: 110px;
  padding: 64px clamp(24px, 5vw, 68px);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 12%, rgba(199, 154, 73, 0.1), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(124, 138, 90, 0.1), transparent 30%),
    linear-gradient(135deg, #0d2244 0%, #102548 55%, #0b2341 100%);
  color: #fff;
  box-shadow: 0 34px 80px rgba(9, 38, 75, 0.28);
  overflow: hidden;
  scroll-margin-top: 110px;
}
.career-apply::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -90px;
  top: -120px;
  border: 1px solid rgba(215, 183, 109, 0.22);
  transform: rotate(45deg);
  pointer-events: none;
}
.career-apply__head {
  position: relative;
  max-width: 720px;
  margin-bottom: 40px;
}
.career-apply__head .career-kicker {
  color: #0f2547;
}
.career-apply__head .career-kicker span {
  background: #0f2547;
  box-shadow: 0 0 0 5px rgba(216, 180, 91, 0.16);
}
.career-apply__head h2 {
  font-size: clamp(38px, 4.6vw, 62px);
  margin: 0 0 14px;
}
.career-apply__head h2 em {
  color: #e2c878;
}
.career-apply__head p:not(.career-kicker) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.career-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}
.career-form__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.career-field {
  display: flex;
  flex-direction: column;
}
.career-field label {
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.career-field input,
.career-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.career-field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.7;
}
.career-field input::placeholder,
.career-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.career-field input:focus,
.career-field textarea:focus {
  outline: none;
  border-color: var(--career-gold-2);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(216, 180, 91, 0.16);
}
.career-field--grow {
  height: 100%;
}
.career-field--grow textarea {
  flex: 1;
}
.career-field.is-invalid input,
.career-field.is-invalid textarea,
.career-field.is-invalid .career-file {
  border-color: #e06a6a;
  box-shadow: 0 0 0 3px rgba(224, 106, 106, 0.16);
}
.career-field__error {
  margin-top: 7px;
  color: #f0a3a3;
  font-size: 12px;
}

/* File upload */
.career-file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 7px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.career-file__button {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--career-gold) 0%, var(--career-gold-2) 100%);
  color: #11284b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.career-file__name {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.career-file input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.career-file__note {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.7;
}

.career-form__actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}
.career-submit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--career-gold) 0%, var(--career-gold-2) 100%);
  color: #11284b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(199, 154, 73, 0.3);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.career-submit i {
  transition: transform 0.22s ease;
}
.career-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(199, 154, 73, 0.42);
}
.career-submit:hover i {
  transform: translateX(4px);
}

/* Alerts & success */
.career-form__alert,
.career-form__success {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.6;
}
.career-form__alert {
  margin-bottom: 26px;
  border: 1px solid rgba(224, 106, 106, 0.4);
  background: rgba(224, 106, 106, 0.12);
  color: #ffd6d6;
}
.career-form__alert i {
  color: #f0a3a3;
  font-size: 22px;
}
.career-form__success {
  border: 1px solid rgba(124, 179, 66, 0.4);
  background: rgba(124, 179, 66, 0.12);
  color: #e8f3d8;
}
.career-form__success i {
  color: #a8d26a;
  font-size: 26px;
}
.career-form__success p,
.career-form__alert p {
  margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .career-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .career-hero {
    padding: 60px 0 16px;
  }
  .career-intro {
    padding: 56px 0 12px;
  }
  .career-benefits {
    padding: 64px 0 76px;
  }
  .career-form__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .career-apply {
    padding: 48px 24px;
    margin-bottom: 84px;
  }
}
@media (max-width: 560px) {
  .career-benefits__grid {
    grid-template-columns: 1fr;
  }
  .career-hero h1 {
    font-size: 62px;
  }
  .career-file {
    flex-wrap: wrap;
  }
  .career-form__actions {
    justify-content: stretch;
  }
  .career-submit {
    width: 100%;
    justify-content: center;
  }
}
