/* Hero */
.hero {
  background: var(--pine);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 137, 43, 0.16) 0%, rgba(184, 137, 43, 0) 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 38px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(184, 137, 43, 0.18);
  color: var(--gold);
  border: 1px solid rgba(184, 137, 43, 0.35);
  font-size: 12.5px;
  font-weight: 600;
  font-family: 'IBM Plex Mono', monospace;
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow svg {
  width: 12px;
  height: 12px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.22;
  font-weight: 600;
  margin: 0;
  max-width: 640px;
}
.hero h1 .accent {
  color: var(--gold);
}
.hero p {
  font-size: 15.5px;
  color: #c7d8d0;
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}
.hero-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.search-field {
  flex: 1 1 320px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 46px;
  gap: 10px;
}
.search-field input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: transparent;
}
.search-field input:focus {
  outline: none !important;
  box-shadow: none !important;
}
.search-field input:-webkit-autofill,
.search-field input:-webkit-autofill:hover, 
.search-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--white) inset !important;
  box-shadow: 0 0 0px 1000px var(--white) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
}
.search-field input::placeholder {
  color: var(--text-muted);
}
.search-field.location {
  flex: 0 0 240px;
}
.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
}
.btn-search {
  background: var(--gold);
  color: #2b1e08;
  border: none;
  border-radius: 10px;
  padding: 0 26px;
  height: 46px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.btn-search:hover {
  background: #c99936;
}
.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.8px;
  color: #a9c1b7;
}
.hero-tags span {
  cursor: pointer;
}
.hero-tags span:hover {
  color: var(--white);
}
.hero-tags b {
  color: #d7e4dd;
  font-weight: 600;
}

/* Stat strip */
.stat-strip {
  background: var(--pine-light);
  position: relative;
  z-index: 1;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 22px 0;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
}
.stat-cell:first-child {
  border-left: none;
}
.stat-num {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--white);
}
.stat-label {
  font-size: 12.5px;
  color: #a9c1b7;
  margin-top: 2px;
}

/* Section shell */
section {
  padding: 52px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}
.section-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.view-all {
  font-size: 13.8px;
  font-weight: 600;
  color: var(--pine);
  display: flex;
  align-items: center;
  gap: 6px;
}
.view-all svg {
  width: 14px;
  height: 14px;
  transition: transform .15s;
}
.view-all:hover svg {
  transform: translateX(3px);
}

/* Category tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.cat-tile {
  background: var(--white);
  border: 1px solid var(--sage-border);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #c9d5be;
}
.cat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--sage-bg);
  color: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-icon svg {
  width: 19px;
  height: 19px;
}
.cat-name {
  font-weight: 700;
  font-size: 14.5px;
}
.cat-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  color: #123832 !important;
  font-weight: 600;
  margin-top: 2px;
}

/* Job cards (same tear-line motif) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.job-card {
  background: var(--white);
  border: 1px solid var(--sage-border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  overflow: hidden;
}
.job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: #c9d5be;
}
.card-body {
  padding: 18px 18px 16px;
  flex: 1;
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.dept-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--sage-bg);
  color: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 13.5px;
  flex-shrink: 0;
}
.save-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--sage-border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.15s;
}
.save-btn:hover, .save-btn.saved {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-bg);
}
.job-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 3px;
}
.job-dept {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0 0 12px;
  line-height: 1.4;
}
.meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.8px;
}
.meta-row svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.meta-row .meta-label {
  color: var(--text-muted);
}
.meta-row .meta-val {
  font-weight: 600;
}
.meta-row.salary .meta-val {
  color: var(--pine);
}
.card-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gold-bg);
  color: var(--gold-dark);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
}
.source-badge svg {
  width: 11px;
  height: 11px;
}
.posted-when {
  font-size: 11.5px;
  color: var(--text-muted);
}
.tear-line {
  position: relative;
  height: 0;
  border-top: 2px dashed var(--sage-border);
  margin: 0 18px;
}
.tear-line::before, .tear-line::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sage-bg);
  border: 1px solid var(--sage-border);
}
.tear-line::before {
  left: -27px;
}
.tear-line::after {
  right: -27px;
}
.apply-row {
  padding: 14px 18px 18px;
}
.apply-btn {
  width: 100%;
  background: var(--pine);
  color: var(--white);
  border: none;
  border-radius: 9px;
  height: 42px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.15s;
}
.apply-btn:hover {
  background: var(--pine-light);
}
.apply-btn svg {
  width: 15px;
  height: 15px;
}

/* Departments strip */
.dept-strip {
  background: var(--white);
  border: 1px solid var(--sage-border);
  border-radius: 16px;
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.dept-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-right: 1px solid var(--sage-border);
  cursor: pointer;
  transition: all 0.15s;
}
.dept-item:last-child {
  border-right: none;
}
.dept-item:hover .dept-badge {
  background: var(--gold-bg);
  color: var(--gold-dark);
}
.dept-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-bg);
  color: var(--pine);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.dept-badge svg {
  width: 20px;
  height: 20px;
}
.dept-item-name {
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.dept-item-count {
  font-size: 11.5px;
  color: #123832 !important;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
}

/* How it works */
.how-section {
  background: var(--sage-panel);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.how-card {
  background: var(--white);
  border: 1px solid var(--sage-border);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}
.how-num {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--gold-dark);
  background: var(--gold-bg);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.how-title {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 6px;
}
.how-desc {
  font-size: 13.3px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* CTA band */
.cta-band {
  background: var(--pine);
  border-radius: 18px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 137, 43, 0.16) 0%, rgba(184, 137, 43, 0) 70%);
}
.cta-text h3 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.cta-text p {
  margin: 0;
  font-size: 13.8px;
  color: #c7d8d0;
  position: relative;
  z-index: 1;
}
.cta-btn {
  background: var(--gold);
  color: #2b1e08;
  border: none;
  border-radius: 10px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.cta-btn:hover {
  background: #c99936;
}

@media (max-width: 1080px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dept-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .dept-item {
    border-right: none;
    border-bottom: 1px solid var(--sage-border);
    padding: 14px 6px;
  }
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 22px 0 0 !important;
  }
  .hero h1 {
    font-size: 26px !important;
    line-height: 1.28 !important;
  }
  .hero p {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }
  .hero-search {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .search-field,
  .search-field.location {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 50px !important;
    border-radius: 12px !important;
  }
  .search-field input {
    width: 100% !important;
    font-size: 15px !important;
  }
  .btn-search {
    height: 50px !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    display: flex !important;
  }

  .hero-tags {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    padding-bottom: 4px;
    scrollbar-width: none;
    width: 100%;
  }
  .hero-tags::-webkit-scrollbar {
    display: none;
  }
  .hero-tags b {
    display: none;
  }
  .hero-tags span {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #d7e4dd;
    font-size: 12.3px;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
  }
  .hero-tags span:first-of-type {
    background: var(--gold);
    color: #2b1e08;
    border-color: var(--gold);
    font-weight: 600;
  }

  .stat-row {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 14px 18px;
    scrollbar-width: none;
  }
  .stat-row::-webkit-scrollbar {
    display: none;
  }
  .stat-cell {
    flex: 0 0 auto;
    min-width: 118px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    border-left: none;
  }
  .stat-num {
    font-size: 19px;
  }
  .stat-label {
    font-size: 11px;
    margin-top: 1px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cat-tile {
    padding: 15px 14px;
    border-radius: 13px;
    gap: 8px;
  }
  .cat-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .cat-name {
    font-size: 13.5px;
  }
  .cat-count {
    font-size: 11px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .job-card {
    border-radius: 14px;
  }
  .card-body {
    padding: 15px 16px 14px;
  }
  .dept-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 12px;
  }
  .save-btn {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .job-title {
    font-size: 14.3px;
  }
  .job-dept {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .meta-row {
    font-size: 12px;
  }
  .source-badge {
    font-size: 10px;
    padding: 3px 8px 3px 6px;
  }
  .posted-when {
    font-size: 10.5px;
  }
  .tear-line::before, .tear-line::after {
    width: 16px;
    height: 16px;
    top: -8px;
  }
  .tear-line::before {
    left: -26px;
  }
  .tear-line::after {
    right: -26px;
  }
  .apply-row {
    padding: 12px 16px 15px;
  }
  .apply-btn {
    height: 42px;
    font-size: 13.5px;
  }

  .dept-strip {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 0 0 4px;
    scrollbar-width: none;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  .dept-strip::-webkit-scrollbar {
    display: none;
  }
  .dept-item {
    flex: 0 0 auto;
    background: var(--white);
    border: 1px solid var(--sage-border);
    border-radius: 13px;
    padding: 14px 16px;
    min-width: 92px;
    border-right: 1px solid var(--sage-border);
    border-bottom: none;
  }
  .dept-badge {
    width: 36px;
    height: 36px;
  }
  .dept-badge svg, .dept-badge i {
    width: 17px;
    height: 17px;
  }
  .dept-item-name {
    font-size: 11.5px;
    line-height: 1.25;
  }
  .dept-item-count {
    font-size: 10px;
  }

  .how-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .how-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }
  .how-num {
    margin-bottom: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 12px;
    flex-shrink: 0;
  }
  .how-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .how-title {
    font-size: 14px;
    margin-bottom: 4px;
    margin-top: 2px;
    text-align: left;
  }
  .how-desc {
    font-size: 12.3px;
    line-height: 1.5;
    text-align: left;
    margin: 0;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    border-radius: 16px;
  }
  .cta-text h3 {
    font-size: 17px;
  }
  .cta-text p {
    font-size: 12.5px;
    margin-bottom: 16px;
  }
  .cta-btn {
    width: 100%;
    padding: 14px;
    font-size: 14px;
  }
}
