.team {
  background-color: #ffffff;
  position: relative;
}

.team-button {
  font-family: stolzl, sans-serif;
  font-weight: 700;
  color: #ea3f34;
  background-color: #f6f1ed;
  font-size: 20px;
  /* background: #f6f1ed; */
  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;
}

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

.team-close-modal .x img:hover{
  transform: rotate(180deg);
  transition: transform 0.5s ease-out;
}

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

#member-department option {
  padding-top: 1rem;
  width: 200px;
  /* background-color:#ea3f34 */
}

.team span {
  /* z-index: -1;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0px;
  position: absolute;
  transition: width 0.4s ease;
  border-radius: 1px; */
}

.team span.clicked {
  width: 5px;
}

/*  */

.team-container {
  font-family: stolzl, sans-serif;
  max-width: 1200px;
  width: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 5rem;
  padding-top: 5rem;

  padding-left: 20px;
  padding-right: 20px;
}

.team-wrapper {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, 1fr);
}

.team-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 40px;
}
.team-header h1 {
  font-size: 48px;
  font-family: stolzl, sans-serif;
  font-size: clamp(1.875rem, -1.5rem + 6vw, 3rem);
  padding: 0 17px;
}

.team-card {
  position: relative;
  width: 100%;
  max-width: 289px;
  margin: auto;
  overflow: hidden;
  display: flex;
  cursor: pointer;
}
.team-card-icons a {
  text-decoration: none;
}
.team-card-icons .fa-brands {
  font-style: normal;
  color: #ea3f34;
  cursor: pointer;
}

.team-card .team-card-overlay {
  background: rgba(0, 0, 0, 0.7);
  position: absolute;
  height: 99%;
  width: 100%;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  -webkit-transition: all 0.4s ease-in-out 0s;
  -moz-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

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

@media screen and (min-width: 800px) {
  .team-card:hover .team-card-details {
    top: 50%;
    left: 50%;
    opacity: 1;
  }
  .team-card:hover .team-card-overlay {
    opacity: 1;
  }
}

.team-card-image {
  width: 100%;
}

.team-card-details {
  position: absolute;
  text-align: center;
  padding-left: 1em;
  padding-right: 1em;
  width: 100%;
  top: 50%;
  left: 50%;
  opacity: 0;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.team-card-details h3 {
  color: #fff;
  font-weight: 500;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  font-size: 20px;
  padding-top: 10px;
}

.team-card-details p {
  color: #fff;
  font-size: 18px;
  font-weight: 200;
  padding-bottom: 10px;
}

.team-card-details svg {
  cursor: pointer;
  padding-left: 25px;
  display: inline-block;
}

.fadeIn-bottom {
  top: 60%;
}

/* button */

#team-show-more {
  margin-top: 3rem;
}

.team-d-block {
  display: flex;
}
.team-d-none {
  display: none;
}

@media screen and (max-width: 800px) {
  .team-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-card-details h3 {
    font-size: 14px;
  }
  .team-card-details p {
    font-size: 12px;
  }
}

@media screen and (max-width: 600px) {
  .team-header {
    display: flex;
    flex-direction: column;
    align-items: unset;
  }
  .team-button {
    /* place-self: flex-start; */
    margin-top: 1rem;
  }
}
