body:has(.section-careers) .x-main {
  width: 100%;
}

body:has(.section-careers) .entry-wrap {
  padding: 0;
}

body:has(.section-careers) .x-container.max.width {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

body:has(.section-careers) .entry-header {
  display: none;
}

.section-careers {
  --careers-brand: #00acd8;
  --careers-text: #585f64;
  --careers-accent: #ffa400;
  --careers-card-shadow: 0 0 14px #eaebed;
}

/*/ Hero /*/
.x-section.section-careers.top {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 456px;
  padding: 64px 0 132px;
  background-color: var(--careers-brand);
  background-image:
    url('/wp-content/uploads/careers/hero-waves.svg'),
    url('/wp-content/uploads/careers/hero-arrows.svg');
  background-repeat: no-repeat;
  background-position:
    left bottom,
    left top;
  background-size:
    100% 170px,
    100% 100%;
  box-shadow: 0 0 14px var(--careers-text);
}

.section-careers.top:before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 44px;
  width: min(37vw, 697px);
  height: min(16.24vw, 306px);
  background: url('/wp-content/uploads/people.png') no-repeat left bottom /
    contain;
  pointer-events: none;
}

.section-careers.top > .x-row.x-container.max.width {
  position: relative;
  z-index: 2;
  width: calc(100% - 56px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}

.section-careers.top .x-row-inner,
.section-careers.top .x-row-inner > .x-col {
  margin: 0;
}

.section-careers.top .x-row-inner > .x-col {
  flex-basis: 100%;
}

.section-careers.top .top-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  min-height: 245px;
  margin: 0 auto;
  text-align: center;
}

.section-careers.top .top-content .title {
  margin: 0;
  font-family: 'futura-pt', sans-serif;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  color: #fff;
  text-transform: capitalize;
}

.section-careers.top .top-content .des {
  margin: 18px 0 28px;
  font-family: 'Open Sans', sans-serif;
  font-size: 23.1px;
  font-weight: 300;
  line-height: 1.75;
  color: #fff;
}

.section-careers.top .top-content p:last-child {
  margin: 0;
}

.section-careers.top .top-content .btn-careers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 2px solid transparent;
  border-radius: 4.9px;
  background-color: #fff;
  box-shadow: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 24.5px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  color: var(--careers-brand);
  text-transform: capitalize;
  text-shadow: none;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

@media (hover: hover) {
  .section-careers.top .top-content .btn-careers:hover {
    border-color: #fff;
    background-color: var(--careers-brand);
    color: #fff;
  }
}

.section-careers.top .top-content .btn-careers.is-pressed {
  border-color: #fff;
  background-color: var(--careers-brand);
  color: #fff;
}

.section-careers.top .top-content .btn-careers:focus-visible {
  outline: 3px solid var(--careers-accent);
  outline-offset: 5px;
}

/*/ Content: "Why Work at Ashlar?" + "Open Positions" /*/
body .cs-content .x-section.section-careers.content {
  z-index: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.section-careers.content .x-row {
  width: 100%;
  max-width: none;
  padding: 0;
}

.section-careers.content .x-row-inner {
  display: block;
  margin: 0;
}

.section-careers.content .x-row-inner > .x-col {
  width: 100%;
  margin: 0;
  padding-left: max(28px, calc((100% - 1080px) / 2));
  padding-right: max(28px, calc((100% - 1080px) / 2));
  text-align: center;
  color: var(--careers-text);
}

.section-careers.content .x-text,
.section-careers.content .x-text .x-text-content-text-primary {
  color: var(--careers-text);
}

.section-careers.content .careers-heading,
.section-careers.content .ashlar-position .x-text-content-text-primary {
  margin: 0;
  font-family: 'futura-pt', sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--careers-brand);
  text-transform: none;
  text-align: center;
}

/* Benefits */
.section-careers.content .x-row-inner > .x-col:first-child {
  padding-top: 90px;
  padding-bottom: 86px;
  background: #fff url('/wp-content/uploads/tile-spacer-pattern-3-150x150.png')
    repeat;
  background-size: 150px;
}

.section-careers.content .x-text > .careers-heading {
  margin-bottom: 42px;
}

.section-careers.content .x-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: none;
}

.section-careers.content .x-cell {
  padding: 38px 26px 35px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--careers-card-shadow);
  text-align: center;
}

.section-careers.content .out-team-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 27px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.section-careers.content .teamwork-icon {
  background-image: url('/wp-content/uploads/careers/icon-teamwork.svg');
}

.section-careers.content .competitive-salary-icon {
  background-image: url('/wp-content/uploads/careers/icon-salary.svg');
}

.section-careers.content .work-life-balance-icon {
  background-image: url('/wp-content/uploads/careers/icon-balance.svg');
}

.section-careers.content .x-cell .x-text-headline {
  margin-bottom: 16px;
}

.section-careers.content .x-cell .x-text-content-text-primary {
  margin: 0;
  font-family: 'futura-pt', sans-serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--careers-text);
  text-transform: none;
}

.section-careers.content span {
  display: block;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--careers-text);
}

/* Open Positions */
.section-careers.content .x-row-inner > .x-col:last-child {
  padding-top: 78px;
  padding-bottom: 90px;
  background: rgba(244, 250, 252, 0.5);
  outline: none;
}

.section-careers.content .ashlar-position {
  padding: 0;
}

.section-careers.content .new-opportunities {
  margin-top: 16px;
}

.section-careers.content .new-opportunities span {
  font-size: 23.1px;
}

.section-careers.content .job-openings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: 800px;
  margin: 38px auto 0;
  padding: 34px 25px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--careers-card-shadow);
}

.section-careers.content .job-openings:before {
  content: '';
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: url('/wp-content/uploads/careers/icon-briefcase.svg') no-repeat
    center / contain;
}

.section-careers.content .job-openings span {
  margin: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--careers-text);
}

/*/ Tablet /*/
@media only screen and (max-width: 1000px) {
  .section-careers.top .top-content .des,
  .section-careers.content .new-opportunities span {
    font-size: 21px;
  }

  .section-careers.top .top-content .btn-careers {
    font-size: 19px;
  }

  .section-careers.content .x-cell {
    padding: 30px 20px;
  }

  .section-careers.content .x-cell .x-text-content-text-primary {
    font-size: 25px;
  }

  .section-careers.content .x-cell span {
    font-size: 17px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1000px) {
  .x-section.section-careers.top {
    min-height: 420px;
    padding-top: 58px;
    padding-bottom: 130px;
    background-size:
      100% 140px,
      100% 100%;
  }

  .section-careers.top:before {
    bottom: 52px;
  }

  .section-careers.top .top-content {
    width: 52%;
  }

  .section-careers.top .top-content .title {
    font-size: 44px;
  }
}

/*/ Mobile /*/
@media only screen and (max-width: 767px) {
  .x-section.section-careers.top {
    min-height: 0;
    padding: 42px 0 225px;
    background-image:
      url('/wp-content/uploads/careers/hero-waves.svg'),
      url('/wp-content/uploads/careers/hero-arrows-mobile.svg');
    background-position:
      left bottom,
      left bottom 25px;
    background-size:
      100% 100px,
      200% 190px;
  }

  .section-careers.top:before {
    bottom: 25px;
    width: min(94vw, 440px);
    height: min(41.27vw, 193px);
  }

  .section-careers.top > .x-row.x-container.max.width {
    width: calc(100% - 40px);
  }

  .section-careers.top .top-content {
    width: 100%;
    min-height: 0;
  }

  .section-careers.top .top-content .title {
    font-size: 42px;
  }

  .section-careers.top .top-content .des {
    margin: 17px 0 24px;
    font-size: 19px;
    line-height: 1.7;
  }

  .section-careers.top .top-content .btn-careers {
    padding: 13px 16px;
    font-size: 17px;
  }

  .section-careers.content .x-row-inner > .x-col {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-careers.content .x-row-inner > .x-col:first-child,
  .section-careers.content .x-row-inner > .x-col:last-child {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .section-careers.content .careers-heading,
  .section-careers.content .ashlar-position .x-text-content-text-primary {
    font-size: 34px;
  }

  .section-careers.content .x-text > .careers-heading {
    margin-bottom: 28px;
  }

  .section-careers.content .x-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-careers.content .x-cell {
    padding: 30px 26px;
  }

  .section-careers.content .x-cell .x-text-content-text-primary {
    font-size: 27px;
  }

  .section-careers.content .x-cell span {
    font-size: 18px;
  }

  .section-careers.content .out-team-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
  }

  .section-careers.content .new-opportunities span {
    font-size: 18px;
  }

  .section-careers.content .job-openings {
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    padding: 28px 22px;
  }

  .section-careers.content .job-openings span {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-careers.top .top-content .btn-careers {
    transition: none;
  }
}
