@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* "Executive Talent Canvas" design system — Indigo Slate primary, Deep
     Emerald Teal secondary, Midnight Slate neutrals. The --orange/-dark/-bg
     names stay as-is even though the palette moved off orange: common.js's
     tenant branding override (Settings > Branding accent color) writes to
     exactly these three variable names, so renaming them would silently
     break every tenant's custom accent color. */
  --ink: #0F172A;       /* Midnight Slate — also the tenant-overridable font color */
  --slate: #475569;
  --faint: #94A3B8;
  --line: #E2E8F0;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --orange: #3730A3;      /* Indigo Slate — default accent (tenant-overridable) */
  --orange-dark: #2E2882;
  --orange-bg: #EEF2FF;
  /* Comma-separated RGB triple (not a hex) so it can sit inside rgba(...)
     for shadows/borders that need a translucent version of the accent —
     kept in sync with --orange by common.js's tenant branding override. */
  --orange-shadow-rgb: 228, 105, 44;
  --teal: #0D9488;        /* Deep Emerald Teal — hiring/status signal, not tenant-branded */
  --teal-dark: #065F46;
  --teal-bg: #ECFDF5;
  --green: #065F46;
  --green-bg: #ECFDF5;
  --red: #BA1A1A;
  --red-bg: #FFDAD6;
  /* Hero section background gradient + footer background — tenant-
     overridable, separately from the accent color, since a dark "brand"
     color for these large surfaces isn't necessarily the same as the CTA
     accent color. */
  --hero-bg-1: #0F172A;
  --hero-bg-2: #1E293B;
  --footer-bg: #0D1730;
  /* Text color for the hero and footer specifically — these sit on their
     own customizable dark backgrounds, so their text needs to be able to
     follow along independently of --ink (the light-section text color used
     everywhere else, e.g. Open Positions, which must NOT change here).
     RGB triples so alpha can vary per element (heading vs. muted subtext)
     while staying one tenant-controlled color. */
  --hero-text-rgb: 255, 255, 255;
  --footer-text-rgb: 143, 160, 199;
  /* Header background — deliberately its own variable rather than reusing
     --bg (the general light-section background used for body/forms/filters
     too — overriding that directly would recolor those as well, the same
     mistake already fixed for font color/--ink). --header-text-rgb follows
     it the same way hero/footer text follows their own backgrounds. */
  --header-bg: #F8FAFC;
  --header-text-rgb: 15, 23, 42;

  --font-display: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
  --font-body: 'Inter', Arial, Helvetica, sans-serif;
  --font-mono: 'Inter', Arial, Helvetica, sans-serif;

  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-lux: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  /* Hidden until common.js's tenant branding fetch resolves (or fails, or
     there's a safety-timeout fallback) and reveals it — every accent-
     colored element on the page (buttons, badges, pills) uses --orange,
     which starts at this stylesheet's own default and only becomes the
     tenant's real color once branding loads. Hiding element-by-element
     doesn't scale (there are many, and it's easy to miss one), so the
     whole page waits rather than risk painting any of them in the wrong
     color first. */
  visibility: hidden;
}

body.ready {
  visibility: visible;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= HEADER (matches website .navbar) ================= */
header.top {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: 1250px;
}


.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: rgb(var(--header-text-rgb));
}

.brand-name-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: rgb(var(--header-text-rgb));
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  color: rgba(var(--header-text-rgb), 0.65);
  text-transform: uppercase;
  margin-top: 1px;
}

/* Header: logo | divider | CAREER PORTAL (company name is not repeated as text) */
.brand { gap: 20px; }
.brand-title { display: none; }
#brand-logo-container img { height: 42px !important; max-width: 266px !important; width: auto !important; }
.brand-name-block {
  justify-content: center;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  height: 44px;
}
.brand-sub {
  font-size: 16px;
  letter-spacing: .1em;
  color: var(--faint);
  margin-top: 0;
}

.brand-badge {
  background: linear-gradient(155deg, #16234A, #0D1730); /* Match website brand-mark */
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(13, 23, 48, 0.15);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 44px;
}

@media (max-width: 480px) {
  header.top .wrap {
    height: 64px;
  }
  .header-left {
    gap: 10px;
  }
  #brand-logo-container img {
    height: 26px !important;
    max-width: 110px !important;
  }
  .brand-name-block {
    padding-left: 10px;
    height: 26px;
  }
  .brand-sub {
    font-size: 10px;
    letter-spacing: .06em;
  }
  .header-actions {
    gap: 10px;
  }
  .header-signin {
    font-size: 12.5px;
  }
  .header-register {
    font-size: 12px;
    padding: 7px 13px;
  }
  /* The "CAREER PORTAL" sub-label is secondary to the tenant's own logo —
     dropping it below ~480px is what actually buys Sign In/Register room to
     breathe, rather than continuing to shrink text until it's unreadable. */
  .brand-name-block {
    display: none;
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: rgb(var(--header-text-rgb));
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width .25s ease;
}

.header-nav a:hover {
  color: var(--orange-dark);
}

.header-nav a:hover::after {
  width: 100%;
}

@media (max-width: 640px) {
  .header-nav {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-signin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: rgb(var(--header-text-rgb));
  font-size: 14.5px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.header-signin:hover {
  color: var(--orange-dark);
}

.header-signin-icon {
  font-size: 13px;
}

.header-register {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--orange);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 20px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-register:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* ================= PROFILE MENU (signed-in header state) ================= */
.header-profile {
  position: relative;
}

.header-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 4px;
  border-radius: 20px;
}

.header-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange-bg);
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.header-profile-name {
  font-size: 13.5px;
  font-weight: 700;
  color: rgb(var(--header-text-rgb));
  white-space: nowrap;
}

.header-profile-caret {
  font-size: 10px;
  color: rgba(var(--header-text-rgb), 0.65);
}

.header-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 190px;
  padding: 6px;
  z-index: 60;
}

.header-profile-menu a,
.header-profile-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.header-profile-menu a:hover,
.header-profile-menu button:hover {
  background: var(--bg);
}

.header-profile-menu .danger {
  color: var(--red);
}

.header-profile-menu .divider {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}

/* ================= CHANGE PASSWORD MODAL ================= */
.cp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 27, 38, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.cp-modal {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.cp-modal h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.cp-modal .cp-modal-sub {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 20px;
}

.cp-modal .cp-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ================= HERO (matches website .page-header) ================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--hero-bg-1), var(--hero-bg-2));
  padding: 64px 0 88px;
  color: rgb(var(--hero-text-rgb));
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 56, 202, 0.28), transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.14), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: none;
}

.hero-copy {
  max-width: 560px;
}

.hero-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lux);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hero-media-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgb(var(--hero-text-rgb));
}

.hero-media-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
    max-height: 280px;
  }
  .hero-copy {
    max-width: none;
  }
}

.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-bg);
  border: 1px solid var(--orange-bg);
  border-radius: 999px;
  padding: 6px 14px 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 22px;
}

.hero-eyebrow-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: rgb(var(--hero-text-rgb));
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(var(--hero-text-rgb), 0.78);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-cta {
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: rgb(var(--hero-text-rgb));
  margin-bottom: 4px;
}

.hero-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(var(--hero-text-rgb), 0.5);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 56px;
  }
  .hero-stats {
    gap: 24px;
  }
}

/* ================= HERO SEARCH BAR ================= */
.jobs-search-section {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 32px;
}

.jobs-search-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 6px;
  letter-spacing: -0.01em;
}

.jobs-search-bar {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.jobs-search-field {
  position: relative;
  flex: 1 1 280px;
}

.jobs-search-field input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px 13px 42px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  background: var(--bg);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jobs-search-field input:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(var(--orange-shadow-rgb), 0.12);
}

.jobs-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: .55;
  pointer-events: none;
}

.jobs-search-field-location .location-suggestions {
  top: calc(100% + 6px);
}

.jobs-search-btn {
  flex: 0 0 auto;
  padding: 13px 26px;
}

@media (max-width: 640px) {
  .jobs-search-bar {
    flex-direction: column;
  }
  .jobs-search-field {
    /* flex-basis switches to a HEIGHT basis once the container becomes a
       column, so the 280px desktop width-basis must be reset here or every
       field stretches to 280px tall instead of a normal input height. */
    flex-basis: auto;
  }
  .jobs-search-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ================= PAGINATION ================= */
.jobs-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--slate);
}

.jobs-page-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jobs-page-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.jobs-page-btn:hover {
  border-color: var(--orange);
}

.jobs-page-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.jobs-page-ellipsis {
  color: var(--faint);
  padding: 0 2px;
}

.jobs-page-size select {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  margin: 0 4px;
}

@media (max-width: 640px) {
  .jobs-pagination {
    justify-content: center;
    text-align: center;
  }
}

/* ================= MAIN CONTENT & GRID LAYOUT ================= */
main {
  padding: 56px 0 96px;
  background: radial-gradient(circle at 95% 5%, rgba(var(--orange-shadow-rgb), 0.04), transparent 45%);
}

.portal-grid {
  display: grid;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

.portal-grid.sidebar-left {
  grid-template-columns: 280px 1fr;
}

.portal-grid.sidebar-right {
  grid-template-columns: 1fr 320px;
}

.portal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portal-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .portal-grid.sidebar-left,
  .portal-grid.sidebar-right {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.sub {
  color: var(--slate);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 600px;
  line-height: 1.65;
}

/* ================= SEARCH BAR ================= */
.search-bar {
  position: relative;
  max-width: 560px;
  margin-bottom: 32px;
}

.search-bar input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 15px 20px 15px 46px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search-bar input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-shadow-rgb), 0.12);
}

.search-bar::before {
  content: '🔍';
  position: absolute;
  left: 19px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: .5;
  pointer-events: none;
}

/* ================= CARDS ================= */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px; /* Match website card shape */
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.job-list-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
}

.job-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

.job-card:last-child {
  border-bottom: none;
}

.job-card:hover {
  background: var(--bg);
  border-left-color: var(--orange);
}

.job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.job-posted {
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}

.job-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.job-meta {
  font-size: 13.5px;
  color: var(--slate);
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.job-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
  flex-shrink: 0;
}

.job-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.job-pill {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--slate);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.job-pill-salary {
  background: var(--orange-bg);
  border-color: transparent;
  color: var(--orange-dark);
}

.job-snippet {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.6;
  margin-top: 10px;
  max-width: 680px;
}

.job-arrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  transition: transform 0.2s ease;
}

.job-card:hover .job-arrow {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .job-card {
    padding: 18px 20px;
  }
}

/* ================= JOB FILTERS ================= */
.jobs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.filters-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-dark);
  cursor: pointer;
  font-family: inherit;
}

.filters-toggle-btn:hover {
  text-decoration: underline;
}

.jobs-count {
  font-size: 13.5px;
  color: var(--faint);
  font-weight: 600;
}

.jobs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.jobs-layout.filters-hidden {
  grid-template-columns: 1fr;
}

.jobs-layout.filters-hidden .filters-panel {
  display: none;
}

.filters-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 20px;
}

.jobs-main {
  min-width: 0;
}

.jobs-main .search-bar {
  max-width: none;
  margin-bottom: 24px;
}

.filter-group {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.filter-radio,
.filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 10px;
}

.filter-radio:last-child,
.filter-check:last-child {
  margin-bottom: 0;
}

.filter-check {
  justify-content: space-between;
}

.filter-check-count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--faint);
  margin-left: auto;
}

.filter-salary-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-salary-input {
  width: 0;
  flex: 1 1 0;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  background: var(--white);
}

.filter-salary-input:focus {
  border-color: var(--orange);
}

.filter-salary-sep {
  color: var(--faint);
  flex-shrink: 0;
}

.filter-salary-hint {
  font-size: 11px;
  color: var(--faint);
  margin-top: 8px;
}

.filter-radio input,
.filter-check input {
  accent-color: var(--orange);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  border-color: var(--orange);
}

.filter-chip.active {
  background: var(--orange-bg);
  border-color: var(--orange);
  color: var(--orange-dark);
}

.filter-location-wrap {
  position: relative;
}

.filter-location-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  background: var(--white);
  box-sizing: border-box;
}

.filter-location-input:focus {
  border-color: var(--orange);
}

.location-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 20;
  overflow: hidden;
}

.location-suggestion-item {
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
}

.location-suggestion-item:hover {
  background: var(--bg);
  color: var(--orange-dark);
}

.filters-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filters-actions .btn {
  padding: 11px 20px;
  font-size: 13.5px;
}

@media (max-width: 860px) {
  .jobs-layout {
    grid-template-columns: 1fr;
  }
}

/* ================= PILLS & METADATA ================= */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill.orange { background: var(--orange-bg); color: var(--orange); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.red { background: var(--red-bg); color: var(--red); }

.job-applied-badge {
  vertical-align: middle;
  margin-left: 4px;
  font-size: 10px;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 32px; /* Match website button shape */
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px -6px rgba(var(--orange-shadow-rgb), 0.4); /* Match website shadow */
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -4px rgba(var(--orange-shadow-rgb), 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--bg);
  border-color: var(--slate);
}

/* ================= FIELDS & INPUTS ================= */
.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=tel],
.field input[type=url],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  background: var(--white);
  transition: all 0.2s ease;
}

.field select {
  appearance: auto;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-shadow-rgb), 0.12);
  background: var(--white);
}

.dob-input-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--white);
  transition: all 0.2s ease;
}

.dob-input-group:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-shadow-rgb), 0.12);
}

/* Higher specificity than .field input[type=text] (which sets width:100%,
   a border, padding, etc.) so these three-in-a-row segments actually stay
   small instead of each stretching to fill the field. */
.field .dob-input-group input.dob-part {
  border: none;
  outline: none;
  padding: 0;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
  text-align: center;
  width: 26px;
  flex-shrink: 0;
}

.field .dob-input-group input.dob-part.dob-year {
  width: 46px;
}

.dob-part::placeholder {
  color: var(--faint);
}

.dob-sep {
  color: var(--faint);
  flex-shrink: 0;
}

.dob-calendar-btn {
  margin-left: auto;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 2px 4px;
  opacity: 0.6;
  flex-shrink: 0;
}
.dob-calendar-btn:hover {
  opacity: 1;
}

/* Kept in-layout (not display:none) so showPicker()/click() work reliably
   across browsers, but visually invisible — the styled DD/MM/YYYY boxes
   are the only thing the candidate sees. */
.dob-native-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  border: none;
  padding: 0;
  pointer-events: none;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.field .hint {
  font-size: 12px;
  color: var(--faint);
  margin-top: 6px;
}

.pwd-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.pwd-wrapper input[type=password],
.pwd-wrapper input[type=text] {
  padding-right: 44px;
}

.pwd-toggle {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  outline: none;
  transition: color 0.15s ease;
}

.pwd-toggle:hover {
  color: var(--slate);
}

.pwd-toggle svg {
  width: 18px;
  height: 18px;
}

/* Read-only resume review (Step 2) */
.readonly-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 12px;
}
.readonly-item {
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 14px;
}
.readonly-item .l {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.readonly-item .v {
  font-size: 14.5px;
  color: var(--ink);
}
.readonly-item .v.empty {
  color: var(--faint);
  font-style: italic;
}
.ro-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ro-entry:last-child { border-bottom: none; }
.ro-entry .ro-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.ro-entry .ro-sub {
  font-size: 13px;
  color: var(--slate);
  margin-top: 3px;
}

/* Consent checkbox row (Step 3) */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.6;
}
.consent-row input[type=checkbox] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ================= VERTICAL STEPPER SIDEBAR ================= */
.vertical-stepper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.v-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  position: relative;
}

.v-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 36px;
  width: 2px;
  height: 20px;
  background: var(--line);
  z-index: 1;
}

.v-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--slate);
  background: var(--white);
  z-index: 2;
  transition: all 0.2s ease;
}

.v-step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ================= HORIZONTAL STEPPER ================= */
.horizontal-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 40px;
  box-shadow: var(--shadow-sm);
}

.horizontal-stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--line);
  transform: translateY(-50%);
  z-index: 1;
}

.h-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 0 16px;
  z-index: 2;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.h-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--slate);
  background: var(--white);
  z-index: 3;
  transition: all 0.2s ease;
}

.h-step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* Stepper state logic classes */
.h-step.active {
  opacity: 1;
}

.h-step.active .h-step-num {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 0 4px rgba(var(--orange-shadow-rgb), 0.15);
}

.h-step.done {
  opacity: 0.85;
}

.h-step.done .h-step-num {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

@media (max-width: 600px) {
  .horizontal-stepper {
    padding: 16px 20px;
  }
  .horizontal-stepper::before {
    left: 40px;
    right: 40px;
  }
  .h-step {
    padding: 0 4px;
    gap: 6px;
  }
  .h-step-label {
    display: none;
  }
}

/* Stepper state logic classes */
.v-step.active {
  opacity: 1;
}

.v-step.active .v-step-num {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 0 4px rgba(var(--orange-shadow-rgb), 0.15);
}

.v-step.done {
  opacity: 0.85;
}

.v-step.done .v-step-num {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.v-step.done:not(:last-child)::after {
  background: var(--green);
}

/* ================= SCORE BOX & DETAILS ================= */
.error-box {
  background: var(--red-bg);
  color: var(--red);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(209, 69, 59, 0.2);
  display: none;
  animation: shake 0.4s ease;
}

.error-box.show {
  display: block;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.divider-or {
  text-align: center;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 24px 0;
  letter-spacing: .08em;
  position: relative;
}

.divider-or::before,
.divider-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--line);
}

.divider-or::before { left: 0; }
.divider-or::after { right: 0; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 24px;
  border: 2px solid var(--green);
  box-shadow: 0 4px 14px rgba(30, 122, 61, 0.2);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tag {
  background: var(--orange-bg);
  color: var(--orange);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(var(--orange-shadow-rgb), 0.1);
}

/* ═══════════════════════════════════════════════
   APPLY WIZARD — STRUCTURED FORM STYLES
═══════════════════════════════════════════════ */

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 32px;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--orange); }

/* Card section header (icon + title + subtitle) */
.card-section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.card-section-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.card-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 4px;
}
.card-section-sub {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.5;
}

/* Toggle auth text */
.toggle-auth-text {
  font-size: 13.5px;
  text-align: center;
  margin-top: 18px;
  color: var(--slate);
}

.returning-note {
  font-size: 13.5px;
  color: var(--slate);
  background: var(--orange-bg);
  border: 1px solid rgba(var(--orange-shadow-rgb), 0.15);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
}

.returning-note a {
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: none;
}

.returning-note a:hover {
  text-decoration: underline;
}
.toggle-auth-text a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}
.toggle-auth-text a:hover { text-decoration: underline; }

/* File drop enhanced */
.file-drop {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  transition: all 0.25s ease;
}
.file-drop:hover,
.file-drop.drag-over {
  border-color: var(--orange);
  background: var(--orange-bg);
}
.file-drop.has-file {
  border-color: var(--green);
  background: var(--green-bg);
  border-style: solid;
}
.file-drop-icon { font-size: 36px; margin-bottom: 12px; }
.file-drop-primary { font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.file-drop-secondary { font-size: 12.5px; color: var(--faint); }
.file-drop-name { font-size: 13.5px; font-weight: 700; color: var(--green); margin-top: 10px; }

/* Score box */
.score-box {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.score-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  min-width: 80px;
}
.score-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--faint);
  margin-top: 4px;
}
.score-divider {
  width: 1px;
  height: 52px;
  background: var(--line);
  margin: 0 28px;
  flex-shrink: 0;
}
.score-text {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
  flex: 1;
  min-width: 0;
}

/* Form section card */
.form-section {
  margin-bottom: 20px;
}
.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-section-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange-bg);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.form-section-desc {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 20px;
  line-height: 1.6;
  padding-left: 40px;
}

/* Tag variants */
.tag-green {
  background: var(--green-bg) !important;
  color: var(--green) !important;
  border: 1px solid rgba(30, 122, 61, 0.15) !important;
}
.tag-red {
  background: var(--red-bg) !important;
  color: var(--red) !important;
  border: 1px solid rgba(209, 69, 59, 0.15) !important;
}

/* ================= CULTURE BAND ================= */
.culture-band {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.culture-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.culture-band-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 max(24px, calc((100% - 1140px) / 2 + 24px));
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.15) 100%);
}

.culture-band-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #A9A7FF;
  margin-bottom: 10px;
}

.culture-band-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--white);
  max-width: 480px;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .culture-band {
    height: 220px;
  }
  .culture-band-title {
    font-size: 20px;
  }
}

/* ================= FOOTER (matches website footer-grid) ================= */
.site-footer {
  background: var(--footer-bg);
  color: rgb(var(--footer-text-rgb));
  padding: 56px 0 0;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-brand-name {
  display: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--white);
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
  color: rgba(var(--footer-text-rgb), 0.75);
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(var(--footer-text-rgb), 0.9);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col a {
  font-size: 14px;
  color: rgb(var(--footer-text-rgb));
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #F0925A;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 12.5px;
  color: rgba(var(--footer-text-rgb), 0.75);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

