.employment {
  background: #f5f5f5;
}

/* FULL-BLEED HERO 
.employment-hero {
  width: 100vw;
  max-width: 100vw;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  position: relative;
  z-index: 0;
}
*/
/* HERO TYPOGRAPHY — MATCH LEGACY SITE */
.employment-hero__title {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.2;
  margin-top: 100px;
}

.employment-hero__lead {
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

/* HERO */
.employment-hero {
  position: relative;
  /*z-index: 2;*/
  margin-top: -160px;
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem 10rem;
  width: 100vw;
  max-width: 100vw;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  position: relative;
  z-index: 0;
  /* Replace this with your actual hero image path */
  background-image: url("/themes/custom/optimo_drupal/images/employment-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.employment-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 120, 160, 0.78); /* blue overlay */
}

.employment-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  color: #fff;
}

.employment-hero__title {
  margin: 0 0 1rem;
  font-weight: 300;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  margin-top: 100px;
}

.employment-hero__lead {
  margin: 0 auto 1.25rem;
  opacity: 0.95;
  line-height: 1.6;
}

.employment-hero__apply {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none; /* legacy site does NOT uppercase */
  font-weight: 600;
}

.employment-hero__applyicon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* CARD */
.employment-card {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.employment-card--overlap {
  margin-top: -140px;         /* overlap hero like WP */
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;        /* ABOVE the hero */
  margin-top: -160px; /* pull card into hero */
}

.employment-card--secondary {
  margin-bottom: 4rem;
}

/* 2-column grid inside main card */
.employment-card__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  padding: 3rem;
}

.employment-card__title {
  margin: 0 0 1.25rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Opportunities list */
.employment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.employment-list__item {
  margin: 0.5rem 0;
}

/* Style the field output (Title link and location) */
.employment-list__item a {
  text-decoration: none;
  font-weight: 700;
  color: #1f5f86;
}

.employment-list__item .views-field-field-location,
.employment-list__item .views-field-field_location {
  display: inline;
  margin-left: 0.35rem;
  color: #333;
  font-weight: 400;
}

/* Ready to Apply column */
.employment-ready {
  padding-left: 2.5rem;
  display: flex;
}

.employment-ready__divider {
  width: 1px;
  background: rgba(0,0,0,0.08);
  margin-right: 2.5rem;
}

.employment-ready__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.employment-ready__title {
  margin-bottom: 1rem;
  font-weight: 500;
  opacity: 0.8;
}

.employment-ready__button {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  background: #1f5f86;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 2px;
}

/* Learn more card */
.employment-learn {
  padding: 2.25rem 2rem;
  text-align: center;
  background: #f7f7f7;
}

.employment-learn__title {
  margin-bottom: 1rem;
  font-weight: 500;
  opacity: 0.85;
}

.employment-learn__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #1f5f86;
  text-decoration: none;
  font-weight: 700;
}

.employment-learn__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile */
@media (max-width: 900px) {
  .employment-card__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .employment-ready {
    padding-left: 0;
  }

  .employment-ready__divider {
    display: none;
  }
}
