header {
  position: relative;
  
}

a {
  text-decoration: none;
}

.teamDiv {
  padding: 4em 8em 0;
}

.teamDiv .title {
  position: relative;
  height: 200px;
}

.teamDiv .title h2 {
  margin: 0;
  color: #813e54;
  font-weight: 700;
  font-family: 'elmessiri';
  font-size: 2em;
  letter-spacing: 2px;
}

.teamDiv .title h1 {
  margin: 0;
  color: #813e54;
  font-weight: 700;
  font-family: 'elmessiri';
  font-size: 4em;
  letter-spacing: 2px;
  position: absolute;
  left: 6%;
  top: 15%;
}

.teamDiv .title span {
  margin: 0;
  width: 150px;
  border-bottom: 1px solid #813e54;
  position: absolute;
  bottom: 55%;
  left: 14%;
}

.teamDiv .title p {
  margin: 0;
  color: #595757;
  font-weight: 500;
  position: absolute;
  left: 28%;
  top: 39%;
  letter-spacing: 2px;
  font-size: 1.2em;
}

.teamBanner {
  position: relative;
  margin: 0 auto;
  width: 85%;
  padding-bottom: 2em;
}

.teamBanner img {
/*   width: 270px !important; */
  display: block;
}

.teamBanner .slick-slide {
/*   width: 300px !important; */
  margin: 0 1.5em;
}

.teamBanner:after {
  content:'';
  position: absolute;
  width: 150px;
  height: 500px;
  background: linear-gradient(90deg, #f2f2f3, rgba(7, 12, 17, 0));
  z-index: 9;
  top: 0;
}

.teamBanner:before {
  content:'';
  position: absolute;
  width: 150px;
  height: 500px;
  background: linear-gradient(90deg, rgba(7, 12, 17, 0), #f2f2f3);
  z-index: 9999;
  top: 0;
  right: 0;
}

.teamBannerDiv {
  display: flex;
  align-items: center;
  margin: 0 2em;
  padding-bottom: 5em;
}

.slickPrev, .slickNext {
  width: 50px;
}

.teamBanner img {
  width: 100%;
  display: block;
}

.teamItem {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding-bottom: 1.5em;
}

.teamItem .bgLine {
  position: absolute;
  top: 0;
  left: 0.5em;
}

.teamBanner .doctorImg {
  padding-top: 0.7em;
  border-radius: 0 3em 0 0;
}

.teamItem .doctorName {
  background-image: url(../img/doctorNameBg.png);
  background-size: 100% 100%;
  position: absolute;
  bottom: 0;
  padding: 1em 1em 1em 0;
  min-width: 13em;
  left: 10%;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  letter-spacing: 2px;
  color: #813e54;
  font-weight: 500;
}

.teamItem .doctorName:before {
  content: '醫師';
  position: absolute;
  top: 19px;
  left: 65%;
  font-size: .8em;
  color: #595757;
}

@media screen and (max-width: 1280px) {
  .teamDiv {
    padding: 4em 2em 0;
  }
  .teamBanner:before {
    right: -5px;
  }
  .teamBanner:after {
    left: -5px;
  }
  .teamItem .doctorName {
    min-width: 160px;
  }
  .teamItem .doctorName:before {
      left: 70%;
  }
}

@media screen and (max-width: 1024px) {
  .teamDiv .title p {
    left: 31%;
  }
  .teamItem .doctorName {
    min-width: 250px;
  }
}

@media screen and (max-width: 820px) {
  .teamDiv .title h2 {
    font-size: 1.2em;
  }
  .teamDiv .title h1 {
    font-size: 2.5em;
  }
  .teamDiv .title {
    height: 130px;
  }
  .teamDiv .title p {
    left: 35%;
    top: 37%;
  }
  .teamItem .doctorName {
    min-width: 200px;
  }
}

@media screen and (max-width: 428px) {
  .teamBanner:after, .teamBanner:before {
    display: none;
  }
  .teamDiv .title h1 {
    font-size: 2em;
    letter-spacing: 1px;
  }
  .teamDiv .title {
    height: 110px;
  }
  .teamDiv .title span {
    width: 130px;
  }
  .teamDiv .title p {
    font-size: .8em;
    left: 55%;
  }
  .teamBanner .slick-slide {
    margin: 0;
  }
  .teamBanner {
    width: 56%;
  }
  .teamItem .doctorName {
    min-width: 110px;
    padding: 1em 3em 1em 0;
  }
  .teamItem .bgLine {
    top: 19px;
    left: 0.5em;
    width: 93%;
  }
}
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}


