.featured-careers {
  background-color: #f6f1ed;
  padding-top: 208px;
  padding-bottom: 2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.featured-careers-container {
  width: 100%;
  max-width: 1440px;
  margin: auto;
}

.featured-careers-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 45px;
  align-items: center;
}

.featured-careers-listings {
  padding-bottom: 91px;
}

.featured-careers-headline {
  font-size: 48px;
  font-weight: bold;
}

.featured-careers-headline h2 {
  font-size: inherit;
  margin: inherit;
  padding: inherit;
  font-weight: inherit;
  margin-block-start: inherit;
  margin-block-end: inherit;
  margin-inline-end: inherit;
  margin-inline-start: inherit;
  display: inherit;
}

.featured-careers-button {
  justify-self: flex-end;
}

.featured-careers-button .new-gradient-button.wider {
  font-size: 16px;
}

.featured-careers-select {
  place-self: flex-end;

  font-family: stolzl, sans-serif;
  font-weight: 700;
  color: #ea3f34;
  font-size: 20px;
  padding: 17px 45px;
  display: flex;
  cursor: pointer;
  transition: transform 0.2s ease;
  letter-spacing: 1px;
  align-items: center;
  outline: none;
  border: none;
}

select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea3f34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.featured-careers-listings-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  width: 73%;
}
.featured-careers-listings-desc h5 {
  font-size: 26px;
  line-height: 32px;
  padding-bottom: 1.5rem;
  padding-top: 1rem;
}
.featured-careers-listings-desc p {
  font-size: 18px;
  line-height: 30px;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.featured-careers-button .white-button {
  width: 250px;
  cursor: pointer;
}

.featured-careers-listings-content.fl.active {
  transform: translateY(168px);
  transition: transform 0.2s ease-in-out;
}

.featured-careers-button-cta.gradient-button {
  width: auto;
  cursor: pointer;
}

.featured-careers-listings-row {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr;
  border-top: 1px solid #969696;
  padding-top: 54px;
  padding-bottom: 48px;
  gap: 1rem;
}

.featured-careers-listings-column {
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.featured-careers-listings-column .team-arrow {
  min-width: 16px;
}

.featured-careers-listings-title,
.featured-careers-listings-team,
.featured-careers-listings-apply {
  font-size: 20px;
}

.featured-careers-listings-apply:visited {
  text-decoration: none;
  color: #ea3f34;
}

.featured-careers-listings-title {
  font-weight: bold;
  cursor: pointer;
}

.featured-careers-listings-team {
  color: #969696;
  text-align: center;
  font-weight: normal;
}

.featured-careers-listings-apply {
  color: #ea3f34;
  text-align: right;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

.featured-careers-listings-apply:hover {
  color: black;
}

.featured-careers-listings-content {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.current-openings-department-headline {
  font-size: 26px;
  font-weight: bold;
  line-height: 32px;
  padding-bottom: 1rem;
}

.featured-careers-listings-description {
  grid-column: 1/4;
  padding-top: 80px;
  padding-bottom: 40px;
  display: none;
}

.featured-careers-listings-description.active {
  display: block;
}

.featured-careers-listings-description-title {
  font-size: 26px;
  font-weight: bold;
  line-height: 32px;
  padding-bottom: 20px;
}

.featured-careers-listings-description-body {
  font-size: 18px;
  line-height: 30px;
}

.featured-careers-listings-column.description {
  align-self: center;
  display: none;
}

.featured-careers-listings-column.description.active {
  display: block;
}

.featured-careers-listings-column.apply.active {
  /* grid-row: 3;
  grid-column: 3; */
  align-self: center;
}

.featured-careers-listings-column.middle {
  grid-column: 1;
  justify-self: flex-start;
}

.featured-careers-listings-column.apply {
  grid-row: 1;
  grid-column: 3;
}

.featured-careers-button-cta.primary-button {
  padding: 26px 40px;
}

.team-dropdown-container {
  position: relative;
  place-self: center end;
  width: 100%;
  max-width: 345px;
}

.team-button {
  font-family: stolzl, sans-serif;
  font-weight: 700;
  color: #ea3f34;
  background-color: #f6f1ed;
  font-size: 20px;
  background: #ffffff;
  padding: 17px 45px;
  display: flex;
  cursor: pointer;
  transition: transform 0.2s ease;
  letter-spacing: 1px;
  align-items: center;
}

.team-button:hover {
  transform: translateY(3px);
  box-shadow: 3px 3px 30px rgb(118 96 168 / 5%);
}

.career-selected {
  padding-right: 5px;
}

.team-arrow {
  transition: transform 0.3s ease;
}

.team-arrow.open {
  transform: rotate(180deg);
  transform-origin: center;
}

.team-button p {
  display: inline;
  margin-right: 75px;
}

.team-dropdown {
  font-family: stolzl, sans-serif;
  background: #f6f1ed;
  cursor: pointer;
  /* transform: scale(0.01); */
  /* opacity: 0; */
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  transition: all 0.5s ease;
  overflow: hidden;
  width: 100%;
  max-height: 0;
  position: absolute;
  background-color: #ffffff;
}

.team-dropdown.open {
  /* transform: scale(1); */
  /* opacity: 1; */
  max-height: 10000px;
}

.team-dropdown span {
  font-family: stolzl, sans-serif;
  font-size: 18px;
  position: relative;
  color: #ea3f34;
  font-weight: 500;
  text-decoration: none;
  display: block;
  padding: 12.5px 30px;
  transition: color 0.2s ease, background-color 0.2s ease,
    padding-left 0.2s ease;
  overflow: hidden;
  padding-left: 43px;
}

.career-option span:hover {
  padding-left: 35px;
}

@media (min-width: 1077px) {
  .featured-careers-button .new-gradient-button.wider {
    font-size: inherit;
  }
}

@media (min-width: 700px) {
  .featured-careers-listings-column.middle {
    grid-column: 2;
    grid-row: 1;
    justify-self: auto;
  }
  .featured-careers-listings-column.apply {
    grid-row: 1;
    grid-column: 3;
  }
  .featured-careers-listings-column.apply.active {
    grid-row: 2;
  }
  .featured-careers-listings-description {
    grid-column: 1/3;
  }
}

@media screen and (max-width: 718px) {
  .team-button {
    font-size: 18px;
    padding: 17px 18px;
  }
}

@media screen and (max-width: 600px) {
  .featured-careers-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .team-dropdown-container {
    place-self: unset;
  }
  .featured-careers-button {
    place-self: flex-start;
    margin-top: 1rem;
    padding: 0;
  }
}

@media screen and (max-width: 447px) {
  .featured-careers-listings-apply {
    text-align: left;
    width: 100%;
  }
}
