#section-h5, #section-h6 {
    height: 0;
}
.home-s1 .elementor-column-wrap {
  background-size: 100% 100%;
}
.home-s1-head p {
    margin: 0;
}

.bannertext {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.bannertext > div {
    position: relative;
    top: 45%;
    opacity: 0;
    margin-left: -10%;
}
.bannertext.active > div {
    transition: margin-left .5s;
    opacity: 1;
    margin-left: 0;
}
.bannertext p {
  margin-bottom: 0;
  font-size: 2.5vw;
  line-height: 1.1;
  text-align: center;
  color: white;
  font-weight: bold;
  text-shadow: 0px 0px 15px rgba(0,0,0,0.5);
}
.bannertext.mobile p {
    font-size: 5.5vw;
    letter-spacing: .1em;
    text-shadow: 0px 0px 5px rgba(0,0,0,0.5);
}
.bannertext.mobile > div {
    top: 51%;
}


#proteam .carousel-slider.owl-drag .owl-item {
    padding: 1em;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: #51a8dd;
    border-radius: 3em;
}
#proteam .carousel-slider .carousel-slider__caption .title {
    color: white;
    text-transform: initial;
    font-size: 1.125em;
    line-height: 1.5;
    white-space: nowrap;
}
#proteam .carousel-slider .carousel-slider__caption .caption {
    color: white;
    font-size: 1.125em;
    line-height: 1.5;
    font-weight: normal;
    margin: 0;
    white-space: nowrap;
}
#proteam .carousel-slider .carousel-slider__item {
    height: auto;
    overflow: hidden;
}
#proteam .carousel-slider .carousel-slider__item img {
    border-radius: 2em;
    width: 50%;
    float: left;
}
#proteam .carousel-slider .carousel-slider__caption {
    width: 50%;
    float: left;
    padding-left: 1em;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
#proteam .owl-nav {
    display: none;
}

#homebox .owl-nav {
    display: none;
}

.head p {
    margin-bottom: .25em;
}

.hss3 .owl-item .carousel-slider__item img {
    cursor: pointer;
    transition: transform .25s;
    transform: scale(1);
}
.hss3 .owl-item .carousel-slider__item img:hover {
    transform: scale(.95);
}

.bannerimgtext img {
    opacity: 0;
    margin-left: -10%;
}
.bannerimgtext.active img {
    transition: all .5s;
    opacity: 1;
    margin-left: 0;
}


/*flexslider*/
.flexslider.flexteam {
  background: none;
  border: none;
  margin: 0;
}
.flexslider.flexteam .flex-direction-nav a {
    opacity: 1;
}
.flexslider.flexteam:hover .flex-direction-nav .flex-prev {
    left: -20px;
}
.flexslider.flexteam:hover .flex-direction-nav .flex-next {
    right: -20px;
}
.flexslider.flexteam .flex-direction-nav a::before {
    font-family: FontAwesome;
    font-size: 40px;
    display: inline-block;
    content: '\f054';
    color: rgba(0, 0, 0, 0.8);
    text-shadow: none;
    line-height: 1;
}
.flexslider.flexteam .flex-direction-nav a.flex-prev::before {
    content: '\f053';
}
.flexslider.flexteam:hover .flex-direction-nav .flex-next:hover {
    opacity: .8;
}
.flexslider.flexteam:hover .flex-direction-nav .flex-prev:hover {
    opacity: .8;
}

.flexslider .slides {
    display: flex;
}
.flexslider .slides > li {
    /*padding: 12.5px;*/
}
.flexslider.flexteam li .teamitembox {
  text-align: center;
  /*padding: 1em;
  background: #51a8dd;
  border-radius: 3em;*/
  height: 100%;
  padding: 12.5px;
}
.flexslider.flexteam li .teamitembox .teamitemwrap {
  padding: 1em;
  /*padding-bottom: 0;*/
  background: #51a8dd;
  border-radius: 3em;
  height: 100%;
}
.flexslider.flexteam li .teamitembox .teamitemtext {
    color: white;
    padding: .5em;
    padding-bottom: 0;
}
.flexslider.flexteam li .teamitembox .teamitemdetails {

}
.flexslider.flexteam li .teamitembox .teamitemdetails p:nth-of-type(2) {
  display: none;
}
.flexslider.flexteam li .teamitembox .teamitemdetails p {
  margin-bottom: 0;
}
.flexslider.flexteam li .teamitembox .teamitemtext h2 {
    margin-bottom: .2em;
}

.flexslider.flexteam .flex-direction-nav .flex-prev {
    left: -20px;
}
.flexslider.flexteam .flex-direction-nav .flex-next {
    right: -20px;
}
.flexslider.flexteam .flex-direction-nav a {
    /*background-color: #88cce7;*/
}
.flexslider.flexteam .slides img {
    max-width: 362px;
    margin: 0 auto;
    cursor: pointer;
    transition: transform .5s;
    transform: scale(1);
    background-size: 100%;
    background-position: center;
    border-radius: 2em;
}
.flexslider.flexteam .slides img:hover {
    transform: scale(.95);
}
.flexslider.flexteam .slides .teamitembox.active img {
    opacity: 0.5;
}
.flexslider.flexteam .slides .teamitembox.active img:hover {
    transform: scale(1);
}

.tdetailswrap {
    margin: 0 auto;
    width: 100%;
    padding: 60px 40px;
    height: auto;
    overflow: hidden;
}
#tdetailsbefore {

}

#team {
    z-index: 2;
}
#teamdetails {
  padding: 0 12.5px 12.5px;
  padding: 12.5px;
  z-index: 1;
}
#teamdetails .elementor-widget-container {
  background: #51a8dd;
  border-radius: 3em;
}
.teamdetailswrap {
  display: flex;
}
.teamdetailsbox .teamdetailsimg {
    float: left;
    padding-right: 25px;
}
.teamdetailsbox .teamdetailsimg img {
    width: 220px;
    height: auto;
}
.teamdetailsbox .teamdetailstext {
  color: white;
  white-space: nowrap;
}
.teamdetailsbox .teamdetailswrap {
  position: relative;
  transition: all .5s;
  left: -5em;
  opacity: 0;
  max-width: 700px;
  margin: 0 auto;
}
.teamdetailsbox.active .teamdetailswrap {
  left: 0;
  opacity: 1;
}

.teamdetailstext h3 {
  margin: 0;
  line-height: 1.25;
}
.teamdetailstext p {
  margin: 1.5em 0 0.5em 0;
}
.teamdetailstext ul {
  margin-left: 1em;
  font-size: 1.4375rem;
  font-weight: bold;
  font-size: 1.1875em;
}
.teamdetailstext ul li {
  margin: 0;
  line-height: 1.25;
}

/*
.flex-viewport {
    padding-bottom: 12.5px;
}
.flex-viewport ul li {
  position: relative;
}
.flex-viewport ul li:nth-of-type(2):before {
  content: "";
  display: block;
  position: absolute;
  bottom: -12.5px;
  height: 50%;
  z-index: -1;
  left: -3em;
  width: calc(50% + 3em);
  background-image: url(//paedicare.com.hk/wp-content/uploads/bg-flexslider-left.svg);
  background-size: auto;
  background-repeat: no-repeat;
  background-position: left -12.5px bottom;
  background-size: 337px auto;
}
.flex-viewport ul li:nth-of-type(2):after {
  content: "";
  display: block;
  position: absolute;
  bottom: -12.5px;
  height: 50%;
  z-index: -1;
  right: -3em;
  width: calc(50% + 3em);
  background-image: url(//paedicare.com.hk/wp-content/uploads/bg-flexslider-right.svg);
  background-size: auto;
  background-repeat: no-repeat;
  background-position: right -12.5px bottom;
  background-size: 337px auto;
}
*/
.teamdetailsbefore {
    width: 100%;
    height: calc(6em + 25px);
    position: absolute;
    top: calc(-3em - 12.5px);
    left: 0;
    display: flex;
}
.teamdetailsbefore div {
  width: 25%;
  float: left;
  position: relative;
  width: 33.3333%;
}
.teamdetailsbefore div:nth-of-type(3) {
  display: none;
}
.teamdetailsbefore div.active:before {
  content: "";
  display: block;
  position: absolute;
  bottom: 3em;
  height: calc(3em + 25px);
  left: -3em;
  width: calc(50% + 3em);
  background-image: url(//paedicare.com.hk/wp-content/uploads/bg-flexslider-left.svg);
  background-size: auto;
  background-repeat: no-repeat;
  background-position: left -12.5px bottom;
  background-size: 337px auto;
}
.teamdetailsbefore div.active:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 3em;
  height: calc(3em + 25px);
  right: -3em;
  width: calc(50% + 3em);
  background-image: url(//paedicare.com.hk/wp-content/uploads/bg-flexslider-right.svg);
  background-size: auto;
  background-repeat: no-repeat;
  background-position: right -12.5px bottom;
  background-size: 337px auto;
}
.teamdetailsbefore div.active:first-of-type:before {
  background-image: none;
  left: 12.5px;
  background-color: #51a8dd;
  bottom: 0;
  height: 100%;
  width: 50%;
}
.teamdetailsbefore div.active:last-of-type:after {
  background-image: none;
  right: 12.5px;
  background-color: #51a8dd;
  bottom: 0;
  height: 100%;
  width: 50%;
}


/*team mobile**/
.flexslider.flexteammobile li img {
    background-image: url(https://paedicare.com.hk/wp-content/uploads/dr.clarence-liu-x.jpg);
    background-size: 100% auto;
    background-position: center top;
    border-radius: 2em;
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto;
}
.flexslider.flexteammobile li .teamitembox {
    background: #51a8dd;
    color: white;
    text-align: center;
    padding: 1.5em;
    border-radius: 3em;
}
.flexslider.flexteammobile li .teamitembox h2 {
    margin: 1em 0 0;
}
.flexslider.flexteammobile li .teamitemdetails p:last-of-type {
    margin-bottom: 0;
}
.flexslider.flexteammobile .flex-control-paging li a {
    background: rgba(0, 0, 0, 0.25);
    box-shadow: none;
}
.flexslider.flexteammobile .flex-control-paging li a.flex-active {
    background: rgba(0, 0, 0, 0.6);
}


@media screen and (min-width:768px) {

    .site-content {
        background-color: #f8f5f3;
        background-image: url(//paedicare.com.hk/wp-content/uploads/bg-contactus.jpg);
        background-size: 100% auto;
        background-position: center bottom;
        background-repeat: no-repeat;
    }

    #section-h3 {
        background-color: white;
    }
    #section-h3:before {
        content: "";
        position: absolute;
        left: 0;
        top: -15px;
        width: 100%;
        height: 15px;
        background: rgba(126,204,239,0.5);
    }
    #section-h3:after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -15px;
        width: 100%;
        height: 15px;
        background: rgba(126,204,239,0.5);
    }

    .hss2 .elementor-column.elementor-col-16 {
        width: 50%;
    }

    #proteam .carousel-slider .carousel-slider__item img {
        border-radius: 2em;
        width: 100%;
        float: none;
    }
    #proteam .carousel-slider .carousel-slider__caption {
        width: 100%;
        float: none;
        padding-left: 0;
        transform: initial;
        position: initial;
    }
    #proteam .owl-nav {
        display: block;
    }
     #proteam .owl-dots {
        display: none;
    }


}

@media screen and (min-width: 1025px) {

    .hss2 .elementor-row {
        flex-wrap: wrap;
    }
    .hss2 .elementor-column.elementor-col-16 {
        width: 33.3333%;
    }

    #section-h3:before {
        top: -20px;
        height: 20px;
    }
    #section-h3:after {
        bottom: -20px;
        height: 20px;
    }

    .flex-viewport ul li:nth-of-type(2):before {
      background-size: auto;
    }
    .flex-viewport ul li:nth-of-type(2):after {
      background-size: auto;
    }

    .teamdetailsbox .teamdetailsimg img {
        width: 280px;
    }

    .teamdetailsbefore div {
      width: 25%;
    }
    .teamdetailsbefore div:nth-of-type(3) {
      display: block;
    }
    .teamdetailsbefore div.active:before {
      background-size: auto;
    }
    .teamdetailsbefore div.active:after {
      background-size: auto;
    }
	
	.teamdetailsbox .teamdetailsimg {
		width: 40%;
	}
	.teamdetailsbox .teamdetailstext {
		width: 60%;
		white-space: normal;
	}
	.teamdetailsbox .teamdetailswrap {
		max-width: 800px;
	}

}